6
6
7
7
class Api extends AbstractApi
8
8
{
9
- private $ pathPrefix = '/ v2.0/ ' ;
9
+ private $ pathPrefix = 'v2.0 ' ;
10
10
11
11
public function __construct ()
12
12
{
@@ -23,7 +23,7 @@ public function getSecurityGroups()
23
23
{
24
24
return [
25
25
'method ' => 'GET ' ,
26
- 'path ' => $ this ->pathPrefix . 'security-groups ' ,
26
+ 'path ' => $ this ->pathPrefix . '/ security-groups ' ,
27
27
'params ' => [],
28
28
];
29
29
}
@@ -37,7 +37,7 @@ public function postSecurityGroups()
37
37
{
38
38
return [
39
39
'method ' => 'POST ' ,
40
- 'path ' => $ this ->pathPrefix . 'security-groups ' ,
40
+ 'path ' => $ this ->pathPrefix . '/ security-groups ' ,
41
41
'jsonKey ' => 'security_group ' ,
42
42
'params ' => [
43
43
'description ' => $ this ->params ->descriptionJson (),
@@ -55,7 +55,7 @@ public function putSecurityGroups()
55
55
{
56
56
return [
57
57
'method ' => 'PUT ' ,
58
- 'path ' => $ this ->pathPrefix . 'security-groups/{id} ' ,
58
+ 'path ' => $ this ->pathPrefix . '/ security-groups/{id} ' ,
59
59
'jsonKey ' => 'security_group ' ,
60
60
'params ' => [
61
61
'id ' => $ this ->params ->idPath (),
@@ -75,7 +75,7 @@ public function getSecurityGroup()
75
75
{
76
76
return [
77
77
'method ' => 'GET ' ,
78
- 'path ' => $ this ->pathPrefix . 'security-groups/{id} ' ,
78
+ 'path ' => $ this ->pathPrefix . '/ security-groups/{id} ' ,
79
79
'params ' => [
80
80
'id ' => $ this ->params ->idPath (),
81
81
],
@@ -92,7 +92,7 @@ public function deleteSecurityGroup()
92
92
{
93
93
return [
94
94
'method ' => 'DELETE ' ,
95
- 'path ' => $ this ->pathPrefix . 'security-groups/{id} ' ,
95
+ 'path ' => $ this ->pathPrefix . '/ security-groups/{id} ' ,
96
96
'params ' => [
97
97
'id ' => $ this ->params ->idPath (),
98
98
],
@@ -108,7 +108,7 @@ public function getSecurityRules()
108
108
{
109
109
return [
110
110
'method ' => 'GET ' ,
111
- 'path ' => $ this ->pathPrefix . 'security-group-rules ' ,
111
+ 'path ' => $ this ->pathPrefix . '/ security-group-rules ' ,
112
112
'params ' => [],
113
113
];
114
114
}
@@ -122,7 +122,7 @@ public function postSecurityRules()
122
122
{
123
123
return [
124
124
'method ' => 'POST ' ,
125
- 'path ' => $ this ->pathPrefix . 'security-group-rules ' ,
125
+ 'path ' => $ this ->pathPrefix . '/ security-group-rules ' ,
126
126
'jsonKey ' => 'security_group_rule ' ,
127
127
'params ' => [
128
128
'direction ' => $ this ->params ->directionJson (),
@@ -147,7 +147,7 @@ public function deleteSecurityRule()
147
147
{
148
148
return [
149
149
'method ' => 'DELETE ' ,
150
- 'path ' => $ this ->pathPrefix . 'security-group-rules/{id} ' ,
150
+ 'path ' => $ this ->pathPrefix . '/ security-group-rules/{id} ' ,
151
151
'params ' => [
152
152
'id ' => $ this ->params ->idPath (),
153
153
],
@@ -164,7 +164,7 @@ public function getSecurityRule()
164
164
{
165
165
return [
166
166
'method ' => 'GET ' ,
167
- 'path ' => $ this ->pathPrefix . 'security-group-rules/{id} ' ,
167
+ 'path ' => $ this ->pathPrefix . '/ security-group-rules/{id} ' ,
168
168
'params ' => [
169
169
'id ' => $ this ->params ->idPath (),
170
170
],
0 commit comments