google-apis-networkmanagement_v1 0.51.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: 52daf8e55cf59e771ac88cacd1e5978f19ef3b767771759965edef32562e6e38
4
- data.tar.gz: 2f08d2903bf1134dd11c30a877c42e785163d52c0697d7af6bb0a2933c125841
3
+ metadata.gz: a00964cbfb2214545aa3dfb78b1c2dc5779ae0a5c7bc7577a27354127f5137db
4
+ data.tar.gz: c2a21b0648a6430ed313628819f069a7178153d10b679fd3050f04ebd1cff3e5
5
5
  SHA512:
6
- metadata.gz: ff5e919388645164e86b671b97d297a11bb823d3c91bbafbe8935f3231e514d02899ecbe1d76b2aac7b39da1d4f3772d1b99b5089e61cdd214d06d183fb77598
7
- data.tar.gz: 7daf14779fd16dd0168a0cf8a0ad9543c6c64824b6546542c691fe538c83d4b61f5553431b98e4b8d430681f11e4970c2bc43546a49e700894100f93eb553ccc
6
+ metadata.gz: 3432578ece886ec77b11d3342736a03a7b2de4831664a70a448d35aed83ae816689696e7742d04ca1fef0251c445b80a94bd7ddbdc531705538568c87098d9c1
7
+ data.tar.gz: eff41110f33b05f2cadde5c82c00ac709968e160f8bf116484fbc46ded68306e212ef580d02ef8232037edb4398911197178e38685659d9c36c54414739244e4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.52.0 (2024-12-08)
8
+
9
+ * Regenerated from discovery document revision 20241202
10
+
3
11
  ### v0.51.0 (2024-11-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20241106
@@ -531,6 +531,18 @@ module Google
531
531
  # @return [Array<String>]
532
532
  attr_accessor :related_projects
533
533
 
534
+ # Results of the configuration analysis from the last run of the test.
535
+ # Corresponds to the JSON property `returnReachabilityDetails`
536
+ # @return [Google::Apis::NetworkmanagementV1::ReachabilityDetails]
537
+ attr_accessor :return_reachability_details
538
+
539
+ # Whether run analysis for the return path from destination to source. Default
540
+ # value is false.
541
+ # Corresponds to the JSON property `roundTrip`
542
+ # @return [Boolean]
543
+ attr_accessor :round_trip
544
+ alias_method :round_trip?, :round_trip
545
+
534
546
  # Source or destination of the Connectivity Test.
535
547
  # Corresponds to the JSON property `source`
536
548
  # @return [Google::Apis::NetworkmanagementV1::Endpoint]
@@ -558,6 +570,8 @@ module Google
558
570
  @protocol = args[:protocol] if args.key?(:protocol)
559
571
  @reachability_details = args[:reachability_details] if args.key?(:reachability_details)
560
572
  @related_projects = args[:related_projects] if args.key?(:related_projects)
573
+ @return_reachability_details = args[:return_reachability_details] if args.key?(:return_reachability_details)
574
+ @round_trip = args[:round_trip] if args.key?(:round_trip)
561
575
  @source = args[:source] if args.key?(:source)
562
576
  @update_time = args[:update_time] if args.key?(:update_time)
563
577
  end
@@ -1404,6 +1418,37 @@ module Google
1404
1418
  end
1405
1419
  end
1406
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
+
1407
1452
  # For display only. Metadata associated with a specific load balancer backend.
1408
1453
  class LoadBalancerBackend
1409
1454
  include Google::Apis::Core::Hashable
@@ -2287,14 +2332,15 @@ module Google
2287
2332
  class RouteInfo
2288
2333
  include Google::Apis::Core::Hashable
2289
2334
 
2290
- # 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
2291
2336
  # endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the
2292
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.
2293
2339
  # Corresponds to the JSON property `advertisedRouteNextHopUri`
2294
2340
  # @return [String]
