Skip to content

Commit 6c6954b

Browse files
feat: Automated regeneration of SecurityCenter client (#13161)
Auto-created at 2025-03-14 13:17:51 +0000 using the toys pull request generator.
1 parent eb4cee4 commit 6c6954b

File tree

5 files changed

+124
-1
lines changed

5 files changed

+124
-1
lines changed

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 "20250228"
23+
@discovery_revision "20250308"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Cwe do
19+
@moduledoc """
20+
CWE stands for Common Weakness Enumeration. Information about this weakness, as described by [CWE](https://cwe.mitre.org/).
21+
22+
## Attributes
23+
24+
* `id` (*type:* `String.t`, *default:* `nil`) - The CWE identifier, e.g. CWE-94
25+
* `references` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Reference.t)`, *default:* `nil`) - Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:id => String.t() | nil,
32+
:references => list(GoogleApi.SecurityCenter.V1.Model.Reference.t()) | nil
33+
}
34+
35+
field(:id)
36+
field(:references, as: GoogleApi.SecurityCenter.V1.Model.Reference, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Cwe do
40+
def decode(value, options) do
41+
GoogleApi.SecurityCenter.V1.Model.Cwe.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Cwe do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.GoogleCloudSecuritycenterV2Cwe do
19+
@moduledoc """
20+
CWE stands for Common Weakness Enumeration. Information about this weakness, as described by [CWE](https://cwe.mitre.org/).
21+
22+
## Attributes
23+
24+
* `id` (*type:* `String.t`, *default:* `nil`) - The CWE identifier, e.g. CWE-94
25+
* `references` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Reference.t)`, *default:* `nil`) - Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:id => String.t() | nil,
32+
:references =>
33+
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Reference.t()) | nil
34+
}
35+
36+
field(:id)
37+
38+
field(:references,
39+
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Reference,
40+
type: :list
41+
)
42+
end
43+
44+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe do
45+
def decode(value, options) do
46+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe.decode(value, options)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,42 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Vulnerabi
2222
## Attributes
2323
2424
* `cve` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cve.t`, *default:* `nil`) - CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
25+
* `cwes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe.t)`, *default:* `nil`) - Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability.
2526
* `fixedPackage` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package.t`, *default:* `nil`) - The fixed package is relevant to the finding.
2627
* `offendingPackage` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package.t`, *default:* `nil`) - The offending package is relevant to the finding.
28+
* `providerRiskScore` (*type:* `String.t`, *default:* `nil`) - Provider provided risk_score based on multiple factors. The higher the risk score, the more risky the vulnerability is.
29+
* `reachable` (*type:* `boolean()`, *default:* `nil`) - Represents whether the vulnerability is reachable (detected via static analysis)
2730
* `securityBulletin` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2SecurityBulletin.t`, *default:* `nil`) - The security bulletin is relevant to this finding.
2831
"""
2932

3033
use GoogleApi.Gax.ModelBase
3134

3235
@type t :: %__MODULE__{
3336
:cve => GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cve.t() | nil,
37+
:cwes =>
38+
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe.t()) | nil,
3439
:fixedPackage =>
3540
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package.t() | nil,
3641
:offendingPackage =>
3742
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package.t() | nil,
43+
:providerRiskScore => String.t() | nil,
44+
:reachable => boolean() | nil,
3845
:securityBulletin =>
3946
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2SecurityBulletin.t()
4047
| nil
4148
}
4249

4350
field(:cve, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cve)
51+
field(:cwes, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Cwe, type: :list)
4452
field(:fixedPackage, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package)
4553

4654
field(:offendingPackage,
4755
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Package
4856
)
4957

58+
field(:providerRiskScore)
59+
field(:reachable)
60+
5061
field(:securityBulletin,
5162
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2SecurityBulletin
5263
)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,32 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Vulnerability do
2222
## Attributes
2323
2424
* `cve` (*type:* `GoogleApi.SecurityCenter.V1.Model.Cve.t`, *default:* `nil`) - CVE stands for Common Vulnerabilities and Exposures (https://cve.mitre.org/about/)
25+
* `cwes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Cwe.t)`, *default:* `nil`) - Represents one or more Common Weakness Enumeration (CWE) information on this vulnerability.
2526
* `fixedPackage` (*type:* `GoogleApi.SecurityCenter.V1.Model.Package.t`, *default:* `nil`) - The fixed package is relevant to the finding.
2627
* `offendingPackage` (*type:* `GoogleApi.SecurityCenter.V1.Model.Package.t`, *default:* `nil`) - The offending package is relevant to the finding.
28+
* `providerRiskScore` (*type:* `String.t`, *default:* `nil`) - Provider provided risk_score based on multiple factors. The higher the risk score, the more risky the vulnerability is.
29+
* `reachable` (*type:* `boolean()`, *default:* `nil`) - Represents whether the vulnerability is reachable (detected via static analysis)
2730
* `securityBulletin` (*type:* `GoogleApi.SecurityCenter.V1.Model.SecurityBulletin.t`, *default:* `nil`) - The security bulletin is relevant to this finding.
2831
"""
2932

3033
use GoogleApi.Gax.ModelBase
3134

3235
@type t :: %__MODULE__{
3336
:cve => GoogleApi.SecurityCenter.V1.Model.Cve.t() | nil,
37+
:cwes => list(GoogleApi.SecurityCenter.V1.Model.Cwe.t()) | nil,
3438
:fixedPackage => GoogleApi.SecurityCenter.V1.Model.Package.t() | nil,
3539
:offendingPackage => GoogleApi.SecurityCenter.V1.Model.Package.t() | nil,
40+
:providerRiskScore => String.t() | nil,
41+
:reachable => boolean() | nil,
3642
:securityBulletin => GoogleApi.SecurityCenter.V1.Model.SecurityBulletin.t() | nil
3743
}
3844

3945
field(:cve, as: GoogleApi.SecurityCenter.V1.Model.Cve)
46+
field(:cwes, as: GoogleApi.SecurityCenter.V1.Model.Cwe, type: :list)
4047
field(:fixedPackage, as: GoogleApi.SecurityCenter.V1.Model.Package)
4148
field(:offendingPackage, as: GoogleApi.SecurityCenter.V1.Model.Package)
49+
field(:providerRiskScore)
50+
field(:reachable)
4251
field(:securityBulletin, as: GoogleApi.SecurityCenter.V1.Model.SecurityBulletin)
4352
end
4453

0 commit comments

Comments
 (0)