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,208 @@
|
|
|
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
|
+
# FeaturedContentRule resource.
|
|
25
|
+
# Next ID: 16
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Identifier. Full resource name for the FeaturedContentRule.
|
|
29
|
+
# Format:
|
|
30
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/contentHub/featuredContentRules/\\{featured_content_rule}
|
|
31
|
+
# @!attribute [r] content_metadata
|
|
32
|
+
# @return [::Google::Cloud::Chronicle::V1::FeaturedContentMetadata]
|
|
33
|
+
# Output only. Metadata for all teams.
|
|
34
|
+
# @!attribute [rw] curated_rule_content
|
|
35
|
+
# @return [::Google::Cloud::Chronicle::V1::CuratedRule]
|
|
36
|
+
# Optional. The curated rule content.
|
|
37
|
+
# @!attribute [r] rule_text
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# Output only. Rule text.
|
|
40
|
+
# @!attribute [rw] rule_text_hidden
|
|
41
|
+
# @return [::Boolean]
|
|
42
|
+
# Indicates if the curated rule text is hidden because rule is private or
|
|
43
|
+
# customer is missing entitlements.
|
|
44
|
+
# @!attribute [r] rule_assumption
|
|
45
|
+
# @return [::String]
|
|
46
|
+
# Output only. The assumption of the rule.
|
|
47
|
+
# @!attribute [r] severity
|
|
48
|
+
# @return [::Google::Cloud::Chronicle::V1::FeaturedContentRule::RuleSeverity]
|
|
49
|
+
# Output only. The severity of the rule.
|
|
50
|
+
# @!attribute [rw] alerting_status_enabled
|
|
51
|
+
# @return [::Boolean]
|
|
52
|
+
# Alerting status for the curated rule.
|
|
53
|
+
# @!attribute [rw] live_status_enabled
|
|
54
|
+
# @return [::Boolean]
|
|
55
|
+
# Live status for the curated rule.
|
|
56
|
+
# @!attribute [rw] rule_entitlement
|
|
57
|
+
# @return [::Google::Cloud::Chronicle::V1::RuleEntitlement]
|
|
58
|
+
# Indicates the entitlement of the curated rule.
|
|
59
|
+
# @!attribute [r] category_id
|
|
60
|
+
# @return [::String]
|
|
61
|
+
# Output only. The category pack ID of the curated rule.
|
|
62
|
+
# @!attribute [r] rule_set
|
|
63
|
+
# @return [::Google::Cloud::Chronicle::V1::RuleSet]
|
|
64
|
+
# Output only. The rule set information for the curated rule.
|
|
65
|
+
# @!attribute [r] private_rule
|
|
66
|
+
# @return [::Boolean]
|
|
67
|
+
# Output only. Indicates if the curated rule is private.
|
|
68
|
+
# If rule is marked as private, the rule text will be hidden.
|
|
69
|
+
# @!attribute [r] missing_entitlements
|
|
70
|
+
# @return [::Boolean]
|
|
71
|
+
# Output only. Indicates if the customer is missing entitlements.
|
|
72
|
+
# If customer is missing entitlements, the rule text will be hidden.
|
|
73
|
+
# @!attribute [r] non_upgradable
|
|
74
|
+
# @return [::Boolean]
|
|
75
|
+
# Output only. Indicates if the rule is non-upgradable to Chronicle tiers.
|
|
76
|
+
# If rule is non-upgradable, the rule text will be hidden.
|
|
77
|
+
class FeaturedContentRule
|
|
78
|
+
include ::Google::Protobuf::MessageExts
|
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
|
|
81
|
+
# RuleSeverity is an enum representing the severity of the rule.
|
|
82
|
+
module RuleSeverity
|
|
83
|
+
# Unspecified severity.
|
|
84
|
+
RULE_SEVERITY_UNSPECIFIED = 0
|
|
85
|
+
|
|
86
|
+
# Rule is set to low severity.
|
|
87
|
+
LOW = 1
|
|
88
|
+
|
|
89
|
+
# Rule is set to medium severity.
|
|
90
|
+
MEDIUM = 2
|
|
91
|
+
|
|
92
|
+
# Rule is set to high severity.
|
|
93
|
+
HIGH = 3
|
|
94
|
+
|
|
95
|
+
# Rule is set to critical severity.
|
|
96
|
+
CRITICAL = 4
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Request message for ListFeaturedContentRules method.
|
|
101
|
+
# @!attribute [rw] parent
|
|
102
|
+
# @return [::String]
|
|
103
|
+
# Required. The parent which owns this collection of FeaturedContentRules.
|
|
104
|
+
# Format:
|
|
105
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/contentHub
|
|
106
|
+
# @!attribute [rw] page_size
|
|
107
|
+
# @return [::Integer]
|
|
108
|
+
# Optional. The maximum number of featured contents to return. The service
|
|
109
|
+
# may return fewer than this value. If unspecified, at most 100 featured
|
|
110
|
+
# contents will be returned. The maximum value is 1000; values above 1000
|
|
111
|
+
# will be coerced to 100.
|
|
112
|
+
# @!attribute [rw] page_token
|
|
113
|
+
# @return [::String]
|
|
114
|
+
# Optional. A page token, received from a previous `ListFeaturedContentRules`
|
|
115
|
+
# call. Provide this to retrieve the subsequent page.
|
|
116
|
+
# @!attribute [rw] filter
|
|
117
|
+
# @return [::String]
|
|
118
|
+
# Optional. Only the following filters are allowed:
|
|
119
|
+
# Under HAS operator: Filtering through category names:
|
|
120
|
+
# - Singular: `category_name:"<category_name>"`
|
|
121
|
+
# - Multiple: `category_name:"<category_name1>" OR
|
|
122
|
+
# category_name:"<category_name2>"`
|
|
123
|
+
# -- You can only use OR operator between multiple category_name filters.
|
|
124
|
+
#
|
|
125
|
+
# Filtering through policy names:
|
|
126
|
+
# - Singular: `policy_name:"<policy_name>"`
|
|
127
|
+
# - Multiple: `policy_name:"<policy_name1>" OR
|
|
128
|
+
# policy_name:"<policy_name2>"`
|
|
129
|
+
# -- You can only use OR operator between multiple policy_name filters.
|
|
130
|
+
#
|
|
131
|
+
# Filtering through rule IDs:
|
|
132
|
+
# - Singular: `rule_id:"ur_<id>"`
|
|
133
|
+
# - Multiple: `rule_id:"ur_<rule_id1>" OR rule_id:"ur_<rule_id2>"`
|
|
134
|
+
# -- You can only use OR operator between multiple rule_id filters.
|
|
135
|
+
#
|
|
136
|
+
# Filtering through rule precision: `rule_precision:"<rule_precision>"`
|
|
137
|
+
# -- Rule precision values can be "Precise" or "Broad". If something else
|
|
138
|
+
# is passed, the rule precision will default to "Unknown". You can only
|
|
139
|
+
# filter by one rule precision value.
|
|
140
|
+
#
|
|
141
|
+
# Under MATCHES_REGEXP operator: Search through rule name or description
|
|
142
|
+
# (behaves like a string contains): This search is case-insensitive and
|
|
143
|
+
# filters through the rule metadata, specifically the rule_name and
|
|
144
|
+
# description keys. `search_rule_name_or_description=~"<rule_name> or
|
|
145
|
+
# <rule_description>"`. You can only filter by one rule name or description
|
|
146
|
+
# value.
|
|
147
|
+
#
|
|
148
|
+
# Multiple filters can also be used together:
|
|
149
|
+
# Ex 1: `category_name:"<category_name>" AND policy_name:"<policy_name>"`
|
|
150
|
+
# Ex 2: Since category_name and policy_name are repeated fields, we can also
|
|
151
|
+
# use multiple values for each:
|
|
152
|
+
# `(category_name:"<category_name1>" OR category_name:"<category_name2>")
|
|
153
|
+
# AND policy_name:"<policy_name>"`
|
|
154
|
+
# -- Note that the AND operator has higher precedence than the OR operator.
|
|
155
|
+
# Additionally, parentheses must be used to create a valid filter.
|
|
156
|
+
#
|
|
157
|
+
# Requests using filter comparators other than HAS(:) or MATCHES_REGEXP(=~)
|
|
158
|
+
# will result in an InvalidArgument error.
|
|
159
|
+
class ListFeaturedContentRulesRequest
|
|
160
|
+
include ::Google::Protobuf::MessageExts
|
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Response message for ListFeaturedContentRules method.
|
|
165
|
+
# @!attribute [rw] featured_content_rules
|
|
166
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::FeaturedContentRule>]
|
|
167
|
+
# The list of FeaturedContentRules.
|
|
168
|
+
# @!attribute [rw] next_page_token
|
|
169
|
+
# @return [::String]
|
|
170
|
+
# Optional. A token, which can be sent as `page_token` to retrieve the next
|
|
171
|
+
# page. If this field is omitted, there are no subsequent pages.
|
|
172
|
+
class ListFeaturedContentRulesResponse
|
|
173
|
+
include ::Google::Protobuf::MessageExts
|
|
174
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Represents the rule set information for a FeaturedContentRule.
|
|
178
|
+
# @!attribute [r] curated_rule_set
|
|
179
|
+
# @return [::String]
|
|
180
|
+
# Output only. The parent CuratedRuleSet that the rule set belongs to.
|
|
181
|
+
# Format:
|
|
182
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/curatedRuleSetCategories/\\{category}/curatedRuleSets/\\{rule_set}
|
|
183
|
+
# @!attribute [rw] id
|
|
184
|
+
# @return [::String]
|
|
185
|
+
# The hash of the rule set.
|
|
186
|
+
# @!attribute [rw] display_name
|
|
187
|
+
# @return [::String]
|
|
188
|
+
# The human readable name of the rule set.
|
|
189
|
+
class RuleSet
|
|
190
|
+
include ::Google::Protobuf::MessageExts
|
|
191
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Represents the rule entitlement for FeaturedContentRule.
|
|
195
|
+
module RuleEntitlement
|
|
196
|
+
# Unspecified entitlement.
|
|
197
|
+
RULE_ENTITLEMENT_UNSPECIFIED = 0
|
|
198
|
+
|
|
199
|
+
# Enterprise entitlement.
|
|
200
|
+
ENTERPRISE = 1
|
|
201
|
+
|
|
202
|
+
# Enterprise Plus entitlement.
|
|
203
|
+
ENTERPRISE_PLUS = 2
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-chronicle-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -82,6 +82,7 @@ files:
|
|
|
82
82
|
- lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb
|
|
83
83
|
- lib/google/cloud/chronicle/v1/big_query_export_service/rest/service_stub.rb
|
|
84
84
|
- lib/google/cloud/chronicle/v1/big_query_export_services_pb.rb
|
|
85
|
+
- lib/google/cloud/chronicle/v1/curated_rule_pb.rb
|
|
85
86
|
- lib/google/cloud/chronicle/v1/dashboard_chart_pb.rb
|
|
86
87
|
- lib/google/cloud/chronicle/v1/dashboard_chart_service.rb
|
|
87
88
|
- lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb
|
|
@@ -138,6 +139,15 @@ files:
|
|
|
138
139
|
- lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb
|
|
139
140
|
- lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/service_stub.rb
|
|
140
141
|
- lib/google/cloud/chronicle/v1/featured_content_native_dashboard_services_pb.rb
|
|
142
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_pb.rb
|
|
143
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service.rb
|
|
144
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/client.rb
|
|
145
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/credentials.rb
|
|
146
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/paths.rb
|
|
147
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/rest.rb
|
|
148
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/rest/client.rb
|
|
149
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_service/rest/service_stub.rb
|
|
150
|
+
- lib/google/cloud/chronicle/v1/featured_content_rule_services_pb.rb
|
|
141
151
|
- lib/google/cloud/chronicle/v1/feed_pb.rb
|
|
142
152
|
- lib/google/cloud/chronicle/v1/feed_services_pb.rb
|
|
143
153
|
- lib/google/cloud/chronicle/v1/feeds_service.rb
|
|
@@ -231,6 +241,7 @@ files:
|
|
|
231
241
|
- proto_docs/google/api/launch_stage.rb
|
|
232
242
|
- proto_docs/google/api/resource.rb
|
|
233
243
|
- proto_docs/google/cloud/chronicle/v1/big_query_export.rb
|
|
244
|
+
- proto_docs/google/cloud/chronicle/v1/curated_rule.rb
|
|
234
245
|
- proto_docs/google/cloud/chronicle/v1/dashboard_chart.rb
|
|
235
246
|
- proto_docs/google/cloud/chronicle/v1/dashboard_query.rb
|
|
236
247
|
- proto_docs/google/cloud/chronicle/v1/data_access_control.rb
|
|
@@ -239,6 +250,7 @@ files:
|
|
|
239
250
|
- proto_docs/google/cloud/chronicle/v1/event.rb
|
|
240
251
|
- proto_docs/google/cloud/chronicle/v1/featured_content_metadata.rb
|
|
241
252
|
- proto_docs/google/cloud/chronicle/v1/featured_content_native_dashboard.rb
|
|
253
|
+
- proto_docs/google/cloud/chronicle/v1/featured_content_rule.rb
|
|
242
254
|
- proto_docs/google/cloud/chronicle/v1/feed.rb
|
|
243
255
|
- proto_docs/google/cloud/chronicle/v1/findings_refinement.rb
|
|
244
256
|
- proto_docs/google/cloud/chronicle/v1/instance.rb
|