google-cloud-chronicle-v1 0.6.0 → 0.8.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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/chronicle/v1/big_query_export_service/client.rb +2 -0
  4. data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb +2 -0
  5. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb +2 -0
  6. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/client.rb +2 -0
  7. data/lib/google/cloud/chronicle/v1/dashboard_query_service/client.rb +2 -0
  8. data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/client.rb +2 -0
  9. data/lib/google/cloud/chronicle/v1/data_access_control_service/client.rb +2 -0
  10. data/lib/google/cloud/chronicle/v1/data_access_control_service/rest/client.rb +2 -0
  11. data/lib/google/cloud/chronicle/v1/data_table_service/client.rb +2 -0
  12. data/lib/google/cloud/chronicle/v1/data_table_service/rest/client.rb +2 -0
  13. data/lib/google/cloud/chronicle/v1/entity_service/client.rb +2 -0
  14. data/lib/google/cloud/chronicle/v1/entity_service/rest/client.rb +2 -0
  15. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/client.rb +2 -0
  16. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb +2 -0
  17. data/lib/google/cloud/chronicle/v1/instance_service/client.rb +2 -0
  18. data/lib/google/cloud/chronicle/v1/instance_service/rest/client.rb +2 -0
  19. data/lib/google/cloud/chronicle/v1/native_dashboard_service/client.rb +2 -0
  20. data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/client.rb +2 -0
  21. data/lib/google/cloud/chronicle/v1/reference_list_pb.rb +4 -1
  22. data/lib/google/cloud/chronicle/v1/reference_list_service/client.rb +106 -0
  23. data/lib/google/cloud/chronicle/v1/reference_list_service/credentials.rb +2 -0
  24. data/lib/google/cloud/chronicle/v1/reference_list_service/rest/client.rb +99 -0
  25. data/lib/google/cloud/chronicle/v1/reference_list_service/rest/service_stub.rb +62 -0
  26. data/lib/google/cloud/chronicle/v1/reference_list_services_pb.rb +2 -0
  27. data/lib/google/cloud/chronicle/v1/rest.rb +1 -0
  28. data/lib/google/cloud/chronicle/v1/rule_execution_error_pb.rb +30 -0
  29. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/client.rb +522 -0
  30. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/credentials.rb +49 -0
  31. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/paths.rb +52 -0
  32. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/client.rb +472 -0
  33. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/service_stub.rb +142 -0
  34. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest.rb +53 -0
  35. data/lib/google/cloud/chronicle/v1/rule_execution_error_service.rb +56 -0
  36. data/lib/google/cloud/chronicle/v1/rule_execution_error_services_pb.rb +46 -0
  37. data/lib/google/cloud/chronicle/v1/rule_pb.rb +3 -1
  38. data/lib/google/cloud/chronicle/v1/rule_service/client.rb +103 -0
  39. data/lib/google/cloud/chronicle/v1/rule_service/credentials.rb +2 -0
  40. data/lib/google/cloud/chronicle/v1/rule_service/operations.rb +2 -0
  41. data/lib/google/cloud/chronicle/v1/rule_service/rest/client.rb +96 -0
  42. data/lib/google/cloud/chronicle/v1/rule_service/rest/operations.rb +2 -0
  43. data/lib/google/cloud/chronicle/v1/rule_service/rest/service_stub.rb +62 -0
  44. data/lib/google/cloud/chronicle/v1/rule_services_pb.rb +2 -0
  45. data/lib/google/cloud/chronicle/v1/version.rb +1 -1
  46. data/lib/google/cloud/chronicle/v1.rb +1 -0
  47. data/proto_docs/google/cloud/chronicle/v1/reference_list.rb +43 -0
  48. data/proto_docs/google/cloud/chronicle/v1/rule.rb +27 -0
  49. data/proto_docs/google/cloud/chronicle/v1/rule_execution_error.rb +116 -0
  50. metadata +13 -3
@@ -138,6 +138,36 @@ module Google
138
138
  extend ::Google::Protobuf::MessageExts::ClassMethods
139
139
  end
140
140
 
