google-apis-networkmanagement_v1 0.52.0 → 0.53.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bb7a0495d41b90de7e71e154b6a3a5c79d8f19bb7a606f12e4eb25bb2c8ec9a
4
- data.tar.gz: 764bfa956c72f65540d1f15933f39e9685557ec60aba5c3d9b0dfe10fcd0dc2a
3
+ metadata.gz: a00964cbfb2214545aa3dfb78b1c2dc5779ae0a5c7bc7577a27354127f5137db
4
+ data.tar.gz: c2a21b0648a6430ed313628819f069a7178153d10b679fd3050f04ebd1cff3e5
5
5
  SHA512:
6
- metadata.gz: f5b7fa08d823803eb09d834516c9329274b039ab784d6131cdc53db6fde93324f64c9376bbad984bdbc1908b3dfe3fbb34be8e977a2392147ec120dfa0aef0a4
7
- data.tar.gz: ab6efd8960244fbd0c21824cec149380c7e53f022d0364fffb51ab879783f10dfdd4022ff0bf1a547dd409a832b05d6ec838317074f9f517e987d851c60dd108
6
+ metadata.gz: 3432578ece886ec77b11d3342736a03a7b2de4831664a70a448d35aed83ae816689696e7742d04ca1fef0251c445b80a94bd7ddbdc531705538568c87098d9c1
7
+ data.tar.gz: eff41110f33b05f2cadde5c82c00ac709968e160f8bf116484fbc46ded68306e212ef580d02ef8232037edb4398911197178e38685659d9c36c54414739244e4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networkmanagement_v1
2
2
 
3
+ ### v0.53.0 (2024-12-15)
4
+
5
+ * Regenerated from discovery document revision 20241210
6
+
3
7
  ### v0.52.0 (2024-12-08)
4
8
 
5
9
  * Regenerated from discovery document revision 20241202
@@ -1418,6 +1418,37 @@ module Google
1418
1418
  end
1419
1419
  end
1420
1420
 
1421
+ # Response for the `ListVpcFlowLogsConfigs` method.
1422
+ class ListVpcFlowLogsConfigsResponse
1423
+ include Google::Apis::Core::Hashable
1424
+
1425
+ # Page token to fetch the next set of configurations.
1426
+ # Corresponds to the JSON property `nextPageToken`
1427
+ # @return [String]
1428
+ attr_accessor :next_page_token
1429
+
1430
+ # Locations that could not be reached (when querying all locations with `-`).
1431
+ # Corresponds to the JSON property `unreachable`
1432
+ # @return [Array<String>]
1433
+ attr_accessor :unreachable
1434
+
1435
+ # List of VPC Flow Log configurations.
1436
+ # Corresponds to the JSON property `vpcFlowLogsConfigs`
1437
+ # @return [Array<Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig>]
1438
+ attr_accessor :vpc_flow_logs_configs
1439
+
1440
+ def initialize(**args)
1441
+ update!(**args)
1442
+ end
1443
+
1444
+ # Update properties of this object
1445
+ def update!(**args)
1446
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1447
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1448
+ @vpc_flow_logs_configs = args[:vpc_flow_logs_configs] if args.key?(:vpc_flow_logs_configs)
1449
+ end
1450
+ end
1451
+
1421
1452
  # For display only. Metadata associated with a specific load balancer backend.
1422
1453
  class LoadBalancerBackend
1423
1454
  include Google::Apis::Core::Hashable
@@ -2301,14 +2332,15 @@ module Google
2301
2332
  class RouteInfo
2302
2333
  include Google::Apis::Core::Hashable
2303
2334
 
2304
- # For advertised routes, the URI of their next hop, i.e. the URI of the hybrid
2335
+ # For ADVERTISED routes, the URI of their next hop, i.e. the URI of the hybrid
2305
2336
  # endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the
2306
2337
  # advertised prefix is advertised through, or URI of the source peered network.
2338
+ # Deprecated in favor of the next_hop_uri field, not used in new tests.
2307
2339
  # Corresponds to the JSON property `advertisedRouteNextHopUri`
2308
2340
  # @return [String]
2309
2341
  attr_accessor :advertised_route_next_hop_uri
2310
2342
 
