public class CustomObjectsClientImpl extends RestClient implements CustomObjectsClient
Modifier and Type | Field and Description |
---|---|
protected static javax.ws.rs.core.GenericType<MarketoResponse<CustomObject>> |
CREATE_OR_UPDATE_CUSTOM_OBJECT_GENERIC_TYPE |
DATE_FORMAT_TIMEZONE, DATE_FORMAT_Z, DATE_FORMAT_Z_MILLIS, DATE_FORMAT_Z_TIMEZONE, DATE_ONLY_FORMAT, JOINER, RESPONSE_MAP_GENERIC_TYPE, SERVICE_RESPONSE_GENERIC_TYPE, SINGLE_ENTRY_MAP_TO_STRING, VOID_GENERIC_TYPE
Constructor and Description |
---|
CustomObjectsClientImpl(RestClientConfigProvider configProvider) |
Modifier and Type | Method and Description |
---|---|
MarketoResponse<CustomObject> |
createOrUpdate(String customObjectName,
List<Map<String,Object>> input,
CustomObjectsActions actions,
DedupeBy dedupeBy)
Allows the caller to create, update, or upsert data for specified custom objects.
|
MarketoResponse<CustomObject> |
deleteCustomObject(String customObjectName,
List<Map<String,Object>> input,
String deleteBy)
Allows the caller to delete custom objects by dedupe fields or id field
|
MarketoResponse<Map<String,Object>> |
describe(String name)
Allows the caller to retrieve the datasense for a specified custom object.
|
MarketoResponse<Map<String,Object>> |
getCustomObjects(String customObjectName,
String filterType,
List<Map<String,Object>> input,
List<String> fields,
String nextPageToken,
Integer batchSize)
Allows the caller to retrieve custom objects using specified input parameters
|
MarketoResponse<Map<String,Object>> |
getListOfCustomObjects(List<String> customObjectNames)
Allows the called to retrieve a list of custom object definitions based on a specified search criteria
|
buildGetInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, bulkWebTarget, process, putIfNotNull, queryParamIfNotNull, webTarget
protected static final javax.ws.rs.core.GenericType<MarketoResponse<CustomObject>> CREATE_OR_UPDATE_CUSTOM_OBJECT_GENERIC_TYPE
public CustomObjectsClientImpl(RestClientConfigProvider configProvider)
public MarketoResponse<Map<String,Object>> getListOfCustomObjects(@Nullable List<String> customObjectNames)
getListOfCustomObjects
in interface CustomObjectsClient
customObjectNames
- list of custom object names. If not specified, then all custom objects are returnedpublic MarketoResponse<Map<String,Object>> describe(@NotNull String name)
describe
in interface CustomObjectsClient
name
- the name of the custom objectpublic MarketoResponse<CustomObject> createOrUpdate(@NotNull String customObjectName, @NotNull List<Map<String,Object>> input, CustomObjectsActions actions, DedupeBy dedupeBy)
createOrUpdate
in interface CustomObjectsClient
customObjectName
- the name of the custom objectinput
- the custom object definitionsactions
- the storage operation. Default: createOrUpdatededupeBy
- the deduplication method. Only valid if actions is UpdateOnly. Default: dedupeFieldsList
of CustomObject
public MarketoResponse<CustomObject> deleteCustomObject(@NotNull String customObjectName, @NotNull List<Map<String,Object>> input, @Nullable String deleteBy)
deleteCustomObject
in interface CustomObjectsClient
customObjectName
- the name of the custom objectinput
- deletion criteriadeleteBy
- the deletion method. Default: dedupeFieldsList
of CustomObject
public MarketoResponse<Map<String,Object>> getCustomObjects(@NotNull String customObjectName, @Nullable String filterType, @NotNull List<Map<String,Object>> input, @NotNull List<String> fields, String nextPageToken, Integer batchSize)
getCustomObjects
in interface CustomObjectsClient
customObjectName
- the name of the custom objectfilterType
- values: dedupeFields, idField or any of the searcheableFields set that has a single field in itinput
- search valuesfields
- list of fields to return.batchSize
- the number of custom object records to be returned in a single callCopyright © 2010–2018. All rights reserved.