Skip to content

Commit 79de654

Browse files
feat: [networkmanagement] expose the new v1 vpcflowlogs api proto (#5947)
* feat: expose the new v1 vpcflowlogs api proto PiperOrigin-RevId: 714651625 Source-Link: googleapis/googleapis@d5cc1cd Source-Link: googleapis/googleapis-gen@69425b9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmttYW5hZ2VtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiI2OTQyNWI5NzQwM2E2NzlhOWU4OTJjYWRhZDY2NmFiMWEwYzIzNjAxIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 50ecc13 commit 79de654

25 files changed

Lines changed: 9724 additions & 5 deletions

packages/google-cloud-networkmanagement/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
9393
| Reachability_service.list_connectivity_tests | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.list_connectivity_tests.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.list_connectivity_tests.js,packages/google-cloud-networkmanagement/samples/README.md) |
9494
| Reachability_service.rerun_connectivity_test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.rerun_connectivity_test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.rerun_connectivity_test.js,packages/google-cloud-networkmanagement/samples/README.md) |
9595
| Reachability_service.update_connectivity_test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.update_connectivity_test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/reachability_service.update_connectivity_test.js,packages/google-cloud-networkmanagement/samples/README.md) |
96+
| Vpc_flow_logs_service.create_vpc_flow_logs_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.create_vpc_flow_logs_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.create_vpc_flow_logs_config.js,packages/google-cloud-networkmanagement/samples/README.md) |
97+
| Vpc_flow_logs_service.delete_vpc_flow_logs_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.delete_vpc_flow_logs_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.delete_vpc_flow_logs_config.js,packages/google-cloud-networkmanagement/samples/README.md) |
98+
| Vpc_flow_logs_service.get_vpc_flow_logs_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.get_vpc_flow_logs_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.get_vpc_flow_logs_config.js,packages/google-cloud-networkmanagement/samples/README.md) |
99+
| Vpc_flow_logs_service.list_vpc_flow_logs_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.list_vpc_flow_logs_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.list_vpc_flow_logs_configs.js,packages/google-cloud-networkmanagement/samples/README.md) |
100+
| Vpc_flow_logs_service.update_vpc_flow_logs_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.update_vpc_flow_logs_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1/vpc_flow_logs_service.update_vpc_flow_logs_config.js,packages/google-cloud-networkmanagement/samples/README.md) |
96101
| Reachability_service.create_connectivity_test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.create_connectivity_test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.create_connectivity_test.js,packages/google-cloud-networkmanagement/samples/README.md) |
97102
| Reachability_service.delete_connectivity_test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.delete_connectivity_test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.delete_connectivity_test.js,packages/google-cloud-networkmanagement/samples/README.md) |
98103
| Reachability_service.get_connectivity_test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.get_connectivity_test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-networkmanagement/samples/generated/v1beta1/reachability_service.get_connectivity_test.js,packages/google-cloud-networkmanagement/samples/README.md) |
Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.networkmanagement.v1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/field_behavior.proto";
22+
import "google/api/resource.proto";
23+
import "google/cloud/networkmanagement/v1/reachability.proto";
24+
import "google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto";
25+
import "google/longrunning/operations.proto";
26+
import "google/protobuf/empty.proto";
27+
import "google/protobuf/field_mask.proto";
28+
29+
option csharp_namespace = "Google.Cloud.NetworkManagement.V1";
30+
option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb";
31+
option java_multiple_files = true;
32+
option java_outer_classname = "VpcFlowLogsProto";
33+
option java_package = "com.google.cloud.networkmanagement.v1";
34+
option php_namespace = "Google\\Cloud\\NetworkManagement\\V1";
35+
option ruby_package = "Google::Cloud::NetworkManagement::V1";
36+
37+
// The VPC Flow Logs service in the Google Cloud Network Management API provides
38+
// configurations that generate Flow Logs. The service and the configuration
39+
// resources created using this service are global.
40+
service VpcFlowLogsService {
41+
option (google.api.default_host) = "networkmanagement.googleapis.com";
42+
option (google.api.oauth_scopes) =
43+
"https://www.googleapis.com/auth/cloud-platform";
44+
45+
// Lists all `VpcFlowLogsConfigs` in a given project.
46+
rpc ListVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest)
47+
returns (ListVpcFlowLogsConfigsResponse) {
48+
option (google.api.http) = {
49+
get: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs"
50+
};
51+
option (google.api.method_signature) = "parent";
52+
}
53+
54+
// Gets the details of a specific `VpcFlowLogsConfig`.
55+
rpc GetVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest)
56+
returns (VpcFlowLogsConfig) {
57+
option (google.api.http) = {
58+
get: "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}"
59+
};
60+
option (google.api.method_signature) = "name";
61+
}
62+
63+
// Creates a new `VpcFlowLogsConfig`.
64+
// If a configuration with the exact same settings already exists (even if the
65+
// ID is different), the creation fails.
66+
// Notes:
67+
//
68+
// 1. Creating a configuration with state=DISABLED will fail
69+
// 2. The following fields are not considered as `settings` for the purpose
70+
// of the check mentioned above, therefore - creating another configuration
71+
// with the same fields but different values for the following fields will
72+
// fail as well:
73+
// * name
74+
// * create_time
75+
// * update_time
76+
// * labels
77+
// * description
78+
rpc CreateVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest)
79+
returns (google.longrunning.Operation) {
80+
option (google.api.http) = {
81+
post: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs"
82+
body: "vpc_flow_logs_config"
83+
};
84+
option (google.api.method_signature) =
85+
"parent,vpc_flow_logs_config,vpc_flow_logs_config_id";
86+
option (google.longrunning.operation_info) = {
87+
response_type: "VpcFlowLogsConfig"
88+
metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata"
89+
};
90+
}
91+
92+
// Updates an existing `VpcFlowLogsConfig`.
93+
// If a configuration with the exact same settings already exists (even if the
94+
// ID is different), the creation fails.
95+
// Notes:
96+
//
97+
// 1. Updating a configuration with state=DISABLED will fail.
98+
// 2. The following fields are not considered as `settings` for the purpose
99+
// of the check mentioned above, therefore - updating another configuration
100+
// with the same fields but different values for the following fields will
101+
// fail as well:
102+
// * name
103+
// * create_time
104+
// * update_time
105+
// * labels
106+
// * description
107+
rpc UpdateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest)
108+
returns (google.longrunning.Operation) {
109+
option (google.api.http) = {
110+
patch: "/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}"
111+
body: "vpc_flow_logs_config"
112+
};
113+
option (google.api.method_signature) = "vpc_flow_logs_config,update_mask";
114+
option (google.longrunning.operation_info) = {
115+
response_type: "VpcFlowLogsConfig"
116+
metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata"
117+
};
118+
}
119+
120+
// Deletes a specific `VpcFlowLogsConfig`.
121+
rpc DeleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest)
122+
returns (google.longrunning.Operation) {
123+
option (google.api.http) = {
124+
delete: "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}"
125+
};
126+
option (google.api.method_signature) = "name";
127+
option (google.longrunning.operation_info) = {
128+
response_type: "google.protobuf.Empty"
129+
metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata"
130+
};
131+
}
132+
}
133+
134+
// Request for the `ListVpcFlowLogsConfigs` method.
135+
message ListVpcFlowLogsConfigsRequest {
136+
// Required. The parent resource of the VpcFlowLogsConfig:
137+
// `projects/{project_id}/locations/global`
138+
string parent = 1 [
139+
(google.api.field_behavior) = REQUIRED,
140+
(google.api.resource_reference) = {
141+
child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig"
142+
}
143+
];
144+
145+
// Optional. Number of `VpcFlowLogsConfigs` to return.
146+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
147+
148+
// Optional. Page token from an earlier query, as returned in
149+
// `next_page_token`.
150+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
151+
152+
// Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
153+
// A filter expression must use the supported [CEL logic operators]
154+
// (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
155+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
156+
157+
// Optional. Field to use to sort the list.
158+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
159+
}
160+
161+
// Response for the `ListVpcFlowLogsConfigs` method.
162+
message ListVpcFlowLogsConfigsResponse {
163+
// List of VPC Flow Log configurations.
164+
repeated VpcFlowLogsConfig vpc_flow_logs_configs = 1;
165+
166+
// Page token to fetch the next set of configurations.
167+
string next_page_token = 2;
168+
169+
// Locations that could not be reached (when querying all locations with `-`).
170+
repeated string unreachable = 3;
171+
}
172+
173+
// Request for the `GetVpcFlowLogsConfig` method.
174+
message GetVpcFlowLogsConfigRequest {
175+
// Required. `VpcFlowLogsConfig` resource name using the form:
176+
// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
177+
string name = 1 [
178+
(google.api.field_behavior) = REQUIRED,
179+
(google.api.resource_reference) = {
180+
type: "networkmanagement.googleapis.com/VpcFlowLogsConfig"
181+
}
182+
];
183+
}
184+
185+
// Request for the `CreateVpcFlowLogsConfig` method.
186+
message CreateVpcFlowLogsConfigRequest {
187+
// Required. The parent resource of the VPC Flow Logs configuration to create:
188+
// `projects/{project_id}/locations/global`
189+
string parent = 1 [
190+
(google.api.field_behavior) = REQUIRED,
191+
(google.api.resource_reference) = {
192+
child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig"
193+
}
194+
];
195+
196+
// Required. ID of the `VpcFlowLogsConfig`.
197+
string vpc_flow_logs_config_id = 2 [
198+
(google.api.field_behavior) = REQUIRED,
199+
(google.api.resource_reference) = {
200+
type: "networkmanagement.googleapis.com/VpcFlowLogsConfig"
201+
}
202+
];
203+
204+
// Required. A `VpcFlowLogsConfig` resource
205+
VpcFlowLogsConfig vpc_flow_logs_config = 3
206+
[(google.api.field_behavior) = REQUIRED];
207+
}
208+
209+
// Request for the `UpdateVpcFlowLogsConfig` method.
210+
message UpdateVpcFlowLogsConfigRequest {
211+
// Required. Mask of fields to update. At least one path must be supplied in
212+
// this field.
213+
google.protobuf.FieldMask update_mask = 1
214+
[(google.api.field_behavior) = REQUIRED];
215+
216+
// Required. Only fields specified in update_mask are updated.
217+
VpcFlowLogsConfig vpc_flow_logs_config = 2
218+
[(google.api.field_behavior) = REQUIRED];
219+
}
220+
221+
// Request for the `DeleteVpcFlowLogsConfig` method.
222+
message DeleteVpcFlowLogsConfigRequest {
223+
// Required. `VpcFlowLogsConfig` resource name using the form:
224+
// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
225+
string name = 1 [
226+
(google.api.field_behavior) = REQUIRED,
227+
(google.api.resource_reference) = {
228+
type: "networkmanagement.googleapis.com/VpcFlowLogsConfig"
229+
}
230+
];
231+
}

0 commit comments

Comments
 (0)