2295
2341
  attr_accessor :advertised_route_next_hop_uri
2296
2342
 
2297
- # 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
2298
2344
  # corresponding IP prefix.
2299
2345
  # Corresponds to the JSON property `advertisedRouteSourceRouterUri`
2300
2346
  # @return [String]
@@ -2305,7 +2351,7 @@ module Google
2305
2351
  # @return [String]
2306
2352
  attr_accessor :dest_ip_range
2307
2353
 
2308
- # Destination port ranges of the route. Policy based routes only.
2354
+ # Destination port ranges of the route. POLICY_BASED routes only.
2309
2355
  # Corresponds to the JSON property `destPortRanges`
2310
2356
  # @return [Array<String>]
2311
2357
  attr_accessor :dest_port_ranges
@@ -2320,47 +2366,82 @@ module Google
2320
2366
  # @return [Array<String>]
2321
2367
  attr_accessor :instance_tags
2322
2368
 
2323
- # 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.
2324
2377
  # Corresponds to the JSON property `nccHubUri`
2325
2378
  # @return [String]
2326
2379
  attr_accessor :ncc_hub_uri
2327
2380
 
2328
- # 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.
2329
2383
  # Corresponds to the JSON property `nccSpokeUri`
2330
2384
  # @return [String]
2331
2385
  attr_accessor :ncc_spoke_uri
2332
2386
 
2333
- # URI of a Compute Engine network. NETWORK routes only.
2387
+ # URI of a VPC network where route is located.
2334
2388
  # Corresponds to the JSON property `networkUri`
2335
2389
  # @return [String]
2336
2390
  attr_accessor :network_uri
2337
2391
 
2338
- # 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.
2339
2395
  # Corresponds to the JSON property `nextHop`
2340
2396
  # @return [String]
2341
2397
  attr_accessor :next_hop
2342
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
+
2343
2404
  # Type of next hop.
2344
2405
  # Corresponds to the JSON property `nextHopType`
2345
2406
  # @return [String]
2346
2407
  attr_accessor :next_hop_type
2347
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
+
2348
2426
  # Priority of the route.
2349
2427
  # Corresponds to the JSON property `priority`
2350
2428
  # @return [Fixnum]
2351
2429
  attr_accessor :priority
2352
2430
 
2353
- # Protocols of the route. Policy based routes only.
2431
+ # Protocols of the route. POLICY_BASED routes only.
2354
2432
  # Corresponds to the JSON property `protocols`
2355
2433
  # @return [Array<String>]
2356
2434
  attr_accessor :protocols
2357
2435
 
2358
- # 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.
2359
2439
  # Corresponds to the JSON property `region`
2360
2440
  # @return [String]
2361
2441
  attr_accessor :region
2362
2442
 
2363
- # 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.
2364
2445
  # Corresponds to the JSON property `routeScope`
2365
2446
  # @return [String]
2366
2447
  attr_accessor :route_scope
@@ -2370,17 +2451,18 @@ module Google
2370
2451
  # @return [String]
2371
2452
  attr_accessor :route_type
2372
2453
 
2373
- # Source IP address range of the route. Policy based routes only.
2454
+ # Source IP address range of the route. POLICY_BASED routes only.
2374
2455
  # Corresponds to the JSON property `srcIpRange`
2375
2456
  # @return [String]
2376
2457
  attr_accessor :src_ip_range
2377
2458
 
2378
- # Source port ranges of the route. Policy based routes only.
2459
+ # Source port ranges of the route. POLICY_BASED routes only.
2379
2460
  # Corresponds to the JSON property `srcPortRanges`
2380
2461
  # @return [Array<String>]
2381
2462
  attr_accessor :src_port_ranges
2382
2463
 
2383
- # 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.
2384
2466
  # Corresponds to the JSON property `uri`
2385
2467
  # @return [String]
2386
2468
  attr_accessor :uri
