Skip to content

Commit ccb92e9

Browse files
feat: Automated regeneration of SecurityCenter client (googleapis#12679)
Auto-created at 2024-12-11 13:17:58 +0000 using the toys pull request generator.
1 parent e89bd1d commit ccb92e9

File tree

7 files changed

+139
-3
lines changed

7 files changed

+139
-3
lines changed

clients/security_center/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_security_center, "~> 0.37"}]
14+
[{:google_api_security_center, "~> 0.38"}]
1515
end
1616
```
1717

clients/security_center/lib/google_api/security_center/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.SecurityCenter.V1 do
2020
API client metadata for GoogleApi.SecurityCenter.V1.
2121
"""
2222

23-
@discovery_revision "20241205"
23+
@discovery_revision "20241206"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent do
19+
@moduledoc """
20+
Details about data retention deletion violations, in which the data is non-compliant based on their retention or deletion time, as defined in the applicable data security policy. The Data Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management) suite that enables organizations to manage data retention and deletion policies in compliance with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations meet regulatory and data management commitments.
21+
22+
## Attributes
23+
24+
* `dataObjectCount` (*type:* `String.t`, *default:* `nil`) - Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.
25+
* `eventDetectionTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp indicating when the event was detected.
26+
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of the DRD event.
27+
* `maxRetentionAllowed` (*type:* `String.t`, *default:* `nil`) - Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user set the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:dataObjectCount => String.t() | nil,
34+
:eventDetectionTime => DateTime.t() | nil,
35+
:eventType => String.t() | nil,
36+
:maxRetentionAllowed => String.t() | nil
37+
}
38+
39+
field(:dataObjectCount)
40+
field(:eventDetectionTime, as: DateTime)
41+
field(:eventType)
42+
field(:maxRetentionAllowed)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent do
46+
def decode(value, options) do
47+
GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

clients/security_center/lib/google_api/security_center/v1/model/finding.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
3333
* `vulnerability` (*type:* `GoogleApi.SecurityCenter.V1.Model.Vulnerability.t`, *default:* `nil`) - Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
3434
* `mute` (*type:* `String.t`, *default:* `nil`) - Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.
3535
* `moduleName` (*type:* `String.t`, *default:* `nil`) - Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
36+
* `dataRetentionDeletionEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent.t)`, *default:* `nil`) - Data retention deletion events associated with the finding.
3637
* `description` (*type:* `String.t`, *default:* `nil`) - Contains more details about the finding.
3738
* `notebook` (*type:* `GoogleApi.SecurityCenter.V1.Model.Notebook.t`, *default:* `nil`) - Notebook associated with the finding.
3839
* `cloudDlpDataProfile` (*type:* `GoogleApi.SecurityCenter.V1.Model.CloudDlpDataProfile.t`, *default:* `nil`) - Cloud DLP data profile that is associated with the finding.
@@ -91,6 +92,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
9192
:vulnerability => GoogleApi.SecurityCenter.V1.Model.Vulnerability.t() | nil,
9293
:mute => String.t() | nil,
9394
:moduleName => String.t() | nil,
95+
:dataRetentionDeletionEvents =>
96+
list(GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent.t()) | nil,
9497
:description => String.t() | nil,
9598
:notebook => GoogleApi.SecurityCenter.V1.Model.Notebook.t() | nil,
9699
:cloudDlpDataProfile => GoogleApi.SecurityCenter.V1.Model.CloudDlpDataProfile.t() | nil,
@@ -153,6 +156,12 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
153156
field(:vulnerability, as: GoogleApi.SecurityCenter.V1.Model.Vulnerability)
154157
field(:mute)
155158
field(:moduleName)
159+
160+
field(:dataRetentionDeletionEvents,
161+
as: GoogleApi.SecurityCenter.V1.Model.DataRetentionDeletionEvent,
162+
type: :list
163+
)
164+
156165
field(:description)
157166
field(:notebook, as: GoogleApi.SecurityCenter.V1.Model.Notebook)
158167
field(:cloudDlpDataProfile, as: GoogleApi.SecurityCenter.V1.Model.CloudDlpDataProfile)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent do
19+
@moduledoc """
20+
Details about data retention deletion violations, in which the data is non-compliant based on their retention or deletion time, as defined in the applicable data security policy. The Data Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management) suite that enables organizations to manage data retention and deletion policies in compliance with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations meet regulatory and data management commitments.
21+
22+
## Attributes
23+
24+
* `dataObjectCount` (*type:* `String.t`, *default:* `nil`) - Number of objects that violated the policy for this resource. If the number is less than 1,000, then the value of this field is the exact number. If the number of objects that violated the policy is greater than or equal to 1,000, then the value of this field is 1000.
25+
* `eventDetectionTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp indicating when the event was detected.
26+
* `eventType` (*type:* `String.t`, *default:* `nil`) - Type of the DRD event.
27+
* `maxRetentionAllowed` (*type:* `String.t`, *default:* `nil`) - Maximum duration of retention allowed from the DRD control. This comes from the DRD control where users set a max TTL for their data. For example, suppose that a user set the max TTL for a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the max_retention_allowed is 90 days.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:dataObjectCount => String.t() | nil,
34+
:eventDetectionTime => DateTime.t() | nil,
35+
:eventType => String.t() | nil,
36+
:maxRetentionAllowed => String.t() | nil
37+
}
38+
39+
field(:dataObjectCount)
40+
field(:eventDetectionTime, as: DateTime)
41+
field(:eventType)
42+
field(:maxRetentionAllowed)
43+
end
44+
45+
defimpl Poison.Decoder,
46+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent do
47+
def decode(value, options) do
48+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent.decode(
49+
value,
50+
options
51+
)
52+
end
53+
end
54+
55+
defimpl Poison.Encoder,
56+
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent do
57+
def encode(value, options) do
58+
GoogleApi.Gax.ModelBase.encode(value, options)
59+
end
60+
end

clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_finding.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
3333
* `vulnerability` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerability.t`, *default:* `nil`) - Represents vulnerability-specific fields like CVE and CVSS scores. CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
3434
* `mute` (*type:* `String.t`, *default:* `nil`) - Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.
3535
* `moduleName` (*type:* `String.t`, *default:* `nil`) - Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
36+
* `dataRetentionDeletionEvents` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent.t)`, *default:* `nil`) - Data retention deletion events associated with the finding.
3637
* `description` (*type:* `String.t`, *default:* `nil`) - Contains more details about the finding.
3738
* `notebook` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Notebook.t`, *default:* `nil`) - Notebook associated with the finding.
3839
* `cloudDlpDataProfile` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2CloudDlpDataProfile.t`, *default:* `nil`) - Cloud DLP data profile that is associated with the finding.
@@ -99,6 +100,11 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
99100
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerability.t() | nil,
100101
:mute => String.t() | nil,
101102
:moduleName => String.t() | nil,
103+
:dataRetentionDeletionEvents =>
104+
list(
105+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent.t()
106+
)
107+
| nil,
102108
:description => String.t() | nil,
103109
:notebook =>
104110
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Notebook.t() | nil,
@@ -219,6 +225,12 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Finding d
219225

220226
field(:mute)
221227
field(:moduleName)
228+
229+
field(:dataRetentionDeletionEvents,
230+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2DataRetentionDeletionEvent,
231+
type: :list
232+
)
233+
222234
field(:description)
223235
field(:notebook, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Notebook)
224236

clients/security_center/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.SecurityCenter.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.37.0"
21+
@version "0.38.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)