Skip to content

Commit 0a7dfa3

Browse files
committed
Update tests
1 parent c64fccb commit 0a7dfa3

10 files changed

Lines changed: 751 additions & 231 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ docs/Model/SayStandard.md
151151
docs/Model/SayStandardContentType.md
152152
docs/Model/SayStandardCulture.md
153153
docs/Model/SayStandardEngine.md
154+
docs/Model/SayStandardEngineParameters.md
154155
docs/Model/SayStandardVoice.md
155156
docs/Model/SendDigits.md
156157
docs/Model/SetDTMFPassThrough.md
@@ -326,6 +327,7 @@ lib/Model/SayStandard.php
326327
lib/Model/SayStandardContentType.php
327328
lib/Model/SayStandardCulture.php
328329
lib/Model/SayStandardEngine.php
330+
lib/Model/SayStandardEngineParameters.php
329331
lib/Model/SayStandardVoice.php
330332
lib/Model/SendDigits.php
331333
lib/Model/SetDTMFPassThrough.php
@@ -495,6 +497,7 @@ test/Model/SayNeuralTest.php
495497
test/Model/SayNeuralTextTypeTest.php
496498
test/Model/SayStandardContentTypeTest.php
497499
test/Model/SayStandardCultureTest.php
500+
test/Model/SayStandardEngineParametersTest.php
498501
test/Model/SayStandardEngineTest.php
499502
test/Model/SayStandardTest.php
500503
test/Model/SayStandardVoiceTest.php

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ Class | Method | HTTP request | Description
339339
- [SayStandardContentType](docs/Model/SayStandardContentType.md)
340340
- [SayStandardCulture](docs/Model/SayStandardCulture.md)
341341
- [SayStandardEngine](docs/Model/SayStandardEngine.md)
342+
- [SayStandardEngineParameters](docs/Model/SayStandardEngineParameters.md)
342343
- [SayStandardVoice](docs/Model/SayStandardVoice.md)
343344
- [SendDigits](docs/Model/SendDigits.md)
344345
- [SetDTMFPassThrough](docs/Model/SetDTMFPassThrough.md)

docs/Model/SayStandardEngine.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **string** | The name of the TTS engine to use. Set to `freeclimb.standard` for to use the standard freeclimb TTS engine. | [optional] [default to 'freeclimb.standard']
8-
**voice** | [**\FreeClimb\Api\Model\SayStandardVoice**](SayStandardVoice.md) | | [optional]
9-
**culture** | [**\FreeClimb\Api\Model\SayStandardCulture**](SayStandardCulture.md) | | [optional]
10-
**content_type** | [**\FreeClimb\Api\Model\SayStandardContentType**](SayStandardContentType.md) | | [optional]
8+
**parameters** | [**\FreeClimb\Api\Model\SayStandardEngineParameters**](SayStandardEngineParameters.md) | | [optional]
119

1210
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # SayStandardEngineParameters
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**voice** | [**\FreeClimb\Api\Model\SayStandardVoice**](SayStandardVoice.md) | | [optional]
8+
**culture** | [**\FreeClimb\Api\Model\SayStandardCulture**](SayStandardCulture.md) | | [optional]
9+
**content_type** | [**\FreeClimb\Api\Model\SayStandardContentType**](SayStandardContentType.md) | | [optional]
10+
11+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Model/SayNeuralEngineParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class SayNeuralEngineParameters implements ModelInterface, ArrayAccess, \JsonSer
5252
*
5353
* @var string
5454
*/
55-
protected static $openAPIModelName = 'SayNeural_engine_parameters';
55+
protected static $openAPIModelName = 'SayNeuralEngineParameters';
5656

5757
/**
5858
* Array of property to type mappings. Used for (de)serialization

lib/Model/SayStandardEngine.php

Lines changed: 17 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ class SayStandardEngine implements ModelInterface, ArrayAccess, \JsonSerializabl
6161
*/
6262
protected static $openAPITypes = [
6363
'name' => 'string',
64-
'voice' => '\FreeClimb\Api\Model\SayStandardVoice',
65-
'culture' => '\FreeClimb\Api\Model\SayStandardCulture',
66-
'content_type' => '\FreeClimb\Api\Model\SayStandardContentType'
64+
'parameters' => '\FreeClimb\Api\Model\SayStandardEngineParameters'
6765
];
6866

6967
/**
@@ -75,9 +73,7 @@ class SayStandardEngine implements ModelInterface, ArrayAccess, \JsonSerializabl
7573
*/
7674
protected static $openAPIFormats = [
7775
'name' => null,
78-
'voice' => null,
79-
'culture' => null,
80-
'content_type' => null
76+
'parameters' => null
8177
];
8278