141
+ # VerifyReferenceList request message.
142
+ # @!attribute [rw] instance
143
+ # @return [::String]
144
+ # Required. The name of the parent resource, which is the SecOps instance
145
+ # associated with the request. Format:
146
+ # `projects/{project}/locations/{location}/instances/{instance}`
147
+ # @!attribute [rw] syntax_type
148
+ # @return [::Google::Cloud::Chronicle::V1::ReferenceListSyntaxType]
149
+ # Required. Type (format) of list lines.
150
+ # @!attribute [rw] entries
151
+ # @return [::Array<::Google::Cloud::Chronicle::V1::ReferenceListEntry>]
152
+ # Required. The entries of the reference list.
153
+ # Each line may be either an item in the list or a comment.
154
+ class VerifyReferenceListRequest
155
+ include ::Google::Protobuf::MessageExts
156
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
+ end
158
+
159
+ # VerifyListResponse response message.
160
+ # @!attribute [rw] success
161
+ # @return [::Boolean]
162
+ # Validity of list - true if no errors found.
163
+ # @!attribute [rw] errors
164
+ # @return [::Array<::Google::Cloud::Chronicle::V1::ReferenceListError>]
165
+ # Line-level errors causing the list to be invalid.
166
+ class VerifyReferenceListResponse
167
+ include ::Google::Protobuf::MessageExts
168
+ extend ::Google::Protobuf::MessageExts::ClassMethods
169
+ end
170
+
141
171
  # A reference list.
142
172
  # Reference lists are user-defined lists of values which users can
143
173
  # use in multiple Rules.
@@ -194,6 +224,19 @@ module Google
194
224
  extend ::Google::Protobuf::MessageExts::ClassMethods
195
225
  end
196
226
 
227
+ # The error generated when verifying the reference list.
228
+ # @!attribute [rw] line_number
229
+ # @return [::Integer]
230
+ # 1-indexed line number where the error occurs.
231
+ # General list errors are indexed at -1.
232
+ # @!attribute [rw] error_message
233
+ # @return [::String]
234
+ # Message explaining why the line is invalid.
235
+ class ReferenceListError
236
+ include ::Google::Protobuf::MessageExts
237
+ extend ::Google::Protobuf::MessageExts::ClassMethods
238
+ end
239
+
197
240
  # The syntax type indicating how list entries should be validated.
198
241
  module ReferenceListSyntaxType
199
242
  # Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING.
@@ -366,6 +366,33 @@ module Google
366
366
  extend ::Google::Protobuf::MessageExts::ClassMethods
367
367
  end
368
368
 
369
+ # Request message for VerifyRuleText method.
370
+ # @!attribute [rw] instance
371
+ # @return [::String]
372
+ # Required. The name of the parent resource, which is the SecOps instance
373
+ # associated with the request. Format:
374
+ # `projects/{project}/locations/{location}/instances/{instance}`
375
+ # @!attribute [rw] rule_text
376
+ # @return [::String]
377
+ # Required. The rule text to verify as a UTF-8 string.
378
+ class VerifyRuleTextRequest
379
+ include ::Google::Protobuf::MessageExts
380
+ extend ::Google::Protobuf::MessageExts::ClassMethods
381
+ end
382
+
383
+ # Response message for VerifyRuleText method.
384
+ # @!attribute [rw] success
385
+ # @return [::Boolean]
386
+ # Whether or not the rule text was successfully verified.
387
+ # @!attribute [rw] compilation_diagnostics
388
+ # @return [::Array<::Google::Cloud::Chronicle::V1::CompilationDiagnostic>]
389
+ # A list of a rule's corresponding compilation diagnostic messages
390
+ # such as compilation errors and compilation warnings.
391
+ class VerifyRuleTextResponse
392
+ include ::Google::Protobuf::MessageExts
393
+ extend ::Google::Protobuf::MessageExts::ClassMethods
394
+ end
395
+
369
396
  # Request message for ListRuleRevisions method.
370
397
  # @!attribute [rw] name
371
398
  # @return [::String]
