@Consumes(value="application/json") @Path(value="/policies") public interface PolicyApi extends Closeable
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.FluentIterable<ScalingPolicy> |
create(List<CreateScalingPolicy> scalingPolicies)
Create a scaling policy.
|
boolean |
delete(String scalingPolicyId)
This operation deletes a specific scaling policy.
|
boolean |
execute(String scalingPolicyId)
This operation executes a specific scaling policy.
|
ScalingPolicy |
get(String scalingPolicyId)
This operation returns the details for a single scaling policy.
|
com.google.common.collect.FluentIterable<ScalingPolicy> |
list()
This operation lists all scaling policies.
|
boolean |
update(String scalingPolicyId,
CreateScalingPolicy scalingPolicy)
This operation updates a specific scaling policy.
|
@Named(value="policy:create") @POST com.google.common.collect.FluentIterable<ScalingPolicy> create(List<CreateScalingPolicy> scalingPolicies)
scalingPolicies
- The list of scaling policies.CreateScalingPolicy
,
ScalingPolicy
@Named(value="policy:list") @GET com.google.common.collect.FluentIterable<ScalingPolicy> list()
ScalingPolicy
@Named(value="policy:get") @GET @Path(value="/{scalingPolicyId}") @Nullable ScalingPolicy get(@PathParam(value="scalingPolicyId") String scalingPolicyId)
ScalingPolicy
@Named(value="policy:update") @PUT @Path(value="/{scalingPolicyId}") boolean update(@PathParam(value="scalingPolicyId") String scalingPolicyId, CreateScalingPolicy scalingPolicy)
CreateScalingPolicy
@Named(value="policy:delete") @DELETE @Path(value="/{scalingPolicyId}") boolean delete(@PathParam(value="scalingPolicyId") String scalingPolicyId)
CreateScalingPolicy
@Named(value="policy:execute") @POST @Path(value="/{scalingPolicyId}/execute") boolean execute(@PathParam(value="scalingPolicyId") String scalingPolicyId)
CreateScalingPolicy
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.