8379
/**
@@ -87,9 +83,7 @@ class SayStandardEngine implements ModelInterface, ArrayAccess, \JsonSerializabl
8783
*/
8884
protected static array $openAPINullables = [
8985
'name' => false,
90-
'voice' => false,
91-
'culture' => false,
92-
'content_type' => false
86+
'parameters' => false
9387
];
9488

9589
/**
@@ -179,9 +173,7 @@ public function isNullableSetToNull(string $property): bool
179173
*/
180174
protected static $attributeMap = [
181175
'name' => 'name',
182-
'voice' => 'Voice',
183-
'culture' => 'Culture',
184-
'content_type' => 'Content-Type'
176+
'parameters' => 'parameters'
185177
];
186178

187179
/**
@@ -191,9 +183,7 @@ public function isNullableSetToNull(string $property): bool
191183
*/
192184
protected static $setters = [
193185
'name' => 'setName',
194-
'voice' => 'setVoice',
195-
'culture' => 'setCulture',
196-
'content_type' => 'setContentType'
186+
'parameters' => 'setParameters'
197187
];
198188

199189
/**
@@ -203,9 +193,7 @@ public function isNullableSetToNull(string $property): bool
203193
*/
204194
protected static $getters = [
205195
'name' => 'getName',
206-
'voice' => 'getVoice',
207-
'culture' => 'getCulture',
208-
'content_type' => 'getContentType'
196+
'parameters' => 'getParameters'
209197
];
210198

211199
/**
@@ -266,9 +254,7 @@ public function getModelName()
266254
public function __construct(?array $data = null)
267255
{
268256
$this->setIfExists('name', $data ?? [], 'freeclimb.standard');
269-
$this->setIfExists('voice', $data ?? [], null);
270-
$this->setIfExists('culture', $data ?? [], null);
271-
$this->setIfExists('content_type', $data ?? [], null);
257+
$this->setIfExists('parameters', $data ?? [], null);
272258
}
273259

274260
/**
@@ -341,82 +327,28 @@ public function setName($name)
341327
}
342328

343329
/**
344-
* Gets voice
330+
* Gets parameters
345331
*
346-
* @return \FreeClimb\Api\Model\SayStandardVoice|null
332+
* @return \FreeClimb\Api\Model\SayStandardEngineParameters|null
347333
*/
348-
public function getVoice()
334+
public function getParameters()
349335
{
350-
return $this->container['voice'];
336+
return $this->container['parameters'];
351337
}
352338

353339
/**
354-
* Sets voice
340+
* Sets parameters
355341
*
356-
* @param \FreeClimb\Api\Model\SayStandardVoice|null $voice voice
342+
* @param \FreeClimb\Api\Model\SayStandardEngineParameters|null $parameters parameters
357343
*
358344
* @return self
359345
*/
360-
public function setVoice($voice)
346+
public function setParameters($parameters)
361347
{
362-
if (is_null($voice)) {
363-
throw new \InvalidArgumentException('non-nullable voice cannot be null');
348+
if (is_null($parameters)) {
349+
throw new \InvalidArgumentException('non-nullable parameters cannot be null');
364350
}
365-
$this->container['voice'] = $voice;
366-
367-
return $this;
368-
}
369-
370-
/**
371-
* Gets culture
372-
*
373-
* @return \FreeClimb\Api\Model\SayStandardCulture|null
374-
*/
375-
public function getCulture()
376-
{
377-
return $this->container['culture'];
378-
}
379-
380-
/**
381-
* Sets culture
382-
*
383-
* @param \FreeClimb\Api\Model\SayStandardCulture|null $culture culture
384-
*
385-
* @return self
386-
*/
387-
public function setCulture($culture)
388-
{
389-
if (is_null($culture)) {
390-
throw new \InvalidArgumentException('non-nullable culture cannot be null');
391-
}
392-
$this->container['culture'] = $culture;
393-
394-
return $this;
395-
}
396-
397-
/**
398-
* Gets content_type
399-
*
400-
* @return \FreeClimb\Api\Model\SayStandardContentType|null
401-
*/
402-
public function getContentType()
403-
{
404-
return $this->container['content_type'];
405-
}
406-
407-
/**
408-
* Sets content_type
409-
*
410-
* @param \FreeClimb\Api\Model\SayStandardContentType|null $content_type content_type
411-
*
412-
* @return self
413-
*/
414-
public function setContentType($content_type)
415-
{
416-
if (is_null($content_type)) {
417-
throw new \InvalidArgumentException('non-nullable content_type cannot be null');
418-
}
419-
$this->container['content_type'] = $content_type;
351+
$this->container['parameters'] = $parameters;
420352

421353
return $this;
422354
}

0 commit comments

Comments
 (0)