google-cloud-network_services-v1 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/network_services/v1/bindings_override.rb +2 -29
- data/lib/google/cloud/network_services/v1/version.rb +1 -1
- data/lib/google/cloud/networkservices/v1/service_lb_policy_pb.rb +4 -1
- data/proto_docs/google/cloud/networkservices/v1/service_lb_policy.rb +41 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f6d9a1c5c95178ed515c1911f53af79b8ded4f2c4c8a5a9ed21951e638193db
|
4
|
+
data.tar.gz: e1d0bde675ef3f4bfed1d95355b0de945958647240da04d4b27a22c0f4565322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 629fd3447ec19cd54cf044e91fef5d727428180dfff0ece2bbd0323d595f8b32da14269c2bf98952dc9b04cf270fbd22ff5fb5b307ca9fa43070bd438cc5f045
|
7
|
+
data.tar.gz: b65600ee2832877347aa43af55469abd54152096805fea548e9868f043260941c86f2fef7e0388d00f2d99acd1bb8df4fb5c7fec69d4162a57aeaf6a293da913
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/
|
19
|
+
require "gapic/rest"
|
20
20
|
|
21
21
|
module Google
|
22
22
|
module Cloud
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
namespace.pop
|
43
43
|
end
|
44
44
|
|
45
|
-
default_config =
|
45
|
+
default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
|
46
46
|
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
47
|
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
48
|
uri_method: :get,
|
@@ -246,33 +246,6 @@ module Google
|
|
246
246
|
yield @configure if block_given?
|
247
247
|
@configure
|
248
248
|
end
|
249
|
-
|
250
|
-
##
|
251
|
-
# @private
|
252
|
-
# Configuration class for the google.cloud.networkservices.v1 package.
|
253
|
-
#
|
254
|
-
# This class contains common configuration for all services
|
255
|
-
# of the google.cloud.networkservices.v1 package.
|
256
|
-
#
|
257
|
-
# This configuration is for internal use of the client library classes,
|
258
|
-
# and it is not intended that the end-users will read or change it.
|
259
|
-
#
|
260
|
-
class Configuration
|
261
|
-
extend ::Gapic::Config
|
262
|
-
|
263
|
-
# @private
|
264
|
-
# Overrides for http bindings for the RPC of the mixins for this package.
|
265
|
-
# Services in this package should use these when creating clients for the mixin services.
|
266
|
-
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
267
|
-
config_attr :bindings_override, {}, ::Hash, nil
|
268
|
-
|
269
|
-
# @private
|
270
|
-
def initialize parent_config = nil
|
271
|
-
@parent_config = parent_config unless parent_config.nil?
|
272
|
-
|
273
|
-
yield self if block_given?
|
274
|
-
end
|
275
|
-
end
|
276
249
|
end
|
277
250
|
end
|
278
251
|
end
|
@@ -10,7 +10,7 @@ require 'google/protobuf/field_mask_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n7google/cloud/networkservices/v1/service_lb_policy.proto\x12\x1fgoogle.cloud.networkservices.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n7google/cloud/networkservices/v1/service_lb_policy.proto\x12\x1fgoogle.cloud.networkservices.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x0b\n\x0fServiceLbPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x06labels\x18\x04 \x03(\x0b\x32<.google.cloud.networkservices.v1.ServiceLbPolicy.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12n\n\x18load_balancing_algorithm\x18\x06 \x01(\x0e\x32G.google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithmB\x03\xe0\x41\x01\x12\x64\n\x13\x61uto_capacity_drain\x18\x08 \x01(\x0b\x32\x42.google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrainB\x03\xe0\x41\x01\x12]\n\x0f\x66\x61ilover_config\x18\n \x01(\x0b\x32?.google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfigB\x03\xe0\x41\x01\x12_\n\x10isolation_config\x18\x0b \x01(\x0b\x32@.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfigB\x03\xe0\x41\x01\x1a(\n\x11\x41utoCapacityDrain\x12\x13\n\x06\x65nable\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x38\n\x0e\x46\x61iloverConfig\x12&\n\x19\x66\x61ilover_health_threshold\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x1a\xd9\x01\n\x0fIsolationConfig\x12i\n\x15isolation_granularity\x18\x01 \x01(\x0e\x32\x45.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularityB\x03\xe0\x41\x01\x12[\n\x0eisolation_mode\x18\x02 \x01(\x0e\x32>.google.cloud.networkservices.v1.ServiceLbPolicy.IsolationModeB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9b\x01\n\x16LoadBalancingAlgorithm\x12(\n$LOAD_BALANCING_ALGORITHM_UNSPECIFIED\x10\x00\x12\x12\n\x0eSPRAY_TO_WORLD\x10\x03\x12\x13\n\x0fSPRAY_TO_REGION\x10\x04\x12\x17\n\x13WATERFALL_BY_REGION\x10\x05\x12\x15\n\x11WATERFALL_BY_ZONE\x10\x06\"I\n\x14IsolationGranularity\x12%\n!ISOLATION_GRANULARITY_UNSPECIFIED\x10\x00\x12\n\n\x06REGION\x10\x01\"H\n\rIsolationMode\x12\x1e\n\x1aISOLATION_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07NEAREST\x10\x01\x12\n\n\x06STRICT\x10\x02:\x82\x01\xea\x41\x7f\n.networkservices.googleapis.com/ServiceLbPolicy\x12Mprojects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy}\"\x8d\x01\n\x1cListServiceLbPoliciesRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.networkservices.googleapis.com/ServiceLbPolicy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x9c\x01\n\x1dListServiceLbPoliciesResponse\x12M\n\x13service_lb_policies\x18\x01 \x03(\x0b\x32\x30.google.cloud.networkservices.v1.ServiceLbPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"a\n\x19GetServiceLbPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networkservices.googleapis.com/ServiceLbPolicy\"\xdb\x01\n\x1c\x43reateServiceLbPolicyRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.networkservices.googleapis.com/ServiceLbPolicy\x12!\n\x14service_lb_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x11service_lb_policy\x18\x03 \x01(\x0b\x32\x30.google.cloud.networkservices.v1.ServiceLbPolicyB\x03\xe0\x41\x02\"\xa6\x01\n\x1cUpdateServiceLbPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12P\n\x11service_lb_policy\x18\x02 \x01(\x0b\x32\x30.google.cloud.networkservices.v1.ServiceLbPolicyB\x03\xe0\x41\x02\"d\n\x1c\x44\x65leteServiceLbPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networkservices.googleapis.com/ServiceLbPolicyB\xf5\x01\n#com.google.cloud.networkservices.v1B\x14ServiceLbPolicyProtoP\x01ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservicespb\xaa\x02\x1fGoogle.Cloud.NetworkServices.V1\xca\x02\x1fGoogle\\Cloud\\NetworkServices\\V1\xea\x02\"Google::Cloud::NetworkServices::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -45,7 +45,10 @@ module Google
|
|
45
45
|
ServiceLbPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy").msgclass
|
46
46
|
ServiceLbPolicy::AutoCapacityDrain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.AutoCapacityDrain").msgclass
|
47
47
|
ServiceLbPolicy::FailoverConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig").msgclass
|
48
|
+
ServiceLbPolicy::IsolationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.IsolationConfig").msgclass
|
48
49
|
ServiceLbPolicy::LoadBalancingAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.LoadBalancingAlgorithm").enummodule
|
50
|
+
ServiceLbPolicy::IsolationGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.IsolationGranularity").enummodule
|
51
|
+
ServiceLbPolicy::IsolationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ServiceLbPolicy.IsolationMode").enummodule
|
49
52
|
ListServiceLbPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ListServiceLbPoliciesRequest").msgclass
|
50
53
|
ListServiceLbPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.ListServiceLbPoliciesResponse").msgclass
|
51
54
|
GetServiceLbPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkservices.v1.GetServiceLbPolicyRequest").msgclass
|
@@ -51,6 +51,10 @@ module Google
|
|
51
51
|
# @!attribute [rw] failover_config
|
52
52
|
# @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::FailoverConfig]
|
53
53
|
# Optional. Configuration related to health based failover.
|
54
|
+
# @!attribute [rw] isolation_config
|
55
|
+
# @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::IsolationConfig]
|
56
|
+
# Optional. Configuration to provide isolation support for the associated
|
57
|
+
# Backend Service.
|
54
58
|
class ServiceLbPolicy
|
55
59
|
include ::Google::Protobuf::MessageExts
|
56
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -84,6 +88,19 @@ module Google
|
|
84
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
89
|
end
|
86
90
|
|
91
|
+
# Configuration to provide isolation support for the associated Backend
|
92
|
+
# Service.
|
93
|
+
# @!attribute [rw] isolation_granularity
|
94
|
+
# @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::IsolationGranularity]
|
95
|
+
# Optional. The isolation granularity of the load balancer.
|
96
|
+
# @!attribute [rw] isolation_mode
|
97
|
+
# @return [::Google::Cloud::NetworkServices::V1::ServiceLbPolicy::IsolationMode]
|
98
|
+
# Optional. The isolation mode of the load balancer.
|
99
|
+
class IsolationConfig
|
100
|
+
include ::Google::Protobuf::MessageExts
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
|
+
end
|
103
|
+
|
87
104
|
# @!attribute [rw] key
|
88
105
|
# @return [::String]
|
89
106
|
# @!attribute [rw] value
|
@@ -117,6 +134,30 @@ module Google
|
|
117
134
|
# spilling over to other zones.
|
118
135
|
WATERFALL_BY_ZONE = 6
|
119
136
|
end
|
137
|
+
|
138
|
+
# The granularity of this isolation restriction.
|
139
|
+
module IsolationGranularity
|
140
|
+
# No isolation is configured for the backend service. Traffic can overflow
|
141
|
+
# based on the load balancing algorithm.
|
142
|
+
ISOLATION_GRANULARITY_UNSPECIFIED = 0
|
143
|
+
|
144
|
+
# Traffic for this service will be isolated at the cloud region level.
|
145
|
+
REGION = 1
|
146
|
+
end
|
147
|
+
|
148
|
+
# The mode of this isolation restriction, defining whether clients in a given
|
149
|
+
# region are allowed to reach out to another region.
|
150
|
+
module IsolationMode
|
151
|
+
# No isolation mode is configured for the backend service.
|
152
|
+
ISOLATION_MODE_UNSPECIFIED = 0
|
153
|
+
|
154
|
+
# Traffic will be sent to the nearest region.
|
155
|
+
NEAREST = 1
|
156
|
+
|
157
|
+
# Traffic will fail if no serving backends are available in the same region
|
158
|
+
# as the load balancer.
|
159
|
+
STRICT = 2
|
160
|
+
end
|
120
161
|
end
|
121
162
|
|
122
163
|
# Request used with the ListServiceLbPolicies method.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-network_services-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '1.
|
18
|
+
version: '1.2'
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '1.
|
25
|
+
version: '1.2'
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: google-cloud-errors
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|