Skip to content

Commit a439a05

Browse files
feat: Automated regeneration of networkmanagement v1beta1 client (googleapis#24291)
Auto-created at 2025-09-14 10:28:53 +0000 using the toys pull request generator.
1 parent 539aee2 commit a439a05

File tree

6 files changed

+277
-6
lines changed

6 files changed

+277
-6
lines changed

api_names_out.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298536,6 +298536,21 @@
298536298536
"/networkmanagement:v1beta1/DropInfo/sourceIp": source_ip
298537298537
"/networkmanagement:v1beta1/EdgeLocation": edge_location
298538298538
"/networkmanagement:v1beta1/EdgeLocation/metropolitanArea": metropolitan_area
298539+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig": effective_vpc_flow_logs_config
298540+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/aggregationInterval": aggregation_interval
298541+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/crossProjectMetadata": cross_project_metadata
298542+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/filterExpr": filter_expr
298543+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/flowSampling": flow_sampling
298544+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/interconnectAttachment": interconnect_attachment
298545+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/metadata": metadata
298546+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/metadataFields": metadata_fields
298547+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/metadataFields/metadata_field": metadata_field
298548+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/name": name
298549+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/network": network
298550+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/scope": scope
298551+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/state": state
298552+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/subnet": subnet
298553+
"/networkmanagement:v1beta1/EffectiveVpcFlowLogsConfig/vpnTunnel": vpn_tunnel
298539298554
"/networkmanagement:v1beta1/Empty": empty
298540298555
"/networkmanagement:v1beta1/Endpoint": endpoint
298541298556
"/networkmanagement:v1beta1/Endpoint/alloyDbInstance": alloy_db_instance
@@ -298547,6 +298562,7 @@
298547298562
"/networkmanagement:v1beta1/Endpoint/forwardingRuleTarget": forwarding_rule_target
298548298563
"/networkmanagement:v1beta1/Endpoint/fqdn": fqdn
298549298564
"/networkmanagement:v1beta1/Endpoint/gkeMasterCluster": gke_master_cluster
298565+
"/networkmanagement:v1beta1/Endpoint/gkePod": gke_pod
298550298566
"/networkmanagement:v1beta1/Endpoint/instance": instance
298551298567
"/networkmanagement:v1beta1/Endpoint/ipAddress": ip_address
298552298568
"/networkmanagement:v1beta1/Endpoint/loadBalancerId": load_balancer_id
@@ -298830,6 +298846,12 @@
298830298846
"/networkmanagement:v1beta1/SetIamPolicyRequest": set_iam_policy_request
298831298847
"/networkmanagement:v1beta1/SetIamPolicyRequest/policy": policy
298832298848
"/networkmanagement:v1beta1/SetIamPolicyRequest/updateMask": update_mask
298849+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse": show_effective_flow_logs_configs_response
298850+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse/effectiveFlowLogsConfigs": effective_flow_logs_configs
298851+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse/effectiveFlowLogsConfigs/effective_flow_logs_config": effective_flow_logs_config
298852+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse/nextPageToken": next_page_token
298853+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse/unreachable": unreachable
298854+
"/networkmanagement:v1beta1/ShowEffectiveFlowLogsConfigsResponse/unreachable/unreachable": unreachable
298833298855
"/networkmanagement:v1beta1/SingleEdgeResponse": single_edge_response
298834298856
"/networkmanagement:v1beta1/SingleEdgeResponse/destinationEgressLocation": destination_egress_location
298835298857
"/networkmanagement:v1beta1/SingleEdgeResponse/destinationRouter": destination_router
@@ -299037,6 +299059,12 @@
299037299059
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs/pageSize": page_size
299038299060
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs/pageToken": page_token
299039299061
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs/parent": parent
299062+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs": show_project_location_vpc_flow_logs_config_effective_flow_logs_configs
299063+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs/filter": filter
299064+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs/pageSize": page_size
299065+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs/pageToken": page_token
299066+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs/parent": parent
299067+
"/networkmanagement:v1beta1/networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs/resource": resource
299040299068
"/networkmanagement:v1beta1/quotaUser": quota_user
299041299069
"/networksecurity:v1/AddAddressGroupItemsRequest": add_address_group_items_request
299042299070
"/networksecurity:v1/AddAddressGroupItemsRequest/items": items

generated/google-apis-networkmanagement_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-networkmanagement_v1beta1
22

3+
### v0.66.0 (2025-09-14)
4+
5+
* Regenerated from discovery document revision 20250905
6+
37
### v0.65.0 (2025-09-07)
48

59
* Regenerated from discovery document revision 20250901

generated/google-apis-networkmanagement_v1beta1/lib/google/apis/networkmanagement_v1beta1/classes.rb

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,117 @@ def update!(**args)
751751
end
752752
end
753753

754+
# A configuration to generate a response for GetEffectiveVpcFlowLogsConfig
755+
# request.
756+
class EffectiveVpcFlowLogsConfig
757+
include Google::Apis::Core::Hashable
758+
759+
# The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
760+
# Corresponds to the JSON property `aggregationInterval`
761+
# @return [String]
762+
attr_accessor :aggregation_interval
763+
764+
# Determines whether to include cross project annotations in the logs. This
765+
# field is available only for organization configurations. If not specified in
766+
# org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
767+
# Corresponds to the JSON property `crossProjectMetadata`
768+
# @return [String]
769+
attr_accessor :cross_project_metadata
770+
771+
# Export filter used to define which VPC Flow Logs should be logged.
772+
# Corresponds to the JSON property `filterExpr`
773+
# @return [String]
774+
attr_accessor :filter_expr
775+
776+
# The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs
777+
# where 1.0 means all collected logs are reported. Setting the sampling rate to
778+
# 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field
779+
# instead. Default value is 1.0.
780+
# Corresponds to the JSON property `flowSampling`
781+
# @return [Float]
782+
attr_accessor :flow_sampling
783+
784+
# Traffic will be logged from the Interconnect Attachment. Format: projects/`
785+
# project_id`/regions/`region`/interconnectAttachments/`name`
786+
# Corresponds to the JSON property `interconnectAttachment`
787+
# @return [String]
788+
attr_accessor :interconnect_attachment
789+
790+
# Configures whether all, none or a subset of metadata fields should be added to
791+
# the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
792+
# Corresponds to the JSON property `metadata`
793+
# @return [String]
794+
attr_accessor :metadata
795+
796+
# Custom metadata fields to include in the reported VPC flow logs. Can only be
797+
# specified if "metadata" was set to CUSTOM_METADATA.
798+
# Corresponds to the JSON property `metadataFields`
799+
# @return [Array<String>]
800+
attr_accessor :metadata_fields
801+
802+
# Unique name of the configuration. The name can have one of the following forms:
803+
# - For project-level configurations: `projects/`project_id`/locations/global/
804+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For organization-level
805+
# configurations: `organizations/`organization_id`/locations/global/
806+
# vpcFlowLogsConfigs/`vpc_flow_logs_config_id`` - For a Compute config, the name
807+
# will be the path of the subnet: `projects/`project_id`/regions/`region`/
808+
# subnetworks/`subnet_id``
809+
# Corresponds to the JSON property `name`
810+
# @return [String]
811+
attr_accessor :name
812+
813+
# Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
814+
# within the network. Format: projects/`project_id`/global/networks/`name`
815+
# Corresponds to the JSON property `network`
816+
# @return [String]
817+
attr_accessor :network
818+
819+
# Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
820+
# Corresponds to the JSON property `scope`
821+
# @return [String]
822+
attr_accessor :scope
823+
824+
# The state of the VPC Flow Log configuration. Default value is ENABLED. When
825+
# creating a new configuration, it must be enabled. Setting state=DISABLED will
826+
# pause the log generation for this config.
827+
# Corresponds to the JSON property `state`
828+
# @return [String]
829+
attr_accessor :state
830+
831+
# Traffic will be logged from VMs within the subnetwork. Format: projects/`
832+
# project_id`/regions/`region`/subnetworks/`name`
833+
# Corresponds to the JSON property `subnet`
834+
# @return [String]
835+
attr_accessor :subnet
836+
837+
# Traffic will be logged from the VPN Tunnel. Format: projects/`project_id`/
838+
# regions/`region`/vpnTunnels/`name`
839+
# Corresponds to the JSON property `vpnTunnel`
840+
# @return [String]
841+
attr_accessor :vpn_tunnel
842+
843+
def initialize(**args)
844+
update!(**args)
845+
end
846+
847+
# Update properties of this object
848+
def update!(**args)
849+
@aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
850+
@cross_project_metadata = args[:cross_project_metadata] if args.key?(:cross_project_metadata)
851+
@filter_expr = args[:filter_expr] if args.key?(:filter_expr)
852+
@flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling)
853+
@interconnect_attachment = args[:interconnect_attachment] if args.key?(:interconnect_attachment)
854+
@metadata = args[:metadata] if args.key?(:metadata)
855+
@metadata_fields = args[:metadata_fields] if args.key?(:metadata_fields)
856+
@name = args[:name] if args.key?(:name)
857+
@network = args[:network] if args.key?(:network)
858+
@scope = args[:scope] if args.key?(:scope)
859+
@state = args[:state] if args.key?(:state)
860+
@subnet = args[:subnet] if args.key?(:subnet)
861+
@vpn_tunnel = args[:vpn_tunnel] if args.key?(:vpn_tunnel)
862+
end
863+
end
864+
754865
# A generic empty message that you can re-use to avoid defining duplicated empty
755866
# messages in your APIs. A typical example is to use it as the request or the
756867
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -825,6 +936,11 @@ class Endpoint
825936
# @return [String]
826937
attr_accessor :gke_master_cluster
827938

