org.jclouds.rest.annotations.Payload类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(200)

本文整理了Java中org.jclouds.rest.annotations.Payload类的一些代码示例,展示了Payload类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Payload类的具体详情如下:
包路径:org.jclouds.rest.annotations.Payload
类名称:Payload

Payload介绍

暂无

代码示例

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

/**
* Resume a server.
*
* @param id id of the server
*/
@Named("serverAdmin:resume")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"resume\":null}")
void resume(@PathParam("id") String id);

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

/**
* Unlock a server.
*
* @param id id of the server
*/
@Named("serverAdmin:unlock")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"unlock\":null}")
void unlock(@PathParam("id") String id);

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

/**
  * Inject network info into a server.
  *
  * @param id id of the server
  */
  @Named("serverAdmin:injectNetwork")
  @POST
  @Produces(MediaType.APPLICATION_JSON)
  @Payload("{\"injectNetworkInfo\":null}")
  void injectNetworkInfo(@PathParam("id") String id);
}

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerApi#start
*/
@Named("server:start")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"os-start\":null}")
ListenableFuture<Void> start(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerApi#confirmResize
*/
@Named("server:resize")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"confirmResize\":null}")
ListenableFuture<Void> confirmResize(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerApi#revertResize
*/
@Named("server:resize")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"revertResize\":null}")
ListenableFuture<Void> revertResize(@PathParam("id") String id);

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

/**
* Stop a server
*
* @param id
*           id of the server
*/
@Named("server:stop")
@POST
@Path("/{id}/action")
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"os-stop\":null}")
void stop(@PathParam("id") String id);

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

/**
* Confirm a resize operation.
*
* @param id
*           id of the server
*/
@Named("server:confirmResize")
@POST
@Path("/{id}/action")
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"confirmResize\":null}")
void confirmResize(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerApi#stop
*/
@Named("server:stop")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"os-stop\":null}")
ListenableFuture<Void> stop(@PathParam("id") String id);

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
* @see ServerApi#stop
*/
@Named("server:stop")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"os-stop\":null}")
ListenableFuture<Void> stop(@PathParam("id") String id);

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
* @see ServerApi#revertResize
*/
@Named("server:resize")
@POST
@Path("/servers/{id}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"revertResize\":null}")
ListenableFuture<Void> revertResize(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* Returns the account of the current user.
*/
@Named("getAccountsListOfUser")
@POST
@XMLResponseParser(AccountHandler.class)
@Payload("<v01:getAccountsListOfUser/>")
IdAndName getCurrentAccount();

代码示例来源:origin: jclouds/legacy-jclouds

/**
* Returns all traffic controller pools in the zone.
* 
* @throws ResourceNotFoundException
*            if the zone doesn't exist
*/
@Named("getLoadBalancingPoolsByZone")
@POST
@XMLResponseParser(TrafficControllerPoolListHandler.class)
@Payload("<v01:getLoadBalancingPoolsByZone><zoneName>{zoneName}</zoneName><lbPoolType>TC</lbPoolType></v01:getLoadBalancingPoolsByZone>")
FluentIterable<TrafficControllerPool> list() throws ResourceNotFoundException;

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerAdminApi#resume(String)
*/
@Named("serveradmin:resume")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"resume\":null}")
@Fallback(FalseOnNotFoundOr404.class)
ListenableFuture<Boolean> resume(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerAdminApi#migrate(String)
*/
@Named("serveradmin:migrate")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"migrate\":null}")
@Fallback(FalseOnNotFoundOr404.class)
ListenableFuture<Boolean> migrate(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerAdminApi#injectNetworkInfo(String)
*/
@Named("serveradmin:injectnetwork")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"injectNetworkInfo\":null}")
@Fallback(FalseOnNotFoundOr404.class)
ListenableFuture<Boolean> injectNetworkInfo(@PathParam("id") String id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* Lists the directional regions available in the account.
*/
@Named("getAvailableRegions")
@POST
@XMLResponseParser(RegionListHandler.class)
@Payload("<v01:getAvailableRegions/>")
Multimap<IdAndName, String> getRegionsByIdAndName();

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see CloudServersClient#confirmResizeServer
*/
@POST
@QueryParams(keys = "format", values = "json")
@Path("/servers/{id}/action")
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"confirmResize\":null}")
ListenableFuture<Void> confirmResizeServer(@PathParam("id") int id);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see CloudServersClient#renameServer
*/
@PUT
@Path("/servers/{id}")
@Produces(MediaType.APPLICATION_JSON)
@Payload("%7B\"server\":%7B\"name\":\"{name}\"%7D%7D")
ListenableFuture<Void> renameServer(@PathParam("id") int id, @PayloadParam("name") String newName);

代码示例来源:origin: jclouds/legacy-jclouds

/**
* @see ServerAdminApi#lock(String)
*/
@Named("serveradmin:lock")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Payload("{\"lock\":null}")
@Fallback(FalseOnNotFoundOr404.class)
ListenableFuture<Boolean> lock(@PathParam("id") String id);

相关文章