google-cloud-chronicle-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/chronicle/v1/data_access_control_pb.rb +67 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/client.rb +1414 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/credentials.rb +47 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb +94 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest/client.rb +1318 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest/service_stub.rb +695 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest.rb +53 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_service.rb +56 -0
- data/lib/google/cloud/chronicle/v1/data_access_control_services_pb.rb +76 -0
- data/lib/google/cloud/chronicle/v1/entity_pb.rb +62 -0
- data/lib/google/cloud/chronicle/v1/entity_service/client.rb +891 -0
- data/lib/google/cloud/chronicle/v1/entity_service/credentials.rb +47 -0
- data/lib/google/cloud/chronicle/v1/entity_service/paths.rb +73 -0
- data/lib/google/cloud/chronicle/v1/entity_service/rest/client.rb +830 -0
- data/lib/google/cloud/chronicle/v1/entity_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/chronicle/v1/entity_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/entity_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/entity_services_pb.rb +54 -0
- data/lib/google/cloud/chronicle/v1/instance_pb.rb +48 -0
- data/lib/google/cloud/chronicle/v1/instance_service/client.rb +464 -0
- data/lib/google/cloud/chronicle/v1/instance_service/credentials.rb +47 -0
- data/lib/google/cloud/chronicle/v1/instance_service/paths.rb +52 -0
- data/lib/google/cloud/chronicle/v1/instance_service/rest/client.rb +431 -0
- data/lib/google/cloud/chronicle/v1/instance_service/rest/service_stub.rb +142 -0
- data/lib/google/cloud/chronicle/v1/instance_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/instance_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/instance_services_pb.rb +45 -0
- data/lib/google/cloud/chronicle/v1/reference_list_pb.rb +61 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/client.rb +792 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/credentials.rb +47 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/paths.rb +73 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest/client.rb +738 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest/service_stub.rb +327 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/reference_list_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/reference_list_services_pb.rb +51 -0
- data/lib/google/cloud/chronicle/v1/rest.rb +41 -0
- data/lib/google/cloud/chronicle/v1/rule_pb.rb +85 -0
- data/lib/google/cloud/chronicle/v1/rule_service/client.rb +1674 -0
- data/lib/google/cloud/chronicle/v1/rule_service/credentials.rb +47 -0
- data/lib/google/cloud/chronicle/v1/rule_service/operations.rb +813 -0
- data/lib/google/cloud/chronicle/v1/rule_service/paths.rb +159 -0
- data/lib/google/cloud/chronicle/v1/rule_service/rest/client.rb +1564 -0
- data/lib/google/cloud/chronicle/v1/rule_service/rest/operations.rb +914 -0
- data/lib/google/cloud/chronicle/v1/rule_service/rest/service_stub.rb +817 -0
- data/lib/google/cloud/chronicle/v1/rule_service/rest.rb +53 -0
- data/lib/google/cloud/chronicle/v1/rule_service.rb +56 -0
- data/lib/google/cloud/chronicle/v1/rule_services_pb.rb +70 -0
- data/lib/google/cloud/chronicle/v1/version.rb +7 -2
- data/lib/google/cloud/chronicle/v1.rb +49 -0
- data/lib/google-cloud-chronicle-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/chronicle/v1/data_access_control.rb +364 -0
- data/proto_docs/google/cloud/chronicle/v1/entity.rb +210 -0
- data/proto_docs/google/cloud/chronicle/v1/instance.rb +47 -0
- data/proto_docs/google/cloud/chronicle/v1/reference_list.rb +232 -0
- data/proto_docs/google/cloud/chronicle/v1/rule.rb +701 -0
- data/proto_docs/google/longrunning/operations.rb +173 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +110 -10
@@ -0,0 +1,210 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# A watchlist is a list of entities that allows for bulk operations over the
|
25
|
+
# included entities.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Identifier. Resource name of the watchlist.
|
29
|
+
# Format:
|
30
|
+
# `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`
|
31
|
+
# @!attribute [rw] display_name
|
32
|
+
# @return [::String]
|
33
|
+
# Required. Display name of the watchlist.
|
34
|
+
# Note that it must be at least one character and less than 63 characters
|
35
|
+
# (https://google.aip.dev/148).
|
36
|
+
# @!attribute [rw] description
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. Description of the watchlist.
|
39
|
+
# @!attribute [rw] multiplying_factor
|
40
|
+
# @return [::Float]
|
41
|
+
# Optional. Weight applied to the risk score for entities
|
42
|
+
# in this watchlist.
|
43
|
+
# The default is 1.0 if it is not specified.
|
44
|
+
# @!attribute [rw] entity_population_mechanism
|
45
|
+
# @return [::Google::Cloud::Chronicle::V1::Watchlist::EntityPopulationMechanism]
|
46
|
+
# Required. Mechanism to populate entities in the watchlist.
|
47
|
+
# @!attribute [r] entity_count
|
48
|
+
# @return [::Google::Cloud::Chronicle::V1::Watchlist::EntityCount]
|
49
|
+
# Output only. Entity count in the watchlist.
|
50
|
+
# @!attribute [r] create_time
|
51
|
+
# @return [::Google::Protobuf::Timestamp]
|
52
|
+
# Output only. Time the watchlist was created.
|
53
|
+
# @!attribute [r] update_time
|
54
|
+
# @return [::Google::Protobuf::Timestamp]
|
55
|
+
# Output only. Time the watchlist was last updated.
|
56
|
+
# @!attribute [rw] watchlist_user_preferences
|
57
|
+
# @return [::Google::Cloud::Chronicle::V1::WatchlistUserPreferences]
|
58
|
+
# Optional. User preferences for watchlist configuration.
|
59
|
+
class Watchlist
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
|
63
|
+
# Mechanism to populate entities in the watchlist.
|
64
|
+
# @!attribute [rw] manual
|
65
|
+
# @return [::Google::Cloud::Chronicle::V1::Watchlist::EntityPopulationMechanism::Manual]
|
66
|
+
# Optional. Entities are added manually.
|
67
|
+
class EntityPopulationMechanism
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
|
71
|
+
# Entities are added manually.
|
72
|
+
class Manual
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Count of different types of entities in the watchlist.
|
79
|
+
# @!attribute [r] user
|
80
|
+
# @return [::Integer]
|
81
|
+
# Output only. Count of user type entities in the watchlist.
|
82
|
+
# @!attribute [r] asset
|
83
|
+
# @return [::Integer]
|
84
|
+
# Output only. Count of asset type entities in the watchlist.
|
85
|
+
class EntityCount
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# A collection of user preferences for watchlist UI configuration.
|
92
|
+
# @!attribute [rw] pinned
|
93
|
+
# @return [::Boolean]
|
94
|
+
# Optional. Whether the watchlist is pinned on the dashboard.
|
95
|
+
class WatchlistUserPreferences
|
96
|
+
include ::Google::Protobuf::MessageExts
|
97
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
98
|
+
end
|
99
|
+
|
100
|
+
# Request message for getting a watchlist.
|
101
|
+
# @!attribute [rw] name
|
102
|
+
# @return [::String]
|
103
|
+
# Required. The parent, which owns this collection of watchlists.
|
104
|
+
# The name of the watchlist to retrieve.
|
105
|
+
# Format:
|
106
|
+
# `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`
|
107
|
+
class GetWatchlistRequest
|
108
|
+
include ::Google::Protobuf::MessageExts
|
109
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
|
+
end
|
111
|
+
|
112
|
+
# Request message for listing watchlists.
|
113
|
+
# @!attribute [rw] parent
|
114
|
+
# @return [::String]
|
115
|
+
# Required. The parent, which owns this collection of watchlists.
|
116
|
+
# Format: `projects/{project}/locations/{location}/instances/{instance}`
|
117
|
+
# @!attribute [rw] page_size
|
118
|
+
# @return [::Integer]
|
119
|
+
# Optional. The maximum number of watchlists to return.
|
120
|
+
# The service may return fewer than this value.
|
121
|
+
# If unspecified, at most 200 watchlists will be returned.
|
122
|
+
# The maximum value is 200; values above 200 will be coerced to 200.
|
123
|
+
# @!attribute [rw] page_token
|
124
|
+
# @return [::String]
|
125
|
+
# Optional. A page token, received from a previous `ListWatchlists` call.
|
126
|
+
# Provide this to retrieve the subsequent page.
|
127
|
+
#
|
128
|
+
# When paginating, all other parameters provided to
|
129
|
+
# `ListWatchlists` must match the call that provided the page
|
130
|
+
# token.
|
131
|
+
# @!attribute [rw] filter
|
132
|
+
# @return [::String]
|
133
|
+
# Optional. Which watchlist to return in aip.dev/160 form.
|
134
|
+
# Currently, only the following filters are supported:
|
135
|
+
# - `watchlist_user_preferences.pinned=true`
|
136
|
+
# - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE])`
|
137
|
+
# - `has_entity([ENTITY_INDICATOR],[ENTITY_TYPE],[NAMESPACE])`
|
138
|
+
class ListWatchlistsRequest
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
|
+
end
|
142
|
+
|
143
|
+
# Response message for listing watchlists.
|
144
|
+
# @!attribute [rw] watchlists
|
145
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::Watchlist>]
|
146
|
+
# Optional. The watchlists from the specified instance.
|
147
|
+
# @!attribute [rw] next_page_token
|
148
|
+
# @return [::String]
|
149
|
+
# Optional. A token, which can be sent as `page_token` to retrieve the next
|
150
|
+
# page. If this field is omitted, there are no subsequent pages.
|
151
|
+
class ListWatchlistsResponse
|
152
|
+
include ::Google::Protobuf::MessageExts
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
154
|
+
end
|
155
|
+
|
156
|
+
# Request message for creating watchlist.
|
157
|
+
# @!attribute [rw] parent
|
158
|
+
# @return [::String]
|
159
|
+
# Required. The parent resource where this watchlist will be created.
|
160
|
+
# Format: `projects/{project}/locations/{location}/instances/{instance}`
|
161
|
+
# @!attribute [rw] watchlist_id
|
162
|
+
# @return [::String]
|
163
|
+
# Optional. The ID to use for the watchlist,
|
164
|
+
# which will become the final component of the watchlist's resource name.
|
165
|
+
#
|
166
|
+
# This value should be 4-63 characters, and valid characters
|
167
|
+
# are /[a-z][0-9]-/.
|
168
|
+
# @!attribute [rw] watchlist
|
169
|
+
# @return [::Google::Cloud::Chronicle::V1::Watchlist]
|
170
|
+
# Required. The watchlist to create.
|
171
|
+
class CreateWatchlistRequest
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
end
|
175
|
+
|
176
|
+
# Request message for updating watchlist.
|
177
|
+
# @!attribute [rw] watchlist
|
178
|
+
# @return [::Google::Cloud::Chronicle::V1::Watchlist]
|
179
|
+
# Required. The watchlist to update.
|
180
|
+
#
|
181
|
+
# The watchlist's `name` field is used to identify the watchlist to update.
|
182
|
+
# Format:
|
183
|
+
# `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`
|
184
|
+
# @!attribute [rw] update_mask
|
185
|
+
# @return [::Google::Protobuf::FieldMask]
|
186
|
+
# Optional. The list of fields to update.
|
187
|
+
class UpdateWatchlistRequest
|
188
|
+
include ::Google::Protobuf::MessageExts
|
189
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
|
192
|
+
# Request message for deleting watchlist.
|
193
|
+
# @!attribute [rw] name
|
194
|
+
# @return [::String]
|
195
|
+
# Required. The name of the watchlist to delete.
|
196
|
+
# Format:
|
197
|
+
# `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`
|
198
|
+
# @!attribute [rw] force
|
199
|
+
# @return [::Boolean]
|
200
|
+
# Optional. If set to true, any entities under this watchlist will also be
|
201
|
+
# deleted. (Otherwise, the request will only work if the watchlist has no
|
202
|
+
# entities.)
|
203
|
+
class DeleteWatchlistRequest
|
204
|
+
include ::Google::Protobuf::MessageExts
|
205
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# A Instance represents an instantiation of the Instance product.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Identifier. The resource name of this instance.
|
28
|
+
# Format: `projects/{project}/locations/{location}/instances/{instance}`
|
29
|
+
class Instance
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# Request to get a Instance.
|
35
|
+
# @!attribute [rw] name
|
36
|
+
# @return [::String]
|
37
|
+
# Required. The name of the instance to retrieve.
|
38
|
+
# Format:
|
39
|
+
# `projects/{project_id}/locations/{location}/instances/{instance}`
|
40
|
+
class GetInstanceRequest
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,232 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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
|
+
# ScopeInfo specifies the scope info of the reference list.
|
25
|
+
# @!attribute [rw] reference_list_scope
|
26
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceListScope]
|
27
|
+
# Required. The list of scope names of the reference list, if the list is
|
28
|
+
# empty the reference list is treated as unscoped.
|
29
|
+
class ScopeInfo
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# ReferenceListScope specifies the list of scope names of the reference list.
|
35
|
+
# @!attribute [rw] scope_names
|
36
|
+
# @return [::Array<::String>]
|
37
|
+
# Optional. The list of scope names of the reference list. The scope names
|
38
|
+
# should be full resource names and should be of the format:
|
39
|
+
# `projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scope_name}`.
|
40
|
+
class ReferenceListScope
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
|
45
|
+
# A request to get details about a reference list.
|
46
|
+
# @!attribute [rw] name
|
47
|
+
# @return [::String]
|
48
|
+
# Required. The resource name of the reference list to retrieve.
|
49
|
+
# Format:
|
50
|
+
# `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}`
|
51
|
+
# @!attribute [rw] view
|
52
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceListView]
|
53
|
+
# How much of the ReferenceList to view. Defaults to
|
54
|
+
# REFERENCE_LIST_VIEW_FULL.
|
55
|
+
class GetReferenceListRequest
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
end
|
59
|
+
|
60
|
+
# A request for a list of reference lists.
|
61
|
+
# @!attribute [rw] parent
|
62
|
+
# @return [::String]
|
63
|
+
# Required. The parent, which owns this collection of reference lists.
|
64
|
+
# Format:
|
65
|
+
# `projects/{project}/locations/{location}/instances/{instance}`
|
66
|
+
# @!attribute [rw] page_size
|
67
|
+
# @return [::Integer]
|
68
|
+
# The maximum number of reference lists to return.
|
69
|
+
# The service may return fewer than this value.
|
70
|
+
# If unspecified, at most 100 reference lists will be returned.
|
71
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
72
|
+
# @!attribute [rw] page_token
|
73
|
+
# @return [::String]
|
74
|
+
# A page token, received from a previous `ListReferenceLists` call.
|
75
|
+
# Provide this to retrieve the subsequent page.
|
76
|
+
# When paginating, all other parameters provided to `ListReferenceLists` must
|
77
|
+
# match the call that provided the page token.
|
78
|
+
# @!attribute [rw] view
|
79
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceListView]
|
80
|
+
# How much of each ReferenceList to view. Defaults to
|
81
|
+
# REFERENCE_LIST_VIEW_BASIC.
|
82
|
+
class ListReferenceListsRequest
|
83
|
+
include ::Google::Protobuf::MessageExts
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
+
end
|
86
|
+
|
87
|
+
# A response to a request for a list of reference lists.
|
88
|
+
# @!attribute [rw] reference_lists
|
89
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::ReferenceList>]
|
90
|
+
# The reference lists.
|
91
|
+
# Ordered in ascending alphabetical order by name.
|
92
|
+
# @!attribute [rw] next_page_token
|
93
|
+
# @return [::String]
|
94
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
95
|
+
# If this field is omitted, there are no subsequent pages.
|
96
|
+
class ListReferenceListsResponse
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
|
+
end
|
100
|
+
|
101
|
+
# A request to create a reference list.
|
102
|
+
# @!attribute [rw] parent
|
103
|
+
# @return [::String]
|
104
|
+
# Required. The parent resource where this reference list will be created.
|
105
|
+
# Format: `projects/{project}/locations/{location}/instances/{instance}`
|
106
|
+
# @!attribute [rw] reference_list
|
107
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceList]
|
108
|
+
# Required. The reference list to create.
|
109
|
+
# @!attribute [rw] reference_list_id
|
110
|
+
# @return [::String]
|
111
|
+
# Required. The ID to use for the reference list. This is also the display
|
112
|
+
# name for the reference list. It must satisfy the following requirements:
|
113
|
+
# - Starts with letter.
|
114
|
+
# - Contains only letters, numbers and underscore.
|
115
|
+
# - Has length less than 256.
|
116
|
+
# - Must be unique.
|
117
|
+
class CreateReferenceListRequest
|
118
|
+
include ::Google::Protobuf::MessageExts
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
120
|
+
end
|
121
|
+
|
122
|
+
# A request to update a reference list.
|
123
|
+
# @!attribute [rw] reference_list
|
124
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceList]
|
125
|
+
# Required. The reference list to update.
|
126
|
+
#
|
127
|
+
# The reference list's `name` field is used to identify the reference list to
|
128
|
+
# update.
|
129
|
+
# Format:
|
130
|
+
# `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}`
|
131
|
+
# @!attribute [rw] update_mask
|
132
|
+
# @return [::Google::Protobuf::FieldMask]
|
133
|
+
# The list of fields to update.
|
134
|
+
# When no field mask is supplied, all non-empty fields will be updated.
|
135
|
+
# A field mask of "*" will update all fields, whether empty or not.
|
136
|
+
class UpdateReferenceListRequest
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
end
|
140
|
+
|
141
|
+
# A reference list.
|
142
|
+
# Reference lists are user-defined lists of values which users can
|
143
|
+
# use in multiple Rules.
|
144
|
+
# @!attribute [rw] name
|
145
|
+
# @return [::String]
|
146
|
+
# Identifier. The resource name of the reference list.
|
147
|
+
# Format:
|
148
|
+
# `projects/{project}/locations/{location}/instances/{instance}/referenceLists/{reference_list}`
|
149
|
+
# @!attribute [r] display_name
|
150
|
+
# @return [::String]
|
151
|
+
# Output only. The unique display name of the reference list.
|
152
|
+
# @!attribute [r] revision_create_time
|
153
|
+
# @return [::Google::Protobuf::Timestamp]
|
154
|
+
# Output only. The timestamp when the reference list was last updated.
|
155
|
+
# @!attribute [rw] description
|
156
|
+
# @return [::String]
|
157
|
+
# Required. A user-provided description of the reference list.
|
158
|
+
# @!attribute [rw] entries
|
159
|
+
# @return [::Array<::Google::Cloud::Chronicle::V1::ReferenceListEntry>]
|
160
|
+
# Required. The entries of the reference list.
|
161
|
+
# When listed, they are returned in the order that was specified at creation
|
162
|
+
# or update. The combined size of the values of the reference list may not
|
163
|
+
# exceed 6MB.
|
164
|
+
# This is returned only when the view is REFERENCE_LIST_VIEW_FULL.
|
165
|
+
# @!attribute [r] rules
|
166
|
+
# @return [::Array<::String>]
|
167
|
+
# Output only. The resource names for the associated self-authored Rules that
|
168
|
+
# use this reference list. This is returned only when the view is
|
169
|
+
# REFERENCE_LIST_VIEW_FULL.
|
170
|
+
# @!attribute [rw] syntax_type
|
171
|
+
# @return [::Google::Cloud::Chronicle::V1::ReferenceListSyntaxType]
|
172
|
+
# Required. The syntax type indicating how list entries should be validated.
|
173
|
+
# @!attribute [r] rule_associations_count
|
174
|
+
# @return [::Integer]
|
175
|
+
# Output only. The count of self-authored rules using the reference list.
|
176
|
+
# @!attribute [rw] scope_info
|
177
|
+
# @return [::Google::Cloud::Chronicle::V1::ScopeInfo]
|
178
|
+
# The scope info of the reference list.
|
179
|
+
# During reference list creation, if this field is not set, the reference
|
180
|
+
# list without scopes (an unscoped list) will be created for an unscoped
|
181
|
+
# user. For a scoped user, this field must be set. During reference list
|
182
|
+
# update, if scope_info is requested to be updated, this field must be set.
|
183
|
+
class ReferenceList
|
184
|
+
include ::Google::Protobuf::MessageExts
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
186
|
+
end
|
187
|
+
|
188
|
+
# An entry in a reference list.
|
189
|
+
# @!attribute [rw] value
|
190
|
+
# @return [::String]
|
191
|
+
# Required. The value of the entry. Maximum length is 512 characters.
|
192
|
+
class ReferenceListEntry
|
193
|
+
include ::Google::Protobuf::MessageExts
|
194
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
195
|
+
end
|
196
|
+
|
197
|
+
# The syntax type indicating how list entries should be validated.
|
198
|
+
module ReferenceListSyntaxType
|
199
|
+
# Defaults to REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING.
|
200
|
+
REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED = 0
|
201
|
+
|
202
|
+
# List contains plain text patterns.
|
203
|
+
REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING = 1
|
204
|
+
|
205
|
+
# List contains only Regular Expression patterns.
|
206
|
+
REFERENCE_LIST_SYNTAX_TYPE_REGEX = 2
|
207
|
+
|
208
|
+
# List contains only CIDR patterns.
|
209
|
+
REFERENCE_LIST_SYNTAX_TYPE_CIDR = 3
|
210
|
+
end
|
211
|
+
|
212
|
+
# ReferenceListView is a mechanism for viewing partial responses of the
|
213
|
+
# ReferenceList resource.
|
214
|
+
module ReferenceListView
|
215
|
+
# The default / unset value.
|
216
|
+
# The API will default to the BASIC view for ListReferenceLists.
|
217
|
+
# The API will default to the FULL view for methods that return a single
|
218
|
+
# ReferenceList resource.
|
219
|
+
REFERENCE_LIST_VIEW_UNSPECIFIED = 0
|
220
|
+
|
221
|
+
# Include metadata about the ReferenceList.
|
222
|
+
# This is the default view for ListReferenceLists.
|
223
|
+
REFERENCE_LIST_VIEW_BASIC = 1
|
224
|
+
|
225
|
+
# Include all details about the ReferenceList: metadata, content lines,
|
226
|
+
# associated rule counts. This is the default view for GetReferenceList.
|
227
|
+
REFERENCE_LIST_VIEW_FULL = 2
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|