cfoundry 0.3.61 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,9 @@ module CFoundry::V2
10
10
  to_many :billing_managers, :as => :user
11
11
  to_many :auditors, :as => :user
12
12
 
13
+ queryable_by :name, :space_guid, :user_guid, :manager_guid,
14
+ :billing_manager_guid, :auditor_guid
15
+
13
16
  has_summary
14
17
  end
15
18
  end
@@ -6,6 +6,8 @@ module CFoundry::V2
6
6
  to_one :domain
7
7
  to_one :space
8
8
 
9
+ queryable_by :host, :domain_guid
10
+
9
11
  def name
10
12
  "#{host}.#{domain.name}"
11
13
  end
@@ -5,5 +5,7 @@ module CFoundry::V2
5
5
  attribute :name, :string
6
6
  attribute :description, :string
7
7
  to_many :apps
8
+
9
+ queryable_by :name, :app_guid
8
10
  end
9
11
  end
@@ -13,5 +13,7 @@ module CFoundry::V2
13
13
  attribute :timeout, Integer, :default => nil
14
14
  attribute :active, :boolean, :default => false
15
15
  to_many :service_plans
16
+
17
+ queryable_by :service_plan_guid
16
18
  end
17
19
  end
@@ -4,5 +4,7 @@ module CFoundry::V2
4
4
  class ServiceBinding < Model
5
5
  to_one :app
6
6
  to_one :service_instance
7
+
8
+ queryable_by :app_guid, :service_instance_guid
7
9
  end
8
10
  end
@@ -8,5 +8,7 @@ module CFoundry::V2
8
8
  to_many :service_bindings
9
9
 
10
10
  scoped_to_space
11
+
12
+ queryable_by :name, :space_guid, :service_plan_guid, :service_binding_guid
11
13
  end
12
14
  end
@@ -6,5 +6,7 @@ module CFoundry::V2
6
6
  attribute :description, :string
7
7
  to_one :service
8
8
  to_many :service_instances
9
+
10
+ queryable_by :service_guid, :service_instance_guid
9
11
  end
10
12
  end
@@ -13,6 +13,8 @@ module CFoundry::V2
13
13
 
14
14
  scoped_to_organization
15
15
 
16
+ queryable_by :name, :organization_guid, :developer_guid, :app_guid
17
+
16
18
  has_summary
17
19
  end
18
20
  end
@@ -14,6 +14,10 @@ module CFoundry::V2
14
14
 
15
15
  attribute :guid, :string # guid is explicitly set for users
16
16
 
17
+ queryable_by :space_guid, :organization_guid, :managed_organization_guid,
18
+ :billing_managed_organization_guid, :audited_organization_guid,
19
+ :managed_space_guid, :audited_space_guid
20
+
17
21
  def guid
18
22
  @guid
19
23
  end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.61"
3
+ VERSION = "0.4.0"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 105
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 61
10
- version: 0.3.61
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-15 00:00:00 -08:00
18
+ date: 2012-11-19 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -122,6 +122,7 @@ files:
122
122
  - lib/cfoundry/v2/model.rb
123
123
  - lib/cfoundry/v2/user.rb
124
124
  - lib/cfoundry/v2/framework.rb
125
+ - lib/cfoundry/v2/model_magic.rb
125
126
  - lib/cfoundry/v2/service_auth_token.rb
126
127
  - lib/cfoundry/v2/space.rb
127
128
  - lib/cfoundry/v2/app.rb