939+
# A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.
940+
# Corresponds to the JSON property `gkePod`
941+
# @return [String]
942+
attr_accessor :gke_pod
943+
828944
# A Compute Engine instance URI.
829945
# Corresponds to the JSON property `instance`
830946
# @return [String]
@@ -901,6 +1017,7 @@ def update!(**args)
9011017
@forwarding_rule_target = args[:forwarding_rule_target] if args.key?(:forwarding_rule_target)
9021018
@fqdn = args[:fqdn] if args.key?(:fqdn)
9031019
@gke_master_cluster = args[:gke_master_cluster] if args.key?(:gke_master_cluster)
1020+
@gke_pod = args[:gke_pod] if args.key?(:gke_pod)
9041021
@instance = args[:instance] if args.key?(:instance)
9051022
@ip_address = args[:ip_address] if args.key?(:ip_address)
9061023
@load_balancer_id = args[:load_balancer_id] if args.key?(:load_balancer_id)
@@ -2824,6 +2941,37 @@ def update!(**args)
28242941
end
28252942
end
28262943

2944+
# Response for the `ShowEffectiveFlowLogsConfigs` method.
2945+
class ShowEffectiveFlowLogsConfigsResponse
2946+
include Google::Apis::Core::Hashable
2947+
2948+
# List of Effective Vpc Flow Logs configurations.
2949+
# Corresponds to the JSON property `effectiveFlowLogsConfigs`
2950+
# @return [Array<Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig>]
2951+
attr_accessor :effective_flow_logs_configs
2952+
2953+
# Page token to fetch the next set of configurations.
2954+
# Corresponds to the JSON property `nextPageToken`
2955+
# @return [String]
2956+
attr_accessor :next_page_token
2957+
2958+
# Locations that could not be reached (when querying all locations with `-`).
2959+
# Corresponds to the JSON property `unreachable`
2960+
# @return [Array<String>]
2961+
attr_accessor :unreachable
2962+
2963+
def initialize(**args)
2964+
update!(**args)
2965+
end
2966+
2967+
# Update properties of this object
2968+
def update!(**args)
2969+
@effective_flow_logs_configs = args[:effective_flow_logs_configs] if args.key?(:effective_flow_logs_configs)
2970+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2971+
@unreachable = args[:unreachable] if args.key?(:unreachable)
2972+
end
2973+
end
2974+
28272975
# Probing results for a single edge device.
28282976
class SingleEdgeResponse
28292977
include Google::Apis::Core::Hashable

