@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); addServiceRequestRoute(template, Action.GET, String.format("Get container stats. Provide the ContainerState id in URI query " + "parameter with key \"%s\".", CONTAINER_ID_QUERY_PARAM), ContainerStats.class); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, "Get list containing docker Day 2 operation types.", String[].class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format("Get container logs. Provide the ContainerState id in URI query " + "parameter with key \"%s\".", CONTAINER_ID_QUERY_PARAM), LogServiceState.class); return d; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.PUT, "Add container host. If host is added successfully, it's reference can be " + "acquired from \"Location\" response header.", null); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.PUT, "Import certificate from an URI. When the certificate is downloaded and " + "validated successfully the response is empty with status code 204. If " + "the certificate is not validated, the response body contains the " + "certificate with status code 200.", SslTrustCertificateState.class); return d; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format("Search for tags for given image. Specify the name of the resource " + "you are searching for with URI query with key \"%s\".", SEARCH_QUERY_PROP_NAME), String.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format("Search for composite descriptions, container images and closure " + "descriptions. Specify the type you are searching with one of the boolean " + "URI queries \"%s\", \"%s\", \"%s\". Specify the name of the resource " + "you are searching for with URI query with key \"%s\"", TEMPLATES_ONLY_PARAM, IMAGES_ONLY_PARAM, CLOSURES_ONLY_PARAM, QUERY_PARAM), null); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.POST, "Post a composite description to clone it with a new copy of the " + "container descriptions inside it.", CompositeDescription.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, "Get predefined set of popular images, common for all tenants.", String.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format("Search for images. Specify the name of the resource " + "you are searching for with URI query with key \"%s\".", SEARCH_QUERY_PROP_NAME), RegistrySearchResponse.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.POST, "Post single or multiple kubernetes YAML definitions to create composite " + "description. If there are multiple YAML definitions separate them with" + " \"---\".", String[].class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format("Get container logs for all containers in a pod. Provide the " + "PodState id in URI query parameter with key \"%s\". The response body " + "is map where the key is string containing the container name " + "and the value is LogServiceState object.", POD_ID_QUERY_PARAM), Map.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, String.format( "Provide the composite description documentSelfLink in URI query parameter " + "with key \"%s\" to get it's YAML definition.", SELF_LINK_PARAM_NAME), String.class); addServiceRequestRoute(d, Action.POST, "Import YAML definition of composite description. Resource reference of the " + "imported template can be acquired from \"Location\" response header.", null); return d; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, "Do health check of services in default node group if they are available and " + "ready for replication.", null); addServiceRequestRoute(d, Action.PATCH, "Register services for health check.", NodeHealthCheckService.class); return d; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, "Do migration of documents from another xenon node.", MigrationRequest.class); addServiceRequestRoute(d, Action.PATCH, "Add services for migration from another xenon node.", NodeMigrationService.class); return d; } }
protected void handleOptionsCompletion(Operation options) { if (!options.hasBody()) { options.setBodyNoCloning(getDocumentTemplate()); } options.complete(); }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument d = super.getDocumentTemplate(); addServiceRequestRoute(d, Action.GET, "Use the service URL to get all elastic placement zones."