google-cloud-network_management-v1 1.4.0 → 1.6.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/network_management/v1/reachability_service/client.rb +7 -0
  4. data/lib/google/cloud/network_management/v1/reachability_service/operations.rb +7 -0
  5. data/lib/google/cloud/network_management/v1/reachability_service/rest/client.rb +7 -0
  6. data/lib/google/cloud/network_management/v1/reachability_service/rest/operations.rb +7 -0
  7. data/lib/google/cloud/network_management/v1/rest.rb +1 -0
  8. data/lib/google/cloud/network_management/v1/version.rb +1 -1
  9. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/client.rb +956 -0
  10. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/credentials.rb +47 -0
  11. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/operations.rb +813 -0
  12. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/paths.rb +69 -0
  13. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/client.rb +902 -0
  14. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/operations.rb +914 -0
  15. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/service_stub.rb +388 -0
  16. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest.rb +56 -0
  17. data/lib/google/cloud/network_management/v1/vpc_flow_logs_service.rb +58 -0
  18. data/lib/google/cloud/network_management/v1.rb +1 -0
  19. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_config_pb.rb +51 -0
  20. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_pb.rb +59 -0
  21. data/lib/google/cloud/networkmanagement/v1/vpc_flow_logs_services_pb.rb +83 -0
  22. data/proto_docs/google/cloud/networkmanagement/v1/trace.rb +54 -0
  23. data/proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs.rb +115 -0
  24. data/proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs_config.rb +167 -0
  25. data/proto_docs/google/longrunning/operations.rb +4 -0
  26. metadata +20 -9
@@ -0,0 +1,83 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto for package 'Google.Cloud.NetworkManagement.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/networkmanagement/v1/vpc_flow_logs_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module NetworkManagement
25
+ module V1
26
+ module VpcFlowLogsService
27
+ # The VPC Flow Logs service in the Google Cloud Network Management API provides
28
+ # configurations that generate Flow Logs. The service and the configuration
29
+ # resources created using this service are global.
30
+ class Service
31
+
32
+ include ::GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.networkmanagement.v1.VpcFlowLogsService'
37
+
38
+ # Lists all `VpcFlowLogsConfigs` in a given project.
39
+ rpc :ListVpcFlowLogsConfigs, ::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsRequest, ::Google::Cloud::NetworkManagement::V1::ListVpcFlowLogsConfigsResponse
40
+ # Gets the details of a specific `VpcFlowLogsConfig`.
41
+ rpc :GetVpcFlowLogsConfig, ::Google::Cloud::NetworkManagement::V1::GetVpcFlowLogsConfigRequest, ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig
42
+ # Creates a new `VpcFlowLogsConfig`.
43
+ # If a configuration with the exact same settings already exists (even if the
44
+ # ID is different), the creation fails.
45
+ # Notes:
46
+ #
47
+ # 1. Creating a configuration with state=DISABLED will fail
48
+ # 2. The following fields are not considered as `settings` for the purpose
49
+ # of the check mentioned above, therefore - creating another configuration
50
+ # with the same fields but different values for the following fields will
51
+ # fail as well:
52
+ # * name
53
+ # * create_time
54
+ # * update_time
55
+ # * labels
56
+ # * description
57
+ rpc :CreateVpcFlowLogsConfig, ::Google::Cloud::NetworkManagement::V1::CreateVpcFlowLogsConfigRequest, ::Google::Longrunning::Operation
58
+ # Updates an existing `VpcFlowLogsConfig`.
59
+ # If a configuration with the exact same settings already exists (even if the
60
+ # ID is different), the creation fails.
61
+ # Notes:
62
+ #
63
+ # 1. Updating a configuration with state=DISABLED will fail.
64
+ # 2. The following fields are not considered as `settings` for the purpose
65
+ # of the check mentioned above, therefore - updating another configuration
66
+ # with the same fields but different values for the following fields will
67
+ # fail as well:
68
+ # * name
69
+ # * create_time
70
+ # * update_time
71
+ # * labels
72
+ # * description
73
+ rpc :UpdateVpcFlowLogsConfig, ::Google::Cloud::NetworkManagement::V1::UpdateVpcFlowLogsConfigRequest, ::Google::Longrunning::Operation
74
+ # Deletes a specific `VpcFlowLogsConfig`.
75
+ rpc :DeleteVpcFlowLogsConfig, ::Google::Cloud::NetworkManagement::V1::DeleteVpcFlowLogsConfigRequest, ::Google::Longrunning::Operation
76
+ end
77
+
78
+ Stub = Service.rpc_stub_class
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -73,90 +73,144 @@ module Google
73
73
  # @!attribute [rw] instance
