google-cloud-network_connectivity-v1 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/network_connectivity/v1/hub_service/client.rb +1002 -42
- data/lib/google/cloud/network_connectivity/v1/hub_service/operations.rb +10 -1
- data/lib/google/cloud/network_connectivity/v1/hub_service/paths.rb +59 -0
- data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/client.rb +786 -0
- data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/credentials.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/operations.rb +779 -0
- data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/paths.rb +84 -0
- data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/version.rb +1 -1
- data/lib/google/cloud/network_connectivity/v1.rb +1 -0
- data/lib/google/cloud/networkconnectivity/v1/hub_pb.rb +32 -1
- data/lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb +24 -0
- data/lib/google/cloud/networkconnectivity/v1/policy_based_routing_pb.rb +64 -0
- data/lib/google/cloud/networkconnectivity/v1/policy_based_routing_services_pb.rb +52 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/networkconnectivity/v1/common.rb +3 -2
- data/proto_docs/google/cloud/networkconnectivity/v1/hub.rb +709 -55
- data/proto_docs/google/cloud/networkconnectivity/v1/policy_based_routing.rb +312 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +14 -5
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -24,6 +24,25 @@ module Google
|
|
24
24
|
module HubService
|
25
25
|
# Path helper methods for the HubService API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Group resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/global/hubs/{hub}/groups/{group}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param hub [String]
|
36
|
+
# @param group [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def group_path project:, hub:, group:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/global/hubs/#{hub}/groups/#{group}"
|
44
|
+
end
|
45
|
+
|
27
46
|
##
|
28
47
|
# Create a fully-qualified Hub resource string.
|
29
48
|
#
|
@@ -41,6 +60,27 @@ module Google
|
|
41
60
|
"projects/#{project}/locations/global/hubs/#{hub}"
|
42
61
|
end
|
43
62
|
|
63
|
+
##
|
64
|
+
# Create a fully-qualified HubRoute resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}/routes/{route}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param hub [String]
|
72
|
+
# @param route_table [String]
|
73
|
+
# @param route [String]
|
74
|
+
#
|
75
|
+
# @return [::String]
|
76
|
+
def hub_route_path project:, hub:, route_table:, route:
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
78
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "route_table cannot contain /" if route_table.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/global/hubs/#{hub}/routeTables/#{route_table}/routes/#{route}"
|
82
|
+
end
|
83
|
+
|
44
84
|
##
|
45
85
|
# Create a fully-qualified Instance resource string.
|
46
86
|
#
|
@@ -113,6 +153,25 @@ module Google
|
|
113
153
|
"projects/#{project}/global/networks/#{resource_id}"
|
114
154
|
end
|
115
155
|
|
156
|
+
##
|
157
|
+
# Create a fully-qualified RouteTable resource string.
|
158
|
+
#
|
159
|
+
# The resource will be in the following format:
|
160
|
+
#
|
161
|
+
# `projects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}`
|
162
|
+
#
|
163
|
+
# @param project [String]
|
164
|
+
# @param hub [String]
|
165
|
+
# @param route_table [String]
|
166
|
+
#
|
167
|
+
# @return [::String]
|
168
|
+
def route_table_path project:, hub:, route_table:
|
169
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
170
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
171
|
+
|
172
|
+
"projects/#{project}/locations/global/hubs/#{hub}/routeTables/#{route_table}"
|
173
|
+
end
|
174
|
+
|
116
175
|
##
|
117
176
|
# Create a fully-qualified Spoke resource string.
|
118
177
|
#
|