public class MetadataApi
extends java.lang.Object
| Constructor and Description |
|---|
MetadataApi() |
MetadataApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
createMetadataField(Metadata metadata)
Create Project Metadata Field
Creates a project metadata field.
|
com.squareup.okhttp.Call |
createMetadataFieldAsync(Metadata metadata,
ApiCallback<Metadata> callback)
Create Project Metadata Field (asynchronously)
Creates a project metadata field.
|
com.squareup.okhttp.Call |
createMetadataFieldCall(Metadata metadata,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createMetadataField
|
ApiResponse<Metadata> |
createMetadataFieldWithHttpInfo(Metadata metadata)
Create Project Metadata Field
Creates a project metadata field.
|
void |
deleteMetadata(java.lang.Integer fieldId,
java.lang.Boolean force)
Delete Project Metadata Field
|
com.squareup.okhttp.Call |
deleteMetadataAsync(java.lang.Integer fieldId,
java.lang.Boolean force,
ApiCallback<java.lang.Void> callback)
Delete Project Metadata Field (asynchronously)
|
com.squareup.okhttp.Call |
deleteMetadataCall(java.lang.Integer fieldId,
java.lang.Boolean force,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteMetadata
|
ApiResponse<java.lang.Void> |
deleteMetadataWithHttpInfo(java.lang.Integer fieldId,
java.lang.Boolean force)
Delete Project Metadata Field
|
java.util.List<Metadata> |
getAllMetadata()
Get Project Metadata Fields (list)
Returns a list of metadata fields
|
com.squareup.okhttp.Call |
getAllMetadataAsync(ApiCallback<java.util.List<Metadata>> callback)
Get Project Metadata Fields (list) (asynchronously)
Returns a list of metadata fields
|
com.squareup.okhttp.Call |
getAllMetadataCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllMetadata
|
ApiResponse<java.util.List<Metadata>> |
getAllMetadataWithHttpInfo()
Get Project Metadata Fields (list)
Returns a list of metadata fields
|
ApiClient |
getApiClient() |
Metadata |
getMetadata(java.lang.Integer fieldId)
Get Project Metadata Fields (single)
Returns a single Project Metadata Field
|
com.squareup.okhttp.Call |
getMetadataAsync(java.lang.Integer fieldId,
ApiCallback<Metadata> callback)
Get Project Metadata Fields (single) (asynchronously)
Returns a single Project Metadata Field
|
com.squareup.okhttp.Call |
getMetadataCall(java.lang.Integer fieldId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getMetadata
|
java.util.List<MetadataValue> |
getMetadataValue(java.lang.Integer projectId)
Get Project Metadata Field Values
Load the Metadata Field values for a given project
|
com.squareup.okhttp.Call |
getMetadataValueAsync(java.lang.Integer projectId,
ApiCallback<java.util.List<MetadataValue>> callback)
Get Project Metadata Field Values (asynchronously)
Load the Metadata Field values for a given project
|
com.squareup.okhttp.Call |
getMetadataValueCall(java.lang.Integer projectId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getMetadataValue
|
ApiResponse<java.util.List<MetadataValue>> |
getMetadataValueWithHttpInfo(java.lang.Integer projectId)
Get Project Metadata Field Values
Load the Metadata Field values for a given project
|
ApiResponse<Metadata> |
getMetadataWithHttpInfo(java.lang.Integer fieldId)
Get Project Metadata Fields (single)
Returns a single Project Metadata Field
|
Metadata |
modifyMetadata(java.lang.Integer fieldId,
Metadata metadata)
Modify Project Metadata Field
Update the name, type, and/or values to match the value specified in the request body.
|
com.squareup.okhttp.Call |
modifyMetadataAsync(java.lang.Integer fieldId,
Metadata metadata,
ApiCallback<Metadata> callback)
Modify Project Metadata Field (asynchronously)
Update the name, type, and/or values to match the value specified in the request body.
|
com.squareup.okhttp.Call |
modifyMetadataCall(java.lang.Integer fieldId,
Metadata metadata,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for modifyMetadata
|
ApiResponse<Metadata> |
modifyMetadataWithHttpInfo(java.lang.Integer fieldId,
Metadata metadata)
Modify Project Metadata Field
Update the name, type, and/or values to match the value specified in the request body.
|
void |
setApiClient(ApiClient apiClient) |
java.util.List<MetadataValue> |
updateMetadataValue(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata)
Update Project Metadata Field Values
Update the project metadata values for a given project.
|
com.squareup.okhttp.Call |
updateMetadataValueAsync(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata,
ApiCallback<java.util.List<MetadataValue>> callback)
Update Project Metadata Field Values (asynchronously)
Update the project metadata values for a given project.
|
com.squareup.okhttp.Call |
updateMetadataValueCall(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateMetadataValue
|
ApiResponse<java.util.List<MetadataValue>> |
updateMetadataValueWithHttpInfo(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata)
Update Project Metadata Field Values
Update the project metadata values for a given project.
|
public MetadataApi()
public MetadataApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createMetadataFieldCall(Metadata metadata, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
metadata - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Metadata createMetadataField(Metadata metadata) throws ApiException
metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Metadata> createMetadataFieldWithHttpInfo(Metadata metadata) throws ApiException
metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createMetadataFieldAsync(Metadata metadata, ApiCallback<Metadata> callback) throws ApiException
metadata - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deleteMetadataCall(java.lang.Integer fieldId,
java.lang.Boolean force,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
fieldId - The ID of the metadata field. (required)force - If set to `true`, this method will delete the field even if one or more projects had a value configured for that field. Defaults to `false`. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteMetadata(java.lang.Integer fieldId,
java.lang.Boolean force)
throws ApiException
fieldId - The ID of the metadata field. (required)force - If set to `true`, this method will delete the field even if one or more projects had a value configured for that field. Defaults to `false`. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteMetadataWithHttpInfo(java.lang.Integer fieldId, java.lang.Boolean force) throws ApiException
fieldId - The ID of the metadata field. (required)force - If set to `true`, this method will delete the field even if one or more projects had a value configured for that field. Defaults to `false`. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteMetadataAsync(java.lang.Integer fieldId,
java.lang.Boolean force,
ApiCallback<java.lang.Void> callback)
throws ApiException
fieldId - The ID of the metadata field. (required)force - If set to `true`, this method will delete the field even if one or more projects had a value configured for that field. Defaults to `false`. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getAllMetadataCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic java.util.List<Metadata> getAllMetadata() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.util.List<Metadata>> getAllMetadataWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAllMetadataAsync(ApiCallback<java.util.List<Metadata>> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getMetadataCall(java.lang.Integer fieldId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
fieldId - The ID of the metadata field. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Metadata getMetadata(java.lang.Integer fieldId) throws ApiException
fieldId - The ID of the metadata field. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Metadata> getMetadataWithHttpInfo(java.lang.Integer fieldId) throws ApiException
fieldId - The ID of the metadata field. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMetadataAsync(java.lang.Integer fieldId,
ApiCallback<Metadata> callback)
throws ApiException
fieldId - The ID of the metadata field. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getMetadataValueCall(java.lang.Integer projectId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectId - The ID of the project. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic java.util.List<MetadataValue> getMetadataValue(java.lang.Integer projectId) throws ApiException
projectId - The ID of the project. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.util.List<MetadataValue>> getMetadataValueWithHttpInfo(java.lang.Integer projectId) throws ApiException
projectId - The ID of the project. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMetadataValueAsync(java.lang.Integer projectId,
ApiCallback<java.util.List<MetadataValue>> callback)
throws ApiException
projectId - The ID of the project. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call modifyMetadataCall(java.lang.Integer fieldId,
Metadata metadata,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
fieldId - The ID of the metadata field. (required)metadata - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Metadata modifyMetadata(java.lang.Integer fieldId, Metadata metadata) throws ApiException
fieldId - The ID of the metadata field. (required)metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Metadata> modifyMetadataWithHttpInfo(java.lang.Integer fieldId, Metadata metadata) throws ApiException
fieldId - The ID of the metadata field. (required)metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call modifyMetadataAsync(java.lang.Integer fieldId,
Metadata metadata,
ApiCallback<Metadata> callback)
throws ApiException
fieldId - The ID of the metadata field. (required)metadata - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updateMetadataValueCall(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
projectId - The ID of the project. (required)metadata - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic java.util.List<MetadataValue> updateMetadataValue(java.lang.Integer projectId, java.util.List<MetadataUpdate> metadata) throws ApiException
projectId - The ID of the project. (required)metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.util.List<MetadataValue>> updateMetadataValueWithHttpInfo(java.lang.Integer projectId, java.util.List<MetadataUpdate> metadata) throws ApiException
projectId - The ID of the project. (required)metadata - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateMetadataValueAsync(java.lang.Integer projectId,
java.util.List<MetadataUpdate> metadata,
ApiCallback<java.util.List<MetadataValue>> callback)
throws ApiException
projectId - The ID of the project. (required)metadata - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object