2311
- # For advertised dynamic routes, the URI of the Cloud Router that advertised the
2343
+ # For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised the
2312
2344
  # corresponding IP prefix.
2313
2345
  # Corresponds to the JSON property `advertisedRouteSourceRouterUri`
2314
2346
  # @return [String]
@@ -2319,7 +2351,7 @@ module Google
2319
2351
  # @return [String]
2320
2352
  attr_accessor :dest_ip_range
2321
2353
 
2322
- # Destination port ranges of the route. Policy based routes only.
2354
+ # Destination port ranges of the route. POLICY_BASED routes only.
2323
2355
  # Corresponds to the JSON property `destPortRanges`
2324
2356
  # @return [Array<String>]
2325
2357
  attr_accessor :dest_port_ranges
@@ -2334,47 +2366,82 @@ module Google
2334
2366
  # @return [Array<String>]
2335
2367
  attr_accessor :instance_tags
2336
2368
 
2337
- # URI of a NCC Hub. NCC_HUB routes only.
2369
+ # For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub,
2370
+ # the URI of the corresponding route in NCC Hub's routing table.
2371
+ # Corresponds to the JSON property `nccHubRouteUri`
2372
+ # @return [String]
2373
+ attr_accessor :ncc_hub_route_uri
2374
+
2375
+ # URI of the NCC Hub the route is advertised by. PEERING_SUBNET and
2376
+ # PEERING_DYNAMIC routes that are advertised by NCC Hub only.
2338
2377
  # Corresponds to the JSON property `nccHubUri`
2339
2378
  # @return [String]
2340
2379
  attr_accessor :ncc_hub_uri
2341
2380
 
2342
- # URI of a NCC Spoke. NCC_HUB routes only.
2381
+ # URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes
2382
+ # that are advertised by NCC Hub only.
2343
2383
  # Corresponds to the JSON property `nccSpokeUri`
2344
2384
  # @return [String]
2345
2385
  attr_accessor :ncc_spoke_uri
2346
2386
 
2347
- # URI of a Compute Engine network. NETWORK routes only.
2387
+ # URI of a VPC network where route is located.
2348
2388
  # Corresponds to the JSON property `networkUri`
2349
2389
  # @return [String]
2350
2390
  attr_accessor :network_uri
2351
2391
 
2352
- # Next hop of the route.
2392
+ # String type of the next hop of the route (for example, "VPN tunnel").
2393
+ # Deprecated in favor of the next_hop_type and next_hop_uri fields, not used in
2394
+ # new tests.
2353
2395
  # Corresponds to the JSON property `nextHop`
2354
2396
  # @return [String]
2355
2397
  attr_accessor :next_hop
2356
2398
 
2399
+ # URI of a VPC network where the next hop resource is located.
2400
+ # Corresponds to the JSON property `nextHopNetworkUri`
2401
+ # @return [String]
2402
+ attr_accessor :next_hop_network_uri
2403
+
2357
2404
  # Type of next hop.
2358
2405
  # Corresponds to the JSON property `nextHopType`
2359
2406
  # @return [String]
2360
2407
  attr_accessor :next_hop_type
2361
2408
 
2409
+ # URI of the next hop resource.
2410
+ # Corresponds to the JSON property `nextHopUri`
2411
+ # @return [String]
2412
+ attr_accessor :next_hop_uri
2413
+
2414
+ # For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of the
2415
+ # originating SUBNET/STATIC/DYNAMIC route.
2416
+ # Corresponds to the JSON property `originatingRouteDisplayName`
2417
+ # @return [String]
2418
+ attr_accessor :originating_route_display_name
2419
+
2420
+ # For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating
2421
+ # SUBNET/STATIC route.
2422
+ # Corresponds to the JSON property `originatingRouteUri`
2423
+ # @return [String]
2424
+ attr_accessor :originating_route_uri
2425
+
2362
2426
  # Priority of the route.
2363
2427
  # Corresponds to the JSON property `priority`
2364
2428
  # @return [Fixnum]
2365
2429
  attr_accessor :priority
2366
2430
 
2367
- # Protocols of the route. Policy based routes only.
2431
+ # Protocols of the route. POLICY_BASED routes only.
2368
2432
  # Corresponds to the JSON property `protocols`
2369
2433
  # @return [Array<String>]
2370
2434
  attr_accessor :protocols