generated/google-apis-networkmanagement_v1beta1/lib/google/apis/networkmanagement_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module NetworkmanagementV1beta1
1818
# Version of the google-apis-networkmanagement_v1beta1 gem
19-
GEM_VERSION = "0.65.0"
19+
GEM_VERSION = "0.66.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250901"
25+
REVISION = "20250905"
2626
end
2727
end
2828
end

generated/google-apis-networkmanagement_v1beta1/lib/google/apis/networkmanagement_v1beta1/representations.rb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class EffectiveVpcFlowLogsConfig
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
127133
class Empty
128134
class Representation < Google::Apis::Core::JsonRepresentation; end
129135

@@ -352,6 +358,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
352358
include Google::Apis::Core::JsonObjectSupport
353359
end
354360

361+
class ShowEffectiveFlowLogsConfigsResponse
362+
class Representation < Google::Apis::Core::JsonRepresentation; end
363+
364+
include Google::Apis::Core::JsonObjectSupport
365+
end
366+
355367
class SingleEdgeResponse
356368
class Representation < Google::Apis::Core::JsonRepresentation; end
357369

@@ -594,6 +606,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
594606
end
595607
end
596608

609+
class EffectiveVpcFlowLogsConfig
610+
# @private
611+
class Representation < Google::Apis::Core::JsonRepresentation
612+
property :aggregation_interval, as: 'aggregationInterval'
613+
property :cross_project_metadata, as: 'crossProjectMetadata'
614+
property :filter_expr, as: 'filterExpr'
615+
property :flow_sampling, as: 'flowSampling'
616+
property :interconnect_attachment, as: 'interconnectAttachment'
617+
property :metadata, as: 'metadata'
618+
collection :metadata_fields, as: 'metadataFields'
619+
property :name, as: 'name'
620+
property :network, as: 'network'
621+
property :scope, as: 'scope'
622+
property :state, as: 'state'
623+
property :subnet, as: 'subnet'
624+
property :vpn_tunnel, as: 'vpnTunnel'
625+
end
626+
end
627+
597628
class Empty
598629
# @private
599630
class Representation < Google::Apis::Core::JsonRepresentation
@@ -615,6 +646,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
615646
property :forwarding_rule_target, as: 'forwardingRuleTarget'
616647
property :fqdn, as: 'fqdn'
617648
property :gke_master_cluster, as: 'gkeMasterCluster'
649+
property :gke_pod, as: 'gkePod'
618650
property :instance, as: 'instance'
619651
property :ip_address, as: 'ipAddress'
620652
property :load_balancer_id, as: 'loadBalancerId'
@@ -1070,6 +1102,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
10701102
end
10711103
end
10721104

1105+
class ShowEffectiveFlowLogsConfigsResponse
1106+
# @private
1107+
class Representation < Google::Apis::Core::JsonRepresentation
1108+
collection :effective_flow_logs_configs, as: 'effectiveFlowLogsConfigs', class: Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig, decorator: Google::Apis::NetworkmanagementV1beta1::EffectiveVpcFlowLogsConfig::Representation
1109+
1110+
property :next_page_token, as: 'nextPageToken'
1111+
collection :unreachable, as: 'unreachable'
1112+
end
1113+
end
1114+
10731115
class SingleEdgeResponse
10741116
# @private
10751117
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)