1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace OpenStack\DataProcessing\v1\Models; |
4
|
|
|
|
5
|
|
|
use OpenStack\Common\Resource\Creatable; |
6
|
|
|
use OpenStack\Common\Resource\Deletable; |
7
|
|
|
use OpenStack\Common\Resource\Listable; |
8
|
|
|
use OpenStack\Common\Resource\OperatorResource; |
9
|
|
|
use OpenStack\Common\Resource\Retrievable; |
10
|
|
|
|
11
|
|
|
class NodeGroupTemplate extends OperatorResource implements Listable, Retrievable, Creatable, Deletable |
12
|
|
|
{ |
13
|
|
|
public $volumeLocalToInstance; |
14
|
|
|
public $availabilityZone; |
15
|
|
|
public $updatedAt; |
16
|
|
|
public $useAutoconfig; |
17
|
|
|
public $volumesPerNode; |
18
|
|
|
public $id; |
19
|
|
|
public $securityGroups; |
20
|
|
|
public $shares; |
21
|
|
|
public $nodeConfigs; |
22
|
|
|
public $autoSecurityGroup; |
23
|
|
|
public $volumesAvailabilityZone; |
24
|
|
|
public $description; |
25
|
|
|
public $volumeMountPrefix; |
26
|
|
|
public $pluginName; |
27
|
|
|
public $floatingIpPool; |
28
|
|
|
public $isDefault; |
29
|
|
|
public $imageId; |
30
|
|
|
public $volumesSize; |
31
|
|
|
public $isProxyGateway; |
32
|
|
|
public $isPublic; |
33
|
|
|
public $hadoopVersion; |
34
|
|
|
public $name; |
35
|
|
|
public $tenantId; |
36
|
|
|
public $createdAt; |
37
|
|
|
public $volumeType; |
38
|
|
|
public $isProtected; |
39
|
|
|
public $nodeProcesses; |
40
|
|
|
public $flavorId; |
41
|
|
|
|
42
|
|
|
protected $resourceKey = 'node_group_template'; |
43
|
|
|
protected $resourcesKey = 'node_group_templates'; |
44
|
|
|
|
45
|
|
|
protected $aliases = [ |
46
|
|
|
'volume_local_to_instance' => 'volumeLocalToInstance', |
47
|
|
|
'availability_zone' => 'availabilityZone', |
48
|
|
|
'updated_at' => 'updatedAt', |
49
|
|
|
'use_autoconfig' => 'useAutoconfig', |
50
|
|
|
'volumes_per_node' => 'volumesPerNode', |
51
|
|
|
'security_groups' => 'securityGroups', |
52
|
|
|
'node_configs' => 'nodeConfigs', |
53
|
|
|
'auto_security_group' => 'autoSecurityGroup', |
54
|
|
|
'volumes_availability_zone' => 'volumesAvailabilityZone', |
55
|
|
|
'volume_mount_prefix' => 'volumeMountPrefix', |
56
|
|
|
'plugin_name' => 'pluginName', |
57
|
|
|
'floating_ip_pool' => 'floatingIpPool', |
58
|
|
|
'is_default' => 'isDefault', |
59
|
|
|
'image_id' => 'imageId', |
60
|
|
|
'volumes_size' => 'volumesSize', |
61
|
|
|
'is_proxy_gateway' => 'isProxyGateway', |
62
|
|
|
'is_public' => 'isPublic', |
63
|
|
|
'hadoop_version' => 'hadoopVersion', |
64
|
|
|
'tenant_id' => 'tenantId', |
65
|
|
|
'created_at' => 'createdAt', |
66
|
|
|
'volume_type' => 'volumeType', |
67
|
|
|
'is_protected' => 'isProtected', |
68
|
|
|
'node_processes' => 'nodeProcesses', |
69
|
|
|
'flavor_id' => 'flavorId', |
70
|
|
|
]; |
71
|
|
|
|
72
|
|
|
public function retrieve() |
73
|
|
|
{ |
74
|
|
|
$response = $this->execute($this->api->getNodeGroupTemplate(), $this->getAttrs(['id'])); |
|
|
|
|
75
|
|
|
$this->populateFromResponse($response); |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function create(array $userOptions): Creatable |
79
|
|
|
{ |
80
|
|
|
$response = $this->execute($this->api->postNodeGroupTemplate(), $userOptions); |
|
|
|
|
81
|
|
|
|
82
|
|
|
return $this->populateFromResponse($response); |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
public function delete() |
86
|
|
|
{ |
87
|
|
|
$this->execute($this->api->deleteNodeGroupTemplate(), $this->getAttrs(['id'])); |
|
|
|
|
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function update() |
91
|
|
|
{ |
92
|
|
|
$response = $this->execute($this->api->putNodeGroupTemplate(), $this->getAttrs(['id', 'name', 'description', 'flavorId', 'availabilityZone', 'imageId', 'floatingIpPool', 'useAutoconfig', 'autoSecurityGroup', 'isProxyGateway', 'isPublic', 'isProtected'])); |
|
|
|
|
93
|
|
|
$this->populateFromResponse($response); |
94
|
|
|
} |
95
|
|
|
} |
96
|
|
|
|
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.