google-apis-networkmanagement_v1 0.69.0 → 0.71.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/CHANGELOG.md +8 -0
- data/lib/google/apis/networkmanagement_v1/classes.rb +203 -667
- data/lib/google/apis/networkmanagement_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkmanagement_v1/representations.rb +57 -233
- data/lib/google/apis/networkmanagement_v1/service.rb +348 -396
- metadata +2 -2
@@ -86,8 +86,8 @@ module Google
|
|
86
86
|
# @param [String] name
|
87
87
|
# The resource that owns the locations collection, if applicable.
|
88
88
|
# @param [Array<String>, String] extra_location_types
|
89
|
-
# Optional.
|
90
|
-
#
|
89
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
90
|
+
# field which is primarily intended for internal usage.
|
91
91
|
# @param [String] filter
|
92
92
|
# A filter to narrow down results to a preferred subset. The filtering language
|
93
93
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -243,6 +243,13 @@ module Google
|
|
243
243
|
# The standard list page size.
|
244
244
|
# @param [String] page_token
|
245
245
|
# The standard list page token.
|
246
|
+
# @param [Boolean] return_partial_success
|
247
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
248
|
+
# those that are unreachable are returned in the [ListOperationsResponse.
|
249
|
+
# unreachable] field. This can only be `true` when reading across collections e.
|
250
|
+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
|
251
|
+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
|
252
|
+
# explicitly documented otherwise in service or product specific documentation.
|
246
253
|
# @param [String] fields
|
247
254
|
# Selector specifying which fields to include in a partial response.
|
248
255
|
# @param [String] quota_user
|
@@ -260,7 +267,7 @@ module Google
|
|
260
267
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
261
268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
262
269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
263
|
-
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
270
|
+
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
264
271
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
265
272
|
command.response_representation = Google::Apis::NetworkmanagementV1::ListOperationsResponse::Representation
|
266
273
|
command.response_class = Google::Apis::NetworkmanagementV1::ListOperationsResponse
|
@@ -268,6 +275,217 @@ module Google
|
|
268
275
|
command.query['filter'] = filter unless filter.nil?
|
269
276
|
command.query['pageSize'] = page_size unless page_size.nil?
|
270
277
|
command.query['pageToken'] = page_token unless page_token.nil?
|
278
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
279
|
+
command.query['fields'] = fields unless fields.nil?
|
280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
281
|
+
execute_or_queue_command(command, &block)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same
|
285
|
+
# settings already exists (even if the ID is different), the creation fails.
|
286
|
+
# Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The
|
287
|
+
# following fields are not considered as settings for the purpose of the check
|
288
|
+
# mentioned above, therefore - creating another configuration with the same
|
289
|
+
# fields but different values for the following fields will fail as well: * name
|
290
|
+
# * create_time * update_time * labels * description
|
291
|
+
# @param [String] parent
|
292
|
+
# Required. The parent resource of the VpcFlowLogsConfig to create, in one of
|
293
|
+
# the following formats: - For project-level resources: `projects/`project_id`/
|
294
|
+
# locations/global` - For organization-level resources: `organizations/`
|
295
|
+
# organization_id`/locations/global`
|
296
|
+
# @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
|
297
|
+
# @param [String] vpc_flow_logs_config_id
|
298
|
+
# Required. ID of the `VpcFlowLogsConfig`.
|
299
|
+
# @param [String] fields
|
300
|
+
# Selector specifying which fields to include in a partial response.
|
301
|
+
# @param [String] quota_user
|
302
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
303
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
304
|
+
# @param [Google::Apis::RequestOptions] options
|
305
|
+
# Request-specific options
|
306
|
+
#
|
307
|
+
# @yield [result, err] Result & error if block supplied
|
308
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
|
309
|
+
# @yieldparam err [StandardError] error object if request failed
|
310
|
+
#
|
311
|
+
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
312
|
+
#
|
313
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
+
def create_organization_location_vpc_flow_logs_config(parent, vpc_flow_logs_config_object = nil, vpc_flow_logs_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
317
|
+
command = make_simple_command(:post, 'v1/{+parent}/vpcFlowLogsConfigs', options)
|
318
|
+
command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
319
|
+
command.request_object = vpc_flow_logs_config_object
|
320
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
321
|
+
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
322
|
+
command.params['parent'] = parent unless parent.nil?
|
323
|
+
command.query['vpcFlowLogsConfigId'] = vpc_flow_logs_config_id unless vpc_flow_logs_config_id.nil?
|
324
|
+
command.query['fields'] = fields unless fields.nil?
|
325
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
326
|
+
execute_or_queue_command(command, &block)
|
327
|
+
end
|
328
|
+
|
329
|
+
# Deletes a specific `VpcFlowLogsConfig`.
|
330
|
+
# @param [String] name
|
331
|
+
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
332
|
+
# formats: - For a project-level resource: `projects/`project_id`/locations/
|
333
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For an organization-
|
334
|
+
# level resource: `organizations/`organization_id`/locations/global/
|
335
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
336
|
+
# @param [String] fields
|
337
|
+
# Selector specifying which fields to include in a partial response.
|
338
|
+
# @param [String] quota_user
|
339
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
340
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
341
|
+
# @param [Google::Apis::RequestOptions] options
|
342
|
+
# Request-specific options
|
343
|
+
#
|
344
|
+
# @yield [result, err] Result & error if block supplied
|
345
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
|
346
|
+
# @yieldparam err [StandardError] error object if request failed
|
347
|
+
#
|
348
|
+
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
349
|
+
#
|
350
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
351
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
352
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
353
|
+
def delete_organization_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
354
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
355
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
356
|
+
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
357
|
+
command.params['name'] = name unless name.nil?
|
358
|
+
command.query['fields'] = fields unless fields.nil?
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
360
|
+
execute_or_queue_command(command, &block)
|
361
|
+
end
|
362
|
+
|
363
|
+
# Gets the details of a specific `VpcFlowLogsConfig`.
|
364
|
+
# @param [String] name
|
365
|
+
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
366
|
+
# formats: - For project-level resources: `projects/`project_id`/locations/
|
367
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For organization-level
|
368
|
+
# resources: `organizations/`organization_id`/locations/global/
|
369
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
+
# @param [Google::Apis::RequestOptions] options
|
376
|
+
# Request-specific options
|
377
|
+
#
|
378
|
+
# @yield [result, err] Result & error if block supplied
|
379
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] parsed result object
|
380
|
+
# @yieldparam err [StandardError] error object if request failed
|
381
|
+
#
|
382
|
+
# @return [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig]
|
383
|
+
#
|
384
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
+
def get_organization_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
389
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
390
|
+
command.response_class = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig
|
391
|
+
command.params['name'] = name unless name.nil?
|
392
|
+
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
execute_or_queue_command(command, &block)
|
395
|
+
end
|
396
|
+
|
397
|
+
# Lists all `VpcFlowLogsConfigs` in a given organization.
|
398
|
+
# @param [String] parent
|
399
|
+
# Required. The parent resource of the VpcFlowLogsConfig, in one of the
|
400
|
+
# following formats: - For project-level resourcs: `projects/`project_id`/
|
401
|
+
# locations/global` - For organization-level resources: `organizations/`
|
402
|
+
# organization_id`/locations/global`
|
403
|
+
# @param [String] filter
|
404
|
+
# Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A
|
405
|
+
# filter expression must use the supported [CEL logic operators] (https://cloud.
|
406
|
+
# google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
|
407
|
+
# @param [String] order_by
|
408
|
+
# Optional. Field to use to sort the list.
|
409
|
+
# @param [Fixnum] page_size
|
410
|
+
# Optional. Number of `VpcFlowLogsConfigs` to return.
|
411
|
+
# @param [String] page_token
|
412
|
+
# Optional. Page token from an earlier query, as returned in `next_page_token`.
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# @param [Google::Apis::RequestOptions] options
|
419
|
+
# Request-specific options
|
420
|
+
#
|
421
|
+
# @yield [result, err] Result & error if block supplied
|
422
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse] parsed result object
|
423
|
+
# @yieldparam err [StandardError] error object if request failed
|
424
|
+
#
|
425
|
+
# @return [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse]
|
426
|
+
#
|
427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
430
|
+
def list_organization_location_vpc_flow_logs_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs', options)
|
432
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse::Representation
|
433
|
+
command.response_class = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse
|
434
|
+
command.params['parent'] = parent unless parent.nil?
|
435
|
+
command.query['filter'] = filter unless filter.nil?
|
436
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
437
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
438
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
439
|
+
command.query['fields'] = fields unless fields.nil?
|
440
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
441
|
+
execute_or_queue_command(command, &block)
|
442
|
+
end
|
443
|
+
|
444
|
+
# Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact
|
445
|
+
# same settings already exists (even if the ID is different), the creation fails.
|
446
|
+
# Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The
|
447
|
+
# following fields are not considered as settings for the purpose of the check
|
448
|
+
# mentioned above, therefore - updating another configuration with the same
|
449
|
+
# fields but different values for the following fields will fail as well: * name
|
450
|
+
# * create_time * update_time * labels * description
|
451
|
+
# @param [String] name
|
452
|
+
# Identifier. Unique name of the configuration. The name can have one of the
|
453
|
+
# following forms: - For project-level configurations: `projects/`project_id`/
|
454
|
+
# locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For
|
455
|
+
# organization-level configurations: `organizations/`organization_id`/locations/
|
456
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
457
|
+
# @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
|
458
|
+
# @param [String] update_mask
|
459
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
460
|
+
# field. For example, to change the state of the configuration to ENABLED,
|
461
|
+
# specify `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `
|
462
|
+
# vpc_flow_logs_config = ` name = "projects/my-project/locations/global/
|
463
|
+
# vpcFlowLogsConfigs/my-config" state = "ENABLED" ``
|
464
|
+
# @param [String] fields
|
465
|
+
# Selector specifying which fields to include in a partial response.
|
466
|
+
# @param [String] quota_user
|
467
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
468
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
469
|
+
# @param [Google::Apis::RequestOptions] options
|
470
|
+
# Request-specific options
|
471
|
+
#
|
472
|
+
# @yield [result, err] Result & error if block supplied
|
473
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
|
474
|
+
# @yieldparam err [StandardError] error object if request failed
|
475
|
+
#
|
476
|
+
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
477
|
+
#
|
478
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
479
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
480
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
481
|
+
def patch_organization_location_vpc_flow_logs_config(name, vpc_flow_logs_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
482
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
483
|
+
command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
484
|
+
command.request_object = vpc_flow_logs_config_object
|
485
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
486
|
+
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
487
|
+
command.params['name'] = name unless name.nil?
|
488
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
271
489
|
command.query['fields'] = fields unless fields.nil?
|
272
490
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
273
491
|
execute_or_queue_command(command, &block)
|
@@ -307,8 +525,8 @@ module Google
|
|
307
525
|
# @param [String] name
|
308
526
|
# The resource that owns the locations collection, if applicable.
|
309
527
|
# @param [Array<String>, String] extra_location_types
|
310
|
-
# Optional.
|
311
|
-
#
|
528
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
529
|
+
# field which is primarily intended for internal usage.
|
312
530
|
# @param [String] filter
|
313
531
|
# A filter to narrow down results to a preferred subset. The filtering language
|
314
532
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -834,6 +1052,13 @@ module Google
|
|
834
1052
|
# The standard list page size.
|
835
1053
|
# @param [String] page_token
|
836
1054
|
# The standard list page token.
|
1055
|
+
# @param [Boolean] return_partial_success
|
1056
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
1057
|
+
# those that are unreachable are returned in the [ListOperationsResponse.
|
1058
|
+
# unreachable] field. This can only be `true` when reading across collections e.
|
1059
|
+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
|
1060
|
+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
|
1061
|
+
# explicitly documented otherwise in service or product specific documentation.
|
837
1062
|
# @param [String] fields
|
838
1063
|
# Selector specifying which fields to include in a partial response.
|
839
1064
|
# @param [String] quota_user
|
@@ -851,7 +1076,7 @@ module Google
|
|
851
1076
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
852
1077
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
853
1078
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
854
|
-
def list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1079
|
+
def list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
855
1080
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
856
1081
|
command.response_representation = Google::Apis::NetworkmanagementV1::ListOperationsResponse::Representation
|
857
1082
|
command.response_class = Google::Apis::NetworkmanagementV1::ListOperationsResponse
|
@@ -859,19 +1084,27 @@ module Google
|
|
859
1084
|
command.query['filter'] = filter unless filter.nil?
|
860
1085
|
command.query['pageSize'] = page_size unless page_size.nil?
|
861
1086
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1087
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
862
1088
|
command.query['fields'] = fields unless fields.nil?
|
863
1089
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
864
1090
|
execute_or_queue_command(command, &block)
|
865
1091
|
end
|
866
1092
|
|
867
|
-
# Creates a
|
1093
|
+
# Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same
|
1094
|
+
# settings already exists (even if the ID is different), the creation fails.
|
1095
|
+
# Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The
|
1096
|
+
# following fields are not considered as settings for the purpose of the check
|
1097
|
+
# mentioned above, therefore - creating another configuration with the same
|
1098
|
+
# fields but different values for the following fields will fail as well: * name
|
1099
|
+
# * create_time * update_time * labels * description
|
868
1100
|
# @param [String] parent
|
869
|
-
# Required.
|
870
|
-
# projects/`
|
871
|
-
#
|
872
|
-
#
|
873
|
-
#
|
874
|
-
#
|
1101
|
+
# Required. The parent resource of the VpcFlowLogsConfig to create, in one of
|
1102
|
+
# the following formats: - For project-level resources: `projects/`project_id`/
|
1103
|
+
# locations/global` - For organization-level resources: `organizations/`
|
1104
|
+
# organization_id`/locations/global`
|
1105
|
+
# @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
|
1106
|
+
# @param [String] vpc_flow_logs_config_id
|
1107
|
+
# Required. ID of the `VpcFlowLogsConfig`.
|
875
1108
|
# @param [String] fields
|
876
1109
|
# Selector specifying which fields to include in a partial response.
|
877
1110
|
# @param [String] quota_user
|
@@ -889,23 +1122,26 @@ module Google
|
|
889
1122
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
890
1123
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
891
1124
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
892
|
-
def
|
893
|
-
command = make_simple_command(:post, 'v1/{+parent}/
|
894
|
-
command.request_representation = Google::Apis::NetworkmanagementV1::
|
895
|
-
command.request_object =
|
1125
|
+
def create_project_location_vpc_flow_logs_config(parent, vpc_flow_logs_config_object = nil, vpc_flow_logs_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1126
|
+
command = make_simple_command(:post, 'v1/{+parent}/vpcFlowLogsConfigs', options)
|
1127
|
+
command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
1128
|
+
command.request_object = vpc_flow_logs_config_object
|
896
1129
|
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
897
1130
|
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
898
1131
|
command.params['parent'] = parent unless parent.nil?
|
899
|
-
command.query['
|
1132
|
+
command.query['vpcFlowLogsConfigId'] = vpc_flow_logs_config_id unless vpc_flow_logs_config_id.nil?
|
900
1133
|
command.query['fields'] = fields unless fields.nil?
|
901
1134
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
902
1135
|
execute_or_queue_command(command, &block)
|
903
1136
|
end
|
904
1137
|
|
905
|
-
# Deletes a
|
1138
|
+
# Deletes a specific `VpcFlowLogsConfig`.
|
906
1139
|
# @param [String] name
|
907
|
-
# Required.
|
908
|
-
# /
|
1140
|
+
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
1141
|
+
# formats: - For a project-level resource: `projects/`project_id`/locations/
|
1142
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For an organization-
|
1143
|
+
# level resource: `organizations/`organization_id`/locations/global/
|
1144
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
909
1145
|
# @param [String] fields
|
910
1146
|
# Selector specifying which fields to include in a partial response.
|
911
1147
|
# @param [String] quota_user
|
@@ -923,7 +1159,7 @@ module Google
|
|
923
1159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
924
1160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
925
1161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
926
|
-
def
|
1162
|
+
def delete_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
927
1163
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
928
1164
|
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
929
1165
|
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
@@ -933,10 +1169,13 @@ module Google
|
|
933
1169
|
execute_or_queue_command(command, &block)
|
934
1170
|
end
|
935
1171
|
|
936
|
-
# Gets the
|
1172
|
+
# Gets the details of a specific `VpcFlowLogsConfig`.
|
937
1173
|
# @param [String] name
|
938
|
-
# Required.
|
939
|
-
#
|
1174
|
+
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
1175
|
+
# formats: - For project-level resources: `projects/`project_id`/locations/
|
1176
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For organization-level
|
1177
|
+
# resources: `organizations/`organization_id`/locations/global/
|
1178
|
+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
940
1179
|
# @param [String] fields
|
941
1180
|
# Selector specifying which fields to include in a partial response.
|
942
1181
|
# @param [String] quota_user
|
@@ -946,38 +1185,40 @@ module Google
|
|
946
1185
|
# Request-specific options
|
947
1186
|
#
|
948
1187
|
# @yield [result, err] Result & error if block supplied
|
949
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::
|
1188
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] parsed result object
|
950
1189
|
# @yieldparam err [StandardError] error object if request failed
|
951
1190
|
#
|
952
|
-
# @return [Google::Apis::NetworkmanagementV1::
|
1191
|
+
# @return [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig]
|
953
1192
|
#
|
954
1193
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
955
1194
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
956
1195
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
957
|
-
def
|
1196
|
+
def get_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
958
1197
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
959
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::
|
960
|
-
command.response_class = Google::Apis::NetworkmanagementV1::
|
1198
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
1199
|
+
command.response_class = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig
|
961
1200
|
command.params['name'] = name unless name.nil?
|
962
1201
|
command.query['fields'] = fields unless fields.nil?
|
963
1202
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
964
1203
|
execute_or_queue_command(command, &block)
|
965
1204
|
end
|
966
1205
|
|
967
|
-
# Lists
|
1206
|
+
# Lists all `VpcFlowLogsConfigs` in a given project.
|
968
1207
|
# @param [String] parent
|
969
|
-
# Required.
|
970
|
-
# projects/`
|
1208
|
+
# Required. The parent resource of the VpcFlowLogsConfig, in one of the
|
1209
|
+
# following formats: - For project-level resourcs: `projects/`project_id`/
|
1210
|
+
# locations/global` - For organization-level resources: `organizations/`
|
1211
|
+
# organization_id`/locations/global`
|
1212
|
+
# @param [String] filter
|
1213
|
+
# Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A
|
1214
|
+
# filter expression must use the supported [CEL logic operators] (https://cloud.
|
1215
|
+
# google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
|
1216
|
+
# @param [String] order_by
|
1217
|
+
# Optional. Field to use to sort the list.
|
971
1218
|
# @param [Fixnum] page_size
|
972
|
-
# Optional.
|
973
|
-
# return fewer than this value. If unspecified, at most 20 monitoring points
|
974
|
-
# will be returned. The maximum value is 1000; values above 1000 will be coerced
|
975
|
-
# to 1000.
|
1219
|
+
# Optional. Number of `VpcFlowLogsConfigs` to return.
|
976
1220
|
# @param [String] page_token
|
977
|
-
# Optional.
|
978
|
-
# Provide this to retrieve the subsequent page. When paginating, all other
|
979
|
-
# parameters provided to `ListMonitoringPoints` must match the call that
|
980
|
-
# provided the page token.
|
1221
|
+
# Optional. Page token from an earlier query, as returned in `next_page_token`.
|
981
1222
|
# @param [String] fields
|
982
1223
|
# Selector specifying which fields to include in a partial response.
|
983
1224
|
# @param [String] quota_user
|
@@ -987,242 +1228,21 @@ module Google
|
|
987
1228
|
# Request-specific options
|
988
1229
|
#
|
989
1230
|
# @yield [result, err] Result & error if block supplied
|
990
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::
|
1231
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse] parsed result object
|
991
1232
|
# @yieldparam err [StandardError] error object if request failed
|
992
1233
|
#
|
993
|
-
# @return [Google::Apis::NetworkmanagementV1::
|
1234
|
+
# @return [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse]
|
994
1235
|
#
|
995
1236
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
996
1237
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
997
1238
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
998
|
-
def
|
999
|
-
command = make_simple_command(:get, 'v1/{+parent}/
|
1000
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::
|
1001
|
-
command.response_class = Google::Apis::NetworkmanagementV1::
|
1002
|
-
command.params['parent'] = parent unless parent.nil?
|
1003
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1004
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1005
|
-
command.query['fields'] = fields unless fields.nil?
|
1006
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1007
|
-
execute_or_queue_command(command, &block)
|
1008
|
-
end
|
1009
|
-
|
1010
|
-
# Gets the MonitoringPoint resource.
|
1011
|
-
# @param [String] name
|
1012
|
-
# Required. Name of the resource. Format: projects/`project`/locations/`location`
|
1013
|
-
# /networkMonitoringProviders/`network_monitoring_provider`/monitoringPoints/`
|
1014
|
-
# monitoring_point`
|
1015
|
-
# @param [String] fields
|
1016
|
-
# Selector specifying which fields to include in a partial response.
|
1017
|
-
# @param [String] quota_user
|
1018
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1019
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
-
# @param [Google::Apis::RequestOptions] options
|
1021
|
-
# Request-specific options
|
1022
|
-
#
|
1023
|
-
# @yield [result, err] Result & error if block supplied
|
1024
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::MonitoringPoint] parsed result object
|
1025
|
-
# @yieldparam err [StandardError] error object if request failed
|
1026
|
-
#
|
1027
|
-
# @return [Google::Apis::NetworkmanagementV1::MonitoringPoint]
|
1028
|
-
#
|
1029
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
-
def get_project_location_network_monitoring_provider_monitoring_point(name, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
1034
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::MonitoringPoint::Representation
|
1035
|
-
command.response_class = Google::Apis::NetworkmanagementV1::MonitoringPoint
|
1036
|
-
command.params['name'] = name unless name.nil?
|
1037
|
-
command.query['fields'] = fields unless fields.nil?
|
1038
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1039
|
-
execute_or_queue_command(command, &block)
|
1040
|
-
end
|
1041
|
-
|
1042
|
-
# Lists MonitoringPoints for a given network monitoring provider.
|
1043
|
-
# @param [String] parent
|
1044
|
-
# Required. Parent value for ListMonitoringPointsRequest. Format: projects/`
|
1045
|
-
# project`/locations/`location`/networkMonitoringProviders/`
|
1046
|
-
# network_monitoring_provider`
|
1047
|
-
# @param [Fixnum] page_size
|
1048
|
-
# Optional. The maximum number of monitoring points to return. The service may
|
1049
|
-
# return fewer than this value. If unspecified, at most 20 monitoring points
|
1050
|
-
# will be returned. The maximum value is 1000; values above 1000 will be coerced
|
1051
|
-
# to 1000.
|
1052
|
-
# @param [String] page_token
|
1053
|
-
# Optional. A page token, received from a previous `ListMonitoringPoints` call.
|
1054
|
-
# Provide this to retrieve the subsequent page. When paginating, all other
|
1055
|
-
# parameters provided to `ListMonitoringPoints` must match the call that
|
1056
|
-
# provided the page token.
|
1057
|
-
# @param [String] fields
|
1058
|
-
# Selector specifying which fields to include in a partial response.
|
1059
|
-
# @param [String] quota_user
|
1060
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1061
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1062
|
-
# @param [Google::Apis::RequestOptions] options
|
1063
|
-
# Request-specific options
|
1064
|
-
#
|
1065
|
-
# @yield [result, err] Result & error if block supplied
|
1066
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::ListMonitoringPointsResponse] parsed result object
|
1067
|
-
# @yieldparam err [StandardError] error object if request failed
|
1068
|
-
#
|
1069
|
-
# @return [Google::Apis::NetworkmanagementV1::ListMonitoringPointsResponse]
|
1070
|
-
#
|
1071
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1072
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1073
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1074
|
-
def list_project_location_network_monitoring_provider_monitoring_points(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1075
|
-
command = make_simple_command(:get, 'v1/{+parent}/monitoringPoints', options)
|
1076
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::ListMonitoringPointsResponse::Representation
|
1077
|
-
command.response_class = Google::Apis::NetworkmanagementV1::ListMonitoringPointsResponse
|
1078
|
-
command.params['parent'] = parent unless parent.nil?
|
1079
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1080
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1081
|
-
command.query['fields'] = fields unless fields.nil?
|
1082
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1083
|
-
execute_or_queue_command(command, &block)
|
1084
|
-
end
|
1085
|
-
|
1086
|
-
# Gets the NetworkPath resource.
|
1087
|
-
# @param [String] name
|
1088
|
-
# Required. Name of the resource. Format: projects/`project`/locations/`location`
|
1089
|
-
# /networkMonitoringProviders/`network_monitoring_provider`/networkPaths/`
|
1090
|
-
# network_path`
|
1091
|
-
# @param [String] fields
|
1092
|
-
# Selector specifying which fields to include in a partial response.
|
1093
|
-
# @param [String] quota_user
|
1094
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1095
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1096
|
-
# @param [Google::Apis::RequestOptions] options
|
1097
|
-
# Request-specific options
|
1098
|
-
#
|
1099
|
-
# @yield [result, err] Result & error if block supplied
|
1100
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::NetworkPath] parsed result object
|
1101
|
-
# @yieldparam err [StandardError] error object if request failed
|
1102
|
-
#
|
1103
|
-
# @return [Google::Apis::NetworkmanagementV1::NetworkPath]
|
1104
|
-
#
|
1105
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1106
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1107
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1108
|
-
def get_project_location_network_monitoring_provider_network_path(name, fields: nil, quota_user: nil, options: nil, &block)
|
1109
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
1110
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::NetworkPath::Representation
|
1111
|
-
command.response_class = Google::Apis::NetworkmanagementV1::NetworkPath
|
1112
|
-
command.params['name'] = name unless name.nil?
|
1113
|
-
command.query['fields'] = fields unless fields.nil?
|
1114
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1115
|
-
execute_or_queue_command(command, &block)
|
1116
|
-
end
|
1117
|
-
|
1118
|
-
# Lists NetworkPaths for a given network monitoring provider.
|
1119
|
-
# @param [String] parent
|
1120
|
-
# Required. Parent value for ListNetworkPathsRequest. Format: projects/`project`/
|
1121
|
-
# locations/`location`/networkMonitoringProviders/`network_monitoring_provider`
|
1122
|
-
# @param [Fixnum] page_size
|
1123
|
-
# Optional. The maximum number of network paths to return. The service may
|
1124
|
-
# return fewer than this value. If unspecified, at most 20 network pathswill be
|
1125
|
-
# returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
1126
|
-
# @param [String] page_token
|
1127
|
-
# Optional. A page token, received from a previous `ListNetworkPaths` call.
|
1128
|
-
# Provide this to retrieve the subsequent page. When paginating, all other
|
1129
|
-
# parameters provided to `ListNetworkPaths` must match the call that provided
|
1130
|
-
# the page token.
|
1131
|
-
# @param [String] fields
|
1132
|
-
# Selector specifying which fields to include in a partial response.
|
1133
|
-
# @param [String] quota_user
|
1134
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1135
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1136
|
-
# @param [Google::Apis::RequestOptions] options
|
1137
|
-
# Request-specific options
|
1138
|
-
#
|
1139
|
-
# @yield [result, err] Result & error if block supplied
|
1140
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::ListNetworkPathsResponse] parsed result object
|
1141
|
-
# @yieldparam err [StandardError] error object if request failed
|
1142
|
-
#
|
1143
|
-
# @return [Google::Apis::NetworkmanagementV1::ListNetworkPathsResponse]
|
1144
|
-
#
|
1145
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1146
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1147
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1148
|
-
def list_project_location_network_monitoring_provider_network_paths(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1149
|
-
command = make_simple_command(:get, 'v1/{+parent}/networkPaths', options)
|
1150
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::ListNetworkPathsResponse::Representation
|
1151
|
-
command.response_class = Google::Apis::NetworkmanagementV1::ListNetworkPathsResponse
|
1152
|
-
command.params['parent'] = parent unless parent.nil?
|
1153
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1154
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1155
|
-
command.query['fields'] = fields unless fields.nil?
|
1156
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1157
|
-
execute_or_queue_command(command, &block)
|
1158
|
-
end
|
1159
|
-
|
1160
|
-
# Gets the WebPath resource.
|
1161
|
-
# @param [String] name
|
1162
|
-
# Required. Name of the resource.. Format: projects/`project`/locations/`
|
1163
|
-
# location`/networkMonitoringProviders/`network_monitoring_provider`/webPaths/`
|
1164
|
-
# web_path`
|
1165
|
-
# @param [String] fields
|
1166
|
-
# Selector specifying which fields to include in a partial response.
|
1167
|
-
# @param [String] quota_user
|
1168
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1169
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1170
|
-
# @param [Google::Apis::RequestOptions] options
|
1171
|
-
# Request-specific options
|
1172
|
-
#
|
1173
|
-
# @yield [result, err] Result & error if block supplied
|
1174
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::WebPath] parsed result object
|
1175
|
-
# @yieldparam err [StandardError] error object if request failed
|
1176
|
-
#
|
1177
|
-
# @return [Google::Apis::NetworkmanagementV1::WebPath]
|
1178
|
-
#
|
1179
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1180
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1181
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1182
|
-
def get_project_location_network_monitoring_provider_web_path(name, fields: nil, quota_user: nil, options: nil, &block)
|
1183
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
1184
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::WebPath::Representation
|
1185
|
-
command.response_class = Google::Apis::NetworkmanagementV1::WebPath
|
1186
|
-
command.params['name'] = name unless name.nil?
|
1187
|
-
command.query['fields'] = fields unless fields.nil?
|
1188
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1189
|
-
execute_or_queue_command(command, &block)
|
1190
|
-
end
|
1191
|
-
|
1192
|
-
# Lists WebPaths for a given network monitoring provider.
|
1193
|
-
# @param [String] parent
|
1194
|
-
# Required. Parent value for ListWebPathsRequest. Format: projects/`project`/
|
1195
|
-
# locations/`location`/networkMonitoringProviders/`network_monitoring_provider`
|
1196
|
-
# @param [Fixnum] page_size
|
1197
|
-
# Optional. The maximum number of web paths to return. The service may return
|
1198
|
-
# fewer than this value. If unspecified, at most 20 web paths will be returned.
|
1199
|
-
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
1200
|
-
# @param [String] page_token
|
1201
|
-
# Optional. A page token, received from a previous `ListWebPaths` call. Provide
|
1202
|
-
# this to retrieve the subsequent page. When paginating, all other parameters
|
1203
|
-
# provided to `ListWebPaths` must match the call that provided the page token.
|
1204
|
-
# @param [String] fields
|
1205
|
-
# Selector specifying which fields to include in a partial response.
|
1206
|
-
# @param [String] quota_user
|
1207
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1208
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1209
|
-
# @param [Google::Apis::RequestOptions] options
|
1210
|
-
# Request-specific options
|
1211
|
-
#
|
1212
|
-
# @yield [result, err] Result & error if block supplied
|
1213
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::ListWebPathsResponse] parsed result object
|
1214
|
-
# @yieldparam err [StandardError] error object if request failed
|
1215
|
-
#
|
1216
|
-
# @return [Google::Apis::NetworkmanagementV1::ListWebPathsResponse]
|
1217
|
-
#
|
1218
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1219
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1220
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1221
|
-
def list_project_location_network_monitoring_provider_web_paths(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1222
|
-
command = make_simple_command(:get, 'v1/{+parent}/webPaths', options)
|
1223
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::ListWebPathsResponse::Representation
|
1224
|
-
command.response_class = Google::Apis::NetworkmanagementV1::ListWebPathsResponse
|
1239
|
+
def list_project_location_vpc_flow_logs_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1240
|
+
command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs', options)
|
1241
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse::Representation
|
1242
|
+
command.response_class = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse
|
1225
1243
|
command.params['parent'] = parent unless parent.nil?
|
1244
|
+
command.query['filter'] = filter unless filter.nil?
|
1245
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1226
1246
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1227
1247
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1228
1248
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1230,21 +1250,26 @@ module Google
|
|
1230
1250
|
execute_or_queue_command(command, &block)
|
1231
1251
|
end
|
1232
1252
|
|
1233
|
-
#
|
1234
|
-
# settings already exists (even if the ID is different), the creation fails.
|
1235
|
-
# Notes: 1.
|
1253
|
+
# Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact
|
1254
|
+
# same settings already exists (even if the ID is different), the creation fails.
|
1255
|
+
# Notes: 1. Updating a configuration with `state=DISABLED` will fail. 2. The
|
1236
1256
|
# following fields are not considered as settings for the purpose of the check
|
1237
|
-
# mentioned above, therefore -
|
1257
|
+
# mentioned above, therefore - updating another configuration with the same
|
1238
1258
|
# fields but different values for the following fields will fail as well: * name
|
1239
1259
|
# * create_time * update_time * labels * description
|
1240
|
-
# @param [String]
|
1241
|
-
#
|
1242
|
-
#
|
1243
|
-
# locations/global
|
1244
|
-
# organization_id`/locations/
|
1260
|
+
# @param [String] name
|
1261
|
+
# Identifier. Unique name of the configuration. The name can have one of the
|
1262
|
+
# following forms: - For project-level configurations: `projects/`project_id`/
|
1263
|
+
# locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For
|
1264
|
+
# organization-level configurations: `organizations/`organization_id`/locations/
|
1265
|
+
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
1245
1266
|
# @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
|
1246
|
-
# @param [String]
|
1247
|
-
# Required.
|
1267
|
+
# @param [String] update_mask
|
1268
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
1269
|
+
# field. For example, to change the state of the configuration to ENABLED,
|
1270
|
+
# specify `update_mask` = `"state"`, and the `vpc_flow_logs_config` would be: `
|
1271
|
+
# vpc_flow_logs_config = ` name = "projects/my-project/locations/global/
|
1272
|
+
# vpcFlowLogsConfigs/my-config" state = "ENABLED" ``
|
1248
1273
|
# @param [String] fields
|
1249
1274
|
# Selector specifying which fields to include in a partial response.
|
1250
1275
|
# @param [String] quota_user
|
@@ -1262,99 +1287,28 @@ module Google
|
|
1262
1287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1263
1288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1264
1289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1265
|
-
def
|
1266
|
-
command = make_simple_command(:
|
1290
|
+
def patch_project_location_vpc_flow_logs_config(name, vpc_flow_logs_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1291
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1267
1292
|
command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
1268
1293
|
command.request_object = vpc_flow_logs_config_object
|
1269
1294
|
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
1270
1295
|
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
1271
|
-
command.params['parent'] = parent unless parent.nil?
|
1272
|
-
command.query['vpcFlowLogsConfigId'] = vpc_flow_logs_config_id unless vpc_flow_logs_config_id.nil?
|
1273
|
-
command.query['fields'] = fields unless fields.nil?
|
1274
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1275
|
-
execute_or_queue_command(command, &block)
|
1276
|
-
end
|
1277
|
-
|
1278
|
-
# Deletes a specific `VpcFlowLogsConfig`.
|
1279
|
-
# @param [String] name
|
1280
|
-
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
1281
|
-
# formats: - For a project-level resource: `projects/`project_id`/locations/
|
1282
|
-
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For an organization-
|
1283
|
-
# level resource: `organizations/`organization_id`/locations/global/
|
1284
|
-
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
1285
|
-
# @param [String] fields
|
1286
|
-
# Selector specifying which fields to include in a partial response.
|
1287
|
-
# @param [String] quota_user
|
1288
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1289
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1290
|
-
# @param [Google::Apis::RequestOptions] options
|
1291
|
-
# Request-specific options
|
1292
|
-
#
|
1293
|
-
# @yield [result, err] Result & error if block supplied
|
1294
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
|
1295
|
-
# @yieldparam err [StandardError] error object if request failed
|
1296
|
-
#
|
1297
|
-
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
1298
|
-
#
|
1299
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1300
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1301
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1302
|
-
def delete_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1303
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1304
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
1305
|
-
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
1306
|
-
command.params['name'] = name unless name.nil?
|
1307
|
-
command.query['fields'] = fields unless fields.nil?
|
1308
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1309
|
-
execute_or_queue_command(command, &block)
|
1310
|
-
end
|
1311
|
-
|
1312
|
-
# Gets the details of a specific `VpcFlowLogsConfig`.
|
1313
|
-
# @param [String] name
|
1314
|
-
# Required. The resource name of the VpcFlowLogsConfig, in one of the following
|
1315
|
-
# formats: - For project-level resources: `projects/`project_id`/locations/
|
1316
|
-
# global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For organization-level
|
1317
|
-
# resources: `organizations/`organization_id`/locations/global/
|
1318
|
-
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
|
1319
|
-
# @param [String] fields
|
1320
|
-
# Selector specifying which fields to include in a partial response.
|
1321
|
-
# @param [String] quota_user
|
1322
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1323
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1324
|
-
# @param [Google::Apis::RequestOptions] options
|
1325
|
-
# Request-specific options
|
1326
|
-
#
|
1327
|
-
# @yield [result, err] Result & error if block supplied
|
1328
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] parsed result object
|
1329
|
-
# @yieldparam err [StandardError] error object if request failed
|
1330
|
-
#
|
1331
|
-
# @return [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig]
|
1332
|
-
#
|
1333
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1334
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1335
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1336
|
-
def get_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1337
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
1338
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
|
1339
|
-
command.response_class = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig
|
1340
1296
|
command.params['name'] = name unless name.nil?
|
1297
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1341
1298
|
command.query['fields'] = fields unless fields.nil?
|
1342
1299
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1343
1300
|
execute_or_queue_command(command, &block)
|
1344
1301
|
end
|
1345
1302
|
|
1346
|
-
#
|
1303
|
+
# QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow
|
1304
|
+
# Logs configurations applicable to the specified project.
|
1347
1305
|
# @param [String] parent
|
1348
|
-
# Required. The parent resource of the VpcFlowLogsConfig, in
|
1349
|
-
# following
|
1350
|
-
# locations/global` - For organization-level resources: `organizations/`
|
1351
|
-
# organization_id`/locations/global`
|
1306
|
+
# Required. The parent resource of the VpcFlowLogsConfig, specified in the
|
1307
|
+
# following format: `projects/`project_id`/locations/global`
|
1352
1308
|
# @param [String] filter
|
1353
1309
|
# Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A
|
1354
1310
|
# filter expression must use the supported [CEL logic operators] (https://cloud.
|
1355
1311
|
# google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
|
1356
|
-
# @param [String] order_by
|
1357
|
-
# Optional. Field to use to sort the list.
|
1358
1312
|
# @param [Fixnum] page_size
|
1359
1313
|
# Optional. Number of `VpcFlowLogsConfigs` to return.
|
1360
1314
|
# @param [String] page_token
|
@@ -1368,21 +1322,20 @@ module Google
|
|
1368
1322
|
# Request-specific options
|
1369
1323
|
#
|
1370
1324
|
# @yield [result, err] Result & error if block supplied
|
1371
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::
|
1325
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::QueryOrgVpcFlowLogsConfigsResponse] parsed result object
|
1372
1326
|
# @yieldparam err [StandardError] error object if request failed
|
1373
1327
|
#
|
1374
|
-
# @return [Google::Apis::NetworkmanagementV1::
|
1328
|
+
# @return [Google::Apis::NetworkmanagementV1::QueryOrgVpcFlowLogsConfigsResponse]
|
1375
1329
|
#
|
1376
1330
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1377
1331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1378
1332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1379
|
-
def
|
1380
|
-
command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs', options)
|
1381
|
-
command.response_representation = Google::Apis::NetworkmanagementV1::
|
1382
|
-
command.response_class = Google::Apis::NetworkmanagementV1::
|
1333
|
+
def query_project_location_vpc_flow_logs_config_org_vpc_flow_logs_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1334
|
+
command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs', options)
|
1335
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::QueryOrgVpcFlowLogsConfigsResponse::Representation
|
1336
|
+
command.response_class = Google::Apis::NetworkmanagementV1::QueryOrgVpcFlowLogsConfigsResponse
|
1383
1337
|
command.params['parent'] = parent unless parent.nil?
|
1384
1338
|
command.query['filter'] = filter unless filter.nil?
|
1385
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
1386
1339
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1387
1340
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1388
1341
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1390,26 +1343,24 @@ module Google
|
|
1390
1343
|
execute_or_queue_command(command, &block)
|
1391
1344
|
end
|
1392
1345
|
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
#
|
1396
|
-
#
|
1397
|
-
#
|
1398
|
-
#
|
1399
|
-
#
|
1400
|
-
#
|
1401
|
-
#
|
1402
|
-
#
|
1403
|
-
#
|
1404
|
-
#
|
1405
|
-
#
|
1406
|
-
#
|
1407
|
-
# @param [String]
|
1408
|
-
# Required.
|
1409
|
-
#
|
1410
|
-
#
|
1411
|
-
# vpc_flow_logs_config = ` name = "projects/my-project/locations/global/
|
1412
|
-
# vpcFlowLogsConfigs/my-config" state = "ENABLED" ``
|
1346
|
+
# ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs
|
1347
|
+
# configurations applicable to a specified resource.
|
1348
|
+
# @param [String] parent
|
1349
|
+
# Required. The parent resource of the VpcFlowLogsConfig, specified in the
|
1350
|
+
# following format: `projects/`project_id`/locations/global`
|
1351
|
+
# @param [String] filter
|
1352
|
+
# Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter
|
1353
|
+
# expression. A filter expression must use the supported [CEL logic operators] (
|
1354
|
+
# https://cloud.google.com/vpc/docs/about-flow-logs-records#
|
1355
|
+
# supported_cel_logic_operators).
|
1356
|
+
# @param [Fixnum] page_size
|
1357
|
+
# Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.
|
1358
|
+
# @param [String] page_token
|
1359
|
+
# Optional. Page token from an earlier query, as returned in `next_page_token`.
|
1360
|
+
# @param [String] resource
|
1361
|
+
# Required. The resource to get the effective VPC Flow Logs configuration for.
|
1362
|
+
# The resource must belong to the same project as the parent. The resource must
|
1363
|
+
# be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.
|
1413
1364
|
# @param [String] fields
|
1414
1365
|
# Selector specifying which fields to include in a partial response.
|
1415
1366
|
# @param [String] quota_user
|
@@ -1419,22 +1370,23 @@ module Google
|
|
1419
1370
|
# Request-specific options
|
1420
1371
|
#
|
1421
1372
|
# @yield [result, err] Result & error if block supplied
|
1422
|
-
# @yieldparam result [Google::Apis::NetworkmanagementV1::
|
1373
|
+
# @yieldparam result [Google::Apis::NetworkmanagementV1::ShowEffectiveFlowLogsConfigsResponse] parsed result object
|
1423
1374
|
# @yieldparam err [StandardError] error object if request failed
|
1424
1375
|
#
|
1425
|
-
# @return [Google::Apis::NetworkmanagementV1::
|
1376
|
+
# @return [Google::Apis::NetworkmanagementV1::ShowEffectiveFlowLogsConfigsResponse]
|
1426
1377
|
#
|
1427
1378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1428
1379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1429
1380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1430
|
-
def
|
1431
|
-
command = make_simple_command(:
|
1432
|
-
command.
|
1433
|
-
command.
|
1434
|
-
command.
|
1435
|
-
command.
|
1436
|
-
command.
|
1437
|
-
command.query['
|
1381
|
+
def show_project_location_vpc_flow_logs_config_effective_flow_logs_configs(parent, filter: nil, page_size: nil, page_token: nil, resource: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1382
|
+
command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs', options)
|
1383
|
+
command.response_representation = Google::Apis::NetworkmanagementV1::ShowEffectiveFlowLogsConfigsResponse::Representation
|
1384
|
+
command.response_class = Google::Apis::NetworkmanagementV1::ShowEffectiveFlowLogsConfigsResponse
|
1385
|
+
command.params['parent'] = parent unless parent.nil?
|
1386
|
+
command.query['filter'] = filter unless filter.nil?
|
1387
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1388
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1389
|
+
command.query['resource'] = resource unless resource.nil?
|
1438
1390
|
command.query['fields'] = fields unless fields.nil?
|
1439
1391
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1440
1392
|
execute_or_queue_command(command, &block)
|