2371
2435
 
2372
- # Region of the route (if applicable).
2436
+ # Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED
2437
+ # routes only. If set for POLICY_BASED route, this is a region of VLAN
2438
+ # attachments for Cloud Interconnect the route applies to.
2373
2439
  # Corresponds to the JSON property `region`
2374
2440
  # @return [String]
2375
2441
  attr_accessor :region
2376
2442
 
2377
- # Indicates where route is applicable.
2443
+ # Indicates where route is applicable. Deprecated, routes with NCC_HUB scope are
2444
+ # not included in the trace in new tests.
2378
2445
  # Corresponds to the JSON property `routeScope`
2379
2446
  # @return [String]
2380
2447
  attr_accessor :route_scope
@@ -2384,17 +2451,18 @@ module Google
2384
2451
  # @return [String]
2385
2452
  attr_accessor :route_type
2386
2453
 
2387
- # Source IP address range of the route. Policy based routes only.
2454
+ # Source IP address range of the route. POLICY_BASED routes only.
2388
2455
  # Corresponds to the JSON property `srcIpRange`
2389
2456
  # @return [String]
2390
2457
  attr_accessor :src_ip_range
2391
2458
 
2392
- # Source port ranges of the route. Policy based routes only.
2459
+ # Source port ranges of the route. POLICY_BASED routes only.
2393
2460
  # Corresponds to the JSON property `srcPortRanges`
2394
2461
  # @return [Array<String>]
2395
2462
  attr_accessor :src_port_ranges
2396
2463
 
2397
- # URI of a route (if applicable).
2464
+ # URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) and
2465
+ # POLICY_BASED routes only.
2398
2466
  # Corresponds to the JSON property `uri`
2399
2467
  # @return [String]
2400
2468
  attr_accessor :uri
@@ -2411,11 +2479,16 @@ module Google
2411
2479
  @dest_port_ranges = args[:dest_port_ranges] if args.key?(:dest_port_ranges)
2412
2480
  @display_name = args[:display_name] if args.key?(:display_name)
2413
2481
  @instance_tags = args[:instance_tags] if args.key?(:instance_tags)
2482
+ @ncc_hub_route_uri = args[:ncc_hub_route_uri] if args.key?(:ncc_hub_route_uri)
2414
2483
  @ncc_hub_uri = args[:ncc_hub_uri] if args.key?(:ncc_hub_uri)
2415
2484
  @ncc_spoke_uri = args[:ncc_spoke_uri] if args.key?(:ncc_spoke_uri)
2416
2485
  @network_uri = args[:network_uri] if args.key?(:network_uri)
2417
2486
  @next_hop = args[:next_hop] if args.key?(:next_hop)
2487
+ @next_hop_network_uri = args[:next_hop_network_uri] if args.key?(:next_hop_network_uri)
2418
2488
  @next_hop_type = args[:next_hop_type] if args.key?(:next_hop_type)
2489
+ @next_hop_uri = args[:next_hop_uri] if args.key?(:next_hop_uri)
2490
+ @originating_route_display_name = args[:originating_route_display_name] if args.key?(:originating_route_display_name)
2491
+ @originating_route_uri = args[:originating_route_uri] if args.key?(:originating_route_uri)
2419
2492
  @priority = args[:priority] if args.key?(:priority)
2420
2493
  @protocols = args[:protocols] if args.key?(:protocols)
2421
2494
  @region = args[:region] if args.key?(:region)
@@ -2884,6 +2957,115 @@ module Google
2884
2957
  end
2885
2958
  end
2886
2959
 