@@ -0,0 +1,116 @@
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
+ # Request message for ListRuleExecutionErrors.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The instance to list rule execution errors from.
28
+ # Format:
29
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance}
30
+ # @!attribute [rw] page_size
31
+ # @return [::Integer]
32
+ # The maximum number of rule execution errors to return. The service may
33
+ # return fewer than this value. If unspecified, at most 1000 rule execution
34
+ # errors will be returned. The maximum value is 10000; values above 10000
35
+ # will be coerced to 10000.
36
+ # @!attribute [rw] page_token
37
+ # @return [::String]
38
+ # A page token, received from a previous `ListRuleExecutionErrors` call.
39
+ # Provide this to retrieve the subsequent page.
40
+ #
41
+ # When paginating, all other parameters provided to `ListRuleExecutionErrors`
42
+ # must match the call that provided the page token.
43
+ # @!attribute [rw] filter
44
+ # @return [::String]
45
+ # A filter that can be used to retrieve specific rule execution errors.
46
+ # Only the following filters are allowed:
47
+ # ```
48
+ # rule = "\\{Rule.name}"
49
+ # curated_rule = "\\{CuratedRule.name}"
50
+ # ```
51
+ # The value for rule or curated_rule must be a valid rule resource name or a
52
+ # valid curated rule resource name specified in quotes.
53
+ #
54
+ # For 'rule', an optional 'revision_id' can be specified which can be used to
55
+ # fetch errors for a given revision of the rule. A '-' is also allowed to
56
+ # fetch errors across all revisions of the rule. If unspecified, only errors
57
+ # corresponding to the most recent revision of the rule will be returned. So
58
+ # these variations are all allowed:
59
+ # ```
60
+ # rule = "\\{Rule.name}"
61
+ # rule = "\\{Rule.name}@\\{Rule.revision_id}"
62
+ # rule = "\\{Rule.name}@-"
63
+ # ```
64
+ # Revision IDs are not supported for curated rules.
65
+ class ListRuleExecutionErrorsRequest
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Response message for ListRuleExecutionErrors.
71
+ # @!attribute [rw] rule_execution_errors
72
+ # @return [::Array<::Google::Cloud::Chronicle::V1::RuleExecutionError>]
73
+ # List of rule execution errors.
74
+ # @!attribute [rw] next_page_token
75
+ # @return [::String]
76
+ # A token, which can be sent as `page_token` to retrieve the next page.
77
+ # If this field is omitted, there are no subsequent pages.
78
+ class ListRuleExecutionErrorsResponse
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # The RuleExecutionError resource represents an error generated from
84
+ # running/deploying a rule.
85
+ # @!attribute [r] rule
86
+ # @return [::String]
87
+ # Output only. The resource name of the rule that generated the rule
88
+ # execution error.
89
+ #
90
+ # Note: The following fields are mutually exclusive: `rule`, `curated_rule`. If a field in that set is populated, all other fields in the set will automatically be cleared.
91
+ # @!attribute [r] curated_rule
92
+ # @return [::String]
93
+ # Output only. The resource name of the curated rule that generated the
94
+ # rule execution error.
95
+ #
96
+ # Note: The following fields are mutually exclusive: `curated_rule`, `rule`. If a field in that set is populated, all other fields in the set will automatically be cleared.
97
+ # @!attribute [r] name
98
+ # @return [::String]
99
+ # Output only. The resource name of the rule execution error.
100
+ # Format:
101
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance}/ruleExecutionErrors/\\{rule_execution_error}
102
+ # @!attribute [r] error
103
+ # @return [::Google::Rpc::Status]
104
+ # Output only. The error status corresponding with the rule execution error.
105
+ # @!attribute [r] time_range
106
+ # @return [::Google::Type::Interval]
107
+ # Output only. The event time range that the rule execution error corresponds
108
+ # with.
109
+ class RuleExecutionError
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+ end
114
+ end
115
+ end
116
+ 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: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.2'
18
+ version: '1.3'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.2'
25
+ version: '1.3'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,15 @@ files:
145
145
  - lib/google/cloud/chronicle/v1/reference_list_service/rest/service_stub.rb
146
146
  - lib/google/cloud/chronicle/v1/reference_list_services_pb.rb
147
147
  - lib/google/cloud/chronicle/v1/rest.rb
148
+ - lib/google/cloud/chronicle/v1/rule_execution_error_pb.rb
149
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service.rb
150
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/client.rb
151
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/credentials.rb
152
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/paths.rb
153
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/rest.rb
154
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/client.rb
155
+ - lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/service_stub.rb
156
+ - lib/google/cloud/chronicle/v1/rule_execution_error_services_pb.rb
148
157
  - lib/google/cloud/chronicle/v1/rule_pb.rb
149
158
  - lib/google/cloud/chronicle/v1/rule_service.rb
150
159
  - lib/google/cloud/chronicle/v1/rule_service/client.rb
@@ -174,6 +183,7 @@ files:
174
183
  - proto_docs/google/cloud/chronicle/v1/native_dashboard.rb
175
184
  - proto_docs/google/cloud/chronicle/v1/reference_list.rb
176
185
  - proto_docs/google/cloud/chronicle/v1/rule.rb
186
+ - proto_docs/google/cloud/chronicle/v1/rule_execution_error.rb
177
187
  - proto_docs/google/longrunning/operations.rb
178
188
  - proto_docs/google/protobuf/any.rb
179
189
  - proto_docs/google/protobuf/duration.rb