74
74
  # @return [::Google::Cloud::NetworkManagement::V1::InstanceInfo]
75
75
  # Display information of a Compute Engine instance.
76
+ #
77
+ # Note: The following fields are mutually exclusive: `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
76
78
  # @!attribute [rw] firewall
77
79
  # @return [::Google::Cloud::NetworkManagement::V1::FirewallInfo]
78
80
  # Display information of a Compute Engine firewall rule.
81
+ #
82
+ # Note: The following fields are mutually exclusive: `firewall`, `instance`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
79
83
  # @!attribute [rw] route
80
84
  # @return [::Google::Cloud::NetworkManagement::V1::RouteInfo]
81
85
  # Display information of a Compute Engine route.
86
+ #
87
+ # Note: The following fields are mutually exclusive: `route`, `instance`, `firewall`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
82
88
  # @!attribute [rw] endpoint
83
89
  # @return [::Google::Cloud::NetworkManagement::V1::EndpointInfo]
84
90
  # Display information of the source and destination under analysis.
85
91
  # The endpoint information in an intermediate state may differ with the
86
92
  # initial input, as it might be modified by state like NAT,
87
93
  # or Connection Proxy.
94
+ #
95
+ # Note: The following fields are mutually exclusive: `endpoint`, `instance`, `firewall`, `route`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
88
96
  # @!attribute [rw] google_service
89
97
  # @return [::Google::Cloud::NetworkManagement::V1::GoogleServiceInfo]
90
98
  # Display information of a Google service
99
+ #
100
+ # Note: The following fields are mutually exclusive: `google_service`, `instance`, `firewall`, `route`, `endpoint`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
91
101
  # @!attribute [rw] forwarding_rule
92
102
  # @return [::Google::Cloud::NetworkManagement::V1::ForwardingRuleInfo]
93
103
  # Display information of a Compute Engine forwarding rule.
104
+ #
105
+ # Note: The following fields are mutually exclusive: `forwarding_rule`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
94
106
  # @!attribute [rw] vpn_gateway
95
107
  # @return [::Google::Cloud::NetworkManagement::V1::VpnGatewayInfo]
96
108
  # Display information of a Compute Engine VPN gateway.
109
+ #
110
+ # Note: The following fields are mutually exclusive: `vpn_gateway`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
97
111
  # @!attribute [rw] vpn_tunnel
98
112
  # @return [::Google::Cloud::NetworkManagement::V1::VpnTunnelInfo]
99
113
  # Display information of a Compute Engine VPN tunnel.
114
+ #
115
+ # Note: The following fields are mutually exclusive: `vpn_tunnel`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
100
116
  # @!attribute [rw] vpc_connector
101
117
  # @return [::Google::Cloud::NetworkManagement::V1::VpcConnectorInfo]
102
118
  # Display information of a VPC connector.
119
+ #
120
+ # Note: The following fields are mutually exclusive: `vpc_connector`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
103
121
  # @!attribute [rw] deliver
104
122
  # @return [::Google::Cloud::NetworkManagement::V1::DeliverInfo]
105
123
  # Display information of the final state "deliver" and reason.
124
+ #
125
+ # Note: The following fields are mutually exclusive: `deliver`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
106
126
  # @!attribute [rw] forward
107
127
  # @return [::Google::Cloud::NetworkManagement::V1::ForwardInfo]
108
128
  # Display information of the final state "forward" and reason.
129
+ #
130
+ # Note: The following fields are mutually exclusive: `forward`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
109
131
  # @!attribute [rw] abort
110
132
  # @return [::Google::Cloud::NetworkManagement::V1::AbortInfo]
111
133
  # Display information of the final state "abort" and reason.
134
+ #
135
+ # Note: The following fields are mutually exclusive: `abort`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
112
136
  # @!attribute [rw] drop
113
137
  # @return [::Google::Cloud::NetworkManagement::V1::DropInfo]
114
138
  # Display information of the final state "drop" and reason.
139
+ #
140
+ # Note: The following fields are mutually exclusive: `drop`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
115
141
  # @!attribute [rw] load_balancer
