cf-copilot 0.0.5 → 0.0.7

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: 263c111aaa50a83fbe120d5379ce7f7e400d9eb6
4
- data.tar.gz: 4e822c834808cf2b3b97d640b896f2b84effbeab
3
+ metadata.gz: 1e5363ba1e276afa1d3d469e940969c0ae15e47a
4
+ data.tar.gz: 0ae0557e277e3dedbabdea12a8b43e8e2a01ca2b
5
5
  SHA512:
6
- metadata.gz: 57868ece58883157fc0286b8664ada0e51f593131af40aadd42730189de4d502143ad28f038bbb19c30c9e4a85751ddbf66660eef751644788b0ab988945bbc3
7
- data.tar.gz: 968bdcce9ece3058c748fc48ff769b4b44b65ad4851d193c5d5523ca9e35a8849c3e9b7bfacae74ffc8229ed920de6e2a11e7053f68ae7427af0ad47c7ca0a64
6
+ metadata.gz: d7975e956815280c9f20b3ca1ceb35701661ebee96d1931f2950f00e2d100c9518d96c6d96832c55b5efd7e347b5f94c0ca842a8b7664930f81b039d8409c33b
7
+ data.tar.gz: 604a4ba9201c801c2016a057f4d42166779f89073ec36e8fdd4dd8fc035658ca4515bffa5d9fc482de715207ae8ce0a723a5125a45273b548bce33f3e24703b4
@@ -40,16 +40,16 @@ module Cloudfoundry
40
40
  raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
41
41
  end
42
42
 
43
- def map_route(capi_process_guid:, route_guid:)
44
- route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid)
43
+ def map_route(capi_process_guid:, route_guid:, route_weight:)
44
+ route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
45
45
  request = Api::MapRouteRequest.new(route_mapping: route_mapping)
46
46
  service.map_route(request)
47
47
  rescue GRPC::BadStatus => e
48
48
  raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
49
49
  end
50
50
 
51
- def unmap_route(capi_process_guid:, route_guid:)
52
- route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid)
51
+ def unmap_route(capi_process_guid:, route_guid:, route_weight:)
52
+ route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
53
53
  request = Api::UnmapRouteRequest.new(route_mapping: route_mapping)
54
54
  service.unmap_route(request)
55
55
  rescue GRPC::BadStatus => e
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  optional :guid, :string, 1
28
28
  optional :host, :string, 2
29
29
  optional :path, :string, 3
30
+ optional :internal, :bool, 4
30
31
  end
31
32
  add_message "api.UpsertRouteRequest" do
32
33
  optional :route, :message, 1, "api.Route"
@@ -41,6 +42,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
41
42
  add_message "api.RouteMapping" do
42
43
  optional :capi_process_guid, :string, 1
43
44
  optional :route_guid, :string, 2
45
+ optional :route_weight, :int32, 3
44
46
  end
45
47
  add_message "api.MapRouteRequest" do
46
48
  optional :route_mapping, :message, 1, "api.RouteMapping"
@@ -1,5 +1,5 @@
1
1
  module Cloudfoundry
2
2
  module Copilot
3
- VERSION = '0.0.5'.freeze
3
+ VERSION = '0.0.7'.freeze
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.5
4
+ version: 0.0.7
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-05-18 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.6.13
124
+ rubygems_version: 2.5.1
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Ruby client for copilot (a CF istio data transformer).