cf-copilot 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e3212c64c7f0e49e907a2ca20cf80460c2cfd42
4
- data.tar.gz: 160b2fb27ce5bd82499cd940798a19f770204187
3
+ metadata.gz: 651ed652ed54626994734f86ee06512083462f86
4
+ data.tar.gz: 9e2a059983f0e0a3947697eaa670bbfc4f2c3c58
5
5
  SHA512:
6
- metadata.gz: b449d9a7aa23506717c1af15909ab4b176394ff28be6404e3b0493b33531bcdfbc8fd67f8953801b848946029864c3651450453db80c8ba6d4784afff19ed2b8
7
- data.tar.gz: 6b32c2525aade91c22c6677b0cd5093f0aeb8304350ebf1769b6b85db391d9517ba112dab95f64e644ef63dbf0e556875f3a04a783bf752e6a37bca58e46ab4f
6
+ metadata.gz: 4e01bf34405aa7271c2c2901faede410c9b9f148b86f007fc0f7f391c3cba00cd92b2f46bf15b2f5494bcf72a989a2248edf0f349f01f40387f7a7f1d0d6260e
7
+ data.tar.gz: 8c9306ca2ce3922603d30b0632ddfa4078ff9c584b4dbb9776f455927bab928c4d1dde9cf685f6524a36c53f70ee936bfc83ed78abd0ebcc1a670bb181054ad0
@@ -64,12 +64,12 @@ module Cloudfoundry
64
64
  service.delete_capi_diego_process_association(request)
65
65
  end
66
66
 
67
- # untested - this will change a lot and no one is using it yet
68
- def bulk_sync(routes:, route_mappings:)
69
- routes.map! {|route| Api::UpsertRouteRequest.new(route: route)}
70
- route_mappings.map! {|mapping| Api::MapRouteRequest.new(route_mapping: mapping)}
71
-
72
- request = Api::BulkSyncRequest.new(routes: routes, route_mappings: route_mappings)
67
+ def bulk_sync(routes:, route_mappings:, capi_diego_process_associations:)
68
+ request = Api::BulkSyncRequest.new(
69
+ routes: routes,
70
+ route_mappings: route_mappings,
71
+ capi_diego_process_associations: capi_diego_process_associations
72
+ )
73
73
  service.bulk_sync(request)
74
74
  end
75
75
 
@@ -65,6 +65,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
65
  end
66
66
  add_message "api.DeleteCapiDiegoProcessAssociationResponse" do
67
67
  end
68
+ add_message "api.BulkSyncRequest" do
69
+ repeated :route_mappings, :message, 1, "api.RouteMapping"
70
+ repeated :routes, :message, 2, "api.Route"
71
+ repeated :capi_diego_process_associations, :message, 3, "api.CapiDiegoProcessAssociation"
72
+ end
73
+ add_message "api.BulkSyncResponse" do
74
+ end
68
75
  end
69
76
 
70
77
  module Api
@@ -90,4 +97,6 @@ module Api
90
97
  UpsertCapiDiegoProcessAssociationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.UpsertCapiDiegoProcessAssociationResponse").msgclass
91
98
  DeleteCapiDiegoProcessAssociationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.DeleteCapiDiegoProcessAssociationRequest").msgclass
92
99
  DeleteCapiDiegoProcessAssociationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.DeleteCapiDiegoProcessAssociationResponse").msgclass
100
+ BulkSyncRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.BulkSyncRequest").msgclass
101
+ BulkSyncResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("api.BulkSyncResponse").msgclass
93
102
  end
@@ -23,6 +23,7 @@ module Api
23
23
  rpc :UnmapRoute, UnmapRouteRequest, UnmapRouteResponse
24
24
  rpc :UpsertCapiDiegoProcessAssociation, UpsertCapiDiegoProcessAssociationRequest, UpsertCapiDiegoProcessAssociationResponse
25
25
  rpc :DeleteCapiDiegoProcessAssociation, DeleteCapiDiegoProcessAssociationRequest, DeleteCapiDiegoProcessAssociationResponse
26
+ rpc :BulkSync, BulkSyncRequest, BulkSyncResponse
26
27
  rpc :Health, HealthRequest, HealthResponse
27
28
  end
28
29
 
@@ -1,5 +1,5 @@
1
1
  module Cloudfoundry
2
2
  module Copilot
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-copilot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud Foundry Routing Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc