google-cloud-network_management-v1 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,388 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/networkmanagement/v1/vpc_flow_logs_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module NetworkManagement
24
+ module V1
25
+ module VpcFlowLogsService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the VpcFlowLogsService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
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
+
76
+ ##
77
+ # Baseline implementation for the list_vpc_flow_logs_configs REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsResponse]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsResponse]
89
+ # A result object deserialized from the server's reply
90
+ def list_vpc_flow_logs_configs request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_vpc_flow_logs_configs_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "list_vpc_flow_logs_configs",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsResponse.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the get_vpc_flow_logs_config REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::GetVpcFlowLogsConfigRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig]
129
+ # A result object deserialized from the server's reply
130
+ def get_vpc_flow_logs_config request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_vpc_flow_logs_config_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_vpc_flow_logs_config",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the create_vpc_flow_logs_config REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::CreateVpcFlowLogsConfigRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Longrunning::Operation]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Longrunning::Operation]
169
+ # A result object deserialized from the server's reply
170
+ def create_vpc_flow_logs_config request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_vpc_flow_logs_config_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "create_vpc_flow_logs_config",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the update_vpc_flow_logs_config REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::UpdateVpcFlowLogsConfigRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Longrunning::Operation]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Longrunning::Operation]
209
+ # A result object deserialized from the server's reply
210
+ def update_vpc_flow_logs_config request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_vpc_flow_logs_config_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "update_vpc_flow_logs_config",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
236
+ ##
237
+ # Baseline implementation for the delete_vpc_flow_logs_config REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::DeleteVpcFlowLogsConfigRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Longrunning::Operation]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Longrunning::Operation]
249
+ # A result object deserialized from the server's reply
250
+ def delete_vpc_flow_logs_config request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_vpc_flow_logs_config_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "delete_vpc_flow_logs_config",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
276
+ ##
277
+ # @private
278
+ #
279
+ # GRPC transcoding helper method for the list_vpc_flow_logs_configs REST call
280
+ #
281
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsRequest]
282
+ # A request object representing the call parameters. Required.
283
+ # @return [Array(String, [String, nil], Hash{String => String})]
284
+ # Uri, Body, Query string parameters
285
+ def self.transcode_list_vpc_flow_logs_configs_request request_pb
286
+ transcoder = Gapic::Rest::GrpcTranscoder.new
287
+ .with_bindings(
288
+ uri_method: :get,
289
+ uri_template: "/v1/{parent}/vpcFlowLogsConfigs",
290
+ matches: [
291
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
292
+ ]
293
+ )
294
+ transcoder.transcode request_pb
295
+ end
296
+
297
+ ##
298
+ # @private
299
+ #
300
+ # GRPC transcoding helper method for the get_vpc_flow_logs_config REST call
301
+ #
302
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::GetVpcFlowLogsConfigRequest]
303
+ # A request object representing the call parameters. Required.
304
+ # @return [Array(String, [String, nil], Hash{String => String})]
305
+ # Uri, Body, Query string parameters
306
+ def self.transcode_get_vpc_flow_logs_config_request request_pb
307
+ transcoder = Gapic::Rest::GrpcTranscoder.new
308
+ .with_bindings(
309
+ uri_method: :get,
310
+ uri_template: "/v1/{name}",
311
+ matches: [
312
+ ["name", %r{^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+/?$}, false]
313
+ ]
314
+ )
315
+ transcoder.transcode request_pb
316
+ end
317
+
318
+ ##
319
+ # @private
320
+ #
321
+ # GRPC transcoding helper method for the create_vpc_flow_logs_config REST call
322
+ #
323
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::CreateVpcFlowLogsConfigRequest]
324
+ # A request object representing the call parameters. Required.
325
+ # @return [Array(String, [String, nil], Hash{String => String})]
326
+ # Uri, Body, Query string parameters
327
+ def self.transcode_create_vpc_flow_logs_config_request request_pb
328
+ transcoder = Gapic::Rest::GrpcTranscoder.new
329
+ .with_bindings(
330
+ uri_method: :post,
331
+ uri_template: "/v1/{parent}/vpcFlowLogsConfigs",
332
+ body: "vpc_flow_logs_config",
333
+ matches: [
334
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
335
+ ]
336
+ )
337
+ transcoder.transcode request_pb
338
+ end
339
+
340
+ ##
341
+ # @private
342
+ #
343
+ # GRPC transcoding helper method for the update_vpc_flow_logs_config REST call
344
+ #
345
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::UpdateVpcFlowLogsConfigRequest]
346
+ # A request object representing the call parameters. Required.
347
+ # @return [Array(String, [String, nil], Hash{String => String})]
348
+ # Uri, Body, Query string parameters
349
+ def self.transcode_update_vpc_flow_logs_config_request request_pb
350
+ transcoder = Gapic::Rest::GrpcTranscoder.new
351
+ .with_bindings(
352
+ uri_method: :patch,
353
+ uri_template: "/v1/{vpc_flow_logs_config.name}",
354
+ body: "vpc_flow_logs_config",
355
+ matches: [
356
+ ["vpc_flow_logs_config.name", %r{^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+/?$}, false]
357
+ ]
358
+ )
359
+ transcoder.transcode request_pb
360
+ end
361
+
362
+ ##
363
+ # @private
364
+ #
365
+ # GRPC transcoding helper method for the delete_vpc_flow_logs_config REST call
366
+ #
367
+ # @param request_pb [::Google::Cloud::NetworkManagement::V1::DeleteVpcFlowLogsConfigRequest]
368
+ # A request object representing the call parameters. Required.
369
+ # @return [Array(String, [String, nil], Hash{String => String})]
370
+ # Uri, Body, Query string parameters
371
+ def self.transcode_delete_vpc_flow_logs_config_request request_pb
372
+ transcoder = Gapic::Rest::GrpcTranscoder.new
373
+ .with_bindings(
374
+ uri_method: :delete,
375
+ uri_template: "/v1/{name}",
376
+ matches: [
377
+ ["name", %r{^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+/?$}, false]
378
+ ]
379
+ )
380
+ transcoder.transcode request_pb
381
+ end
382
+ end
383
+ end
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/network_management/v1/version"
24
+ require "google/cloud/network_management/v1/bindings_override"
25
+
26
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/credentials"
27
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/paths"
28
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/rest/operations"
29
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module NetworkManagement
34
+ module V1
35
+ ##
36
+ # The VPC Flow Logs service in the Google Cloud Network Management API provides
37
+ # configurations that generate Flow Logs. The service and the configuration
38
+ # resources created using this service are global.
39
+ #
40
+ # To load this service and instantiate a REST client:
41
+ #
42
+ # require "google/cloud/network_management/v1/vpc_flow_logs_service/rest"
43
+ # client = ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsService::Rest::Client.new
44
+ #
45
+ module VpcFlowLogsService
46
+ # Client for the REST transport
47
+ module Rest
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
56
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/network_management/v1/version"
24
+
25
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/credentials"
26
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/paths"
27
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/operations"
28
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/client"
29
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module NetworkManagement
34
+ module V1
35
+ ##
36
+ # The VPC Flow Logs service in the Google Cloud Network Management API provides
37
+ # configurations that generate Flow Logs. The service and the configuration
38
+ # resources created using this service are global.
39
+ #
40
+ # @example Load this service and instantiate a gRPC client
41
+ #
42
+ # require "google/cloud/network_management/v1/vpc_flow_logs_service"
43
+ # client = ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsService::Client.new
44
+ #
45
+ # @example Load this service and instantiate a REST client
46
+ #
47
+ # require "google/cloud/network_management/v1/vpc_flow_logs_service/rest"
48
+ # client = ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsService::Rest::Client.new
49
+ #
50
+ module VpcFlowLogsService
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ helper_path = ::File.join __dir__, "vpc_flow_logs_service", "helpers.rb"
58
+ require "google/cloud/network_management/v1/vpc_flow_logs_service/helpers" if ::File.file? helper_path
@@ -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"
20
+ require "google/cloud/network_management/v1/vpc_flow_logs_service"
20
21
  require "google/cloud/network_management/v1/version"
