Skip to content

Commit 23ffb05

Browse files
authored
Generate 2020.11 (#10)
* Generate 2020.11 * Update README.md
1 parent a1336be commit 23ffb05

31 files changed

+390
-120
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Dyspatch provides API Clients for popular languages and web frameworks.
1919

2020
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
2121

22-
- API version: 2020.04
23-
- Package version: 5.0.1
22+
- API version: 2020.11
23+
- Package version: 6.0.0
2424
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2525
For more information, please visit [https://docs.dyspatch.io](https://docs.dyspatch.io)
2626

@@ -97,7 +97,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
9797
api_instance = dyspatch_client.DraftsApi(api_client)
9898
draft_id = 'draft_id_example' # str | A draft ID
9999
language_id = 'language_id_example' # str | A language ID (eg: en-US)
100-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
100+
accept = 'accept_example' # str | 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\"
101101

102102
try:
103103
# Remove a localization

docs/CompiledRead.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**reply_to** | **str** | Reply-To address | [optional]
99
**subject** | **str** | Base64 encoded template subject line | [optional]
1010
**html** | **str** | Base64 encoded template HTML body | [optional]
11+
**amp_html** | **str** | Base64 encoded template AMP body | [optional]
1112
**text** | **str** | Base64 encoded template text body | [optional]
1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/DraftsApi.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
5757
api_instance = dyspatch_client.DraftsApi(api_client)
5858
draft_id = 'draft_id_example' # str | A draft ID
5959
language_id = 'language_id_example' # str | A language ID (eg: en-US)
60-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
60+
accept = 'accept_example' # str | 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\"
6161

6262
try:
6363
# Remove a localization
@@ -72,7 +72,7 @@ Name | Type | Description | Notes
7272
------------- | ------------- | ------------- | -------------
7373
**draft_id** | **str**| A draft ID |
7474
**language_id** | **str**| A language ID (eg: en-US) |
75-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
75+
**accept** | **str**| 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\" |
7676

7777
### Return type
7878

@@ -137,7 +137,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
137137
api_instance = dyspatch_client.DraftsApi(api_client)
138138
draft_id = 'draft_id_example' # str | A draft ID
139139
target_language = 'target_language_example' # str | The type of templating language to compile as. Should only be used for visual templates.
140-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
140+
accept = 'accept_example' # str | 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\"
141141

142142
try:
143143
# Get Draft by ID
@@ -153,7 +153,7 @@ Name | Type | Description | Notes
153153
------------- | ------------- | ------------- | -------------
154154
**draft_id** | **str**| A draft ID |
155155
**target_language** | **str**| The type of templating language to compile as. Should only be used for visual templates. |
156-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
156+
**accept** | **str**| 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\" |
157157

158158
### Return type
159159

@@ -166,7 +166,7 @@ Name | Type | Description | Notes
166166
### HTTP request headers
167167

168168
- **Content-Type**: Not defined
169-
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
169+
- **Accept**: application/vnd.dyspatch.2020.11+json, */*
170170

171171
### HTTP response details
172172
| Status code | Description | Response headers |
@@ -187,7 +187,7 @@ Name | Type | Description | Notes
187187
188188
Get localization keys
189189

190-
Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
190+
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.
191191

192192
### Example
193193

@@ -224,7 +224,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
224224
# Create an instance of the API class
225225
api_instance = dyspatch_client.DraftsApi(api_client)
226226
draft_id = 'draft_id_example' # str | A draft ID
227-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
227+
accept = 'accept_example' # str | 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\"
228228

229229
try:
230230
# Get localization keys
@@ -239,7 +239,7 @@ accept = 'accept_example' # str | A version of the API that should be used for t
239239
Name | Type | Description | Notes
240240
------------- | ------------- | ------------- | -------------
241241
**draft_id** | **str**| A draft ID |
242-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
242+
**accept** | **str**| 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\" |
243243

244244
### Return type
245245

@@ -252,7 +252,7 @@ Name | Type | Description | Notes
252252
### HTTP request headers
253253

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

257257
### HTTP response details
258258
| Status code | Description | Response headers |
@@ -302,7 +302,7 @@ configuration = dyspatch_client.Configuration(
302302
with dyspatch_client.ApiClient(configuration) as api_client:
303303
# Create an instance of the API class
304304
api_instance = dyspatch_client.DraftsApi(api_client)
305-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
305+
accept = 'accept_example' # str | 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\"
306306
cursor = 'cursor_example' # str | A cursor value used to retrieve a specific page from a paginated result set. (optional)
307307
status = 'status_example' # str | Filter the list of drafts by a particular status (optional)
308308

@@ -318,7 +318,7 @@ status = 'status_example' # str | Filter the list of drafts by a particular stat
318318

319319
Name | Type | Description | Notes
320320
------------- | ------------- | ------------- | -------------
321-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
321+
**accept** | **str**| 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\" |
322322
**cursor** | **str**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
323323
**status** | **str**| Filter the list of drafts by a particular status | [optional]
324324

@@ -333,7 +333,7 @@ Name | Type | Description | Notes
333333
### HTTP request headers
334334

335335
- **Content-Type**: Not defined
336-
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
336+
- **Accept**: application/vnd.dyspatch.2020.11+json, */*
337337

338338
### HTTP response details
339339
| Status code | Description | Response headers |
@@ -391,7 +391,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
391391
# Create an instance of the API class
392392
api_instance = dyspatch_client.DraftsApi(api_client)
393393
draft_id = 'draft_id_example' # str | A draft ID
394-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
394+
accept = 'accept_example' # str | 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\"
395395

396396
try:
397397
# Get localizations on a draft
@@ -406,7 +406,7 @@ accept = 'accept_example' # str | A version of the API that should be used for t
406406
Name | Type | Description | Notes
407407
------------- | ------------- | ------------- | -------------
408408
**draft_id** | **str**| A draft ID |
409-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
409+
**accept** | **str**| 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\" |
410410

411411
### Return type
412412

@@ -419,7 +419,7 @@ Name | Type | Description | Notes
419419
### HTTP request headers
420420

421421
- **Content-Type**: Not defined
422-
- **Accept**: application/vnd.dyspatch.2020.04+json
422+
- **Accept**: application/vnd.dyspatch.2020.11+json
423423

424424
### HTTP response details
425425
| Status code | Description | Response headers |
@@ -471,7 +471,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
471471
api_instance = dyspatch_client.DraftsApi(api_client)
472472
draft_id = 'draft_id_example' # str | A draft ID
473473
language_id = 'language_id_example' # str | A language ID (eg: en-US)
474-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
474+
accept = 'accept_example' # str | 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\"
475475
inline_object = dyspatch_client.InlineObject() # InlineObject |
476476

477477
try:
@@ -487,7 +487,7 @@ Name | Type | Description | Notes
487487
------------- | ------------- | ------------- | -------------
488488
**draft_id** | **str**| A draft ID |
489489
**language_id** | **str**| A language ID (eg: en-US) |
490-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
490+
**accept** | **str**| 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\" |
491491
**inline_object** | [**InlineObject**](InlineObject.md)| |
492492

493493
### Return type
@@ -553,7 +553,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
553553
api_instance = dyspatch_client.DraftsApi(api_client)
554554
draft_id = 'draft_id_example' # str | A draft ID
555555
language_id = 'language_id_example' # str | A language ID (eg: en-US)
556-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
556+
accept = 'accept_example' # str | 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\"
557557
request_body = {'key': 'request_body_example'} # dict(str, str) |
558558

559559
try:
@@ -569,7 +569,7 @@ Name | Type | Description | Notes
569569
------------- | ------------- | ------------- | -------------
570570
**draft_id** | **str**| A draft ID |
571571
**language_id** | **str**| A language ID (eg: en-US) |
572-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
572+
**accept** | **str**| 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\" |
573573
**request_body** | [**dict(str, str)**](str.md)| |
574574

575575
### Return type
@@ -635,7 +635,7 @@ with dyspatch_client.ApiClient(configuration) as api_client:
635635
# Create an instance of the API class
636636
api_instance = dyspatch_client.DraftsApi(api_client)
637637
draft_id = 'draft_id_example' # str | A draft ID
638-
accept = 'accept_example' # str | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
638+
accept = 'accept_example' # str | 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\"
639639

640640
try:
641641
# Submit the draft for approval
@@ -649,7 +649,7 @@ accept = 'accept_example' # str | A version of the API that should be used for t
649649
Name | Type | Description | Notes
650650
------------- | ------------- | ------------- | -------------
651651
**draft_id** | **str**| A draft ID |
652-
**accept** | **str**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
652+
**accept** | **str**| 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\" |
653653

654654
### Return type
655655

0 commit comments

Comments
 (0)