/** * @see ServerApi#getDiagnostics */ @Named("server:getdiagnostics") @GET @Path("/servers/{id}/diagnostics") @Consumes(MediaType.APPLICATION_JSON) @Fallback(AbsentOn403Or404Or500.class) @ResponseParser(ParseDiagnostics.class) ListenableFuture<Optional<Map<String, String>>> getDiagnostics(@PathParam("id") String id); }
/** * @see CommonSwiftClient#getObject */ @Named("GetObject") @GET @ResponseParser(ParseObjectFromHeadersAndHttpContent.class) @Fallback(NullOnKeyNotFound.class) @Path("/{container}/{name}") ListenableFuture<SwiftObject> getObject(@PathParam("container") String container, @PathParam("name") String name, GetOptions... options);
/** * @see AtmosClient#listDirectory */ @Named("ListDirectory") @GET @Path("/{directoryName}/") @ResponseParser(ParseDirectoryListFromContentAndHeaders.class) @Fallback(ThrowContainerNotFoundOn404.class) @Consumes(MediaType.TEXT_XML) ListenableFuture<BoundedSet<? extends DirectoryEntry>> listDirectory( @PathParam("directoryName") String directoryName, ListOptions... options);
/** * Retrieves a list of resource record ids for all records of the fqdn in the * given zone * * @throws JobStillRunningException * if a different job in the session is still running */ @Named("GetRecord") @GET @Path("/AllRecord/{zone}/{fqdn}") @ResponseParser(ToRecordIds.class) @Fallback(EmptyFluentIterableOnNotFoundOr404.class) FluentIterable<RecordId> listByFQDN(@PathParam("fqdn") String fqdn) throws JobStillRunningException;
@Named("keypair:list") @GET @Path("/os-keypairs") @ResponseParser(ParseKeyPairs.class) @Consumes(MediaType.APPLICATION_JSON) @Fallback(EmptyFluentIterableOnNotFoundOr404.class) ListenableFuture<? extends FluentIterable<? extends KeyPair>> list();
/** * @see ServerApi#getMetadata */ @Named("server:getmetadata") @GET @Path("/servers/{id}/metadata/{key}") @Consumes(MediaType.APPLICATION_JSON) @ResponseParser(OnlyMetadataValueOrNull.class) @Fallback(NullOnNotFoundOr404.class) ListenableFuture<String> getMetadata(@PathParam("id") String id, @PathParam("key") String key);
/** * Lists the names of the items in a data bag. * * @param databagName The name of the data bag. * @return The names of the items in the given data bag. */ @Named("databag:listitems") @GET @Path("/data/{name}") @ResponseParser(ParseKeySetFromJson.class) @Fallback(EmptySetOnNotFoundOr404.class) Set<String> listDatabagItems(@PathParam("name") String databagName);
/** * @see ServerApi#listTemplates */ @Named("server:templates") @GET @Path("/server/templates/format/json") @ResponseParser(ParseTemplatesFromHttpResponse.class) @Fallback(EmptyFluentIterableOnNotFoundOr404.class) @Consumes(MediaType.APPLICATION_JSON) ListenableFuture<FluentIterable<OSTemplate>> listTemplates();
/** * Lists the available versions of the given cookbook. * * @param cookbookName The name of the cookbook. * @return The available versions of the given cookbook. */ @Named("cookbook:versions") @GET @Path("/cookbooks/{cookbookname}") @ResponseParser(ParseCookbookVersionsFromJson.class) @Fallback(EmptySetOnNotFoundOr404.class) Set<String> listVersionsOfCookbook(@PathParam("cookbookname") String cookbookName);
/** * @see ImageApi#getMetadata */ @Named("image:getmetadata") @GET @Path("/images/{id}/metadata/{key}") @Consumes(MediaType.APPLICATION_JSON) @ResponseParser(OnlyMetadataValueOrNull.class) @Fallback(NullOnNotFoundOr404.class) ListenableFuture<String> getMetadata(@PathParam("id") String id, @PathParam("key") String key);
/** * @see ServerApi#getDiagnostics */ @Named("server:getdiagnostics") @GET @Path("/servers/{id}/diagnostics") @Consumes(MediaType.APPLICATION_JSON) @Fallback(AbsentOn403Or404Or500.class) @ResponseParser(ParseDiagnostics.class) ListenableFuture<Optional<Map<String, String>>> getDiagnostics(@PathParam("id") String id); }
/** @see FlavorApi#listInDetail(PaginationOptions) */ @Named("flavor:list") @GET @Consumes(MediaType.APPLICATION_JSON) @Path("/flavors/detail") @RequestFilters(AuthenticateRequest.class) @ResponseParser(ParseFlavorDetails.class) @Fallback(EmptyPaginatedCollectionOnNotFoundOr404.class) ListenableFuture<? extends PaginatedCollection<? extends Flavor>> listInDetail(PaginationOptions options);
/** * @see CommonSwiftClient#getObject */ @Named("GetObject") @GET @ResponseParser(ParseObjectFromHeadersAndHttpContent.class) @Fallback(NullOnKeyNotFound.class) @Path("/{container}/{name}") ListenableFuture<SwiftObject> getObject(@PathParam("container") String container, @PathParam("name") String name, GetOptions... options);