new_cfoundry 4.8.2 → 4.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/VERSION +1 -1
- data/cfoundry.gemspec +1 -0
- data/lib/cfoundry/auth_token.rb +4 -5
- data/lib/cfoundry/baseclient.rb +10 -2
- data/lib/cfoundry/uaaclient.rb +4 -3
- data/lib/cfoundry/v2/app.rb +10 -0
- data/lib/cfoundry/v2/base.rb +4 -0
- data/lib/cfoundry/v2/client.rb +2 -2
- data/lib/cfoundry/v2/managed_service_instance.rb +1 -0
- data/lib/cfoundry/v2/model_magic/to_many.rb +7 -0
- data/lib/cfoundry/v2/user.rb +4 -0
- data/lib/cfoundry/v2/user_provided_service_instance.rb +1 -0
- data/lib/cfoundry.rb +1 -0
- data/spec/cfoundry/auth_token_spec.rb +7 -8
- data/spec/cfoundry/v2/client_spec.rb +1 -1
- data/spec/cfoundry/v2/organization_spec.rb +147 -0
- data/spec/cfoundry/v2/space_spec.rb +139 -2
- metadata +126 -115
- data/vendor/errors/README.md +0 -4
- data/vendor/errors/v1.yml +0 -189
- data/vendor/errors/v2.yml +0 -384
data/vendor/errors/v2.yml
DELETED
@@ -1,384 +0,0 @@
|
|
1
|
-
1000:
|
2
|
-
name: InvalidAuthToken
|
3
|
-
http_code: 401
|
4
|
-
message: "Invalid Auth Token"
|
5
|
-
|
6
|
-
1001:
|
7
|
-
name: MessageParseError
|
8
|
-
http_code: 400
|
9
|
-
message: "Request invalid due to parse error: %s"
|
10
|
-
|
11
|
-
1002:
|
12
|
-
name: InvalidRelation
|
13
|
-
http_code: 400
|
14
|
-
message: "Invalid relation: %s"
|
15
|
-
|
16
|
-
10000:
|
17
|
-
name: NotFound
|
18
|
-
http_code: 404
|
19
|
-
message: "Unknown request"
|
20
|
-
|
21
|
-
10001:
|
22
|
-
name: ServerError
|
23
|
-
http_code: 500
|
24
|
-
message: "Server error"
|
25
|
-
|
26
|
-
10002:
|
27
|
-
name: NotAuthenticated
|
28
|
-
http_code: 401
|
29
|
-
message: "Authentication error"
|
30
|
-
|
31
|
-
10003:
|
32
|
-
name: NotAuthorized
|
33
|
-
http_code: 403
|
34
|
-
message: "You are not authorized to perform the requested action"
|
35
|
-
|
36
|
-
10004:
|
37
|
-
name: InvalidRequest
|
38
|
-
http_code: 400
|
39
|
-
message: "The request is invalid"
|
40
|
-
|
41
|
-
10005:
|
42
|
-
name: BadQueryParameter
|
43
|
-
http_code: 400
|
44
|
-
message: "The query parameter is invalid: %s"
|
45
|
-
|
46
|
-
10006:
|
47
|
-
name: AssociationNotEmpty
|
48
|
-
http_code: 400
|
49
|
-
message: "Please delete the %s associations for your %s."
|
50
|
-
|
51
|
-
20001:
|
52
|
-
name: UserInvalid
|
53
|
-
http_code: 400
|
54
|
-
message: "The user info is invalid: %s"
|
55
|
-
|
56
|
-
20002:
|
57
|
-
name: UaaIdTaken
|
58
|
-
http_code: 400
|
59
|
-
message: "The UAA ID is taken: %s"
|
60
|
-
|
61
|
-
20003:
|
62
|
-
name: UserNotFound
|
63
|
-
http_code: 404
|
64
|
-
message: "The user could not be found: %s"
|
65
|
-
|
66
|
-
30001:
|
67
|
-
name: OrganizationInvalid
|
68
|
-
http_code: 400
|
69
|
-
message: "The organization info is invalid: %s"
|
70
|
-
|
71
|
-
30002:
|
72
|
-
name: OrganizationNameTaken
|
73
|
-
http_code: 400
|
74
|
-
message: "The organization name is taken: %s"
|
75
|
-
|
76
|
-
30003:
|
77
|
-
name: OrganizationNotFound
|
78
|
-
http_code: 404
|
79
|
-
message: "The organization could not be found: %s"
|
80
|
-
|
81
|
-
40001:
|
82
|
-
name: SpaceInvalid
|
83
|
-
http_code: 400
|
84
|
-
message: "The app space info is invalid: %s"
|
85
|
-
|
86
|
-
40002:
|
87
|
-
name: SpaceNameTaken
|
88
|
-
http_code: 400
|
89
|
-
message: "The app space name is taken: %s"
|
90
|
-
|
91
|
-
40003:
|
92
|
-
name: SpaceUserNotInOrg
|
93
|
-
http_code: 400
|
94
|
-
message: "The app space and the user are not in the same org: %s"
|
95
|
-
|
96
|
-
40004:
|
97
|
-
name: SpaceNotFound
|
98
|
-
http_code: 404
|
99
|
-
message: "The app space could not be found: %s"
|
100
|
-
|
101
|
-
50001:
|
102
|
-
name: ServiceAuthTokenInvalid
|
103
|
-
http_code: 400
|
104
|
-
message: "The service auth token is invalid: %s"
|
105
|
-
|
106
|
-
50002:
|
107
|
-
name: ServiceAuthTokenLabelTaken
|
108
|
-
http_code: 400
|
109
|
-
message: "The service auth token label is taken: %s"
|
110
|
-
|
111
|
-
50003:
|
112
|
-
name: ServiceAuthTokenNotFound
|
113
|
-
http_code: 404
|
114
|
-
message: "The service auth token could not be found: %s"
|
115
|
-
|
116
|
-
60001:
|
117
|
-
name: ServiceInstanceNameInvalid
|
118
|
-
http_code: 400
|
119
|
-
message: "The service instance name is taken: %s"
|
120
|
-
|
121
|
-
60002:
|
122
|
-
name: ServiceInstanceNameTaken
|
123
|
-
http_code: 400
|
124
|
-
message: "The service instance name is taken: %s"
|
125
|
-
|
126
|
-
60003:
|
127
|
-
name: ServiceInstanceServiceBindingWrongSpace
|
128
|
-
http_code: 400
|
129
|
-
message: "The service instance and the service binding are in different app spaces: %s"
|
130
|
-
|
131
|
-
60003:
|
132
|
-
name: ServiceInstanceInvalid
|
133
|
-
http_code: 400
|
134
|
-
message: "The service instance is invalid: %s"
|
135
|
-
|
136
|
-
60004:
|
137
|
-
name: ServiceInstanceNotFound
|
138
|
-
http_code: 404
|
139
|
-
message: "The service instance could not be found: %s"
|
140
|
-
|
141
|
-
60005:
|
142
|
-
name: ServiceInstanceFreeQuotaExceeded
|
143
|
-
http_code: 400
|
144
|
-
message: "You have exceeded your organization's services limit. Please login to your account and upgrade."
|
145
|
-
|
146
|
-
60006:
|
147
|
-
name: ServiceInstancePaidQuotaExceeded
|
148
|
-
http_code: 400
|
149
|
-
message: "You have exceeded your organization's services limit. Please file a support ticket to request additional resources."
|
150
|
-
|
151
|
-
60007:
|
152
|
-
name: ServiceInstanceServicePlanNotAllowed
|
153
|
-
http_code: 400
|
154
|
-
message: "The service instance cannot be created because paid service plans are not allowed."
|
155
|
-
|
156
|
-
70001:
|
157
|
-
name: RuntimeInvalid
|
158
|
-
http_code: 400
|
159
|
-
message: "The runtime is invalid: %s"
|
160
|
-
|
161
|
-
70002:
|
162
|
-
name: RuntimeNameTaken
|
163
|
-
http_code: 400
|
164
|
-
message: "The runtime name is taken: %s"
|
165
|
-
|
166
|
-
70003:
|
167
|
-
name: RuntimeNotFound
|
168
|
-
http_code: 404
|
169
|
-
message: "The runtime could not be found: %s"
|
170
|
-
|
171
|
-
80001:
|
172
|
-
name: FrameworkInvalid
|
173
|
-
http_code: 400
|
174
|
-
message: "The framework is invalid: %s"
|
175
|
-
|
176
|
-
80002:
|
177
|
-
name: FrameworkNameTaken
|
178
|
-
http_code: 400
|
179
|
-
message: "The framework name is taken: %s"
|
180
|
-
|
181
|
-
80003:
|
182
|
-
name: FrameworkNotFound
|
183
|
-
http_code: 404
|
184
|
-
message: "The framework could not be found: %s"
|
185
|
-
|
186
|
-
90001:
|
187
|
-
name: ServiceBindingInvalid
|
188
|
-
http_code: 400
|
189
|
-
message: "The service binding is invalid: %s"
|
190
|
-
|
191
|
-
90002:
|
192
|
-
name: ServiceBindingDifferentSpaces
|
193
|
-
http_code: 400
|
194
|
-
message: "The app and the service are not in the same app space: %s"
|
195
|
-
|
196
|
-
90003:
|
197
|
-
name: ServiceBindingAppServiceTaken
|
198
|
-
http_code: 400
|
199
|
-
message: "The app space binding to service is taken: %s"
|
200
|
-
|
201
|
-
90004:
|
202
|
-
name: ServiceBindingNotFound
|
203
|
-
http_code: 404
|
204
|
-
message: "The service binding could not be found: %s"
|
205
|
-
|
206
|
-
100001:
|
207
|
-
name: AppInvalid
|
208
|
-
http_code: 400
|
209
|
-
message: "The app is invalid: %s"
|
210
|
-
|
211
|
-
100002:
|
212
|
-
name: AppNameTaken
|
213
|
-
http_code: 400
|
214
|
-
message: "The app name is taken: %s"
|
215
|
-
|
216
|
-
100004:
|
217
|
-
name: AppNotFound
|
218
|
-
http_code: 404
|
219
|
-
message: "The app name could not be found: %s"
|
220
|
-
|
221
|
-
100005:
|
222
|
-
name: AppMemoryQuotaExceeded
|
223
|
-
http_code: 400
|
224
|
-
message: "You have exceeded your organization's memory limit. Please login to your account and upgrade. If you are trying to scale down and you are receiving this error, you can either delete an app or contact support."
|
225
|
-
|
226
|
-
110001:
|
227
|
-
name: ServicePlanInvalid
|
228
|
-
http_code: 400
|
229
|
-
message: "The service plan is invalid: %s"
|
230
|
-
|
231
|
-
110002:
|
232
|
-
name: ServicePlanNameTaken
|
233
|
-
http_code: 400
|
234
|
-
message: "The service plan name is taken: %s"
|
235
|
-
|
236
|
-
110003:
|
237
|
-
name: ServicePlanNotFound
|
238
|
-
http_code: 404
|
239
|
-
message: "The service plan could not be found: %s"
|
240
|
-
|
241
|
-
120001:
|
242
|
-
name: ServiceInvalid
|
243
|
-
http_code: 400
|
244
|
-
message: "The service is invalid: %s"
|
245
|
-
|
246
|
-
120002:
|
247
|
-
name: ServiceLabelTaken
|
248
|
-
http_code: 400
|
249
|
-
message: "The service lable is taken: %s"
|
250
|
-
|
251
|
-
120003:
|
252
|
-
name: ServiceNotFound
|
253
|
-
http_code: 404
|
254
|
-
message: "The service could not be found: %s"
|
255
|
-
|
256
|
-
130001:
|
257
|
-
name: DomainInvalid
|
258
|
-
http_code: 400
|
259
|
-
message: "The domain is invalid: %s"
|
260
|
-
|
261
|
-
130002:
|
262
|
-
name: DomainNotFound
|
263
|
-
http_code: 404
|
264
|
-
message: "The domain could not be found: %s"
|
265
|
-
|
266
|
-
130003:
|
267
|
-
name: DomainNameTaken
|
268
|
-
http_code: 400
|
269
|
-
message: "The domain name is taken: %s"
|
270
|
-
|
271
|
-
140001:
|
272
|
-
name: LegacyApiWithoutDefaultSpace
|
273
|
-
http_code: 400
|
274
|
-
message: "A legacy api call requring a default app space was called, but no default app space is set for the user."
|
275
|
-
|
276
|
-
150001:
|
277
|
-
name: AppPackageInvalid
|
278
|
-
http_code: 400
|
279
|
-
message: "The app package is invalid: %s"
|
280
|
-
|
281
|
-
150002:
|
282
|
-
name: AppPackageNotFound
|
283
|
-
http_code: 404
|
284
|
-
message: "The app package could not be found: %s"
|
285
|
-
|
286
|
-
160001:
|
287
|
-
name: AppBitsUploadInvalid
|
288
|
-
http_code: 400
|
289
|
-
message: "The app upload is invalid: %s"
|
290
|
-
|
291
|
-
170001:
|
292
|
-
name: StagingError
|
293
|
-
http_code: 400
|
294
|
-
message: "Staging error: %s"
|
295
|
-
|
296
|
-
170002:
|
297
|
-
name: NotStaged
|
298
|
-
http_code: 400
|
299
|
-
message: "App has not finished staging"
|
300
|
-
|
301
|
-
180001:
|
302
|
-
name: SnapshotNotFound
|
303
|
-
http_code: 404
|
304
|
-
message: "Snapshot could not be found: %s"
|
305
|
-
|
306
|
-
180002:
|
307
|
-
name: ServiceGatewayError
|
308
|
-
http_code: 503
|
309
|
-
message: "Service gateway internal error: %s"
|
310
|
-
|
311
|
-
180003:
|
312
|
-
name: ServiceNotImplemented
|
313
|
-
http_code: 501
|
314
|
-
message: "Operation not supported for service"
|
315
|
-
|
316
|
-
180004:
|
317
|
-
name: SDSNotAvailable
|
318
|
-
http_code: 501
|
319
|
-
message: "No serialization service backends available"
|
320
|
-
|
321
|
-
190001:
|
322
|
-
name: FileError
|
323
|
-
http_code: 400
|
324
|
-
message: "File error: %s"
|
325
|
-
|
326
|
-
200001:
|
327
|
-
name: StatsError
|
328
|
-
http_code: 400
|
329
|
-
message: "Stats error: %s"
|
330
|
-
|
331
|
-
210001:
|
332
|
-
name: RouteInvalid
|
333
|
-
http_code: 400
|
334
|
-
message: "The route is invalid: %s"
|
335
|
-
|
336
|
-
210002:
|
337
|
-
name: RouteNotFound
|
338
|
-
http_code: 404
|
339
|
-
message: "The route could not be found: %s"
|
340
|
-
|
341
|
-
210003:
|
342
|
-
name: RouteHostTaken
|
343
|
-
http_code: 400
|
344
|
-
message: "The host is taken: %s"
|
345
|
-
|
346
|
-
220001:
|
347
|
-
name: InstancesError
|
348
|
-
http_code: 400
|
349
|
-
message: "Instances error: %s"
|
350
|
-
|
351
|
-
230001:
|
352
|
-
name: BillingEventQueryInvalid
|
353
|
-
http_code: 400
|
354
|
-
message: "Billing event query start_date and/or end_date are missing or invalid"
|
355
|
-
|
356
|
-
240001:
|
357
|
-
name: QuotaDefinitionNotFound
|
358
|
-
http_code: 404
|
359
|
-
message: "Quota Definition could not be found: %s"
|
360
|
-
|
361
|
-
240002:
|
362
|
-
name: QuotaDefinitionNameTaken
|
363
|
-
http_code: 400
|
364
|
-
message: "Quota Definition is taken: %s"
|
365
|
-
|
366
|
-
240003:
|
367
|
-
name: QuotaDefinitionInvalid
|
368
|
-
http_code: 400
|
369
|
-
message: "Quota Definition is invalid: %s"
|
370
|
-
|
371
|
-
250001:
|
372
|
-
name: StackInvalid
|
373
|
-
http_code: 400
|
374
|
-
message: "The stack is invalid: %s"
|
375
|
-
|
376
|
-
250002:
|
377
|
-
name: StackNameTaken
|
378
|
-
http_code: 400
|
379
|
-
message: "The stack name is taken: %s"
|
380
|
-
|
381
|
-
250003:
|
382
|
-
name: StackNotFound
|
383
|
-
http_code: 404
|
384
|
-
message: "The stack could not be found: %s"
|