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.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/security_center/v2/rest.rb +37 -0
  6. data/lib/google/cloud/security_center/v2/security_center/client.rb +4771 -0
  7. data/lib/google/cloud/security_center/v2/security_center/credentials.rb +51 -0
  8. data/lib/google/cloud/security_center/v2/security_center/operations.rb +809 -0
  9. data/lib/google/cloud/security_center/v2/security_center/paths.rb +973 -0
  10. data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +4390 -0
  11. data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +901 -0
  12. data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +3165 -0
  13. data/lib/google/cloud/security_center/v2/security_center/rest.rb +53 -0
  14. data/lib/google/cloud/security_center/v2/security_center.rb +56 -0
  15. data/lib/google/cloud/security_center/v2/version.rb +7 -2
  16. data/lib/google/cloud/security_center/v2.rb +45 -0
  17. data/lib/google/cloud/securitycenter/v2/access_pb.rb +44 -0
  18. data/lib/google/cloud/securitycenter/v2/application_pb.rb +42 -0
  19. data/lib/google/cloud/securitycenter/v2/attack_exposure_pb.rb +47 -0
  20. data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +49 -0
  21. data/lib/google/cloud/securitycenter/v2/backup_disaster_recovery_pb.rb +45 -0
  22. data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +47 -0
  23. data/lib/google/cloud/securitycenter/v2/cloud_dlp_data_profile_pb.rb +45 -0
  24. data/lib/google/cloud/securitycenter/v2/cloud_dlp_inspection_pb.rb +44 -0
  25. data/lib/google/cloud/securitycenter/v2/compliance_pb.rb +42 -0
  26. data/lib/google/cloud/securitycenter/v2/connection_pb.rb +43 -0
  27. data/lib/google/cloud/securitycenter/v2/contact_details_pb.rb +43 -0
  28. data/lib/google/cloud/securitycenter/v2/container_pb.rb +47 -0
  29. data/lib/google/cloud/securitycenter/v2/database_pb.rb +42 -0
  30. data/lib/google/cloud/securitycenter/v2/exfiltration_pb.rb +43 -0
  31. data/lib/google/cloud/securitycenter/v2/external_system_pb.rb +47 -0
  32. data/lib/google/cloud/securitycenter/v2/file_pb.rb +43 -0
  33. data/lib/google/cloud/securitycenter/v2/finding_pb.rb +109 -0
  34. data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
  35. data/lib/google/cloud/securitycenter/v2/iam_binding_pb.rb +43 -0
  36. data/lib/google/cloud/securitycenter/v2/indicator_pb.rb +47 -0
  37. data/lib/google/cloud/securitycenter/v2/kernel_rootkit_pb.rb +42 -0
  38. data/lib/google/cloud/securitycenter/v2/kubernetes_pb.rb +57 -0
  39. data/lib/google/cloud/securitycenter/v2/label_pb.rb +42 -0
  40. data/lib/google/cloud/securitycenter/v2/load_balancer_pb.rb +42 -0
  41. data/lib/google/cloud/securitycenter/v2/log_entry_pb.rb +46 -0
  42. data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +44 -0
  43. data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +48 -0
  44. data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +46 -0
  45. data/lib/google/cloud/securitycenter/v2/notification_message_pb.rb +47 -0
  46. data/lib/google/cloud/securitycenter/v2/org_policy_pb.rb +44 -0
  47. data/lib/google/cloud/securitycenter/v2/process_pb.rb +46 -0
  48. data/lib/google/cloud/securitycenter/v2/resource_pb.rb +44 -0
  49. data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +49 -0
  50. data/lib/google/cloud/securitycenter/v2/security_marks_pb.rb +44 -0
  51. data/lib/google/cloud/securitycenter/v2/security_posture_pb.rb +43 -0
  52. data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +128 -0
  53. data/lib/google/cloud/securitycenter/v2/securitycenter_service_services_pb.rb +167 -0
  54. data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +49 -0
  55. data/lib/google/cloud/securitycenter/v2/source_pb.rb +44 -0
  56. data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
  57. data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +46 -0
  58. data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +58 -0
  59. data/lib/google-cloud-security_center-v2.rb +21 -0
  60. data/proto_docs/README.md +4 -0
  61. data/proto_docs/google/api/client.rb +399 -0
  62. data/proto_docs/google/api/field_behavior.rb +85 -0
  63. data/proto_docs/google/api/launch_stage.rb +71 -0
  64. data/proto_docs/google/api/resource.rb +222 -0
  65. data/proto_docs/google/api/routing.rb +459 -0
  66. data/proto_docs/google/cloud/securitycenter/v2/access.rb +120 -0
  67. data/proto_docs/google/cloud/securitycenter/v2/application.rb +40 -0
  68. data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +73 -0
  69. data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +147 -0
  70. data/proto_docs/google/cloud/securitycenter/v2/backup_disaster_recovery.rb +90 -0
  71. data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +96 -0
  72. data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_data_profile.rb +52 -0
  73. data/proto_docs/google/cloud/securitycenter/v2/cloud_dlp_inspection.rb +50 -0
  74. data/proto_docs/google/cloud/securitycenter/v2/compliance.rb +43 -0
  75. data/proto_docs/google/cloud/securitycenter/v2/connection.rb +70 -0
  76. data/proto_docs/google/cloud/securitycenter/v2/contact_details.rb +44 -0
  77. data/proto_docs/google/cloud/securitycenter/v2/container.rb +49 -0
  78. data/proto_docs/google/cloud/securitycenter/v2/database.rb +67 -0
  79. data/proto_docs/google/cloud/securitycenter/v2/exfiltration.rb +64 -0
  80. data/proto_docs/google/cloud/securitycenter/v2/external_system.rb +106 -0
  81. data/proto_docs/google/cloud/securitycenter/v2/file.rb +72 -0
  82. data/proto_docs/google/cloud/securitycenter/v2/finding.rb +427 -0
  83. data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
  84. data/proto_docs/google/cloud/securitycenter/v2/iam_binding.rb +56 -0
  85. data/proto_docs/google/cloud/securitycenter/v2/indicator.rb +112 -0
  86. data/proto_docs/google/cloud/securitycenter/v2/kernel_rootkit.rb +66 -0
  87. data/proto_docs/google/cloud/securitycenter/v2/kubernetes.rb +241 -0
  88. data/proto_docs/google/cloud/securitycenter/v2/label.rb +41 -0
  89. data/proto_docs/google/cloud/securitycenter/v2/load_balancer.rb +36 -0
  90. data/proto_docs/google/cloud/securitycenter/v2/log_entry.rb +58 -0
  91. data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +285 -0
  92. data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +100 -0
  93. data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +90 -0
  94. data/proto_docs/google/cloud/securitycenter/v2/notification_message.rb +42 -0
  95. data/proto_docs/google/cloud/securitycenter/v2/org_policy.rb +37 -0
  96. data/proto_docs/google/cloud/securitycenter/v2/process.rb +79 -0
  97. data/proto_docs/google/cloud/securitycenter/v2/resource.rb +42 -0
  98. data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +122 -0
  99. data/proto_docs/google/cloud/securitycenter/v2/security_marks.rb +84 -0
  100. data/proto_docs/google/cloud/securitycenter/v2/security_posture.rb +83 -0
  101. data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +1136 -0
  102. data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +43 -0
  103. data/proto_docs/google/cloud/securitycenter/v2/source.rb +65 -0
  104. data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
  105. data/proto_docs/google/cloud/securitycenter/v2/valued_resource.rb +86 -0
  106. data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +333 -0
  107. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  108. data/proto_docs/google/iam/v1/options.rb +50 -0
  109. data/proto_docs/google/iam/v1/policy.rb +426 -0
  110. data/proto_docs/google/longrunning/operations.rb +164 -0
  111. data/proto_docs/google/protobuf/any.rb +145 -0
  112. data/proto_docs/google/protobuf/duration.rb +98 -0
  113. data/proto_docs/google/protobuf/empty.rb +34 -0
  114. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  115. data/proto_docs/google/protobuf/struct.rb +96 -0
  116. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  117. data/proto_docs/google/rpc/status.rb +48 -0
  118. data/proto_docs/google/type/expr.rb +75 -0
  119. metadata +173 -10
