Skip to content

Commit

Permalink
make version related configs required
Browse files Browse the repository at this point in the history
Change-Id: Ie02f8c58c2c1132c1cec5e7b646f459c85d5e551
  • Loading branch information
Andrew Liu committed Aug 21, 2012
1 parent 2d4b47e commit fd6b6d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/services/api/messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions vcap_common.gemspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit fd6b6d9

Please sign in to comment.