google-cloud-network_management-v1 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/network_management/v1/reachability_service/client.rb +34 -7
  4. data/lib/google/cloud/network_management/v1/reachability_service/operations.rb +9 -5
  5. data/lib/google/cloud/network_management/v1/reachability_service/rest/client.rb +33 -7
  6. data/lib/google/cloud/network_management/v1/reachability_service/rest/operations.rb +40 -28
  7. data/lib/google/cloud/network_management/v1/reachability_service/rest/service_stub.rb +62 -38
  8. data/lib/google/cloud/network_management/v1/rest.rb +1 -0
  9. data/lib/google/cloud/network_management/v1/version.rb +1 -1
  10. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/client.rb +949 -0
  11. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/credentials.rb +47 -0
  12. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/operations.rb +806 -0
  13. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/paths.rb +69 -0
  14. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/client.rb +895 -0
  15. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/operations.rb +907 -0
  16. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/service_stub.rb +388 -0
  17. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest.rb +56 -0
  18. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service.rb +58 -0
  19. data/lib/google/cloud/network_management/v1.rb +1 -0
  20. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_config_pb.rb +51 -0
  21. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_pb.rb +59 -0
  22. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_services_pb.rb +83 -0
  23. data/proto_docs/google/api/client.rb +19 -0
  24. data/proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs.rb +115 -0
  25. data/proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs_config.rb +163 -0
  26. metadata +19 -8
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the list_connectivity_tests REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "list_connectivity_tests",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Cloud::NetworkManagement::V1::ListConnectivityTestsResponse.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_connectivity_test",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Cloud::NetworkManagement::V1::ConnectivityTest.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "create_connectivity_test",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "update_connectivity_test",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "rerun_connectivity_test",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -277,16 +299,18 @@ module Google
277
299
 
278
300
  response = @client_stub.make_http_request(
279
301
  verb,
280
- uri: uri,
281
- body: body || "",
282
- params: query_string_params,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "delete_connectivity_test",
283
306
  options: options
284
307
  )
285
308
  operation = ::Gapic::Rest::TransportOperation.new response
286
309
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
287
-
288
- yield result, operation if block_given?
289
- result
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
290
314
  end
291
315
 
292
316
  ##
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/network_management/v1/reachability_service/rest"
20
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/rest"
20
21
  require "google/cloud/network_management/v1/bindings_override"
21
22
  require "google/cloud/network_management/v1/version"
22
23
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkManagement
23
23
  module V1
24
- VERSION = "1.3.0"
24
+ VERSION = "1.5.0"
25
25
  end
26
26
  end
27
27
  end