2960
+ # A configuration to generate VPC Flow Logs.
2961
+ class VpcFlowLogsConfig
2962
+ include Google::Apis::Core::Hashable
2963
+
2964
+ # Optional. The aggregation interval for the logs. Default value is
2965
+ # INTERVAL_5_SEC.
2966
+ # Corresponds to the JSON property `aggregationInterval`
2967
+ # @return [String]
2968
+ attr_accessor :aggregation_interval
2969
+
2970
+ # Output only. The time the config was created.
2971
+ # Corresponds to the JSON property `createTime`
2972
+ # @return [String]
2973
+ attr_accessor :create_time
2974
+
2975
+ # Optional. The user-supplied description of the VPC Flow Logs configuration.
2976
+ # Maximum of 512 characters.
2977
+ # Corresponds to the JSON property `description`
2978
+ # @return [String]
2979
+ attr_accessor :description
2980
+
2981
+ # Optional. Export filter used to define which VPC Flow Logs should be logged.
2982
+ # Corresponds to the JSON property `filterExpr`
2983
+ # @return [String]
2984
+ attr_accessor :filter_expr
2985
+
2986
+ # Optional. The value of the field must be in (0, 1]. The sampling rate of VPC
2987
+ # Flow Logs where 1.0 means all collected logs are reported. Setting the
2988
+ # sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use
2989
+ # the state field instead. Default value is 1.0.
2990
+ # Corresponds to the JSON property `flowSampling`
2991
+ # @return [Float]
2992
+ attr_accessor :flow_sampling
2993
+
2994
+ # Traffic will be logged from the Interconnect Attachment. Format: projects/`
2995
+ # project_id`/regions/`region`/interconnectAttachments/`name`
2996
+ # Corresponds to the JSON property `interconnectAttachment`
2997
+ # @return [String]
2998
+ attr_accessor :interconnect_attachment
2999
+
3000
+ # Optional. Resource labels to represent user-provided metadata.
3001
+ # Corresponds to the JSON property `labels`
3002
+ # @return [Hash<String,String>]
3003
+ attr_accessor :labels
3004
+
3005
+ # Optional. Configures whether all, none or a subset of metadata fields should
3006
+ # be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
3007
+ # Corresponds to the JSON property `metadata`
3008
+ # @return [String]
3009
+ attr_accessor :metadata
3010
+
3011
+ # Optional. Custom metadata fields to include in the reported VPC flow logs. Can
3012
+ # only be specified if "metadata" was set to CUSTOM_METADATA.
3013
+ # Corresponds to the JSON property `metadataFields`
3014
+ # @return [Array<String>]
3015
+ attr_accessor :metadata_fields
3016
+
3017
+ # Identifier. Unique name of the configuration using the form: `projects/`
3018
+ # project_id`/locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
3019
+ # Corresponds to the JSON property `name`
3020
+ # @return [String]
3021
+ attr_accessor :name
3022
+
3023
+ # Optional. The state of the VPC Flow Log configuration. Default value is
3024
+ # ENABLED. When creating a new configuration, it must be enabled.
3025
+ # Corresponds to the JSON property `state`
3026
+ # @return [String]
3027
+ attr_accessor :state
3028
+
3029
+ # Output only. A diagnostic bit - describes the state of the configured target
3030
+ # resource for diagnostic purposes.
3031
+ # Corresponds to the JSON property `targetResourceState`
3032
+ # @return [String]
3033
+ attr_accessor :target_resource_state
3034
+
3035
+ # Output only. The time the config was updated.
3036
+ # Corresponds to the JSON property `updateTime`
3037
+ # @return [String]
3038
+ attr_accessor :update_time
3039
+
3040
+ # Traffic will be logged from the VPN Tunnel. Format: projects/`project_id`/
3041
+ # regions/`region`/vpnTunnels/`name`
3042
+ # Corresponds to the JSON property `vpnTunnel`
3043
+ # @return [String]
3044
+ attr_accessor :vpn_tunnel
3045
+
3046
+ def initialize(**args)
3047
+ update!(**args)
3048
+ end
3049
+
3050
+ # Update properties of this object
3051
+ def update!(**args)
3052
+ @aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
3053
+ @create_time = args[:create_time] if args.key?(:create_time)
3054
+ @description = args[:description] if args.key?(:description)
3055
+ @filter_expr = args[:filter_expr] if args.key?(:filter_expr)
3056
+ @flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling)
3057
+ @interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
3058
+ @labels = args[:labels] if args.key?(:labels)
3059
+ @metadata = args[:metadata] if args.key?(:metadata)
3060
+ @metadata_fields = args[:metadata_fields] if args.key?(:metadata_fields)
3061
+ @name = args[:name] if args.key?(:name)
3062
+ @state = args[:state] if args.key?(:state)
3063
+ @target_resource_state = args[:target_resource_state] if args.key?(:target_resource_state)
3064
+ @update_time = args[:update_time] if args.key?(:update_time)
3065
+ @vpn_tunnel = args[:vpn_tunnel] if args.key?(:vpn_tunnel)
3066
+ end
3067
+ end
3068
+
2887
3069
  # For display only. Metadata associated with a Compute Engine VPN gateway.
