Skip to content

Commit 64ac2b5

Browse files
committed
Auto-generate wrapper from updated spec
1 parent 622110b commit 64ac2b5

2 files changed

Lines changed: 117 additions & 6 deletions

File tree

‎docs/Model/PostV2ResourcesCreatorApiAssetsUpdateRequest.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**api_asset_id** | **string** | |
88
**file** | [**\OpenAPI\Client\Model\PostV2ResourcesCreatorApiAssetsUpdateRequestFile**](PostV2ResourcesCreatorApiAssetsUpdateRequestFile.md) | |
9+
**version_string** | **string** | |
10+
**description** | **string** | | [optional]
11+
**oldest_resource_version_id** | **int** | |
912

1013
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

‎lib/Model/PostV2ResourcesCreatorApiAssetsUpdateRequest.php‎

Lines changed: 114 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ class PostV2ResourcesCreatorApiAssetsUpdateRequest implements ModelInterface, Ar
5858
*/
5959
protected static $openAPITypes = [
6060
'api_asset_id' => 'string',
61-
'file' => '\OpenAPI\Client\Model\PostV2ResourcesCreatorApiAssetsUpdateRequestFile'
61+
'file' => '\OpenAPI\Client\Model\PostV2ResourcesCreatorApiAssetsUpdateRequestFile',
62+
'version_string' => 'string',
63+
'description' => 'string',
64+
'oldest_resource_version_id' => 'int'
6265
];
6366

6467
/**
@@ -70,7 +73,10 @@ class PostV2ResourcesCreatorApiAssetsUpdateRequest implements ModelInterface, Ar
7073
*/
7174
protected static $openAPIFormats = [
7275
'api_asset_id' => null,
73-
'file' => null
76+
'file' => null,
77+
'version_string' => null,
78+
'description' => null,
79+
'oldest_resource_version_id' => null
7480
];
7581

7682
/**
@@ -80,7 +86,10 @@ class PostV2ResourcesCreatorApiAssetsUpdateRequest implements ModelInterface, Ar
8086
*/
8187
protected static array $openAPINullables = [
8288
'api_asset_id' => false,
83-
'file' => false
89+
'file' => false,
90+
'version_string' => false,
91+
'description' => false,
92+
'oldest_resource_version_id' => false
8493
];
8594

8695
/**
@@ -170,7 +179,10 @@ public function isNullableSetToNull(string $property): bool
170179
*/
171180
protected static $attributeMap = [
172181
'api_asset_id' => 'api_asset_id',
173-
'file' => 'file'
182+
'file' => 'file',
183+
'version_string' => 'version_string',
184+
'description' => 'description',
185+
'oldest_resource_version_id' => 'oldest_resource_version_id'
174186
];
175187

176188
/**
@@ -180,7 +192,10 @@ public function isNullableSetToNull(string $property): bool
180192
*/
181193
protected static $setters = [
182194
'api_asset_id' => 'setApiAssetId',
183-
'file' => 'setFile'
195+
'file' => 'setFile',
196+
'version_string' => 'setVersionString',
197+
'description' => 'setDescription',
198+
'oldest_resource_version_id' => 'setOldestResourceVersionId'
184199
];
185200

186201
/**
@@ -190,7 +205,10 @@ public function isNullableSetToNull(string $property): bool
190205
*/
191206
protected static $getters = [
192207
'api_asset_id' => 'getApiAssetId',
193-
'file' => 'getFile'
208+
'file' => 'getFile',
209+
'version_string' => 'getVersionString',
210+
'description' => 'getDescription',
211+
'oldest_resource_version_id' => 'getOldestResourceVersionId'
194212
];
195213

196214
/**
@@ -252,6 +270,9 @@ public function __construct(array $data = null)
252270
{
253271
$this->setIfExists('api_asset_id', $data ?? [], null);
254272
$this->setIfExists('file', $data ?? [], null);
273+
$this->setIfExists('version_string', $data ?? [], null);
274+
$this->setIfExists('description', $data ?? [], null);
275+
$this->setIfExists('oldest_resource_version_id', $data ?? [], null);
255276
}
256277

257278
/**
@@ -287,6 +308,12 @@ public function listInvalidProperties()
287308
if ($this->container['file'] === null) {
288309
$invalidProperties[] = "'file' can't be null";
289310
}
311+
if ($this->container['version_string'] === null) {
312+
$invalidProperties[] = "'version_string' can't be null";
313+
}
314+
if ($this->container['oldest_resource_version_id'] === null) {
315+
$invalidProperties[] = "'oldest_resource_version_id' can't be null";
316+
}
290317
return $invalidProperties;
291318
}
292319

@@ -355,6 +382,87 @@ public function setFile($file)
355382

356383
return $this;
357384
}
385+
386+
/**
387+
* Gets version_string
388+
*
389+
* @return string
390+
*/
391+
public function getVersionString()
392+
{
393+
return $this->container['version_string'];
394+
}
395+
396+
/**
397+
* Sets version_string
398+
*
399+
* @param string $version_string version_string
400+
*
401+
* @return self
402+
*/
403+
public function setVersionString($version_string)
404+
{
405+
if (is_null($version_string)) {
406+
throw new \InvalidArgumentException('non-nullable version_string cannot be null');
407+
}
408+
$this->container['version_string'] = $version_string;
409+
410+
return $this;
411+
}
412+
413+
/**
414+
* Gets description
415+
*
416+
* @return string|null
417+
*/
418+
public function getDescription()
419+
{
420+
return $this->container['description'];
421+
}
422+
423+
/**
424+
* Sets description
425+
*
426+
* @param string|null $description description
427+
*
428+
* @return self
429+
*/
430+
public function setDescription($description)
431+
{
432+
if (is_null($description)) {
433+
throw new \InvalidArgumentException('non-nullable description cannot be null');
434+
}
435+
$this->container['description'] = $description;
436+
437+
return $this;
438+
}
439+
440+
/**
441+
* Gets oldest_resource_version_id
442+
*
443+
* @return int
444+
*/
445+
public function getOldestResourceVersionId()
446+
{
447+
return $this->container['oldest_resource_version_id'];
448+
}
449+
450+
/**
451+
* Sets oldest_resource_version_id
452+
*
453+
* @param int $oldest_resource_version_id oldest_resource_version_id
454+
*
455+
* @return self
456+
*/
457+
public function setOldestResourceVersionId($oldest_resource_version_id)
458+
{
459+
if (is_null($oldest_resource_version_id)) {
460+
throw new \InvalidArgumentException('non-nullable oldest_resource_version_id cannot be null');
461+
}
462+
$this->container['oldest_resource_version_id'] = $oldest_resource_version_id;
463+
464+
return $this;
465+
}
358466
/**
359467
* Returns true if offset exists. False otherwise.
360468
*

0 commit comments

Comments
 (0)