org.openmetadata.client.api.ChartsApi Maven / Gradle / Ivy
package org.openmetadata.client.api;
import org.openmetadata.client.ApiClient;
import org.openmetadata.client.EncodingUtils;
import org.openmetadata.client.model.ApiResponse;
import org.openmetadata.client.model.ChangeEvent;
import org.openmetadata.client.model.Chart;
import org.openmetadata.client.model.ChartList;
import org.openmetadata.client.model.CreateChart;
import org.openmetadata.client.model.EntityHistory;
import org.openmetadata.client.model.RestoreEntity;
import java.util.UUID;
import org.openmetadata.client.model.VoteRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import feign.*;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T06:10:38.496414726Z[Etc/UTC]")
public interface ChartsApi extends ApiClient.Api {
/**
* Add a follower
* Add a user identified by `userId` as followed of this chart
* @param id Id of the chart (required)
* @param body Id of the user to be added as follower (optional)
*/
@RequestLine("PUT /v1/charts/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void addFollowerToChart(@Param("id") UUID id, UUID body);
/**
* Add a follower
* Similar to addFollowerToChart
but it also returns the http response headers .
* Add a user identified by `userId` as followed of this chart
* @param id Id of the chart (required)
* @param body Id of the user to be added as follower (optional)
*/
@RequestLine("PUT /v1/charts/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse addFollowerToChartWithHttpInfo(@Param("id") UUID id, UUID body);
/**
* Create a chart
* Create a chart under an existing `service`.
* @param createChart (optional)
* @return Chart
*/
@RequestLine("POST /v1/charts")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Chart createChart(CreateChart createChart);
/**
* Create a chart
* Similar to createChart
but it also returns the http response headers .
* Create a chart under an existing `service`.
* @param createChart (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("POST /v1/charts")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createChartWithHttpInfo(CreateChart createChart);
/**
* Create or update chart
* Create a chart, it it does not exist or update an existing chart.
* @param createChart (optional)
* @return Chart
*/
@RequestLine("PUT /v1/charts")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Chart createOrUpdateChart(CreateChart createChart);
/**
* Create or update chart
* Similar to createOrUpdateChart
but it also returns the http response headers .
* Create a chart, it it does not exist or update an existing chart.
* @param createChart (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/charts")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createOrUpdateChartWithHttpInfo(CreateChart createChart);
/**
* Delete a chart by Id
* Delete a chart by `Id`.
* @param id Id of the chart (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/charts/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteChart(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a chart by Id
* Similar to deleteChart
but it also returns the http response headers .
* Delete a chart by `Id`.
* @param id Id of the chart (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/charts/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteChartWithHttpInfo(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a chart by Id
* Delete a chart by `Id`.
* Note, this is equivalent to the other deleteChart
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteChartQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/charts/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteChart(@Param("id") UUID id, @QueryMap(encoded=true) DeleteChartQueryParams queryParams);
/**
* Delete a chart by Id
* Delete a chart by `Id`.
* Note, this is equivalent to the other deleteChart
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/charts/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteChartWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) DeleteChartQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteChart
method in a fluent style.
*/
public static class DeleteChartQueryParams extends HashMap {
public DeleteChartQueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
}
/**
* Delete a chart by fully qualified name
* Delete a chart by `fullyQualifiedName`.
* @param fqn Fully qualified name of the chart (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/charts/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteChartByFQN(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a chart by fully qualified name
* Similar to deleteChartByFQN
but it also returns the http response headers .
* Delete a chart by `fullyQualifiedName`.
* @param fqn Fully qualified name of the chart (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/charts/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteChartByFQNWithHttpInfo(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a chart by fully qualified name
* Delete a chart by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteChartByFQN
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteChartByFQNQueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Fully qualified name of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/charts/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteChartByFQN(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteChartByFQNQueryParams queryParams);
/**
* Delete a chart by fully qualified name
* Delete a chart by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteChartByFQN
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Fully qualified name of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/charts/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteChartByFQNWithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteChartByFQNQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteChartByFQN
method in a fluent style.
*/
public static class DeleteChartByFQNQueryParams extends HashMap {
public DeleteChartByFQNQueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
}
/**
* Remove a follower
* Remove the user identified `userId` as a follower of the chart.
* @param id Id of the chart (required)
* @param userId Id of the user being removed as follower (required)
*/
@RequestLine("DELETE /v1/charts/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
void deleteFollowerFromChart(@Param("id") UUID id, @Param("userId") UUID userId);
/**
* Remove a follower
* Similar to deleteFollowerFromChart
but it also returns the http response headers .
* Remove the user identified `userId` as a follower of the chart.
* @param id Id of the chart (required)
* @param userId Id of the user being removed as follower (required)
*/
@RequestLine("DELETE /v1/charts/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteFollowerFromChartWithHttpInfo(@Param("id") UUID id, @Param("userId") UUID userId);
/**
* Get a chart by fully qualified name
* Get a chart by `fullyQualifiedName`.
* @param fqn Fully qualified name of the chart (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return Chart
*/
@RequestLine("GET /v1/charts/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Chart getChartByFQN(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get a chart by fully qualified name
* Similar to getChartByFQN
but it also returns the http response headers .
* Get a chart by `fullyQualifiedName`.
* @param fqn Fully qualified name of the chart (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/charts/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getChartByFQNWithHttpInfo(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get a chart by fully qualified name
* Get a chart by `fullyQualifiedName`.
* Note, this is equivalent to the other getChartByFQN
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetChartByFQNQueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Fully qualified name of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Chart
*/
@RequestLine("GET /v1/charts/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Chart getChartByFQN(@Param("fqn") String fqn, @QueryMap(encoded=true) GetChartByFQNQueryParams queryParams);
/**
* Get a chart by fully qualified name
* Get a chart by `fullyQualifiedName`.
* Note, this is equivalent to the other getChartByFQN
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Fully qualified name of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Chart
*/
@RequestLine("GET /v1/charts/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getChartByFQNWithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) GetChartByFQNQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getChartByFQN
method in a fluent style.
*/
public static class GetChartByFQNQueryParams extends HashMap {
public GetChartByFQNQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetChartByFQNQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a chart by Id
* Get a chart by `Id`.
* @param id Id of the chart (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return Chart
*/
@RequestLine("GET /v1/charts/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Chart getChartByID(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get a chart by Id
* Similar to getChartByID
but it also returns the http response headers .
* Get a chart by `Id`.
* @param id Id of the chart (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/charts/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getChartByIDWithHttpInfo(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get a chart by Id
* Get a chart by `Id`.
* Note, this is equivalent to the other getChartByID
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetChartByIDQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Chart
*/
@RequestLine("GET /v1/charts/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Chart getChartByID(@Param("id") UUID id, @QueryMap(encoded=true) GetChartByIDQueryParams queryParams);
/**
* Get a chart by Id
* Get a chart by `Id`.
* Note, this is equivalent to the other getChartByID
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the chart (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Chart
*/
@RequestLine("GET /v1/charts/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getChartByIDWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) GetChartByIDQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getChartByID
method in a fluent style.
*/
public static class GetChartByIDQueryParams extends HashMap {
public GetChartByIDQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetChartByIDQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a version of the chart
* Get a version of the chart by given `Id`
* @param id Id of the chart (required)
* @param version Chart version number in the form `major`.`minor` (required)
* @return Chart
*/
@RequestLine("GET /v1/charts/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
Chart getSpecificChartVersion(@Param("id") UUID id, @Param("version") String version);
/**
* Get a version of the chart
* Similar to getSpecificChartVersion
but it also returns the http response headers .
* Get a version of the chart by given `Id`
* @param id Id of the chart (required)
* @param version Chart version number in the form `major`.`minor` (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/charts/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
ApiResponse getSpecificChartVersionWithHttpInfo(@Param("id") UUID id, @Param("version") String version);
/**
* List chart versions
* Get a list of all the versions of a chart identified by `id`
* @param id Id of the chart (required)
* @return EntityHistory
*/
@RequestLine("GET /v1/charts/{id}/versions")
@Headers({
"Accept: application/json",
})
EntityHistory listAllChartVersions(@Param("id") UUID id);
/**
* List chart versions
* Similar to listAllChartVersions
but it also returns the http response headers .
* Get a list of all the versions of a chart identified by `id`
* @param id Id of the chart (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/charts/{id}/versions")
@Headers({
"Accept: application/json",
})
ApiResponse listAllChartVersionsWithHttpInfo(@Param("id") UUID id);
/**
* List charts
* Get a list of charts, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* @param fields Fields requested in the returned resource (optional)
* @param service Filter charts by service name (optional)
* @param limit Limit the number charts returned. (1 to 1000000, default = 10) (optional, default to 10)
* @param before Returns list of charts before this cursor (optional)
* @param after Returns list of charts after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return ChartList
*/
@RequestLine("GET /v1/charts?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ChartList listCharts(@Param("fields") String fields, @Param("service") String service, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List charts
* Similar to listCharts
but it also returns the http response headers .
* Get a list of charts, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* @param fields Fields requested in the returned resource (optional)
* @param service Filter charts by service name (optional)
* @param limit Limit the number charts returned. (1 to 1000000, default = 10) (optional, default to 10)
* @param before Returns list of charts before this cursor (optional)
* @param after Returns list of charts after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/charts?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listChartsWithHttpInfo(@Param("fields") String fields, @Param("service") String service, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List charts
* Get a list of charts, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* Note, this is equivalent to the other listCharts
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link ListChartsQueryParams} class that allows for
* building up this map in a fluent style.
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - service - Filter charts by service name (optional)
* - limit - Limit the number charts returned. (1 to 1000000, default = 10) (optional, default to 10)
* - before - Returns list of charts before this cursor (optional)
* - after - Returns list of charts after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return ChartList
*/
@RequestLine("GET /v1/charts?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ChartList listCharts(@QueryMap(encoded=true) ListChartsQueryParams queryParams);
/**
* List charts
* Get a list of charts, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* Note, this is equivalent to the other listCharts
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - service - Filter charts by service name (optional)
* - limit - Limit the number charts returned. (1 to 1000000, default = 10) (optional, default to 10)
* - before - Returns list of charts before this cursor (optional)
* - after - Returns list of charts after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return ChartList
*/
@RequestLine("GET /v1/charts?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listChartsWithHttpInfo(@QueryMap(encoded=true) ListChartsQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* listCharts
method in a fluent style.
*/
public static class ListChartsQueryParams extends HashMap {
public ListChartsQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public ListChartsQueryParams service(final String value) {
put("service", EncodingUtils.encode(value));
return this;
}
public ListChartsQueryParams limit(final Integer value) {
put("limit", EncodingUtils.encode(value));
return this;
}
public ListChartsQueryParams before(final String value) {
put("before", EncodingUtils.encode(value));
return this;
}
public ListChartsQueryParams after(final String value) {
put("after", EncodingUtils.encode(value));
return this;
}
public ListChartsQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Update a chart by name.
* Update an existing chart using JsonPatch.
* @param fqn Name of the chart (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a chart by name. Documentation
*/
@RequestLine("PATCH /v1/charts/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchChart(@Param("fqn") String fqn, Object body);
/**
* Update a chart by name.
* Similar to patchChart
but it also returns the http response headers .
* Update an existing chart using JsonPatch.
* @param fqn Name of the chart (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a chart by name. Documentation
*/
@RequestLine("PATCH /v1/charts/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchChartWithHttpInfo(@Param("fqn") String fqn, Object body);
/**
* Update a chart
* Update an existing chart using JsonPatch.
* @param id Id of the chart (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a chart Documentation
*/
@RequestLine("PATCH /v1/charts/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchChart1(@Param("id") UUID id, Object body);
/**
* Update a chart
* Similar to patchChart1
but it also returns the http response headers .
* Update an existing chart using JsonPatch.
* @param id Id of the chart (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a chart Documentation
*/
@RequestLine("PATCH /v1/charts/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchChart1WithHttpInfo(@Param("id") UUID id, Object body);
/**
* Restore a soft deleted chart
* Restore a soft deleted chart.
* @param restoreEntity (optional)
* @return Chart
*/
@RequestLine("PUT /v1/charts/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Chart restore5(RestoreEntity restoreEntity);
/**
* Restore a soft deleted chart
* Similar to restore5
but it also returns the http response headers .
* Restore a soft deleted chart.
* @param restoreEntity (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/charts/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse restore5WithHttpInfo(RestoreEntity restoreEntity);
/**
* Update Vote for a Entity
* Update vote for a Entity
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return ChangeEvent
*/
@RequestLine("PUT /v1/charts/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ChangeEvent updateVoteForEntity(@Param("id") UUID id, VoteRequest voteRequest);
/**
* Update Vote for a Entity
* Similar to updateVoteForEntity
but it also returns the http response headers .
* Update vote for a Entity
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/charts/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse updateVoteForEntityWithHttpInfo(@Param("id") UUID id, VoteRequest voteRequest);
}