116
142
  # @deprecated This field is deprecated and may be removed in the next major version update.
117
143
  # @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerInfo]
118
144
  # Display information of the load balancers. Deprecated in favor of the
119
145
  # `load_balancer_backend_info` field, not used in new tests.
146
+ #
147
+ # Note: The following fields are mutually exclusive: `load_balancer`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
120
148
  # @!attribute [rw] network
121
149
  # @return [::Google::Cloud::NetworkManagement::V1::NetworkInfo]
122
150
  # Display information of a Google Cloud network.
151
+ #
152
+ # Note: The following fields are mutually exclusive: `network`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
123
153
  # @!attribute [rw] gke_master
124
154
  # @return [::Google::Cloud::NetworkManagement::V1::GKEMasterInfo]
125
155
  # Display information of a Google Kubernetes Engine cluster master.
156
+ #
157
+ # Note: The following fields are mutually exclusive: `gke_master`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
126
158
  # @!attribute [rw] cloud_sql_instance
127
159
  # @return [::Google::Cloud::NetworkManagement::V1::CloudSQLInstanceInfo]
128
160
  # Display information of a Cloud SQL instance.
161
+ #
162
+ # Note: The following fields are mutually exclusive: `cloud_sql_instance`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
129
163
  # @!attribute [rw] redis_instance
130
164
  # @return [::Google::Cloud::NetworkManagement::V1::RedisInstanceInfo]
131
165
  # Display information of a Redis Instance.
166
+ #
167
+ # Note: The following fields are mutually exclusive: `redis_instance`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
132
168
  # @!attribute [rw] redis_cluster
133
169
  # @return [::Google::Cloud::NetworkManagement::V1::RedisClusterInfo]
134
170
  # Display information of a Redis Cluster.
171
+ #
172
+ # Note: The following fields are mutually exclusive: `redis_cluster`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
135
173
  # @!attribute [rw] cloud_function
136
174
  # @return [::Google::Cloud::NetworkManagement::V1::CloudFunctionInfo]
137
175
  # Display information of a Cloud Function.
176
+ #
177
+ # Note: The following fields are mutually exclusive: `cloud_function`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
138
178
  # @!attribute [rw] app_engine_version
139
179
  # @return [::Google::Cloud::NetworkManagement::V1::AppEngineVersionInfo]
140
180
  # Display information of an App Engine service version.
181
+ #
182
+ # Note: The following fields are mutually exclusive: `app_engine_version`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
141
183
  # @!attribute [rw] cloud_run_revision
142
184
  # @return [::Google::Cloud::NetworkManagement::V1::CloudRunRevisionInfo]
143
185
  # Display information of a Cloud Run revision.
186
+ #
187
+ # Note: The following fields are mutually exclusive: `cloud_run_revision`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
144
188
  # @!attribute [rw] nat
145
189
  # @return [::Google::Cloud::NetworkManagement::V1::NatInfo]
146
190
  # Display information of a NAT.
191
+ #
192
+ # Note: The following fields are mutually exclusive: `nat`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
147
193
  # @!attribute [rw] proxy_connection
148
194
  # @return [::Google::Cloud::NetworkManagement::V1::ProxyConnectionInfo]
149
195
  # Display information of a ProxyConnection.
196
+ #
197
+ # Note: The following fields are mutually exclusive: `proxy_connection`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `load_balancer_backend_info`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
150
198
  # @!attribute [rw] load_balancer_backend_info
151
199
  # @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerBackendInfo]
152
200
  # Display information of a specific load balancer backend.
201
+ #
202
+ # Note: The following fields are mutually exclusive: `load_balancer_backend_info`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `storage_bucket`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
153
203
  # @!attribute [rw] storage_bucket
154
204
  # @return [::Google::Cloud::NetworkManagement::V1::StorageBucketInfo]
155
205
  # Display information of a Storage Bucket. Used only for return traces.
206
+ #
207
+ # Note: The following fields are mutually exclusive: `storage_bucket`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `serverless_neg`. If a field in that set is populated, all other fields in the set will automatically be cleared.
156
208
  # @!attribute [rw] serverless_neg
157
209
  # @return [::Google::Cloud::NetworkManagement::V1::ServerlessNegInfo]
158
210
  # Display information of a Serverless network endpoint group backend. Used