@@ -2397,11 +2479,16 @@ module Google
2397
2479
  @dest_port_ranges = args[:dest_port_ranges] if args.key?(:dest_port_ranges)
2398
2480
  @display_name = args[:display_name] if args.key?(:display_name)
2399
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)
2400
2483
  @ncc_hub_uri = args[:ncc_hub_uri] if args.key?(:ncc_hub_uri)
2401
2484
  @ncc_spoke_uri = args[:ncc_spoke_uri] if args.key?(:ncc_spoke_uri)
2402
2485
  @network_uri = args[:network_uri] if args.key?(:network_uri)
2403
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)
2404
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)
2405
2492
  @priority = args[:priority] if args.key?(:priority)
2406
2493
  @protocols = args[:protocols] if args.key?(:protocols)
2407
2494
  @region = args[:region] if args.key?(:region)
@@ -2870,6 +2957,115 @@ module Google
2870
2957
  end
2871
2958
  end
2872
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
+
2873
3069
  # For display only. Metadata associated with a Compute Engine VPN gateway.
2874
3070
  class VpnGatewayInfo
2875
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.51.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 = "20241106"
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
 
@@ -493,6 +505,9 @@ module Google
493
505
  property :reachability_details, as: 'reachabilityDetails', class: Google::Apis::NetworkmanagementV1::ReachabilityDetails, decorator: Google::Apis::NetworkmanagementV1::ReachabilityDetails::Representation
494
506
 
495
507
  collection :related_projects, as: 'relatedProjects'
508
+ property :return_reachability_details, as: 'returnReachabilityDetails', class: Google::Apis::NetworkmanagementV1::ReachabilityDetails, decorator: Google::Apis::NetworkmanagementV1::ReachabilityDetails::Representation
509
+
510
+ property :round_trip, as: 'roundTrip'
496
511
  property :source, as: 'source', class: Google::Apis::NetworkmanagementV1::Endpoint, decorator: Google::Apis::NetworkmanagementV1::Endpoint::Representation
497
512
 
498
513
  property :update_time, as: 'updateTime'
@@ -706,6 +721,16 @@ module Google
706
721
  end
707
722
  end
708
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
+
709
734
  class LoadBalancerBackend
710
735
  # @private
711
736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -910,11 +935,16 @@ module Google
910
935
  collection :dest_port_ranges, as: 'destPortRanges'
911
936
  property :display_name, as: 'displayName'
912
937
  collection :instance_tags, as: 'instanceTags'
938
+ property :ncc_hub_route_uri, as: 'nccHubRouteUri'
913
939
  property :ncc_hub_uri, as: 'nccHubUri'
914
940
  property :ncc_spoke_uri, as: 'nccSpokeUri'
915
941
  property :network_uri, as: 'networkUri'
916
942
  property :next_hop, as: 'nextHop'
943
+ property :next_hop_network_uri, as: 'nextHopNetworkUri'
917
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'
918
948
  property :priority, as: 'priority'
919
949
  collection :protocols, as: 'protocols'
920
950
  property :region, as: 'region'
@@ -1056,6 +1086,26 @@ module Google
1056
1086
  end
1057
1087
  end
1058
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
+
1059
1109
  class VpnGatewayInfo
1060
1110
  # @private
1061
1111
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -501,8 +501,8 @@ module Google
501
501
  # Clients can use Operations.GetOperation or other methods to check whether the
502
502
  # cancellation succeeded or whether the operation completed despite cancellation.
503
503
  # On successful cancellation, the operation is not deleted; instead, it becomes
504
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
505
- # corresponding to `Code.CANCELLED`.
504
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
505
+ # , corresponding to `Code.CANCELLED`.
506
506
  # @param [String] name
507
507
  # The name of the operation resource to be cancelled.
508
508
  # @param [Google::Apis::NetworkmanagementV1::CancelOperationRequest] cancel_operation_request_object
@@ -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.51.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-04 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.51.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Network Management API V1