Skip to content

Commit

Permalink
Generate 2020.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-swu committed Nov 13, 2020
1 parent 1b8dbaa commit e513839
Show file tree
Hide file tree
Showing 39 changed files with 636 additions and 198 deletions.
249 changes: 205 additions & 44 deletions api/openapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/CompiledRead.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**replyTo** | **String** | Reply-To address | [optional]
**subject** | **byte[]** | Base64 encoded template subject line | [optional]
**html** | **byte[]** | Base64 encoded template HTML body | [optional]
**ampHtml** | **byte[]** | Base64 encoded amp version of template body | [optional]
**ampHtml** | **byte[]** | Base64 encoded template AMP body | [optional]
**text** | **byte[]** | Base64 encoded template text body | [optional]


Expand Down
42 changes: 21 additions & 21 deletions docs/DraftsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Example {
DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String languageId = "languageId_example"; // String | A language ID (eg: en-US)
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
try {
apiInstance.deleteLocalization(draftId, languageId, accept);
} catch (ApiException e) {
Expand All @@ -66,7 +66,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**languageId** | **String**| A language ID (eg: en-US) |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\" |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\" |

### Return type

Expand Down Expand Up @@ -118,7 +118,7 @@ public class Example {
DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String targetLanguage = "targetLanguage_example"; // String | The type of templating language to compile as. Should only be used for visual templates.
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
try {
DraftRead result = apiInstance.getDraftById(draftId, targetLanguage, accept);
System.out.println(result);
Expand All @@ -139,7 +139,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**targetLanguage** | **String**| The type of templating language to compile as. Should only be used for visual templates. | [enum: html, handlebars, ampscript, freemarker, cheetah, jinja, liquid]
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\" |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\" |

### Return type

Expand All @@ -152,7 +152,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.dyspatch.2020.08+json, */*
- **Accept**: application/vnd.dyspatch.2020.11+json, */*

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -172,7 +172,7 @@ Name | Type | Description | Notes
Get localization keys

Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.08+json` to get a JSON object, or `text/vnd.dyspatch.2020.08+x-gettext-translation` to get the POT file.
Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.11+json` to get a JSON object, or `text/vnd.dyspatch.2020.11+x-gettext-translation` to get the POT file.

### Example
```java
Expand All @@ -197,7 +197,7 @@ public class Example {

DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
try {
List<LocalizationKeyRead> result = apiInstance.getDraftLocalizationKeys(draftId, accept);
System.out.println(result);
Expand All @@ -217,7 +217,7 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |

### Return type

Expand All @@ -230,7 +230,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.dyspatch.2020.08+json, text/vnd.dyspatch.2020.08+x-gettext-translation
- **Accept**: application/vnd.dyspatch.2020.11+json, text/vnd.dyspatch.2020.11+x-gettext-translation

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -267,7 +267,7 @@ public class Example {
//Bearer.setApiKeyPrefix("Token");

DraftsApi apiInstance = new DraftsApi(defaultClient);
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
String cursor = "cursor_example"; // String | A cursor value used to retrieve a specific page from a paginated result set.
String status = "status_example"; // String | Filter the list of drafts by a particular status
try {
Expand All @@ -288,7 +288,7 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |
**cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
**status** | **String**| Filter the list of drafts by a particular status | [optional] [enum: awaitingTranslation]

Expand All @@ -303,7 +303,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.dyspatch.2020.08+json, */*
- **Accept**: application/vnd.dyspatch.2020.11+json, */*

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -348,7 +348,7 @@ public class Example {

DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
try {
List<LocalizationMetaRead> result = apiInstance.getLocalizationForDraft(draftId, accept);
System.out.println(result);
Expand All @@ -368,7 +368,7 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |

### Return type

Expand All @@ -381,7 +381,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.dyspatch.2020.08+json
- **Accept**: application/vnd.dyspatch.2020.11+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -420,7 +420,7 @@ public class Example {
DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String languageId = "languageId_example"; // String | A language ID (eg: en-US)
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
InlineObject inlineObject = new InlineObject(); // InlineObject |
try {
apiInstance.saveLocalization(draftId, languageId, accept, inlineObject);
Expand All @@ -441,7 +441,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**languageId** | **String**| A language ID (eg: en-US) |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |
**inlineObject** | [**InlineObject**](InlineObject.md)| |

### Return type
Expand Down Expand Up @@ -494,7 +494,7 @@ public class Example {
DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String languageId = "languageId_example"; // String | A language ID (eg: en-US)
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
Map<String, String> requestBody = new HashMap(); // Map<String, String> |
try {
apiInstance.setTranslation(draftId, languageId, accept, requestBody);
Expand All @@ -515,7 +515,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**languageId** | **String**| A language ID (eg: en-US) |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| |

### Return type
Expand Down Expand Up @@ -568,7 +568,7 @@ public class Example {

DraftsApi apiInstance = new DraftsApi(defaultClient);
String draftId = "draftId_example"; // String | A draft ID
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.08\", set the value to \"application/vnd.dyspatch.2020.08+json\"
String accept = "accept_example"; // String | A version of the API that should be used for the request. For example, to use version \"2020.11\", set the value to \"application/vnd.dyspatch.2020.11+json\"
try {
apiInstance.submitDraftForApproval(draftId, accept);
} catch (ApiException e) {
Expand All @@ -587,7 +587,7 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**draftId** | **String**| A draft ID |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.08\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.08+json\&quot; |
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.11\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.11+json\&quot; |

### Return type

Expand Down
Loading

0 comments on commit e513839

Please sign in to comment.