google-cloud-chronicle-v1 0.4.0 → 0.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +6 -6
- data/lib/google/cloud/chronicle/v1/big_query_export_pb.rb +34 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/client.rb +682 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/paths.rb +71 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb +618 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/service_stub.rb +266 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/big_query_export_services_pb.rb +51 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_pb.rb +83 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb +584 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb +73 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/client.rb +527 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/service_stub.rb +203 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/dashboard_chart_services_pb.rb +47 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_pb.rb +58 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/client.rb +589 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/paths.rb +94 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/client.rb +532 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/dashboard_query_services_pb.rb +47 -0
- data/lib/google/cloud/chronicle/v1/data_table_pb.rb +57 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/client.rb +1915 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/paths.rb +138 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest/client.rb +1767 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest/service_stub.rb +1004 -0
- data/lib/google/cloud/chronicle/v1/data_table_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/data_table_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/data_table_services_pb.rb +73 -0
- data/lib/google/cloud/chronicle/v1/featured_content_metadata_pb.rb +25 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_pb.rb +33 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/client.rb +717 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb +136 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb +653 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest.rb +53 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service.rb +56 -0
- data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_services_pb.rb +50 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_pb.rb +61 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/client.rb +1611 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/paths.rb +115 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/client.rb +1484 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/service_stub.rb +822 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/native_dashboard_services_pb.rb +67 -0
- data/lib/google/cloud/chronicle/v1/rest.rb +7 -1
- data/lib/google/cloud/chronicle/v1/version.rb +1 -1
- data/lib/google/cloud/chronicle/v1.rb +8 -2
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/chronicle/v1/big_query_export.rb +142 -0
- data/proto_docs/google/cloud/chronicle/v1/dashboard_chart.rb +923 -0
- data/proto_docs/google/cloud/chronicle/v1/dashboard_query.rb +653 -0
- data/proto_docs/google/cloud/chronicle/v1/data_table.rb +512 -0
- data/proto_docs/google/cloud/chronicle/v1/featured_content_metadata.rb +82 -0
- data/proto_docs/google/cloud/chronicle/v1/featured_content_native_dashboard.rb +141 -0
- data/proto_docs/google/cloud/chronicle/v1/native_dashboard.rb +502 -0
- data/proto_docs/google/type/date.rb +56 -0
- metadata +71 -9
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Chronicle
|
|
24
|
+
module V1
|
|
25
|
+
module NativeDashboardService
|
|
26
|
+
# Credentials for the NativeDashboardService API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/chronicle",
|
|
30
|
+
"https://www.googleapis.com/auth/chronicle.readonly",
|
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
32
|
+
]
|
|
33
|
+
self.env_vars = [
|
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
36
|
+
"GCLOUD_KEYFILE",
|
|
37
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
38
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
39
|
+
"GCLOUD_KEYFILE_JSON"
|
|
40
|
+
]
|
|
41
|
+
self.paths = [
|
|
42
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
43
|
+
]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 Chronicle
|
|
23
|
+
module V1
|
|
24
|
+
module NativeDashboardService
|
|
25
|
+
# Path helper methods for the NativeDashboardService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified DashboardChart resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param instance [String]
|
|
37
|
+
# @param chart [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def dashboard_chart_path project:, location:, instance:, chart:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/dashboardCharts/#{chart}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Create a fully-qualified DashboardQuery resource string.
|
|
50
|
+
#
|
|
51
|
+
# The resource will be in the following format:
|
|
52
|
+
#
|
|
53
|
+
# `projects/{project}/locations/{location}/instances/{instance}/dashboardQueries/{query}`
|
|
54
|
+
#
|
|
55
|
+
# @param project [String]
|
|
56
|
+
# @param location [String]
|
|
57
|
+
# @param instance [String]
|
|
58
|
+
# @param query [String]
|
|
59
|
+
#
|
|
60
|
+
# @return [::String]
|
|
61
|
+
def dashboard_query_path project:, location:, instance:, query:
|
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
64
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
65
|
+
|
|
66
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/dashboardQueries/#{query}"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
# Create a fully-qualified Instance resource string.
|
|
71
|
+
#
|
|
72
|
+
# The resource will be in the following format:
|
|
73
|
+
#
|
|
74
|
+
# `projects/{project}/locations/{location}/instances/{instance}`
|
|
75
|
+
#
|
|
76
|
+
# @param project [String]
|
|
77
|
+
# @param location [String]
|
|
78
|
+
# @param instance [String]
|
|
79
|
+
#
|
|
80
|
+
# @return [::String]
|
|
81
|
+
def instance_path project:, location:, instance:
|
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
84
|
+
|
|
85
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
##
|
|
89
|
+
# Create a fully-qualified NativeDashboard resource string.
|
|
90
|
+
#
|
|
91
|
+
# The resource will be in the following format:
|
|
92
|
+
#
|
|
93
|
+
# `projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}`
|
|
94
|
+
#
|
|
95
|
+
# @param project [String]
|
|
96
|
+
# @param location [String]
|
|
97
|
+
# @param instance [String]
|
|
98
|
+
# @param dashboard [String]
|
|
99
|
+
#
|
|
100
|
+
# @return [::String]
|
|
101
|
+
def native_dashboard_path project:, location:, instance:, dashboard:
|
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
104
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
105
|
+
|
|
106
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/nativeDashboards/#{dashboard}"
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
extend self
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|