21
22
 
22
23
  module Google
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+
11
+
12
+ descriptor_data = "\n<google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto\x12!google.cloud.networkmanagement.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x88\r\n\x11VpcFlowLogsConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1d\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x01\x88\x01\x01\x12S\n\x05state\x18\x03 \x01(\x0e\x32:.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.StateB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12p\n\x14\x61ggregation_interval\x18\x04 \x01(\x0e\x32H.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationIntervalB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x1f\n\rflow_sampling\x18\x05 \x01(\x02\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x12Y\n\x08metadata\x18\x06 \x01(\x0e\x32=.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.MetadataB\x03\xe0\x41\x01H\x05\x88\x01\x01\x12\x1c\n\x0fmetadata_fields\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x0b\x66ilter_expr\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x06\x88\x01\x01\x12q\n\x15target_resource_state\x18\x0c \x01(\x0e\x32H.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceStateB\x03\xe0\x41\x03H\x07\x88\x01\x01\x12!\n\x17interconnect_attachment\x18\x66 \x01(\tH\x00\x12\x14\n\nvpn_tunnel\x18g \x01(\tH\x00\x12U\n\x06labels\x18\x0b \x03(\x0b\x32@.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"\xb6\x01\n\x13\x41ggregationInterval\x12$\n AGGREGATION_INTERVAL_UNSPECIFIED\x10\x00\x12\x12\n\x0eINTERVAL_5_SEC\x10\x01\x12\x13\n\x0fINTERVAL_30_SEC\x10\x02\x12\x12\n\x0eINTERVAL_1_MIN\x10\x03\x12\x12\n\x0eINTERVAL_5_MIN\x10\x04\x12\x13\n\x0fINTERVAL_10_MIN\x10\x05\x12\x13\n\x0fINTERVAL_15_MIN\x10\x06\"m\n\x08Metadata\x12\x18\n\x14METADATA_UNSPECIFIED\x10\x00\x12\x18\n\x14INCLUDE_ALL_METADATA\x10\x01\x12\x18\n\x14\x45XCLUDE_ALL_METADATA\x10\x02\x12\x13\n\x0f\x43USTOM_METADATA\x10\x03\"|\n\x13TargetResourceState\x12%\n!TARGET_RESOURCE_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16TARGET_RESOURCE_EXISTS\x10\x01\x12\"\n\x1eTARGET_RESOURCE_DOES_NOT_EXIST\x10\x02:\xb2\x01\xea\x41\xae\x01\n2networkmanagement.googleapis.com/VpcFlowLogsConfig\x12Qprojects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}*\x12vpcFlowLogsConfigs2\x11vpcFlowLogsConfigB\x11\n\x0ftarget_resourceB\x0e\n\x0c_descriptionB\x08\n\x06_stateB\x17\n\x15_aggregation_intervalB\x10\n\x0e_flow_samplingB\x0b\n\t_metadataB\x0e\n\x0c_filter_exprB\x18\n\x16_target_resource_stateB\x85\x02\n%com.google.cloud.networkmanagement.v1B\x16VpcFlowLogsConfigProtoP\x01ZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb\xaa\x02!Google.Cloud.NetworkManagement.V1\xca\x02!Google\\Cloud\\NetworkManagement\\V1\xea\x02$Google::Cloud::NetworkManagement::V1b\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
34
+ end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module NetworkManagement
42
+ module V1
43
+ VpcFlowLogsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpcFlowLogsConfig").msgclass
44
+ VpcFlowLogsConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State").enummodule
45
+ VpcFlowLogsConfig::AggregationInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval").enummodule
46
+ VpcFlowLogsConfig::Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata").enummodule
47
+ VpcFlowLogsConfig::TargetResourceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState").enummodule
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/networkmanagement/v1/reachability_pb'
12
+ require 'google/cloud/networkmanagement/v1/vpc_flow_logs_config_pb'
13
+ require 'google/longrunning/operations_pb'
14
+ require 'google/protobuf/empty_pb'
15
+ require 'google/protobuf/field_mask_pb'
16
+
17
+
18
+ descriptor_data = "\n5google/cloud/networkmanagement/v1/vpc_flow_logs.proto\x12!google.cloud.networkmanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/networkmanagement/v1/reachability.proto\x1a<google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xc8\x01\n\x1dListVpcFlowLogsConfigsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32networkmanagement.googleapis.com/VpcFlowLogsConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x01\n\x1eListVpcFlowLogsConfigsResponse\x12S\n\x15vpc_flow_logs_configs\x18\x01 \x03(\x0b\x32\x34.google.cloud.networkmanagement.v1.VpcFlowLogsConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"g\n\x1bGetVpcFlowLogsConfigRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2networkmanagement.googleapis.com/VpcFlowLogsConfig\"\xa2\x02\n\x1e\x43reateVpcFlowLogsConfigRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32networkmanagement.googleapis.com/VpcFlowLogsConfig\x12[\n\x17vpc_flow_logs_config_id\x18\x02 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2networkmanagement.googleapis.com/VpcFlowLogsConfig\x12W\n\x14vpc_flow_logs_config\x18\x03 \x01(\x0b\x32\x34.google.cloud.networkmanagement.v1.VpcFlowLogsConfigB\x03\xe0\x41\x02\"\xaf\x01\n\x1eUpdateVpcFlowLogsConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12W\n\x14vpc_flow_logs_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.networkmanagement.v1.VpcFlowLogsConfigB\x03\xe0\x41\x02\"j\n\x1e\x44\x65leteVpcFlowLogsConfigRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2networkmanagement.googleapis.com/VpcFlowLogsConfig2\xec\x0b\n\x12VpcFlowLogsService\x12\xe6\x01\n\x16ListVpcFlowLogsConfigs\x12@.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest\x1a\x41.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs\x12\xd3\x01\n\x14GetVpcFlowLogsConfig\x12>.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest\x1a\x34.google.cloud.networkmanagement.v1.VpcFlowLogsConfig\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\x12\xd3\x02\n\x17\x43reateVpcFlowLogsConfig\x12\x41.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41H\n\x11VpcFlowLogsConfig\x12\x33google.cloud.networkmanagement.v1.OperationMetadata\xda\x41\x33parent,vpc_flow_logs_config,vpc_flow_logs_config_id\x82\xd3\xe4\x93\x02N\"6/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:\x14vpc_flow_logs_config\x12\xd5\x02\n\x17UpdateVpcFlowLogsConfig\x12\x41.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd7\x01\xca\x41H\n\x11VpcFlowLogsConfig\x12\x33google.cloud.networkmanagement.v1.OperationMetadata\xda\x41 vpc_flow_logs_config,update_mask\x82\xd3\xe4\x93\x02\x63\x32K/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}:\x14vpc_flow_logs_config\x12\x92\x02\n\x17\x44\x65leteVpcFlowLogsConfig\x12\x41.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\xca\x41L\n\x15google.protobuf.Empty\x12\x33google.cloud.networkmanagement.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}\x1aT\xca\x41 networkmanagement.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xff\x01\n%com.google.cloud.networkmanagement.v1B\x10VpcFlowLogsProtoP\x01ZScloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb\xaa\x02!Google.Cloud.NetworkManagement.V1\xca\x02!Google\\Cloud\\NetworkManagement\\V1\xea\x02$Google::Cloud::NetworkManagement::V1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.cloud.networkmanagement.v1.VpcFlowLogsConfig", "google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
+ end
41
+ end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
44
+ end
45
+
46
+ module Google
47
+ module Cloud
48
+ module NetworkManagement
49
+ module V1
50
+ ListVpcFlowLogsConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest").msgclass
51
+ ListVpcFlowLogsConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse").msgclass
52
+ GetVpcFlowLogsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest").msgclass
53
+ CreateVpcFlowLogsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest").msgclass
54
+ UpdateVpcFlowLogsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest").msgclass
55
+ DeleteVpcFlowLogsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest").msgclass
56
+ end
57
+ end
58
+ end
59
+ end