159
211
  # only for return traces.
212
+ #
213
+ # Note: The following fields are mutually exclusive: `serverless_neg`, `instance`, `firewall`, `route`, `endpoint`, `google_service`, `forwarding_rule`, `vpn_gateway`, `vpn_tunnel`, `vpc_connector`, `deliver`, `forward`, `abort`, `drop`, `load_balancer`, `network`, `gke_master`, `cloud_sql_instance`, `redis_instance`, `redis_cluster`, `cloud_function`, `app_engine_version`, `cloud_run_revision`, `nat`, `proxy_connection`, `load_balancer_backend_info`, `storage_bucket`. If a field in that set is populated, all other fields in the set will automatically be cleared.
160
214
  class Step
161
215
  include ::Google::Protobuf::MessageExts
162
216
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,115 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module NetworkManagement
23
+ module V1
24
+ # Request for the `ListVpcFlowLogsConfigs` method.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The parent resource of the VpcFlowLogsConfig:
28
+ # `projects/{project_id}/locations/global`
29
+ # @!attribute [rw] page_size
30
+ # @return [::Integer]
31
+ # Optional. Number of `VpcFlowLogsConfigs` to return.
32
+ # @!attribute [rw] page_token
33
+ # @return [::String]
34
+ # Optional. Page token from an earlier query, as returned in
35
+ # `next_page_token`.
36
+ # @!attribute [rw] filter
37
+ # @return [::String]
38
+ # Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
39
+ # A filter expression must use the supported [CEL logic operators]
40
+ # (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
41
+ # @!attribute [rw] order_by
42
+ # @return [::String]
43
+ # Optional. Field to use to sort the list.
44
+ class ListVpcFlowLogsConfigsRequest
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
49
+ # Response for the `ListVpcFlowLogsConfigs` method.
50
+ # @!attribute [rw] vpc_flow_logs_configs
51
+ # @return [::Array<::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig>]
52
+ # List of VPC Flow Log configurations.
53
+ # @!attribute [rw] next_page_token
54
+ # @return [::String]
55
+ # Page token to fetch the next set of configurations.
56
+ # @!attribute [rw] unreachable
57
+ # @return [::Array<::String>]
58
+ # Locations that could not be reached (when querying all locations with `-`).
59
+ class ListVpcFlowLogsConfigsResponse
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+
64
+ # Request for the `GetVpcFlowLogsConfig` method.
65
+ # @!attribute [rw] name
66
+ # @return [::String]
67
+ # Required. `VpcFlowLogsConfig` resource name using the form:
68
+ # `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
69
+ class GetVpcFlowLogsConfigRequest
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+
74
+ # Request for the `CreateVpcFlowLogsConfig` method.
75
+ # @!attribute [rw] parent
76
+ # @return [::String]
77
+ # Required. The parent resource of the VPC Flow Logs configuration to create:
78
+ # `projects/{project_id}/locations/global`
79
+ # @!attribute [rw] vpc_flow_logs_config_id
80
+ # @return [::String]
81
+ # Required. ID of the `VpcFlowLogsConfig`.
82
+ # @!attribute [rw] vpc_flow_logs_config
83
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig]
84
+ # Required. A `VpcFlowLogsConfig` resource
85
+ class CreateVpcFlowLogsConfigRequest
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+ end
89
+
90
+ # Request for the `UpdateVpcFlowLogsConfig` method.
91
+ # @!attribute [rw] update_mask
92
+ # @return [::Google::Protobuf::FieldMask]
93
+ # Required. Mask of fields to update. At least one path must be supplied in
94
+ # this field.
95
+ # @!attribute [rw] vpc_flow_logs_config
96
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig]
97
+ # Required. Only fields specified in update_mask are updated.
98
+ class UpdateVpcFlowLogsConfigRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # Request for the `DeleteVpcFlowLogsConfig` method.
104
+ # @!attribute [rw] name
105
+ # @return [::String]
106
+ # Required. `VpcFlowLogsConfig` resource name using the form:
107
+ # `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
108
+ class DeleteVpcFlowLogsConfigRequest
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,167 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module NetworkManagement
23
+ module V1
24
+ # A configuration to generate VPC Flow Logs.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. Unique name of the configuration using the form:
28
+ # `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
29
+ # @!attribute [rw] description
30
+ # @return [::String]
31
+ # Optional. The user-supplied description of the VPC Flow Logs configuration.
32
+ # Maximum of 512 characters.
33
+ # @!attribute [rw] state
34
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State]
35
+ # Optional. The state of the VPC Flow Log configuration. Default value is
36
+ # ENABLED. When creating a new configuration, it must be enabled.
37
+ # @!attribute [rw] aggregation_interval
38
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval]
39
+ # Optional. The aggregation interval for the logs. Default value is
40
+ # INTERVAL_5_SEC.
41
+ # @!attribute [rw] flow_sampling
42
+ # @return [::Float]
43
+ # Optional. The value of the field must be in (0, 1]. The sampling rate of
44
+ # VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
45
+ # sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
46
+ # use the state field instead. Default value is 1.0.
47
+ # @!attribute [rw] metadata
48
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata]
49
+ # Optional. Configures whether all, none or a subset of metadata fields
50
+ # should be added to the reported VPC flow logs. Default value is
51
+ # INCLUDE_ALL_METADATA.
52
+ # @!attribute [rw] metadata_fields
53
+ # @return [::Array<::String>]
54
+ # Optional. Custom metadata fields to include in the reported VPC flow logs.
55
+ # Can only be specified if "metadata" was set to CUSTOM_METADATA.
56
+ # @!attribute [rw] filter_expr
57
+ # @return [::String]
58
+ # Optional. Export filter used to define which VPC Flow Logs should be
59
+ # logged.
60
+ # @!attribute [r] target_resource_state
61
+ # @return [::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::TargetResourceState]
62
+ # Output only. A diagnostic bit - describes the state of the configured
63
+ # target resource for diagnostic purposes.
64
+ # @!attribute [rw] interconnect_attachment
65
+ # @return [::String]
66
+ # Traffic will be logged from the Interconnect Attachment.
67
+ # Format:
68
+ # projects/\\{project_id}/regions/\\{region}/interconnectAttachments/\\{name}
69
+ #
70
+ # Note: The following fields are mutually exclusive: `interconnect_attachment`, `vpn_tunnel`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
+ # @!attribute [rw] vpn_tunnel
72
+ # @return [::String]
73
+ # Traffic will be logged from the VPN Tunnel.
74
+ # Format: projects/\\{project_id}/regions/\\{region}/vpnTunnels/\\{name}
75
+ #
76
+ # Note: The following fields are mutually exclusive: `vpn_tunnel`, `interconnect_attachment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
77
+ # @!attribute [rw] labels
78
+ # @return [::Google::Protobuf::Map{::String => ::String}]
79
+ # Optional. Resource labels to represent user-provided metadata.
80
+ # @!attribute [r] create_time
81
+ # @return [::Google::Protobuf::Timestamp]
82
+ # Output only. The time the config was created.
83
+ # @!attribute [r] update_time
84
+ # @return [::Google::Protobuf::Timestamp]
85
+ # Output only. The time the config was updated.
86
+ class VpcFlowLogsConfig
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+
90
+ # @!attribute [rw] key
91
+ # @return [::String]
92
+ # @!attribute [rw] value
93
+ # @return [::String]
94
+ class LabelsEntry
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Determines whether this configuration will be generating logs.
100
+ # Setting state=DISABLED will pause the log generation for this config.
101
+ module State
102
+ # If not specified, will default to ENABLED.
103
+ STATE_UNSPECIFIED = 0
104
+
105
+ # When ENABLED, this configuration will generate logs.
106
+ ENABLED = 1
107
+
108
+ # When DISABLED, this configuration will not generate logs.
109
+ DISABLED = 2
110
+ end
111
+
112
+ # Toggles the aggregation interval for collecting flow logs by 5-tuple.
113
+ module AggregationInterval
114
+ # If not specified, will default to INTERVAL_5_SEC.
115
+ AGGREGATION_INTERVAL_UNSPECIFIED = 0
116
+
117
+ # Aggregate logs in 5s intervals.
118
+ INTERVAL_5_SEC = 1
119
+
120
+ # Aggregate logs in 30s intervals.
121
+ INTERVAL_30_SEC = 2
122
+
123
+ # Aggregate logs in 1m intervals.
124
+ INTERVAL_1_MIN = 3
125
+
126
+ # Aggregate logs in 5m intervals.
127
+ INTERVAL_5_MIN = 4
128
+
129
+ # Aggregate logs in 10m intervals.
130
+ INTERVAL_10_MIN = 5
131
+
132
+ # Aggregate logs in 15m intervals.
133
+ INTERVAL_15_MIN = 6
134
+ end
135
+
136
+ # Configures which log fields would be included.
137
+ module Metadata
138
+ # If not specified, will default to INCLUDE_ALL_METADATA.
139
+ METADATA_UNSPECIFIED = 0
140
+
141
+ # Include all metadata fields.
142
+ INCLUDE_ALL_METADATA = 1
143
+
144
+ # Exclude all metadata fields.
145
+ EXCLUDE_ALL_METADATA = 2
146
+
147
+ # Include only custom fields (specified in metadata_fields).
148
+ CUSTOM_METADATA = 3
149
+ end
150
+
151
+ # Optional states of the target resource that are used as part of the
152
+ # diagnostic bit.
153
+ module TargetResourceState
154
+ # Unspecified target resource state.
155
+ TARGET_RESOURCE_STATE_UNSPECIFIED = 0
156
+
157
+ # Indicates that the target resource exists.
158
+ TARGET_RESOURCE_EXISTS = 1
159
+
160
+ # Indicates that the target resource does not exist.
161
+ TARGET_RESOURCE_DOES_NOT_EXIST = 2
162
+ end
163
+ end
164
+ end
165
+ end
166
+ end
167
+ end
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-network_management-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -112,10 +111,22 @@ files:
112
111
  - lib/google/cloud/network_management/v1/reachability_service/rest/service_stub.rb
