cfoundry 4.1.0 → 4.2.0.rc

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,7 @@ require "cfoundry/v2/route"
19
19
  require "cfoundry/v2/stack"
20
20
  require "cfoundry/v2/quota_definition"
21
21
  require "cfoundry/v2/app_event"
22
+ require "cfoundry/v2/service_broker"
22
23
 
23
24
  require "cfoundry/v2/base"
24
25
  require "cfoundry/v2/client"
@@ -115,7 +115,6 @@ module CFoundry::V2
115
115
  x
116
116
  end
117
117
  end
118
- elsif k.to_s.end_with?("_url")
119
118
  else
120
119
  payload[k] = v
121
120
  end
@@ -0,0 +1,9 @@
1
+ require "cfoundry/v2/model"
2
+
3
+ module CFoundry::V2
4
+ class ServiceBroker < Model
5
+ attribute :name, :string
6
+ attribute :broker_url, :string
7
+ attribute :token, :string
8
+ end
9
+ end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "4.1.0".freeze
3
+ VERSION = "4.2.0.rc".freeze
4
4
  end
@@ -1,4 +1,3 @@
1
- cf-errors
2
- =========
1
+ # errors
3
2
 
4
- Shared error codes and messages for Cloud Foundry
3
+ Shared error codes and messages for Cloud Foundry
@@ -153,6 +153,21 @@
153
153
  http_code: 400
154
154
  message: "The service instance cannot be created because paid service plans are not allowed."
155
155
 
156
+ 60008:
157
+ name: ServiceInstanceDuplicateNotAllowed
158
+ http_code: 400
159
+ message: "An instance of this service is already present in this space. Some services only support one instance per space."
160
+
161
+ 60009:
162
+ name: ServiceInstanceNameTooLong
163
+ http_code: 400
164
+ message: "You have requested an invalid service instance name. Names are limited to 50 characters."
165
+
166
+ 60010:
167
+ name: ServiceInstanceOrganizationNotAuthorized
168
+ http_code: 403
169
+ message: A service instance for the selected plan cannot be created in this organization. The plan is visible because another organization you belong to has access to it.
170
+
156
171
  70001:
157
172
  name: RuntimeInvalid
158
173
  http_code: 400
@@ -203,6 +218,11 @@
203
218
  http_code: 404
204
219
  message: "The service binding could not be found: %s"
205
220
 
221
+ 90005:
222
+ name: UnbindableService
223
+ http_code: 400
224
+ message: "The service doesn't support binding."
225
+
206
226
  100001:
207
227
  name: AppInvalid
208
228
  http_code: 400
@@ -223,6 +243,11 @@
223
243
  http_code: 400
224
244
  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
245
 
246
+ 100006:
247
+ name: AppMemoryInvalid
248
+ http_code: 400
249
+ message: "You have specified an invalid amount of memory for your application."
250
+
226
251
  110001:
227
252
  name: ServicePlanInvalid
228
253
  http_code: 400
@@ -353,6 +378,11 @@
353
378
  http_code: 400
354
379
  message: "Billing event query start_date and/or end_date are missing or invalid"
355
380
 
381
+ 230002:
382
+ name: EventNotFound
383
+ http_code: 404
384
+ message: "Event could not be found: %s"
385
+
356
386
  240001:
357
387
  name: QuotaDefinitionNotFound
358
388
  http_code: 404
@@ -382,3 +412,28 @@
382
412
  name: StackNotFound
383
413
  http_code: 404
384
414
  message: "The stack could not be found: %s"
415
+
416
+ 260001:
417
+ name: ServicePlanVisibilityInvalid
418
+ http_code: 400
419
+ message: "Service Plan Visibility is invalid: %s"
420
+
421
+ 260002:
422
+ name: ServicePlanVisibilityAlreadyExists
423
+ http_code: 400
424
+ message: "This combination of ServicePlan and Organization is already taken: %s"
425
+
426
+ 270001:
427
+ name: ServiceBrokerInvalid
428
+ http_code: 400
429
+ message: "Service Broker is invalid: %s"
430
+
431
+ 270002:
432
+ name: ServiceBrokerNameTaken
433
+ http_code: 400
434
+ message: "The service broker name is taken: %s"
435
+
436
+ 270003:
437
+ name: ServiceBrokerUrlTaken
438
+ http_code: 400
439
+ message: "The service broker url is taken: %s"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
5
- prerelease:
4
+ version: 4.2.0.rc
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Cloud Foundry Team
@@ -308,6 +308,7 @@ files:
308
308
  - lib/cfoundry/v2/service.rb
309
309
  - lib/cfoundry/v2/service_auth_token.rb
310
310
  - lib/cfoundry/v2/service_binding.rb
311
+ - lib/cfoundry/v2/service_broker.rb
311
312
  - lib/cfoundry/v2/service_instance.rb
312
313
  - lib/cfoundry/v2/service_plan.rb
313
314
  - lib/cfoundry/v2/space.rb
@@ -440,18 +441,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
440
441
  - - ! '>='
441
442
  - !ruby/object:Gem::Version
442
443
  version: '0'
443
- segments:
444
- - 0
445
- hash: -3532839030076498984
446
444
  required_rubygems_version: !ruby/object:Gem::Requirement
447
445
  none: false
448
446
  requirements:
449
- - - ! '>='
447
+ - - ! '>'
450
448
  - !ruby/object:Gem::Version
451
- version: '0'
452
- segments:
453
- - 0
454
- hash: -3532839030076498984
449
+ version: 1.3.1
455
450
  requirements: []
456
451
  rubyforge_project: cfoundry
457
452
  rubygems_version: 1.8.25