google-cloud-chronicle-v1 1.4.0 → 1.5.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/lib/google/cloud/chronicle/v1/curated_rule_pb.rb +31 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_pb.rb +33 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/client.rb +540 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/paths.rb +52 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/rest/client.rb +490 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/rest/service_stub.rb +142 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service/rest.rb +53 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_service.rb +56 -0
- data/lib/google/cloud/chronicle/v1/featured_content_rule_services_pb.rb +46 -0
- data/lib/google/cloud/chronicle/v1/rest.rb +2 -1
- data/lib/google/cloud/chronicle/v1/rule_execution_error_pb.rb +1 -1
- data/lib/google/cloud/chronicle/v1/version.rb +1 -1
- data/lib/google/cloud/chronicle/v1.rb +2 -1
- data/proto_docs/google/cloud/chronicle/v1/curated_rule.rb +117 -0
- data/proto_docs/google/cloud/chronicle/v1/featured_content_rule.rb +208 -0
- metadata +13 -1
|
@@ -0,0 +1,142 @@
|
|
|
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 "google/cloud/chronicle/v1/featured_content_rule_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Chronicle
|
|
24
|
+
module V1
|
|
25
|
+
module FeaturedContentRuleService
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the FeaturedContentRuleService service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the list_featured_content_rules REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def list_featured_content_rules request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_featured_content_rules_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "list_featured_content_rules",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# @private
|
|
118
|
+
#
|
|
119
|
+
# GRPC transcoding helper method for the list_featured_content_rules REST call
|
|
120
|
+
#
|
|
121
|
+
# @param request_pb [::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesRequest]
|
|
122
|
+
# A request object representing the call parameters. Required.
|
|
123
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
124
|
+
# Uri, Body, Query string parameters
|
|
125
|
+
def self.transcode_list_featured_content_rules_request request_pb
|
|
126
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
127
|
+
.with_bindings(
|
|
128
|
+
uri_method: :get,
|
|
129
|
+
uri_template: "/v1/{parent}/featuredContentRules",
|
|
130
|
+
matches: [
|
|
131
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/contentHub/?$}, false]
|
|
132
|
+
]
|
|
133
|
+
)
|
|
134
|
+
transcoder.transcode request_pb
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
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 "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/chronicle/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/credentials"
|
|
26
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/paths"
|
|
27
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/rest/client"
|
|
28
|
+
|
|
29
|
+
module Google
|
|
30
|
+
module Cloud
|
|
31
|
+
module Chronicle
|
|
32
|
+
module V1
|
|
33
|
+
##
|
|
34
|
+
# This service provides functionality for managing
|
|
35
|
+
# FeaturedContentRule.
|
|
36
|
+
#
|
|
37
|
+
# To load this service and instantiate a REST client:
|
|
38
|
+
#
|
|
39
|
+
# require "google/cloud/chronicle/v1/featured_content_rule_service/rest"
|
|
40
|
+
# client = ::Google::Cloud::Chronicle::V1::FeaturedContentRuleService::Rest::Client.new
|
|
41
|
+
#
|
|
42
|
+
module FeaturedContentRuleService
|
|
43
|
+
# Client for the REST transport
|
|
44
|
+
module Rest
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
53
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
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 "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/chronicle/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/credentials"
|
|
26
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/paths"
|
|
27
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/client"
|
|
28
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/rest"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Cloud
|
|
32
|
+
module Chronicle
|
|
33
|
+
module V1
|
|
34
|
+
##
|
|
35
|
+
# This service provides functionality for managing
|
|
36
|
+
# FeaturedContentRule.
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/chronicle/v1/featured_content_rule_service"
|
|
41
|
+
# client = ::Google::Cloud::Chronicle::V1::FeaturedContentRuleService::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/chronicle/v1/featured_content_rule_service/rest"
|
|
46
|
+
# client = ::Google::Cloud::Chronicle::V1::FeaturedContentRuleService::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module FeaturedContentRuleService
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "featured_content_rule_service", "helpers.rb"
|
|
56
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/chronicle/v1/featured_content_rule.proto for package 'Google.Cloud.Chronicle.V1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 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/chronicle/v1/featured_content_rule_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Chronicle
|
|
25
|
+
module V1
|
|
26
|
+
module FeaturedContentRuleService
|
|
27
|
+
# This service provides functionality for managing
|
|
28
|
+
# FeaturedContentRule.
|
|
29
|
+
class Service
|
|
30
|
+
|
|
31
|
+
include ::GRPC::GenericService
|
|
32
|
+
|
|
33
|
+
self.marshal_class_method = :encode
|
|
34
|
+
self.unmarshal_class_method = :decode
|
|
35
|
+
self.service_name = 'google.cloud.chronicle.v1.FeaturedContentRuleService'
|
|
36
|
+
|
|
37
|
+
# Lists FeaturedContentRules
|
|
38
|
+
rpc :ListFeaturedContentRules, ::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesRequest, ::Google::Cloud::Chronicle::V1::ListFeaturedContentRulesResponse
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Stub = Service.rpc_stub_class
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
18
|
|
|
19
19
|
require "google/cloud/chronicle/v1/big_query_export_service/rest"
|
|
20
|
+
require "google/cloud/chronicle/v1/rule_service/rest"
|
|
20
21
|
require "google/cloud/chronicle/v1/dashboard_query_service/rest"
|
|
21
22
|
require "google/cloud/chronicle/v1/dashboard_chart_service/rest"
|
|
22
23
|
require "google/cloud/chronicle/v1/data_access_control_service/rest"
|
|
@@ -24,11 +25,11 @@ require "google/cloud/chronicle/v1/data_table_service/rest"
|
|
|
24
25
|
require "google/cloud/chronicle/v1/entity_service/rest"
|
|
25
26
|
require "google/cloud/chronicle/v1/native_dashboard_service/rest"
|
|
26
27
|
require "google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest"
|
|
28
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service/rest"
|
|
27
29
|
require "google/cloud/chronicle/v1/feeds_service/rest"
|
|
28
30
|
require "google/cloud/chronicle/v1/findings_refinement_service/rest"
|
|
29
31
|
require "google/cloud/chronicle/v1/instance_service/rest"
|
|
30
32
|
require "google/cloud/chronicle/v1/reference_list_service/rest"
|
|
31
|
-
require "google/cloud/chronicle/v1/rule_service/rest"
|
|
32
33
|
require "google/cloud/chronicle/v1/rule_execution_error_service/rest"
|
|
33
34
|
require "google/cloud/chronicle/v1/search_service/rest"
|
|
34
35
|
require "google/cloud/chronicle/v1/version"
|
|
@@ -12,7 +12,7 @@ require 'google/rpc/status_pb'
|
|
|
12
12
|
require 'google/type/interval_pb'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
descriptor_data = "\n4google/cloud/chronicle/v1/rule_execution_error.proto\x12\x19google.cloud.chronicle.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"\x9d\x01\n\x1eListRuleExecutionErrorsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\x12+chronicle.googleapis.com/RuleExecutionError\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x88\x01\n\x1fListRuleExecutionErrorsResponse\x12L\n\x15rule_execution_errors\x18\x01 \x03(\x0b\x32-.google.cloud.chronicle.v1.RuleExecutionError\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x03\n\x12RuleExecutionError\x12\x36\n\x04rule\x18\x04 \x01(\tB&\xe2\x41\x01\x03\xfa\x41\x1f\n\x1d\x63hronicle.googleapis.com/RuleH\x00\x12\x45\n\x0c\x63urated_rule\x18\x05 \x01(\tB-\xe2\x41\x01\x03\xfa\x41&\n$chronicle.googleapis.com/CuratedRuleH\x00\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\'\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x04\xe2\x41\x01\x03\x12/\n\ntime_range\x18\x03 \x01(\x0b\x32\x15.google.type.IntervalB\x04\xe2\x41\x01\x03:\x9a\x01\xea\x41\x96\x01\n+chronicle.googleapis.com/RuleExecutionError\x12gprojects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}B\x08\n\x06source2\xb1\x03\n\x19RuleExecutionErrorService\x12\xe6\x01\n\x17ListRuleExecutionErrors\x12\x39.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest\x1a:.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*/instances/*}/ruleExecutionErrors\x1a\xaa\x01\xca\x41\x18\x63hronicle.googleapis.com\xd2\x41\x8b\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\
|
|
15
|
+
descriptor_data = "\n4google/cloud/chronicle/v1/rule_execution_error.proto\x12\x19google.cloud.chronicle.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"\x9d\x01\n\x1eListRuleExecutionErrorsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\x12+chronicle.googleapis.com/RuleExecutionError\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"\x88\x01\n\x1fListRuleExecutionErrorsResponse\x12L\n\x15rule_execution_errors\x18\x01 \x03(\x0b\x32-.google.cloud.chronicle.v1.RuleExecutionError\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa8\x03\n\x12RuleExecutionError\x12\x36\n\x04rule\x18\x04 \x01(\tB&\xe2\x41\x01\x03\xfa\x41\x1f\n\x1d\x63hronicle.googleapis.com/RuleH\x00\x12\x45\n\x0c\x63urated_rule\x18\x05 \x01(\tB-\xe2\x41\x01\x03\xfa\x41&\n$chronicle.googleapis.com/CuratedRuleH\x00\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\'\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusB\x04\xe2\x41\x01\x03\x12/\n\ntime_range\x18\x03 \x01(\x0b\x32\x15.google.type.IntervalB\x04\xe2\x41\x01\x03:\x9a\x01\xea\x41\x96\x01\n+chronicle.googleapis.com/RuleExecutionError\x12gprojects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}B\x08\n\x06source2\xb1\x03\n\x19RuleExecutionErrorService\x12\xe6\x01\n\x17ListRuleExecutionErrors\x12\x39.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest\x1a:.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*/instances/*}/ruleExecutionErrors\x1a\xaa\x01\xca\x41\x18\x63hronicle.googleapis.com\xd2\x41\x8b\x01https://www.googleapis.com/auth/chronicle,https://www.googleapis.com/auth/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\xce\x01\n\x1d\x63om.google.cloud.chronicle.v1B\x17RuleExecutionErrorProtoP\x01Z;cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb\xaa\x02\x19Google.Cloud.Chronicle.V1\xca\x02\x19Google\\Cloud\\Chronicle\\V1\xea\x02\x1cGoogle::Cloud::Chronicle::V1b\x06proto3"
|
|
16
16
|
|
|
17
17
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
18
|
|
|
19
19
|
require "google/cloud/chronicle/v1/big_query_export_service"
|
|
20
|
+
require "google/cloud/chronicle/v1/rule_service"
|
|
20
21
|
require "google/cloud/chronicle/v1/dashboard_query_service"
|
|
21
22
|
require "google/cloud/chronicle/v1/dashboard_chart_service"
|
|
22
23
|
require "google/cloud/chronicle/v1/data_access_control_service"
|
|
@@ -24,11 +25,11 @@ require "google/cloud/chronicle/v1/data_table_service"
|
|
|
24
25
|
require "google/cloud/chronicle/v1/entity_service"
|
|
25
26
|
require "google/cloud/chronicle/v1/native_dashboard_service"
|
|
26
27
|
require "google/cloud/chronicle/v1/featured_content_native_dashboard_service"
|
|
28
|
+
require "google/cloud/chronicle/v1/featured_content_rule_service"
|
|
27
29
|
require "google/cloud/chronicle/v1/feeds_service"
|
|
28
30
|
require "google/cloud/chronicle/v1/findings_refinement_service"
|
|
29
31
|
require "google/cloud/chronicle/v1/instance_service"
|
|
30
32
|
require "google/cloud/chronicle/v1/reference_list_service"
|
|
31
|
-
require "google/cloud/chronicle/v1/rule_service"
|
|
32
33
|
require "google/cloud/chronicle/v1/rule_execution_error_service"
|
|
33
34
|
require "google/cloud/chronicle/v1/search_service"
|
|
34
35
|
require "google/cloud/chronicle/v1/version"
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
# Represents a rule authored by Chronicle's Google Cloud Threat Intelligence
|
|
25
|
+
# (GCTI).
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Required. Full resource name for the curated rule.
|
|
29
|
+
# Format:
|
|
30
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/curatedRules/\\{curatedRule}
|
|
31
|
+
# @!attribute [r] display_name
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Output only. Unique display name of the curated rule.
|
|
34
|
+
# @!attribute [r] severity
|
|
35
|
+
# @return [::Google::Cloud::Chronicle::V1::Severity]
|
|
36
|
+
# Output only. The severity of the curated rule.
|
|
37
|
+
# @!attribute [r] metadata
|
|
38
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
39
|
+
# Output only. Additional unstructured metadata.
|
|
40
|
+
# @!attribute [r] type
|
|
41
|
+
# @return [::Google::Cloud::Chronicle::V1::RuleType]
|
|
42
|
+
# Output only. User-facing type of the curated rule.
|
|
43
|
+
# @!attribute [r] precision
|
|
44
|
+
# @return [::Google::Cloud::Chronicle::V1::CuratedRulePrecision]
|
|
45
|
+
# Output only. Precision level of the curated rule.
|
|
46
|
+
# @!attribute [r] tactics
|
|
47
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::MitreTactic>]
|
|
48
|
+
# Output only. Mitre tactics covered by the curated rule.
|
|
49
|
+
# @!attribute [r] techniques
|
|
50
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::MitreTechnique>]
|
|
51
|
+
# Output only. Mitre techniques covered by the curated rule.
|
|
52
|
+
# @!attribute [r] update_time
|
|
53
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
54
|
+
# Output only. The timestamp of when the curated rule was last updated.
|
|
55
|
+
# @!attribute [r] curated_rule_set
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Output only. The parent CuratedRuleSet that the rule is listed under.
|
|
58
|
+
# Format:
|
|
59
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/curatedRuleSetCategories/\\{category}/curatedRuleSets/\\{rule_set}
|
|
60
|
+
# @!attribute [r] description
|
|
61
|
+
# @return [::String]
|
|
62
|
+
# Output only. The description of the curated rule.
|
|
63
|
+
class CuratedRule
|
|
64
|
+
include ::Google::Protobuf::MessageExts
|
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
66
|
+
|
|
67
|
+
# @!attribute [rw] key
|
|
68
|
+
# @return [::String]
|
|
69
|
+
# @!attribute [rw] value
|
|
70
|
+
# @return [::String]
|
|
71
|
+
class MetadataEntry
|
|
72
|
+
include ::Google::Protobuf::MessageExts
|
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# MitreTactic represents a MITRE ATT&CK tactic.
|
|
78
|
+
# @!attribute [rw] id
|
|
79
|
+
# @return [::String]
|
|
80
|
+
# The ID of the tactic.
|
|
81
|
+
# @!attribute [rw] display_name
|
|
82
|
+
# @return [::String]
|
|
83
|
+
# The human-readable name of the tactic.
|
|
84
|
+
class MitreTactic
|
|
85
|
+
include ::Google::Protobuf::MessageExts
|
|
86
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# MitreTechnique represents a MITRE ATT&CK technique.
|
|
90
|
+
# @!attribute [rw] id
|
|
91
|
+
# @return [::String]
|
|
92
|
+
# The ID of the technique.
|
|
93
|
+
# @!attribute [rw] display_name
|
|
94
|
+
# @return [::String]
|
|
95
|
+
# The human-readable name of the technique.
|
|
96
|
+
class MitreTechnique
|
|
97
|
+
include ::Google::Protobuf::MessageExts
|
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# CuratedRulePrecision is an enum representing the precision level of
|
|
102
|
+
# CuratedRules.
|
|
103
|
+
module CuratedRulePrecision
|
|
104
|
+
# Unspecified precision.
|
|
105
|
+
CURATED_RULE_PRECISION_UNSPECIFIED = 0
|
|
106
|
+
|
|
107
|
+
# Precise rules tend to match relatively few events, but carry a higher
|
|
108
|
+
# significance.
|
|
109
|
+
PRECISE = 1
|
|
110
|
+
|
|
111
|
+
# Broad rules tend to match more events, but may be less significant.
|
|
112
|
+
BROAD = 2
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|