Skip to content

Commit 622110b

Browse files
committed
Auto-generate wrapper from updated spec
1 parent 200ee35 commit 622110b

2 files changed

Lines changed: 41 additions & 6 deletions

File tree

docs/Model/DownloadPlanAction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
77
**type** | **string** | |
88
**src** | **string** | The source file/directory. | [optional]
99
**dst** | **string** | A destination file/directory relative to the server root. | [optional]
10+
**actions** | [**\OpenAPI\Client\Model\DownloadPlanAction[]**](DownloadPlanAction.md) | A set of subactions to execute in the context of this action. | [optional]
1011

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

lib/Model/DownloadPlanAction.php

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class DownloadPlanAction implements ModelInterface, ArrayAccess, \JsonSerializab
5959
protected static $openAPITypes = [
6060
'type' => 'string',
6161
'src' => 'string',
62-
'dst' => 'string'
62+
'dst' => 'string',
63+
'actions' => '\OpenAPI\Client\Model\DownloadPlanAction[]'
6364
];
6465

6566
/**
@@ -72,7 +73,8 @@ class DownloadPlanAction implements ModelInterface, ArrayAccess, \JsonSerializab
7273
protected static $openAPIFormats = [
7374
'type' => null,
7475
'src' => null,
75-
'dst' => null
76+
'dst' => null,
77+
'actions' => null
7678
];
7779

7880
/**
@@ -83,7 +85,8 @@ class DownloadPlanAction implements ModelInterface, ArrayAccess, \JsonSerializab
8385
protected static array $openAPINullables = [
8486
'type' => false,
8587
'src' => false,
86-
'dst' => false
88+
'dst' => false,
89+
'actions' => false
8790
];
8891

8992
/**
@@ -174,7 +177,8 @@ public function isNullableSetToNull(string $property): bool
174177
protected static $attributeMap = [
175178
'type' => 'type',
176179
'src' => 'src',
177-
'dst' => 'dst'
180+
'dst' => 'dst',
181+
'actions' => 'actions'
178182
];
179183

180184
/**
@@ -185,7 +189,8 @@ public function isNullableSetToNull(string $property): bool
185189
protected static $setters = [
186190
'type' => 'setType',
187191
'src' => 'setSrc',
188-
'dst' => 'setDst'
192+
'dst' => 'setDst',
193+
'actions' => 'setActions'
189194
];
190195

191196
/**
@@ -196,7 +201,8 @@ public function isNullableSetToNull(string $property): bool
196201
protected static $getters = [
197202
'type' => 'getType',
198203
'src' => 'getSrc',
199-
'dst' => 'getDst'
204+
'dst' => 'getDst',
205+
'actions' => 'getActions'
200206
];
201207

202208
/**
@@ -278,6 +284,7 @@ public function __construct(array $data = null)
278284
$this->setIfExists('type', $data ?? [], null);
279285
$this->setIfExists('src', $data ?? [], null);
280286
$this->setIfExists('dst', $data ?? [], null);
287+
$this->setIfExists('actions', $data ?? [], null);
281288
}
282289

283290
/**
@@ -424,6 +431,33 @@ public function setDst($dst)
424431

425432
return $this;
426433
}
434+
435+
/**
436+
* Gets actions
437+
*
438+
* @return \OpenAPI\Client\Model\DownloadPlanAction[]|null
439+
*/
440+
public function getActions()
441+
{
442+
return $this->container['actions'];
443+
}
444+
445+
/**
446+
* Sets actions
447+
*
448+
* @param \OpenAPI\Client\Model\DownloadPlanAction[]|null $actions A set of subactions to execute in the context of this action.
449+
*
450+
* @return self
451+
*/
452+
public function setActions($actions)
453+
{
454+
if (is_null($actions)) {
455+
throw new \InvalidArgumentException('non-nullable actions cannot be null');
456+
}
457+
$this->container['actions'] = $actions;
458+
459+
return $this;
460+
}
427461
/**
428462
* Returns true if offset exists. False otherwise.
429463
*

0 commit comments

Comments
 (0)