Interface TemplatesV2Service


public interface TemplatesV2Service
Templates V2 Service
  • Method Details

    • list

      List all templates belonging to a project ID.
      Returns:
      TemplatesV2ListResponse
      Throws:
      ApiException - if fails to make API call
    • create

      TemplateV2 create(TemplateV2 templateV2) throws ApiException
      Creates a template
      Parameters:
      templateV2 - Required. The template to create. (required)
      Returns:
      TemplateV2
      Throws:
      ApiException - if fails to make API call
    • delete

      void delete(String templateId) throws ApiException
      Delete a template.
      Parameters:
      templateId - Required. The ID of the template to delete. (required)
      Throws:
      ApiException - if fails to make API call
    • get

      TemplateV2 get(String templateId) throws ApiException
      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

      TranslationsV2ListResponse listTranslations(String templateId) throws ApiException
      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

      TemplateV2 update(String templateId, TemplateV2 templateV2) throws ApiException
      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