2888
3070
  class VpnGatewayInfo
2889
3071
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkmanagementV1
18
18
  # Version of the google-apis-networkmanagement_v1 gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.53.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241202"
25
+ REVISION = "20241210"
26
26
  end
27
27
  end
28
28
  end
@@ -208,6 +208,12 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
+ class ListVpcFlowLogsConfigsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
211
217
  class LoadBalancerBackend
212
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
219
 
@@ -358,6 +364,12 @@ module Google
358
364
  include Google::Apis::Core::JsonObjectSupport
359
365
  end
360
366
 
367
+ class VpcFlowLogsConfig
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
361
373
  class VpnGatewayInfo
362
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
375
 
@@ -709,6 +721,16 @@ module Google
709
721
  end
710
722
  end
711
723
 
724
+ class ListVpcFlowLogsConfigsResponse
725
+ # @private
726
+ class Representation < Google::Apis::Core::JsonRepresentation
727
+ property :next_page_token, as: 'nextPageToken'
728
+ collection :unreachable, as: 'unreachable'
729
+ collection :vpc_flow_logs_configs, as: 'vpcFlowLogsConfigs', class: Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig, decorator: Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
730
+
731
+ end
732
+ end
733
+
712
734
  class LoadBalancerBackend
713
735
  # @private
714
736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -913,11 +935,16 @@ module Google
913
935
  collection :dest_port_ranges, as: 'destPortRanges'
914
936
  property :display_name, as: 'displayName'
915
937
  collection :instance_tags, as: 'instanceTags'
938
+ property :ncc_hub_route_uri, as: 'nccHubRouteUri'
916
939
  property :ncc_hub_uri, as: 'nccHubUri'
917
940
  property :ncc_spoke_uri, as: 'nccSpokeUri'
918
941
  property :network_uri, as: 'networkUri'
919
942
  property :next_hop, as: 'nextHop'
943
+ property :next_hop_network_uri, as: 'nextHopNetworkUri'
920
944
  property :next_hop_type, as: 'nextHopType'
945
+ property :next_hop_uri, as: 'nextHopUri'
946
+ property :originating_route_display_name, as: 'originatingRouteDisplayName'
947
+ property :originating_route_uri, as: 'originatingRouteUri'
921
948
  property :priority, as: 'priority'
922
949
  collection :protocols, as: 'protocols'
923
950
  property :region, as: 'region'
@@ -1059,6 +1086,26 @@ module Google
1059
1086
  end
1060
1087
  end
1061
1088
 
1089
+ class VpcFlowLogsConfig
1090
+ # @private
1091
+ class Representation < Google::Apis::Core::JsonRepresentation
1092
+ property :aggregation_interval, as: 'aggregationInterval'
1093
+ property :create_time, as: 'createTime'
1094
+ property :description, as: 'description'
1095
+ property :filter_expr, as: 'filterExpr'
1096
+ property :flow_sampling, as: 'flowSampling'
1097
+ property :interconnect_attachment, as: 'interconnectAttachment'
1098
+ hash :labels, as: 'labels'
1099
+ property :metadata, as: 'metadata'
1100
+ collection :metadata_fields, as: 'metadataFields'
1101
+ property :name, as: 'name'
1102
+ property :state, as: 'state'
1103
+ property :target_resource_state, as: 'targetResourceState'
1104
+ property :update_time, as: 'updateTime'
1105
+ property :vpn_tunnel, as: 'vpnTunnel'
1106
+ end
1107
+ end
1108
+
1062
1109
  class VpnGatewayInfo
1063
1110
  # @private
1064
1111
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -638,6 +638,200 @@ module Google
638
638
  command.query['quotaUser'] = quota_user unless quota_user.nil?
639
639
  execute_or_queue_command(command, &block)
640
640
  end
