Skip to content

Commit ddb0db6

Browse files
feat: [chronicle] Adding Client Libraries for BigQueryExportService (googleapis#8139)
* feat: Support NativeDashboardService, DashboardChartService, DashboardQueryService, FeaturedContentNativeDashboardService, FeaturedContentMetadata for v1 PiperOrigin-RevId: 907979786 Source-Link: googleapis/googleapis@d9675db Source-Link: https://github.com/googleapis/googleapis-gen/commit/81c5aaeedab56f8f361065c777c52c9d2172fbeb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNocm9uaWNsZS8uT3dsQm90LnlhbWwiLCJoIjoiODFjNWFhZWVkYWI1NmY4ZjM2MTA2NWM3NzdjNTJjOWQyMTcyZmJlYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Adding Client Libraries for BigQueryExportService PiperOrigin-RevId: 908082452 Source-Link: googleapis/googleapis@2638026 Source-Link: https://github.com/googleapis/googleapis-gen/commit/62936673bdee50eeded2ff18b7a96ea8b7ec6d60 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNocm9uaWNsZS8uT3dsQm90LnlhbWwiLCJoIjoiNjI5MzY2NzNiZGVlNTBlZWRlZDJmZjE4YjdhOTZlYThiN2VjNmQ2MCJ9 * 🦉 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 70fbb25 commit ddb0db6

79 files changed

Lines changed: 88838 additions & 13135 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2026 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+
// https://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+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
module.exports = {
21+
...require('gts/.prettierrc.json')
22+
}

packages/google-cloud-chronicle/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
5757

5858
| Sample | Source Code |
5959
| --------------------------- | --------------------------------- |
60+
| get big query export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/big_query_export_service.get_big_query_export.js) |
61+
| provision big query export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/big_query_export_service.provision_big_query_export.js) |
62+
| update big query export | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/big_query_export_service.update_big_query_export.js) |
63+
| batch get dashboard charts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/dashboard_chart_service.batch_get_dashboard_charts.js) |
64+
| get dashboard chart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/dashboard_chart_service.get_dashboard_chart.js) |
65+
| execute dashboard query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/dashboard_query_service.execute_dashboard_query.js) |
66+
| get dashboard query | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/dashboard_query_service.get_dashboard_query.js) |
6067
| create data access label | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/data_access_control_service.create_data_access_label.js) |
6168
| create data access scope | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/data_access_control_service.create_data_access_scope.js) |
6269
| delete data access label | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/data_access_control_service.delete_data_access_label.js) |
@@ -87,7 +94,22 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
8794
| get watchlist | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/entity_service.get_watchlist.js) |
8895
| list watchlists | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/entity_service.list_watchlists.js) |
8996
| update watchlist | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/entity_service.update_watchlist.js) |
97+
| get featured content native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/featured_content_native_dashboard_service.get_featured_content_native_dashboard.js) |
98+
| install featured content native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/featured_content_native_dashboard_service.install_featured_content_native_dashboard.js) |
99+
| list featured content native dashboards | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/featured_content_native_dashboard_service.list_featured_content_native_dashboards.js) |
90100
| get instance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/instance_service.get_instance.js) |
101+
| add chart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.add_chart.js) |
102+
| create native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.create_native_dashboard.js) |
103+
| delete native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.delete_native_dashboard.js) |
104+
| duplicate chart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.duplicate_chart.js) |
105+
| duplicate native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.duplicate_native_dashboard.js) |
106+
| edit chart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.edit_chart.js) |
107+
| export native dashboards | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.export_native_dashboards.js) |
108+
| get native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.get_native_dashboard.js) |
109+
| import native dashboards | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.import_native_dashboards.js) |
110+
| list native dashboards | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.list_native_dashboards.js) |
111+
| remove chart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.remove_chart.js) |
112+
| update native dashboard | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/native_dashboard_service.update_native_dashboard.js) |
91113
| create reference list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/reference_list_service.create_reference_list.js) |
92114
| get reference list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/reference_list_service.get_reference_list.js) |
93115
| list reference lists | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-chronicle/samples/generated/v1/reference_list_service.list_reference_lists.js) |
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
// Copyright 2026 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.chronicle.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/protobuf/field_mask.proto";
24+
import "google/protobuf/timestamp.proto";
25+
26+
option csharp_namespace = "Google.Cloud.Chronicle.V1";
27+
option go_package = "cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "BigQueryExportProto";
30+
option java_package = "com.google.cloud.chronicle.v1";
31+
option php_namespace = "Google\\Cloud\\Chronicle\\V1";
32+
option ruby_package = "Google::Cloud::Chronicle::V1";
33+
34+
// Service for managing BigQuery export configurations for Chronicle instances.
35+
service BigQueryExportService {
36+
option (google.api.default_host) = "chronicle.googleapis.com";
37+
option (google.api.oauth_scopes) =
38+
"https://www.googleapis.com/auth/chronicle,"
39+
"https://www.googleapis.com/auth/chronicle.readonly,"
40+
"https://www.googleapis.com/auth/cloud-platform";
41+
42+
// Get the BigQuery export configuration for a Chronicle instance.
43+
rpc GetBigQueryExport(GetBigQueryExportRequest) returns (BigQueryExport) {
44+
option (google.api.http) = {
45+
get: "/v1/{name=projects/*/locations/*/instances/*/bigQueryExport}"
46+
};
47+
option (google.api.method_signature) = "name";
48+
}
49+
50+
// Update the BigQuery export configuration for a Chronicle instance.
51+
rpc UpdateBigQueryExport(UpdateBigQueryExportRequest)
52+
returns (BigQueryExport) {
53+
option (google.api.http) = {
54+
patch: "/v1/{big_query_export.name=projects/*/locations/*/instances/*/bigQueryExport}"
55+
body: "big_query_export"
56+
};
57+
option (google.api.method_signature) = "big_query_export,update_mask";
58+
}
59+
60+
// Provision the BigQuery export for a Chronicle instance. This will create
61+
// {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets
62+
// and set default export settings for each data source.
63+
rpc ProvisionBigQueryExport(ProvisionBigQueryExportRequest)
64+
returns (BigQueryExport) {
65+
option (google.api.http) = {
66+
post: "/v1/{parent=projects/*/locations/*/instances/*}/bigQueryExport:provision"
67+
body: "*"
68+
};
69+
option (google.api.method_signature) = "parent";
70+
}
71+
}
72+
73+
// The BigQueryExportPackage entitled for the Chronicle instance.
74+
enum BigQueryExportPackage {
75+
// The BigQueryExportPackage is unspecified.
76+
BIG_QUERY_EXPORT_PACKAGE_UNSPECIFIED = 0;
77+
78+
// The BigQueryExportPackage is Bring Your Own BigQuery.
79+
BIG_QUERY_EXPORT_PACKAGE_BYOBQ = 1;
80+
81+
// The BigQueryExportPackage is Advanced BigQuery.
82+
BIG_QUERY_EXPORT_PACKAGE_ADVANCED = 2;
83+
}
84+
85+
// The state of the latest data source export job.
86+
enum LatestExportJobState {
87+
// The latest export job state is unspecified.
88+
LATEST_EXPORT_JOB_STATE_UNSPECIFIED = 0;
89+
90+
// The latest export job state is successful.
91+
LATEST_EXPORT_JOB_STATE_SUCCESS = 1;
92+
93+
// The latest export job state is failed.
94+
LATEST_EXPORT_JOB_STATE_FAILED = 2;
95+
}
96+
97+
// This resource represents the BigQuery export configuration for a Chronicle
98+
// instance which includes Google Cloud Platform resources like Cloud Storage
99+
// buckets, BigQuery datasets etc and the export settings for each data source.
100+
message BigQueryExport {
101+
option (google.api.resource) = {
102+
type: "chronicle.googleapis.com/BigQueryExport"
103+
pattern: "projects/{project}/locations/{location}/instances/{instance}/bigQueryExport"
104+
plural: "bigQueryExport"
105+
singular: "bigQueryExport"
106+
};
107+
108+
// Identifier. The resource name of the BigQueryExport.
109+
// Format:
110+
// projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
111+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
112+
113+
// Output only. Whether the BigQueryExport has been provisioned for the
114+
// Chronicle instance.
115+
bool provisioned = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
116+
117+
// Output only. The BigQueryExportPackage entitled for the Chronicle instance.
118+
BigQueryExportPackage big_query_export_package = 3
119+
[(google.api.field_behavior) = OUTPUT_ONLY];
120+
121+
// Optional. The export settings for the Entity Graph data source.
122+
DataSourceExportSettings entity_graph_settings = 4
123+
[(google.api.field_behavior) = OPTIONAL];
124+
125+
// Optional. The export settings for the IOC Matches data source.
126+
DataSourceExportSettings ioc_matches_settings = 5
127+
[(google.api.field_behavior) = OPTIONAL];
128+
129+
// Optional. The export settings for the Rule Detections data source.
130+
DataSourceExportSettings rule_detections_settings = 6
131+
[(google.api.field_behavior) = OPTIONAL];
132+
133+
// Optional. The export settings for the UDM Events Aggregates data source.
134+
DataSourceExportSettings udm_events_aggregates_settings = 7
135+
[(google.api.field_behavior) = OPTIONAL];
136+
137+
// Optional. The export settings for the UDM Events data source.
138+
DataSourceExportSettings udm_events_settings = 8
139+
[(google.api.field_behavior) = OPTIONAL];
140+
}
141+
142+
// The export settings for a data source.
143+
message DataSourceExportSettings {
144+
// Required. Whether the data source is enabled for export.
145+
bool enabled = 1 [(google.api.field_behavior) = REQUIRED];
146+
147+
// Required. The retention period for the data source in days.
148+
int32 retention_days = 2 [(google.api.field_behavior) = REQUIRED];
149+
150+
// Output only. The state of the latest data source export job.
151+
LatestExportJobState latest_export_job_state = 3
152+
[(google.api.field_behavior) = OUTPUT_ONLY];
153+
154+
// Output only. The data freshness of the given export which represents the
155+
// time bucket at which the latest event was exported.
156+
google.protobuf.Timestamp data_freshness_time = 4
157+
[(google.api.field_behavior) = OUTPUT_ONLY];
158+
159+
// Output only. The stored data volume of all the exports.
160+
int64 data_volume = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
161+
}
162+
163+
// The request message to fetch BigQuery Export configuration.
164+
message GetBigQueryExportRequest {
165+
// Required. The resource name of the BigqueryExport to retrieve.
166+
// Format:
167+
// projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
168+
string name = 1 [
169+
(google.api.field_behavior) = REQUIRED,
170+
(google.api.resource_reference) = {
171+
type: "chronicle.googleapis.com/BigQueryExport"
172+
}
173+
];
174+
}
175+
176+
// The request message to update BigQuery Export configuration.
177+
message UpdateBigQueryExportRequest {
178+
// Required. The BigQueryExport settings to update.
179+
// Format:
180+
// projects/{project}/locations/{location}/instances/{instance}/bigQueryExport
181+
BigQueryExport big_query_export = 1 [(google.api.field_behavior) = REQUIRED];
182+
183+
// Optional. The list of fields to update.
184+
google.protobuf.FieldMask update_mask = 2
185+
[(google.api.field_behavior) = OPTIONAL];
186+
}
187+
188+
// The request message to provision BigQuery Export configuration.
189+
message ProvisionBigQueryExportRequest {
190+
// Required. The instance for which BigQuery export is being provisioned.
191+
// Format: projects/{project}/locations/{location}/instances/{instance}
192+
string parent = 1 [
193+
(google.api.field_behavior) = REQUIRED,
194+
(google.api.resource_reference) = {
195+
child_type: "chronicle.googleapis.com/BigQueryExport"
196+
}
197+
];
198+
}

0 commit comments

Comments
 (0)