113
112
  - lib/google/cloud/network_management/v1/rest.rb
114
113
  - lib/google/cloud/network_management/v1/version.rb
114
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service.rb
115
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/client.rb
116
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/credentials.rb
117
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/operations.rb
118
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/paths.rb
119
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest.rb
120
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/client.rb
121
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/operations.rb
122
+ - lib/google/cloud/network_management/v1/vpc_flow_logs_service/rest/service_stub.rb
115
123
  - lib/google/cloud/networkmanagement/v1/connectivity_test_pb.rb
116
124
  - lib/google/cloud/networkmanagement/v1/reachability_pb.rb
117
125
  - lib/google/cloud/networkmanagement/v1/reachability_services_pb.rb
118
126
  - lib/google/cloud/networkmanagement/v1/trace_pb.rb
127
+ - lib/google/cloud/networkmanagement/v1/vpc_flow_logs_config_pb.rb
128
+ - lib/google/cloud/networkmanagement/v1/vpc_flow_logs_pb.rb
129
+ - lib/google/cloud/networkmanagement/v1/vpc_flow_logs_services_pb.rb
119
130
  - proto_docs/README.md
120
131
  - proto_docs/google/api/client.rb
121
132
  - proto_docs/google/api/field_behavior.rb
@@ -125,6 +136,8 @@ files:
125
136
  - proto_docs/google/cloud/networkmanagement/v1/connectivity_test.rb
