All URIs are relative to https://trydev2.activeeon.com:8443/catalog
Method | HTTP request | Description |
---|---|---|
create2 | POST /buckets/{bucketName}/resources/{name}/revisions | Creates a new catalog object revision |
get1 | GET /buckets/{bucketName}/resources/{name}/revisions/{commitTimeRaw} | Gets a specific revision |
getRaw | GET /buckets/{bucketName}/resources/{name}/revisions/{commitTimeRaw}/raw | Gets the raw content of a specific revision |
list2 | GET /buckets/{bucketName}/resources/{name}/revisions | Lists a catalog object revisions |
restore | PUT /buckets/{bucketName}/resources/{name}/revisions/{commitTimeRaw} | Restore a catalog object revision |
CatalogObjectMetadata create2(sessionID, bucketName, name, commitMessage, _file, projectName, tags)
Creates a new catalog object revision
import java.io.File;
// Import classes:
import org.ow2.proactive.catalog.client.ApiClient;
import org.ow2.proactive.catalog.client.ApiException;
import org.ow2.proactive.catalog.client.Configuration;
import org.ow2.proactive.catalog.client.model.*;
import org.ow2.proactive.catalog.client.api.CatalogObjectRevisionControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://trydev2.activeeon.com:8443/catalog");
CatalogObjectRevisionControllerApi apiInstance = new CatalogObjectRevisionControllerApi(defaultClient);
String sessionID = "sessionID_example"; // String | sessionID
String bucketName = "bucketName_example"; // String | The name of the existing Bucket
String name = "name_example"; // String | The name of the existing Object
String commitMessage = "commitMessage_example"; // String | The commit message of the CatalogRawObject Revision
File _file = new File("/path/to/file"); // File |
String projectName = ""; // String | Project of the object
String tags = ""; // String | Tags of the object
try {
CatalogObjectMetadata result = apiInstance.create2(sessionID, bucketName, name, commitMessage, _file, projectName, tags);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogObjectRevisionControllerApi#create2");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | String | sessionID | |
bucketName | String | The name of the existing Bucket | |
name | String | The name of the existing Object | |
commitMessage | String | The commit message of the CatalogRawObject Revision | |
_file | File | ||
projectName | String | Project of the object | [optional] [default to ] |
tags | String | Tags of the object | [optional] [default to ] |
No authorization required
- Content-Type: multipart/form-data
- Accept: /
Status code | Description | Response headers |
---|---|---|
404 | Bucket not found | - |
401 | User not authenticated | - |
403 | Permission denied | - |
422 | Invalid catalog object JSON content supplied | - |
201 | Created | - |
CatalogObjectMetadata get1(bucketName, name, commitTimeRaw, sessionID)
Gets a specific revision
// Import classes:
import org.ow2.proactive.catalog.client.ApiClient;
import org.ow2.proactive.catalog.client.ApiException;
import org.ow2.proactive.catalog.client.Configuration;
import org.ow2.proactive.catalog.client.model.*;
import org.ow2.proactive.catalog.client.api.CatalogObjectRevisionControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://trydev2.activeeon.com:8443/catalog");
CatalogObjectRevisionControllerApi apiInstance = new CatalogObjectRevisionControllerApi(defaultClient);
String bucketName = "bucketName_example"; // String | The name of the existing Bucket
String name = "name_example"; // String | The name of the existing Object
Long commitTimeRaw = 56L; // Long |
String sessionID = "sessionID_example"; // String | sessionID
try {
CatalogObjectMetadata result = apiInstance.get1(bucketName, name, commitTimeRaw, sessionID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogObjectRevisionControllerApi#get1");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
bucketName | String | The name of the existing Bucket | |
name | String | The name of the existing Object | |
commitTimeRaw | Long | ||
sessionID | String | sessionID | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
404 | Bucket, catalog object or catalog object revision not found | - |
401 | User not authenticated | - |
403 | Permission denied | - |
200 | OK | - |
String getRaw(bucketName, name, commitTimeRaw, sessionID)
Gets the raw content of a specific revision
// Import classes:
import org.ow2.proactive.catalog.client.ApiClient;
import org.ow2.proactive.catalog.client.ApiException;
import org.ow2.proactive.catalog.client.Configuration;
import org.ow2.proactive.catalog.client.model.*;
import org.ow2.proactive.catalog.client.api.CatalogObjectRevisionControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://trydev2.activeeon.com:8443/catalog");
CatalogObjectRevisionControllerApi apiInstance = new CatalogObjectRevisionControllerApi(defaultClient);
String bucketName = "bucketName_example"; // String | The name of the existing Bucket
String name = "name_example"; // String | The name of the existing Object
Long commitTimeRaw = 56L; // Long |
String sessionID = "sessionID_example"; // String | sessionID
try {
String result = apiInstance.getRaw(bucketName, name, commitTimeRaw, sessionID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogObjectRevisionControllerApi#getRaw");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
bucketName | String | The name of the existing Bucket | |
name | String | The name of the existing Object | |
commitTimeRaw | Long | ||
sessionID | String | sessionID | [optional] |
String
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
404 | Bucket, catalog object or catalog object revision not found | - |
200 | Ok | - |
401 | User not authenticated | - |
403 | Permission denied | - |
List<CatalogObjectMetadata> list2(bucketName, name, sessionID)
Lists a catalog object revisions
// Import classes:
import org.ow2.proactive.catalog.client.ApiClient;
import org.ow2.proactive.catalog.client.ApiException;
import org.ow2.proactive.catalog.client.Configuration;
import org.ow2.proactive.catalog.client.model.*;
import org.ow2.proactive.catalog.client.api.CatalogObjectRevisionControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://trydev2.activeeon.com:8443/catalog");
CatalogObjectRevisionControllerApi apiInstance = new CatalogObjectRevisionControllerApi(defaultClient);
String bucketName = "bucketName_example"; // String | The name of the existing Bucket
String name = "name_example"; // String | The name of the existing Object
String sessionID = "sessionID_example"; // String | sessionID
try {
List<CatalogObjectMetadata> result = apiInstance.list2(bucketName, name, sessionID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogObjectRevisionControllerApi#list2");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
bucketName | String | The name of the existing Bucket | |
name | String | The name of the existing Object | |
sessionID | String | sessionID | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
401 | User not authenticated | - |
403 | Permission denied | - |
404 | Bucket or catalog object not found | - |
200 | OK | - |
CatalogObjectMetadata restore(sessionID, bucketName, name, commitTimeRaw)
Restore a catalog object revision
// Import classes:
import org.ow2.proactive.catalog.client.ApiClient;
import org.ow2.proactive.catalog.client.ApiException;
import org.ow2.proactive.catalog.client.Configuration;
import org.ow2.proactive.catalog.client.model.*;
import org.ow2.proactive.catalog.client.api.CatalogObjectRevisionControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://trydev2.activeeon.com:8443/catalog");
CatalogObjectRevisionControllerApi apiInstance = new CatalogObjectRevisionControllerApi(defaultClient);
String sessionID = "sessionID_example"; // String | sessionID
String bucketName = "bucketName_example"; // String | The name of the existing Bucket
String name = "name_example"; // String | The name of the existing Object
Long commitTimeRaw = 56L; // Long |
try {
CatalogObjectMetadata result = apiInstance.restore(sessionID, bucketName, name, commitTimeRaw);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogObjectRevisionControllerApi#restore");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
sessionID | String | sessionID | |
bucketName | String | The name of the existing Bucket | |
name | String | The name of the existing Object | |
commitTimeRaw | Long |
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
404 | Bucket, object or revision not found | - |
401 | User not authenticated | - |
403 | Permission denied | - |
422 | Invalid catalog object JSON content supplied | - |
200 | OK | - |