google-cloud-security_center-v2 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/security_center/v2/rest.rb +37 -0
- data/lib/google/cloud/security_center/v2/security_center/client.rb +4771 -0
- data/lib/google/cloud/security_center/v2/security_center/credentials.rb +51 -0
- data/lib/google/cloud/security_center/v2/security_center/operations.rb +809 -0
- data/lib/google/cloud/security_center/v2/security_center/paths.rb +973 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +4390 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +901 -0
- data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +3165 -0
- data/lib/google/cloud/security_center/v2/security_center/rest.rb +53 -0
- data/lib/google/cloud/security_center/v2/security_center.rb +56 -0
- data/lib/google/cloud/security_center/v2/version.rb +7 -2
- data/lib/google/cloud/security_center/v2.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/access_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/application_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/attack_exposure_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/backup_disaster_recovery_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_data_profile_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/cloud_dlp_inspection_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/compliance_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/connection_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/contact_details_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/container_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/database_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/exfiltration_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/external_system_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/file_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +109 -0
- data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/iam_binding_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/indicator_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/kernel_rootkit_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/kubernetes_pb.rb +57 -0
- data/lib/google/cloud/securitycenter/v2/label_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/load_balancer_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/log_entry_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +48 -0
- data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/notification_message_pb.rb +47 -0
- data/lib/google/cloud/securitycenter/v2/org_policy_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/process_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/resource_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/security_marks_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/security_posture_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +128 -0
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_services_pb.rb +167 -0
- data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/source_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +58 -0
- data/lib/google-cloud-security_center-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -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 +222 -0
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/cloud/securitycenter/v2/access.rb +120 -0
- data/proto_docs/google/cloud/securitycenter/v2/application.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +147 -0
- data/proto_docs/google/cloud/securitycenter/v2/backup_disaster_recovery.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +96 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_data_profile.rb +52 -0
- data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_inspection.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v2/compliance.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/connection.rb +70 -0
- data/proto_docs/google/cloud/securitycenter/v2/contact_details.rb +44 -0
- data/proto_docs/google/cloud/securitycenter/v2/container.rb +49 -0
- data/proto_docs/google/cloud/securitycenter/v2/database.rb +67 -0
- data/proto_docs/google/cloud/securitycenter/v2/exfiltration.rb +64 -0
- data/proto_docs/google/cloud/securitycenter/v2/external_system.rb +106 -0
- data/proto_docs/google/cloud/securitycenter/v2/file.rb +72 -0
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +427 -0
- data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v2/iam_binding.rb +56 -0
- data/proto_docs/google/cloud/securitycenter/v2/indicator.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v2/kernel_rootkit.rb +66 -0
- data/proto_docs/google/cloud/securitycenter/v2/kubernetes.rb +241 -0
- data/proto_docs/google/cloud/securitycenter/v2/label.rb +41 -0
- data/proto_docs/google/cloud/securitycenter/v2/load_balancer.rb +36 -0
- data/proto_docs/google/cloud/securitycenter/v2/log_entry.rb +58 -0
- data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +285 -0
- data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +100 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v2/notification_message.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/org_policy.rb +37 -0
- data/proto_docs/google/cloud/securitycenter/v2/process.rb +79 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +122 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_marks.rb +84 -0
- data/proto_docs/google/cloud/securitycenter/v2/security_posture.rb +83 -0
- data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +1136 -0
- data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +43 -0
- data/proto_docs/google/cloud/securitycenter/v2/source.rb +65 -0
- data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
- data/proto_docs/google/cloud/securitycenter/v2/valued_resource.rb +86 -0
- data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +333 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/longrunning/operations.rb +164 -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/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +173 -10
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 SecurityCenter
|
23
|
+
module V2
|
24
|
+
# Kernel mode rootkit signatures.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Rootkit name, when available.
|
28
|
+
# @!attribute [rw] unexpected_code_modification
|
29
|
+
# @return [::Boolean]
|
30
|
+
# True if unexpected modifications of kernel code memory are present.
|
31
|
+
# @!attribute [rw] unexpected_read_only_data_modification
|
32
|
+
# @return [::Boolean]
|
33
|
+
# True if unexpected modifications of kernel read-only data memory are
|
34
|
+
# present.
|
35
|
+
# @!attribute [rw] unexpected_ftrace_handler
|
36
|
+
# @return [::Boolean]
|
37
|
+
# True if `ftrace` points are present with callbacks pointing to regions
|
38
|
+
# that are not in the expected kernel or module code range.
|
39
|
+
# @!attribute [rw] unexpected_kprobe_handler
|
40
|
+
# @return [::Boolean]
|
41
|
+
# True if `kprobe` points are present with callbacks pointing to regions
|
42
|
+
# that are not in the expected kernel or module code range.
|
43
|
+
# @!attribute [rw] unexpected_kernel_code_pages
|
44
|
+
# @return [::Boolean]
|
45
|
+
# True if kernel code pages that are not in the expected kernel or module
|
46
|
+
# code regions are present.
|
47
|
+
# @!attribute [rw] unexpected_system_call_handler
|
48
|
+
# @return [::Boolean]
|
49
|
+
# True if system call handlers that are are not in the expected kernel or
|
50
|
+
# module code regions are present.
|
51
|
+
# @!attribute [rw] unexpected_interrupt_handler
|
52
|
+
# @return [::Boolean]
|
53
|
+
# True if interrupt handlers that are are not in the expected kernel or
|
54
|
+
# module code regions are present.
|
55
|
+
# @!attribute [rw] unexpected_processes_in_runqueue
|
56
|
+
# @return [::Boolean]
|
57
|
+
# True if unexpected processes in the scheduler run queue are present. Such
|
58
|
+
# processes are in the run queue, but not in the process task list.
|
59
|
+
class KernelRootkit
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,241 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 SecurityCenter
|
23
|
+
module V2
|
24
|
+
# Kubernetes-related attributes.
|
25
|
+
# @!attribute [rw] pods
|
26
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Pod>]
|
27
|
+
# Kubernetes
|
28
|
+
# [Pods](https://cloud.google.com/kubernetes-engine/docs/concepts/pod)
|
29
|
+
# associated with the finding. This field contains Pod records for each
|
30
|
+
# container that is owned by a Pod.
|
31
|
+
# @!attribute [rw] nodes
|
32
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Node>]
|
33
|
+
# Provides Kubernetes
|
34
|
+
# [node](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#nodes)
|
35
|
+
# information.
|
36
|
+
# @!attribute [rw] node_pools
|
37
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::NodePool>]
|
38
|
+
# GKE [node
|
39
|
+
# pools](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools)
|
40
|
+
# associated with the finding. This field contains node pool information for
|
41
|
+
# each node, when it is available.
|
42
|
+
# @!attribute [rw] roles
|
43
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Role>]
|
44
|
+
# Provides Kubernetes role information for findings that involve [Roles or
|
45
|
+
# ClusterRoles](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
|
46
|
+
# @!attribute [rw] bindings
|
47
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Binding>]
|
48
|
+
# Provides Kubernetes role binding information for findings that involve
|
49
|
+
# [RoleBindings or
|
50
|
+
# ClusterRoleBindings](https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control).
|
51
|
+
# @!attribute [rw] access_reviews
|
52
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::AccessReview>]
|
53
|
+
# Provides information on any Kubernetes access reviews (privilege checks)
|
54
|
+
# relevant to the finding.
|
55
|
+
# @!attribute [rw] objects
|
56
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Object>]
|
57
|
+
# Kubernetes objects related to the finding.
|
58
|
+
class Kubernetes
|
59
|
+
include ::Google::Protobuf::MessageExts
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
|
+
|
62
|
+
# A Kubernetes Pod.
|
63
|
+
# @!attribute [rw] ns
|
64
|
+
# @return [::String]
|
65
|
+
# Kubernetes Pod namespace.
|
66
|
+
# @!attribute [rw] name
|
67
|
+
# @return [::String]
|
68
|
+
# Kubernetes Pod name.
|
69
|
+
# @!attribute [rw] labels
|
70
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Label>]
|
71
|
+
# Pod labels. For Kubernetes containers, these are applied to the
|
72
|
+
# container.
|
73
|
+
# @!attribute [rw] containers
|
74
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Container>]
|
75
|
+
# Pod containers associated with this finding, if any.
|
76
|
+
class Pod
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# Kubernetes nodes associated with the finding.
|
82
|
+
# @!attribute [rw] name
|
83
|
+
# @return [::String]
|
84
|
+
# [Full resource name](https://google.aip.dev/122#full-resource-names) of
|
85
|
+
# the Compute Engine VM running the cluster node.
|
86
|
+
class Node
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
|
91
|
+
# Provides GKE node pool information.
|
92
|
+
# @!attribute [rw] name
|
93
|
+
# @return [::String]
|
94
|
+
# Kubernetes node pool name.
|
95
|
+
# @!attribute [rw] nodes
|
96
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Node>]
|
97
|
+
# Nodes associated with the finding.
|
98
|
+
class NodePool
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
end
|
102
|
+
|
103
|
+
# Kubernetes Role or ClusterRole.
|
104
|
+
# @!attribute [rw] kind
|
105
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Kubernetes::Role::Kind]
|
106
|
+
# Role type.
|
107
|
+
# @!attribute [rw] ns
|
108
|
+
# @return [::String]
|
109
|
+
# Role namespace.
|
110
|
+
# @!attribute [rw] name
|
111
|
+
# @return [::String]
|
112
|
+
# Role name.
|
113
|
+
class Role
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
|
117
|
+
# Types of Kubernetes roles.
|
118
|
+
module Kind
|
119
|
+
# Role type is not specified.
|
120
|
+
KIND_UNSPECIFIED = 0
|
121
|
+
|
122
|
+
# Kubernetes Role.
|
123
|
+
ROLE = 1
|
124
|
+
|
125
|
+
# Kubernetes ClusterRole.
|
126
|
+
CLUSTER_ROLE = 2
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# Represents a Kubernetes RoleBinding or ClusterRoleBinding.
|
131
|
+
# @!attribute [rw] ns
|
132
|
+
# @return [::String]
|
133
|
+
# Namespace for the binding.
|
134
|
+
# @!attribute [rw] name
|
135
|
+
# @return [::String]
|
136
|
+
# Name for the binding.
|
137
|
+
# @!attribute [rw] role
|
138
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Kubernetes::Role]
|
139
|
+
# The Role or ClusterRole referenced by the binding.
|
140
|
+
# @!attribute [rw] subjects
|
141
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Kubernetes::Subject>]
|
142
|
+
# Represents one or more subjects that are bound to the role. Not always
|
143
|
+
# available for PATCH requests.
|
144
|
+
class Binding
|
145
|
+
include ::Google::Protobuf::MessageExts
|
146
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
147
|
+
end
|
148
|
+
|
149
|
+
# Represents a Kubernetes subject.
|
150
|
+
# @!attribute [rw] kind
|
151
|
+
# @return [::Google::Cloud::SecurityCenter::V2::Kubernetes::Subject::AuthType]
|
152
|
+
# Authentication type for the subject.
|
153
|
+
# @!attribute [rw] ns
|
154
|
+
# @return [::String]
|
155
|
+
# Namespace for the subject.
|
156
|
+
# @!attribute [rw] name
|
157
|
+
# @return [::String]
|
158
|
+
# Name for the subject.
|
159
|
+
class Subject
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
|
163
|
+
# Auth types that can be used for the subject's kind field.
|
164
|
+
module AuthType
|
165
|
+
# Authentication is not specified.
|
166
|
+
AUTH_TYPE_UNSPECIFIED = 0
|
167
|
+
|
168
|
+
# User with valid certificate.
|
169
|
+
USER = 1
|
170
|
+
|
171
|
+
# Users managed by Kubernetes API with credentials stored as secrets.
|
172
|
+
SERVICEACCOUNT = 2
|
173
|
+
|
174
|
+
# Collection of users.
|
175
|
+
GROUP = 3
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# Conveys information about a Kubernetes access review (such as one returned
|
180
|
+
# by a [`kubectl auth
|
181
|
+
# can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access)
|
182
|
+
# command) that was involved in a finding.
|
183
|
+
# @!attribute [rw] group
|
184
|
+
# @return [::String]
|
185
|
+
# The API group of the resource. "*" means all.
|
186
|
+
# @!attribute [rw] ns
|
187
|
+
# @return [::String]
|
188
|
+
# Namespace of the action being requested. Currently, there is no
|
189
|
+
# distinction between no namespace and all namespaces. Both
|
190
|
+
# are represented by "" (empty).
|
191
|
+
# @!attribute [rw] name
|
192
|
+
# @return [::String]
|
193
|
+
# The name of the resource being requested. Empty means all.
|
194
|
+
# @!attribute [rw] resource
|
195
|
+
# @return [::String]
|
196
|
+
# The optional resource type requested. "*" means all.
|
197
|
+
# @!attribute [rw] subresource
|
198
|
+
# @return [::String]
|
199
|
+
# The optional subresource type.
|
200
|
+
# @!attribute [rw] verb
|
201
|
+
# @return [::String]
|
202
|
+
# A Kubernetes resource API verb, like get, list, watch, create, update,
|
203
|
+
# delete, proxy. "*" means all.
|
204
|
+
# @!attribute [rw] version
|
205
|
+
# @return [::String]
|
206
|
+
# The API version of the resource. "*" means all.
|
207
|
+
class AccessReview
|
208
|
+
include ::Google::Protobuf::MessageExts
|
209
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
210
|
+
end
|
211
|
+
|
212
|
+
# Kubernetes object related to the finding, uniquely identified by GKNN.
|
213
|
+
# Used if the object Kind is not one of Pod, Node, NodePool, Binding, or
|
214
|
+
# AccessReview.
|
215
|
+
# @!attribute [rw] group
|
216
|
+
# @return [::String]
|
217
|
+
# Kubernetes object group, such as "policy.k8s.io/v1".
|
218
|
+
# @!attribute [rw] kind
|
219
|
+
# @return [::String]
|
220
|
+
# Kubernetes object kind, such as "Namespace".
|
221
|
+
# @!attribute [rw] ns
|
222
|
+
# @return [::String]
|
223
|
+
# Kubernetes object namespace. Must be a valid DNS label. Named
|
224
|
+
# "ns" to avoid collision with C++ namespace keyword. For details see
|
225
|
+
# https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
|
226
|
+
# @!attribute [rw] name
|
227
|
+
# @return [::String]
|
228
|
+
# Kubernetes object name. For details see
|
229
|
+
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
|
230
|
+
# @!attribute [rw] containers
|
231
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V2::Container>]
|
232
|
+
# Pod containers associated with this finding, if any.
|
233
|
+
class Object
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 SecurityCenter
|
23
|
+
module V2
|
24
|
+
# Represents a generic name-value label. A label has separate name and value
|
25
|
+
# fields to support filtering with the `contains()` function. For more
|
26
|
+
# information, see [Filtering on array-type
|
27
|
+
# fields](https://cloud.google.com/security-command-center/docs/how-to-api-list-findings#array-contains-filtering).
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Name of the label.
|
31
|
+
# @!attribute [rw] value
|
32
|
+
# @return [::String]
|
33
|
+
# Value that corresponds to the label's name.
|
34
|
+
class Label
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 SecurityCenter
|
23
|
+
module V2
|
24
|
+
# Contains information related to the load balancer associated with the
|
25
|
+
# finding.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# The name of the load balancer associated with the finding.
|
29
|
+
class LoadBalancer
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 SecurityCenter
|
23
|
+
module V2
|
24
|
+
# An individual entry in a log.
|
25
|
+
# @!attribute [rw] cloud_logging_entry
|
26
|
+
# @return [::Google::Cloud::SecurityCenter::V2::CloudLoggingEntry]
|
27
|
+
# An individual entry in a log stored in Cloud Logging.
|
28
|
+
class LogEntry
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# Metadata taken from a [Cloud Logging
|
34
|
+
# LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
|
35
|
+
# @!attribute [rw] insert_id
|
36
|
+
# @return [::String]
|
37
|
+
# A unique identifier for the log entry.
|
38
|
+
# @!attribute [rw] log_id
|
39
|
+
# @return [::String]
|
40
|
+
# The type of the log (part of `log_name`. `log_name` is the resource name of
|
41
|
+
# the log to which this log entry belongs). For example:
|
42
|
+
# `cloudresourcemanager.googleapis.com/activity` Note that this field is not
|
43
|
+
# URL-encoded, unlike in `LogEntry`.
|
44
|
+
# @!attribute [rw] resource_container
|
45
|
+
# @return [::String]
|
46
|
+
# The organization, folder, or project of the monitored resource that
|
47
|
+
# produced this log entry.
|
48
|
+
# @!attribute [rw] timestamp
|
49
|
+
# @return [::Google::Protobuf::Timestamp]
|
50
|
+
# The time the event described by the log entry occurred.
|
51
|
+
class CloudLoggingEntry
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|