Permalink
Browse files

make version related configs required

Change-Id: Ie02f8c58c2c1132c1cec5e7b646f459c85d5e551
  • Loading branch information...
1 parent 2d4b47e commit fd6b6d91b19c551cf5091c8469595df923dd2612 @andl andl committed Aug 7, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 lib/services/api/messages.rb
  2. +2 −2 vcap_common.gemspec
@@ -20,6 +20,8 @@ class EmptyRequest < JsonMessage
class ServiceOfferingRequest < JsonMessage
required :label, SERVICE_LABEL_REGEX
required :url, URI::regexp(%w(http https))
+ required :supported_versions, [String]
+ required :version_aliases, Hash
optional :description, String
optional :info_url, URI::regexp(%w(http https))
@@ -33,8 +35,6 @@ class ServiceOfferingRequest < JsonMessage
optional :timeout, Integer
optional :provider, String
optional :default_plan, String
- optional :supported_versions, [String]
- optional :version_aliases, Hash
end
class ProxiedServiceOfferingRequest < JsonMessage
@@ -65,20 +65,20 @@ class CloudControllerProvisionRequest < JsonMessage
required :label, SERVICE_LABEL_REGEX
required :name, String
required :plan, String
+ required :version, String
optional :plan_option
optional :provider, String
- optional :version, String
end
class GatewayProvisionRequest < JsonMessage
required :label, SERVICE_LABEL_REGEX
required :name, String
required :plan, String
required :email, String
+ required :version, String
optional :plan_option
- optional :version, String
end
# Provision and bind response use the same format
View
@@ -1,7 +1,7 @@
spec = Gem::Specification.new do |s|
s.name = 'vcap_common'
- s.version = '2.0.6'
- s.date = '2012-08-17'
+ s.version = '2.0.7'
+ s.date = '2012-08-21'
s.summary = 'vcap common'
s.homepage = "http://github.com/vmware-ac/core"
s.description = 'common vcap classes/methods'

0 comments on commit fd6b6d9

Please sign in to comment.