126
137
  - proto_docs/google/cloud/networkmanagement/v1/reachability.rb
127
138
  - proto_docs/google/cloud/networkmanagement/v1/trace.rb
139
+ - proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs.rb
140
+ - proto_docs/google/cloud/networkmanagement/v1/vpc_flow_logs_config.rb
128
141
  - proto_docs/google/longrunning/operations.rb
129
142
  - proto_docs/google/protobuf/any.rb
130
143
  - proto_docs/google/protobuf/duration.rb
@@ -137,7 +150,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
137
150
  licenses:
138
151
  - Apache-2.0
139
152
  metadata: {}
140
- post_install_message:
141
153
  rdoc_options: []
142
154
  require_paths:
143
155
  - lib
@@ -145,15 +157,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
157
  requirements:
146
158
  - - ">="
147
159
  - !ruby/object:Gem::Version
148
- version: '2.7'
160
+ version: '3.0'
149
161
  required_rubygems_version: !ruby/object:Gem::Requirement
150
162
  requirements:
151
163
  - - ">="
152
164
  - !ruby/object:Gem::Version
153
165
  version: '0'
154
166
  requirements: []
155
- rubygems_version: 3.5.23
156
- signing_key:
167
+ rubygems_version: 3.6.2
157
168
  specification_version: 4
158
169
  summary: The Network Management API provides a collection of network performance monitoring
159
170
  and diagnostic capabilities.