Interface TemplatesV2Service
public interface TemplatesV2Service
Templates V2 Service
-
Method Summary
Modifier and TypeMethodDescriptioncreate(TemplateV2 templateV2) Creates a templatevoidDelete a template.Get a templatelist()List all templates belonging to a project ID.listTranslations(String templateId) List translations for a template (using default parameters)listTranslations(String templateId, ListTranslationsQueryParameters queryParameter) List translations for a templateupdate(String templateId, TemplateV2 templateV2) Updates a template.
-
Method Details
-
list
List all templates belonging to a project ID.- Returns:
- TemplatesV2ListResponse
- Throws:
ApiException- if fails to make API call
-
create
Creates a template- Parameters:
templateV2- Required. The template to create. (required)- Returns:
- TemplateV2
- Throws:
ApiException- if fails to make API call
-
delete
Delete a template.- Parameters:
templateId- Required. The ID of the template to delete. (required)- Throws:
ApiException- if fails to make API call
-
get
Get a template- Parameters:
templateId- Required. The ID of the template to fetch. (required)- Returns:
- TemplateV2
- Throws:
ApiException- if fails to make API call
-
listTranslations
List translations for a template (using default parameters)- Parameters:
templateId- Required. The ID of the template to fetch. (required)- Returns:
- TranslationsV2ListResponse
- Throws:
ApiException- if fails to make API call
-
listTranslations
TranslationsV2ListResponse listTranslations(String templateId, ListTranslationsQueryParameters queryParameter) throws ApiException List translations for a template- Parameters:
templateId- Required. The ID of the template to fetch. (required)queryParameter- (optional)- Returns:
- TranslationsV2ListResponse
- Throws:
ApiException- if fails to make API call
-
update
Updates a template.- Parameters:
templateId- The id of the template to be updated. Specified or automatically generated during template creation. Unique per project. (required)templateV2- Required. The updated template. (required)- Returns:
- TemplateV2
- Throws:
ApiException- if fails to make API call
-