Refine search
/** * Returns the current status of a job. * </p> * Operations that create, update, or delete resources may take some time to process. Therefore they return * a Job containing information, which allows the status and response information of the job to be * retrieved at a later point in time. * </p> * You likely won't need to use this method directly. Use {@link JobPredicates#awaitComplete(CloudDNSApi, Job)}. * * @return null, if not found. */ @Named("job:get") @Endpoint(CloudDNS.class) @RequestFilters(AuthenticateRequest.class) @GET @Consumes(APPLICATION_JSON) @ResponseParser(ParseJob.class) @Fallback(NullOnNotFoundOr404.class) @QueryParams(keys = "showDetails", values = "true") @Path("/status/{jobId}") @Nullable <T> Job<T> getJob(@PathParam("jobId") String jobId);
/** * Only purpose is to override the auth filter with one that works in keystone * * @author Adrian Cole * @see TemporaryUrlKeyApi */ @RequestFilters(AuthenticateRequest.class) @Endpoint(Storage.class) public interface KeystoneTemporaryUrlKeyAsyncApi extends TemporaryUrlKeyAsyncApi { }
protected Optional<URI> getEndpointFor(Invocation invocation) { URI endpoint = getEndpointInParametersOrNull(invocation, injector); if (endpoint == null) { Endpoint annotation; if (invocation.getInvokable().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getAnnotation(Endpoint.class); } else if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Endpoint.class); } else { logger.trace("no annotations on class or invocation.getInvoked(): %s", invocation.getInvokable()); return Optional.absent(); } endpoint = injector.getInstance(Key.get(uriSupplierLiteral, annotation.value())).get(); } URI provider = injector.getInstance(Key.get(uriSupplierLiteral, org.jclouds.location.Provider.class)).get(); return Optional.fromNullable(addHostIfMissing(endpoint, provider)); }
/** * Returns the current status of a job. * </p> * Operations that create, update, or delete resources may take some time to process. Therefore they return * a Job containing information, which allows the status and response information of the job to be * retrieved at a later point in time. * </p> * You likely won't need to use this method directly. Use {@link JobPredicates#awaitComplete(CloudDNSApi, Job)}. * * @return null, if not found. */ @Named("job:get") @Endpoint(CloudDNS.class) @RequestFilters(AuthenticateRequest.class) @GET @Consumes(APPLICATION_JSON) @ResponseParser(ParseJob.class) @Fallback(NullOnNotFoundOr404.class) @QueryParams(keys = "showDetails", values = "true") @Path("/status/{jobId}") @Nullable <T> Job<T> getJob(@PathParam("jobId") String jobId);
/** * Only purpose is to override the auth filter with one that works in keystone * * @author Adrian Cole * @see TemporaryUrlKeyApi */ @RequestFilters(AuthenticateRequest.class) @Endpoint(Storage.class) public interface KeystoneTemporaryUrlKeyAsyncApi extends TemporaryUrlKeyAsyncApi { }
protected Optional<URI> getEndpointFor(Invocation invocation) { URI endpoint = getEndpointInParametersOrNull(invocation, injector); if (endpoint == null) { Endpoint annotation; if (invocation.getInvokable().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getAnnotation(Endpoint.class); } else if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Endpoint.class); } else { logger.trace("no annotations on class or invocation.getInvoked(): %s", invocation.getInvokable()); return Optional.absent(); } endpoint = injector.getInstance(Key.get(uriSupplierLiteral, annotation.value())).get(); } URI provider = injector.getInstance(Key.get(uriSupplierLiteral, org.jclouds.location.Provider.class)).get(); return Optional.fromNullable(addHostIfMissing(endpoint, provider)); }
/** * Returns the current status of a job. * </p> * Operations that create, update, or delete resources may take some time to process. Therefore they return * a Job containing information, which allows the status and response information of the job to be * retrieved at a later point in time. * </p> * You likely won't need to use this method directly. Use {@link JobPredicates#awaitComplete(CloudDNSApi, Job)}. * * @return null, if not found. */ @Named("job:get") @Endpoint(CloudDNS.class) @RequestFilters(AuthenticateRequest.class) @GET @Consumes(APPLICATION_JSON) @ResponseParser(ParseJob.class) @Fallback(NullOnNotFoundOr404.class) @QueryParams(keys = "showDetails", values = "true") @Path("/status/{jobId}") @Nullable <T> Job<T> getJob(@PathParam("jobId") String jobId);
/** * Only purpose is to override the auth filter with one that works in keystone */ @RequestFilters(AuthenticateRequest.class) @Endpoint(Storage.class) public interface KeystoneTemporaryUrlKeyApi extends TemporaryUrlKeyApi { }
protected Optional<URI> getEndpointFor(Invocation invocation) { URI endpoint = getEndpointInParametersOrNull(invocation, injector); if (endpoint == null) { Endpoint annotation; if (invocation.getInvokable().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getAnnotation(Endpoint.class); } else if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Endpoint.class); } else { logger.trace("no annotations on class or invocation.getInvoked(): %s", invocation.getInvokable()); return Optional.absent(); } endpoint = injector.getInstance(Key.get(uriSupplierLiteral, annotation.value())).get(); } URI provider = injector.getInstance(Key.get(uriSupplierLiteral, org.jclouds.location.Provider.class)).get(); return Optional.fromNullable(addHostIfMissing(endpoint, provider)); }
/** * @see CloudFilesClient#listCDNContainers */ @Named("ListCDNEnabledContainers") @GET @Consumes(MediaType.APPLICATION_JSON) @QueryParams(keys = "format", values = "json") @Path("/") @Endpoint(CDNManagement.class) ListenableFuture<? extends Set<ContainerCDNMetadata>> listCDNContainers(ListCdnContainerOptions... options);
/** * Returns the current status of a job. * </p> * Operations that create, update, or delete resources may take some time to process. Therefore they return * a Job containing information, which allows the status and response information of the job to be * retrieved at a later point in time. * </p> * You likely won't need to use this method directly. Use {@link JobPredicates#awaitComplete(CloudDNSApi, Job)}. * * @return null, if not found. */ @Named("job:get") @Endpoint(CloudDNS.class) @RequestFilters(AuthenticateRequest.class) @GET @Consumes(APPLICATION_JSON) @ResponseParser(ParseJob.class) @Fallback(NullOnNotFoundOr404.class) @QueryParams(keys = "showDetails", values = "true") @Path("/status/{jobId}") @Nullable <T> Job<T> getJob(@PathParam("jobId") String jobId);
@Endpoint(org.jclouds.vcloud.endpoints.VCloudLogin.class) @RequestFilters(BasicAuthentication.class) public interface VCloudLoginApi extends Closeable { /** * This request returns a token to use in subsequent requests. After 30 minutes of inactivity, * the token expires and you have to request a new token with this call. */ @POST @ResponseParser(ParseLoginResponseFromHeaders.class) @Consumes(VCloudMediaType.ORGLIST_XML) VCloudSession login(); }
protected Optional<URI> getEndpointFor(Invocation invocation) { URI endpoint = getEndpointInParametersOrNull(invocation, injector); if (endpoint == null) { Endpoint annotation; if (invocation.getInvokable().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getAnnotation(Endpoint.class); } else if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Endpoint.class)) { annotation = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Endpoint.class); } else { logger.trace("no annotations on class or invocation.getInvoked(): %s", invocation.getInvokable()); return Optional.absent(); } endpoint = injector.getInstance(Key.get(uriSupplierLiteral, annotation.value())).get(); } URI provider = injector.getInstance(Key.get(uriSupplierLiteral, org.jclouds.location.Provider.class)).get(); return Optional.fromNullable(addHostIfMissing(endpoint, provider)); }
/** * @see CloudFilesClient#updateCDN(boolean) */ @Named("UpdateCDNEnabledContainerMetadata") @POST @Path("/{container}") @ResponseParser(ParseCdnUriFromHeaders.class) @Endpoint(CDNManagement.class) ListenableFuture<URI> updateCDN(@PathParam("container") String container, @HeaderParam(CloudFilesHeaders.CDN_LOG_RETENTION) boolean logRetention);