@@ -0,0 +1,43 @@
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 compliance information about a security standard indicating unmet
25
+ # recommendations.
26
+ # @!attribute [rw] standard
27
+ # @return [::String]
28
+ # Industry-wide compliance standards or benchmarks, such as CIS, PCI, and
29
+ # OWASP.
30
+ # @!attribute [rw] version
31
+ # @return [::String]
32
+ # Version of the standard or benchmark, for example, 1.1
33
+ # @!attribute [rw] ids
34
+ # @return [::Array<::String>]
35
+ # Policies within the standard or benchmark, for example, A.12.4.1
36
+ class Compliance
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,70 @@
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 about the IP connection associated with the finding.
25
+ # @!attribute [rw] destination_ip
26
+ # @return [::String]
27
+ # Destination IP address. Not present for sockets that are listening and not
28
+ # connected.
29
+ # @!attribute [rw] destination_port
30
+ # @return [::Integer]
31
+ # Destination port. Not present for sockets that are listening and not
32
+ # connected.
33
+ # @!attribute [rw] source_ip
34
+ # @return [::String]
35
+ # Source IP address.
36
+ # @!attribute [rw] source_port
37
+ # @return [::Integer]
38
+ # Source port.
39
+ # @!attribute [rw] protocol
40
+ # @return [::Google::Cloud::SecurityCenter::V2::Connection::Protocol]
41
+ # IANA Internet Protocol Number such as TCP(6) and UDP(17).
42
+ class Connection
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+
46
+ # IANA Internet Protocol Number such as TCP(6) and UDP(17).
47
+ module Protocol
48
+ # Unspecified protocol (not HOPOPT).
49
+ PROTOCOL_UNSPECIFIED = 0
50
+
51
+ # Internet Control Message Protocol.
52
+ ICMP = 1
53
+
54
+ # Transmission Control Protocol.
55
+ TCP = 6
56
+
57
+ # User Datagram Protocol.
58
+ UDP = 17
59
+
60
+ # Generic Routing Encapsulation.
61
+ GRE = 47
62
+
63
+ # Encap Security Payload.
64
+ ESP = 50
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,44 @@
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
+ # Details about specific contacts
25
+ # @!attribute [rw] contacts
26
+ # @return [::Array<::Google::Cloud::SecurityCenter::V2::Contact>]
27
+ # A list of contacts
28
+ class ContactDetails
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # The email address of a contact.
34
+ # @!attribute [rw] email
35
+ # @return [::String]
36
+ # An email address. For example, "`person123@company.com`".
37
+ class Contact
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,49 @@
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
+ # Container associated with the finding.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Name of the container.
28
+ # @!attribute [rw] uri
29
+ # @return [::String]
30
+ # Container image URI provided when configuring a pod or container. This
31
+ # string can identify a container image version using mutable tags.
32
+ # @!attribute [rw] image_id
33
+ # @return [::String]
34
+ # Optional container image ID, if provided by the container runtime. Uniquely
35
+ # identifies the container image launched using a container image digest.
36
+ # @!attribute [rw] labels
37
+ # @return [::Array<::Google::Cloud::SecurityCenter::V2::Label>]
38
+ # Container labels, as provided by the container runtime.
39
+ # @!attribute [rw] create_time
40
+ # @return [::Google::Protobuf::Timestamp]
41
+ # The time that the container was created.
42
+ class Container
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,67 @@
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 database access information, such as queries. A database may be a
25
+ # sub-resource of an instance (as in the case of Cloud SQL instances or Cloud
26
+ # Spanner instances), or the database instance itself. Some database resources
27
+ # might not have the [full resource
28
+ # name](https://google.aip.dev/122#full-resource-names) populated because these
29
+ # resource types, such as Cloud SQL databases, are not yet supported by Cloud
30
+ # Asset Inventory. In these cases only the display name is provided.
31
+ # @!attribute [rw] name
32
+ # @return [::String]
33
+ # Some database resources may not have the [full resource
34
+ # name](https://google.aip.dev/122#full-resource-names) populated because
35
+ # these resource types are not yet supported by Cloud Asset Inventory (e.g.
36
+ # Cloud SQL databases). In these cases only the display name will be
37
+ # provided.
38
+ # The [full resource name](https://google.aip.dev/122#full-resource-names) of
39
+ # the database that the user connected to, if it is supported by Cloud Asset
40
+ # Inventory.
41
+ # @!attribute [rw] display_name
42
+ # @return [::String]
43
+ # The human-readable name of the database that the user connected to.
44
+ # @!attribute [rw] user_name
45
+ # @return [::String]
46
+ # The username used to connect to the database. The username might not be an
47
+ # IAM principal and does not have a set format.
48
+ # @!attribute [rw] query
49
+ # @return [::String]
50
+ # The SQL statement that is associated with the database access.
51
+ # @!attribute [rw] grantees
52
+ # @return [::Array<::String>]
53
+ # The target usernames, roles, or groups of an SQL privilege grant, which is
54
+ # not an IAM policy change.
55
+ # @!attribute [rw] version
56
+ # @return [::String]
57
+ # The version of the database, for example, POSTGRES_14.
58
+ # See [the complete
59
+ # list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
60
+ class Database
61
+ include ::Google::Protobuf::MessageExts
62
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,64 @@
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
+ # Exfiltration represents a data exfiltration attempt from one or more sources
25
+ # to one or more targets. The `sources` attribute lists the sources of the
26
+ # exfiltrated data. The `targets` attribute lists the destinations the data was
27
+ # copied to.
28
+ # @!attribute [rw] sources
29
+ # @return [::Array<::Google::Cloud::SecurityCenter::V2::ExfilResource>]
30
+ # If there are multiple sources, then the data is considered "joined" between
31
+ # them. For instance, BigQuery can join multiple tables, and each
32
+ # table would be considered a source.
33
+ # @!attribute [rw] targets
34
+ # @return [::Array<::Google::Cloud::SecurityCenter::V2::ExfilResource>]
35
+ # If there are multiple targets, each target would get a complete copy of the
36
+ # "joined" source data.
37
+ # @!attribute [rw] total_exfiltrated_bytes
38
+ # @return [::Integer]
39
+ # Total exfiltrated bytes processed for the entire job.
40
+ class Exfiltration
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # Resource where data was exfiltrated from or exfiltrated to.
46
+ # @!attribute [rw] name
47
+ # @return [::String]
48
+ # The resource's [full resource
49
+ # name](https://cloud.google.com/apis/design/resource_names#full_resource_name).
50
+ # @!attribute [rw] components
51
+ # @return [::Array<::String>]
52
+ # Subcomponents of the asset that was exfiltrated, like URIs used during
53
+ # exfiltration, table names, databases, and filenames. For example, multiple
54
+ # tables might have been exfiltrated from the same Cloud SQL instance, or
55
+ # multiple files might have been exfiltrated from the same Cloud Storage
56
+ # bucket.
57
+ class ExfilResource
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,106 @@
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
+ # Representation of third party SIEM/SOAR fields within SCC.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Full resource name of the external system. The following list
28
+ # shows some examples:
29
+ #
30
+ # + `organizations/1234/sources/5678/findings/123456/externalSystems/jira`
31
+ # +
32
+ # `organizations/1234/sources/5678/locations/us/findings/123456/externalSystems/jira`
33
+ # + `folders/1234/sources/5678/findings/123456/externalSystems/jira`
34
+ # +
35
+ # `folders/1234/sources/5678/locations/us/findings/123456/externalSystems/jira`
36
+ # + `projects/1234/sources/5678/findings/123456/externalSystems/jira`
37
+ # +
38
+ # `projects/1234/sources/5678/locations/us/findings/123456/externalSystems/jira`
39
+ # @!attribute [rw] assignees
40
+ # @return [::Array<::String>]
41
+ # References primary/secondary etc assignees in the external system.
42
+ # @!attribute [rw] external_uid
43
+ # @return [::String]
44
+ # The identifier that's used to track the finding's corresponding case in the
45
+ # external system.
46
+ # @!attribute [rw] status
47
+ # @return [::String]
48
+ # The most recent status of the finding's corresponding case, as reported by
49
+ # the external system.
50
+ # @!attribute [rw] external_system_update_time
51
+ # @return [::Google::Protobuf::Timestamp]
52
+ # The time when the case was last updated, as reported by the external
53
+ # system.
54
+ # @!attribute [rw] case_uri
55
+ # @return [::String]
56
+ # The link to the finding's corresponding case in the external system.
57
+ # @!attribute [rw] case_priority
58
+ # @return [::String]
59
+ # The priority of the finding's corresponding case in the external system.
60
+ # @!attribute [rw] case_sla
61
+ # @return [::Google::Protobuf::Timestamp]
62
+ # The SLA of the finding's corresponding case in the external system.
63
+ # @!attribute [rw] case_create_time
64
+ # @return [::Google::Protobuf::Timestamp]
65
+ # The time when the case was created, as reported by the external system.
66
+ # @!attribute [rw] case_close_time
67
+ # @return [::Google::Protobuf::Timestamp]
68
+ # The time when the case was closed, as reported by the external system.
69
+ # @!attribute [rw] ticket_info
70
+ # @return [::Google::Cloud::SecurityCenter::V2::ExternalSystem::TicketInfo]
71
+ # Information about the ticket, if any, that is being used to track the
72
+ # resolution of the issue that is identified by this finding.
73
+ class ExternalSystem
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+
77
+ # Information about the ticket, if any, that is being used to track the
78
+ # resolution of the issue that is identified by this finding.
79
+ # @!attribute [rw] id
80
+ # @return [::String]
81
+ # The identifier of the ticket in the ticket system.
82
+ # @!attribute [rw] assignee
83
+ # @return [::String]
84
+ # The assignee of the ticket in the ticket system.
85
+ # @!attribute [rw] description
86
+ # @return [::String]
87
+ # The description of the ticket in the ticket system.
88
+ # @!attribute [rw] uri
89
+ # @return [::String]
90
+ # The link to the ticket in the ticket system.
91
+ # @!attribute [rw] status
92
+ # @return [::String]
93
+ # The latest status of the ticket, as reported by the ticket system.
94
+ # @!attribute [rw] update_time
95
+ # @return [::Google::Protobuf::Timestamp]
96
+ # The time when the ticket was last updated, as reported by the ticket
97
+ # system.
98
+ class TicketInfo
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,72 @@
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
+ # File information about the related binary/library used by an executable, or
25
+ # the script used by a script interpreter
26
+ # @!attribute [rw] path
27
+ # @return [::String]
28
+ # Absolute path of the file as a JSON encoded string.
29
+ # @!attribute [rw] size
30
+ # @return [::Integer]
31
+ # Size of the file in bytes.
32
+ # @!attribute [rw] sha256
33
+ # @return [::String]
34
+ # SHA256 hash of the first hashed_size bytes of the file encoded as a
35
+ # hex string. If hashed_size == size, sha256 represents the SHA256 hash
36
+ # of the entire file.
37
+ # @!attribute [rw] hashed_size
38
+ # @return [::Integer]
39
+ # The length in bytes of the file prefix that was hashed. If
40
+ # hashed_size == size, any hashes reported represent the entire
41
+ # file.
42
+ # @!attribute [rw] partially_hashed
43
+ # @return [::Boolean]
44
+ # True when the hash covers only a prefix of the file.
45
+ # @!attribute [rw] contents
46
+ # @return [::String]
47
+ # Prefix of the file contents as a JSON-encoded string.
48
+ # @!attribute [rw] disk_path
49
+ # @return [::Google::Cloud::SecurityCenter::V2::File::DiskPath]
50
+ # Path of the file in terms of underlying disk/partition identifiers.
51
+ class File
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # Path of the file in terms of underlying disk/partition identifiers.
56
+ # @!attribute [rw] partition_uuid
57
+ # @return [::String]
58
+ # UUID of the partition (format
59
+ # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid)
60
+ # @!attribute [rw] relative_path
61
+ # @return [::String]
62
+ # Relative path of the file in the partition as a JSON encoded string.
63
+ # Example: /home/user1/executable_file.sh
64
+ class DiskPath
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end