/** * @see TagApi#applyToResources(Iterable, Iterable) * @see <a * href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateTags.html">docs</a> */ @Named("CreateTags") @POST @Path("/") @FormParams(keys = ACTION, values = "CreateTags") ListenableFuture<Void> applyToResources(@BinderParam(BindTagsToIndexedFormParams.class) Iterable<String> tags, @BinderParam(BindResourceIdsToIndexedFormParams.class) Iterable<String> resourceIds);
/** * @see TagApi#conditionallyDeleteFromResources * @see <a * href="http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteTags.html">docs</a> */ @Named("DeleteTags") @POST @Path("/") @FormParams(keys = ACTION, values = "DeleteTags") ListenableFuture<Void> conditionallyDeleteFromResources( @BinderParam(BindTagsToIndexedFormParams.class) Map<String, String> conditionalTagValues, @BinderParam(BindResourceIdsToIndexedFormParams.class) Iterable<String> resourceIds);
/** * @see CommonSwiftClient#setContainerMetadata */ @Named("UpdateContainerMetadata") @POST @Path("/{container}") @Fallback(FalseOnContainerNotFound.class) ListenableFuture<Boolean> setContainerMetadata(@PathParam("container") String container, @BinderParam(BindMapToHeadersWithContainerMetadataPrefix.class) Map<String, String> containerMetadata);
/** * @see AMIClient#addLaunchPermissionsToImageInRegion */ @Named("ModifyImageAttribute") @POST @Path("/") @FormParams(keys = { ACTION, "OperationType", "Attribute" }, values = { "ModifyImageAttribute", "add", "launchPermission" }) ListenableFuture<Void> addLaunchPermissionsToImageInRegion( @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, @BinderParam(BindUserIdsToIndexedFormParams.class) Iterable<String> userIds, @BinderParam(BindUserGroupsToIndexedFormParams.class) Iterable<String> userGroups, @FormParam("ImageId") String imageId);
/** * @see AlarmApi#disable(Iterable) */ @Named("DisableAlarmActions") @POST @Path("/") @FormParams(keys = "Action", values = "DisableAlarmActions") ListenableFuture<Void> disable(@BinderParam(AlarmNamesBinder.class) Iterable<String> alarmNames);
/** * @see AlarmApi#enable(Iterable) */ @Named("EnableAlarmActions") @POST @Path("/") @FormParams(keys = "Action", values = "EnableAlarmActions") ListenableFuture<Void> enable(@BinderParam(AlarmNamesBinder.class) Iterable<String> alarmNames);
/** * @see CommonSwiftClient#deleteContainerMetadata */ @Named("UpdateContainerMetadata") @POST @Path("/{container}") @Fallback(FalseOnContainerNotFound.class) ListenableFuture<Boolean> deleteContainerMetadata(@PathParam("container") String container, @BinderParam(BindIterableToHeadersWithContainerDeleteMetadataPrefix.class) Iterable<String> metadataKeys);
/** * @see InstanceClient#rebootInstancesInRegion */ @Named("RebootInstances") @POST @Path("/") @FormParams(keys = ACTION, values = "RebootInstances") ListenableFuture<Void> rebootInstancesInRegion( @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, @BinderParam(BindInstanceIdsToIndexedFormParams.class) String... instanceIds);
/** * @see AlarmApi#delete(Iterable) */ @Named("DeleteAlarms") @POST @Path("/") @FormParams(keys = "Action", values = "DeleteAlarms") ListenableFuture<Void> delete(@BinderParam(AlarmNamesBinder.class) Iterable<String> alarmNames);
/** * Adds an item in a data bag. * * @param databagName The name of the data bag. * @param databagItem item to add to the data bag. * @return The item just added to the data bag. */ @Named("databag:createitem") @POST @Path("/data/{databagName}") DatabagItem createDatabagItem(@PathParam("databagName") String databagName, @BinderParam(BindToJsonPayload.class) DatabagItem databagItem);
/** * @see InstanceClient#setBlockDeviceMappingForInstanceInRegion */ @Named("ModifyInstanceAttribute") @POST @Path("/") @FormParams(keys = { ACTION }, values = { "ModifyInstanceAttribute" }) ListenableFuture<Void> setBlockDeviceMappingForInstanceInRegion( @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, @FormParam("InstanceId") String instanceId, @BinderParam(BindBlockDeviceMappingToIndexedFormParams.class) Map<String, BlockDevice> blockDeviceMapping);
/** * @see SecurityGroupClient#revokeSecurityGroupIngressInRegion(@Nullable Region, * String,UserIdGroupPair) */ @Named("RevokeSecurityGroupIngress") @POST @Path("/") @FormParams(keys = ACTION, values = "RevokeSecurityGroupIngress") ListenableFuture<Void> revokeSecurityGroupIngressInRegion( @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, @FormParam("GroupName") String groupName, @BinderParam(BindUserIdGroupPairToSourceSecurityGroupFormParams.class) UserIdGroupPair sourceSecurityGroup);
/** * @param containerId id of the container to copy files from */ @Named("container:copy") @POST @Path("/containers/{id}/copy") InputStream copy(@PathParam("id") String containerId, @BinderParam(BindToJsonPayload.class) Resource resource); }
/** * @see SecurityGroupClient#authorizeSecurityGroupIngressInRegion(@ org.jclouds.javax.annotation.Nullable Region, * String,UserIdGroupPair) */ @Named("AuthorizeSecurityGroupIngress") @POST @Path("/") @FormParams(keys = ACTION, values = "AuthorizeSecurityGroupIngress") ListenableFuture<Void> authorizeSecurityGroupIngressInRegion( @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, @FormParam("GroupName") String groupName, @BinderParam(BindUserIdGroupPairToSourceSecurityGroupFormParams.class) UserIdGroupPair sourceSecurityGroup);
/** * @param containerId The id of the container to be started. * @param hostConfig the container’s host configuration */ @Named("container:start") @POST @Path("/containers/{id}/start") void startContainer(@PathParam("id") String containerId, @BinderParam(BindToJsonPayload.class) HostConfig hostConfig);
/** * @param containerId id of the container to copy files from */ @Named("container:copy") @POST @Path("/containers/{id}/copy") InputStream copy(@PathParam("id") String containerId, @BinderParam(BindToJsonPayload.class) Resource resource); }
/** * @see CommonSwiftClient#setObjectInfo */ @Named("UpdateObjectMetadata") @POST @Path("/{container}/{name}") ListenableFuture<Boolean> setObjectInfo(@PathParam("container") String container, @PathParam("name") String name, @BinderParam(BindMapToHeadersWithPrefix.class) Map<String, String> userMetadata);
/** * @see CommonSwiftClient#setContainerMetadata */ @Named("UpdateContainerMetadata") @POST @Path("/{container}") @Fallback(FalseOnContainerNotFound.class) ListenableFuture<Boolean> setContainerMetadata(@PathParam("container") String container, @BinderParam(BindMapToHeadersWithContainerMetadataPrefix.class) Map<String, String> containerMetadata);
/** * @see CommonSwiftClient#setObjectInfo */ @Named("UpdateObjectMetadata") @POST @Path("/{container}/{name}") ListenableFuture<Boolean> setObjectInfo(@PathParam("container") String container, @PathParam("name") String name, @BinderParam(BindMapToHeadersWithPrefix.class) Map<String, String> userMetadata);
/** * @see CommonSwiftClient#setObjectInfo */ @Named("UpdateObjectMetadata") @POST @Path("/{container}/{name}") ListenableFuture<Boolean> setObjectInfo(@PathParam("container") String container, @PathParam("name") String name, @BinderParam(BindMapToHeadersWithPrefix.class) Map<String, String> userMetadata);