641
+
642
+ # Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same
643
+ # settings already exists (even if the ID is different), the creation fails.
644
+ # Notes: 1. Creating a configuration with state=DISABLED will fail 2. The
645
+ # following fields are not considered as `settings` for the purpose of the check
646
+ # mentioned above, therefore - creating another configuration with the same
647
+ # fields but different values for the following fields will fail as well: * name
648
+ # * create_time * update_time * labels * description
649
+ # @param [String] parent
650
+ # Required. The parent resource of the VPC Flow Logs configuration to create: `
651
+ # projects/`project_id`/locations/global`
652
+ # @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
653
+ # @param [String] vpc_flow_logs_config_id
654
+ # Required. ID of the `VpcFlowLogsConfig`.
655
+ # @param [String] fields
656
+ # Selector specifying which fields to include in a partial response.
657
+ # @param [String] quota_user
658
+ # Available to use for quota purposes for server-side applications. Can be any
659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
660
+ # @param [Google::Apis::RequestOptions] options
661
+ # Request-specific options
662
+ #
663
+ # @yield [result, err] Result & error if block supplied
664
+ # @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
665
+ # @yieldparam err [StandardError] error object if request failed
666
+ #
667
+ # @return [Google::Apis::NetworkmanagementV1::Operation]
668
+ #
669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
672
+ 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)
673
+ command = make_simple_command(:post, 'v1/{+parent}/vpcFlowLogsConfigs', options)
674
+ command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
675
+ command.request_object = vpc_flow_logs_config_object
676
+ command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
677
+ command.response_class = Google::Apis::NetworkmanagementV1::Operation
678
+ command.params['parent'] = parent unless parent.nil?
679
+ command.query['vpcFlowLogsConfigId'] = vpc_flow_logs_config_id unless vpc_flow_logs_config_id.nil?
680
+ command.query['fields'] = fields unless fields.nil?
681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
682
+ execute_or_queue_command(command, &block)
683
+ end
684
+
685
+ # Deletes a specific `VpcFlowLogsConfig`.
686
+ # @param [String] name
687
+ # Required. `VpcFlowLogsConfig` resource name using the form: `projects/`
688
+ # project_id`/locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config``
689
+ # @param [String] fields
690
+ # Selector specifying which fields to include in a partial response.
691
+ # @param [String] quota_user
692
+ # Available to use for quota purposes for server-side applications. Can be any
693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
694
+ # @param [Google::Apis::RequestOptions] options
695
+ # Request-specific options
696
+ #
697
+ # @yield [result, err] Result & error if block supplied
698
+ # @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
699
+ # @yieldparam err [StandardError] error object if request failed
700
+ #
701
+ # @return [Google::Apis::NetworkmanagementV1::Operation]
702
+ #
703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
706
+ def delete_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
707
+ command = make_simple_command(:delete, 'v1/{+name}', options)
708
+ command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
709
+ command.response_class = Google::Apis::NetworkmanagementV1::Operation
710
+ command.params['name'] = name unless name.nil?
711
+ command.query['fields'] = fields unless fields.nil?
712
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
713
+ execute_or_queue_command(command, &block)
714
+ end
715
+
716
+ # Gets the details of a specific `VpcFlowLogsConfig`.
717
+ # @param [String] name
718
+ # Required. `VpcFlowLogsConfig` resource name using the form: `projects/`
719
+ # project_id`/locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config``
720
+ # @param [String] fields
721
+ # Selector specifying which fields to include in a partial response.
722
+ # @param [String] quota_user
723
+ # Available to use for quota purposes for server-side applications. Can be any
724
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
725
+ # @param [Google::Apis::RequestOptions] options
726
+ # Request-specific options
727
+ #
728
+ # @yield [result, err] Result & error if block supplied
729
+ # @yieldparam result [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] parsed result object
730
+ # @yieldparam err [StandardError] error object if request failed
731
+ #
732
+ # @return [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig]
733
+ #
734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
737
+ def get_project_location_vpc_flow_logs_config(name, fields: nil, quota_user: nil, options: nil, &block)
738
+ command = make_simple_command(:get, 'v1/{+name}', options)
739
+ command.response_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
740
+ command.response_class = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig
741
+ command.params['name'] = name unless name.nil?
742
+ command.query['fields'] = fields unless fields.nil?
743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
744
+ execute_or_queue_command(command, &block)
745
+ end
746
+
747
+ # Lists all `VpcFlowLogsConfigs` in a given project.
748
+ # @param [String] parent
749
+ # Required. The parent resource of the VpcFlowLogsConfig: `projects/`project_id`/
750
+ # locations/global`
751
+ # @param [String] filter
752
+ # Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A
753
+ # filter expression must use the supported [CEL logic operators] (https://cloud.
754
+ # google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
755
+ # @param [String] order_by
756
+ # Optional. Field to use to sort the list.
757
+ # @param [Fixnum] page_size
758
+ # Optional. Number of `VpcFlowLogsConfigs` to return.
759
+ # @param [String] page_token
760
+ # Optional. Page token from an earlier query, as returned in `next_page_token`.
761
+ # @param [String] fields
762
+ # Selector specifying which fields to include in a partial response.
763
+ # @param [String] quota_user
764
+ # Available to use for quota purposes for server-side applications. Can be any
765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
766
+ # @param [Google::Apis::RequestOptions] options
767
+ # Request-specific options
768
+ #
769
+ # @yield [result, err] Result & error if block supplied
770
+ # @yieldparam result [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse] parsed result object
771
+ # @yieldparam err [StandardError] error object if request failed
772
+ #
773
+ # @return [Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse]
774
+ #
775
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
776
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
777
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
778
+ 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)
779
+ command = make_simple_command(:get, 'v1/{+parent}/vpcFlowLogsConfigs', options)
780
+ command.response_representation = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse::Representation
781
+ command.response_class = Google::Apis::NetworkmanagementV1::ListVpcFlowLogsConfigsResponse
782
+ command.params['parent'] = parent unless parent.nil?
783
+ command.query['filter'] = filter unless filter.nil?
784
+ command.query['orderBy'] = order_by unless order_by.nil?
785
+ command.query['pageSize'] = page_size unless page_size.nil?
786
+ command.query['pageToken'] = page_token unless page_token.nil?
787
+ command.query['fields'] = fields unless fields.nil?
788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
789
+ execute_or_queue_command(command, &block)
790
+ end
791
+
792
+ # Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact
793
+ # same settings already exists (even if the ID is different), the creation fails.
794
+ # Notes: 1. Updating a configuration with state=DISABLED will fail. 2. The
795
+ # following fields are not considered as `settings` for the purpose of the check
796
+ # mentioned above, therefore - updating another configuration with the same
797
+ # fields but different values for the following fields will fail as well: * name
798
+ # * create_time * update_time * labels * description
799
+ # @param [String] name
800
+ # Identifier. Unique name of the configuration using the form: `projects/`
801
+ # project_id`/locations/global/vpcFlowLogsConfigs/`vpc_flow_logs_config_id``
802
+ # @param [Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig] vpc_flow_logs_config_object
803
+ # @param [String] update_mask
804
+ # Required. Mask of fields to update. At least one path must be supplied in this
805
+ # field.
806
+ # @param [String] fields
807
+ # Selector specifying which fields to include in a partial response.
808
+ # @param [String] quota_user
809
+ # Available to use for quota purposes for server-side applications. Can be any
810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
811
+ # @param [Google::Apis::RequestOptions] options
812
+ # Request-specific options
813
+ #
814
+ # @yield [result, err] Result & error if block supplied
815
+ # @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
816
+ # @yieldparam err [StandardError] error object if request failed
817
+ #
818
+ # @return [Google::Apis::NetworkmanagementV1::Operation]
819
+ #
820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
823
+ 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)
824
+ command = make_simple_command(:patch, 'v1/{+name}', options)
825
+ command.request_representation = Google::Apis::NetworkmanagementV1::VpcFlowLogsConfig::Representation
826
+ command.request_object = vpc_flow_logs_config_object
827
+ command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
828
+ command.response_class = Google::Apis::NetworkmanagementV1::Operation
829
+ command.params['name'] = name unless name.nil?
830
+ command.query['updateMask'] = update_mask unless update_mask.nil?
831
+ command.query['fields'] = fields unless fields.nil?
832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
833
+ execute_or_queue_command(command, &block)
834
+ end
641
835
 
642
836
  protected
643
837
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkmanagement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-08 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkmanagement_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkmanagement_v1/v0.52.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkmanagement_v1/v0.53.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkmanagement_v1
63
63
  post_install_message:
64
64
  rdoc_options: []