Skip to content

Commit 43ad2e3

Browse files
feat: Automated regeneration of SecurityCenter client (googleapis#12528)
Auto-created at 2024-11-14 13:19:54 +0000 using the toys pull request generator.
1 parent 125ecbf commit 43ad2e3

13 files changed

+116
-5
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.35"}]
14+
[{:google_api_security_center, "~> 0.36"}]
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 "20241018"
23+
@discovery_revision "20241111"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Disk do
19+
@moduledoc """
20+
Contains information about the disk associated with the finding.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the disk, for example, "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id".
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:name => String.t() | nil
31+
}
32+
33+
field(:name)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Disk do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.Disk.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Disk do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EffectiveEventThreatDetectionCustomM
2121
2222
## Attributes
2323
24+
* `cloudProvider` (*type:* `String.t`, *default:* `nil`) - The cloud provider of the custom module.
2425
* `config` (*type:* `map()`, *default:* `nil`) - Output only. Config for the effective module.
2526
* `description` (*type:* `String.t`, *default:* `nil`) - Output only. The description for the module.
2627
* `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The human readable name to be displayed for the module.
@@ -32,6 +33,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EffectiveEventThreatDetectionCustomM
3233
use GoogleApi.Gax.ModelBase
3334

3435
@type t :: %__MODULE__{
36+
:cloudProvider => String.t() | nil,
3537
:config => map() | nil,
3638
:description => String.t() | nil,
3739
:displayName => String.t() | nil,
@@ -40,6 +42,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EffectiveEventThreatDetectionCustomM
4042
:type => String.t() | nil
4143
}
4244

45+
field(:cloudProvider)
4346
field(:config, type: :map)
4447
field(:description)
4548
field(:displayName)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EventThreatDetectionCustomModule do
2222
## Attributes
2323
2424
* `ancestorModule` (*type:* `String.t`, *default:* `nil`) - Output only. The closest ancestor module that this module inherits the enablement state from. The format is the same as the EventThreatDetectionCustomModule resource name.
25+
* `cloudProvider` (*type:* `String.t`, *default:* `nil`) - The cloud provider of the custom module.
2526
* `config` (*type:* `map()`, *default:* `nil`) - Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module.
2627
* `description` (*type:* `String.t`, *default:* `nil`) - The description for the module.
2728
* `displayName` (*type:* `String.t`, *default:* `nil`) - The human readable name to be displayed for the module.
@@ -36,6 +37,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EventThreatDetectionCustomModule do
3637

3738
@type t :: %__MODULE__{
3839
:ancestorModule => String.t() | nil,
40+
:cloudProvider => String.t() | nil,
3941
:config => map() | nil,
4042
:description => String.t() | nil,
4143
:displayName => String.t() | nil,
@@ -47,6 +49,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.EventThreatDetectionCustomModule do
4749
}
4850

4951
field(:ancestorModule)
52+
field(:cloudProvider)
5053
field(:config, type: :map)
5154
field(:description)
5255
field(:displayName)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
5858
* `processes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Process.t)`, *default:* `nil`) - Represents operating system processes associated with the Finding.
5959
* `logEntries` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.LogEntry.t)`, *default:* `nil`) - Log entries that are relevant to the finding.
6060
* `cloudArmor` (*type:* `GoogleApi.SecurityCenter.V1.Model.CloudArmor.t`, *default:* `nil`) - Fields related to Cloud Armor findings.
61+
* `disk` (*type:* `GoogleApi.SecurityCenter.V1.Model.Disk.t`, *default:* `nil`) - Disk associated with the finding.
6162
* `access` (*type:* `GoogleApi.SecurityCenter.V1.Model.Access.t`, *default:* `nil`) - Access details associated with the finding, such as more information on the caller, which method was accessed, and from where.
6263
* `resourceName` (*type:* `String.t`, *default:* `nil`) - For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
6364
* `mitreAttack` (*type:* `GoogleApi.SecurityCenter.V1.Model.MitreAttack.t`, *default:* `nil`) - MITRE ATT&CK tactics and techniques related to this finding. See: https://attack.mitre.org
@@ -121,6 +122,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
121122
:processes => list(GoogleApi.SecurityCenter.V1.Model.Process.t()) | nil,
122123
:logEntries => list(GoogleApi.SecurityCenter.V1.Model.LogEntry.t()) | nil,
123124
:cloudArmor => GoogleApi.SecurityCenter.V1.Model.CloudArmor.t() | nil,
125+
:disk => GoogleApi.SecurityCenter.V1.Model.Disk.t() | nil,
124126
:access => GoogleApi.SecurityCenter.V1.Model.Access.t() | nil,
125127
:resourceName => String.t() | nil,
126128
:mitreAttack => GoogleApi.SecurityCenter.V1.Model.MitreAttack.t() | nil,
@@ -181,6 +183,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
181183
field(:processes, as: GoogleApi.SecurityCenter.V1.Model.Process, type: :list)
182184
field(:logEntries, as: GoogleApi.SecurityCenter.V1.Model.LogEntry, type: :list)
183185
field(:cloudArmor, as: GoogleApi.SecurityCenter.V1.Model.CloudArmor)
186+
field(:disk, as: GoogleApi.SecurityCenter.V1.Model.Disk)
184187
field(:access, as: GoogleApi.SecurityCenter.V1.Model.Access)
185188
field(:resourceName)
186189
field(:mitreAttack, as: GoogleApi.SecurityCenter.V1.Model.MitreAttack)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1Effective
2121
2222
## Attributes
2323
24+
* `cloudProvider` (*type:* `String.t`, *default:* `nil`) - The cloud provider of the custom module.
2425
* `customConfig` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig.t`, *default:* `nil`) - Output only. The user-specified configuration for the module.
2526
* `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
2627
* `enablementState` (*type:* `String.t`, *default:* `nil`) - Output only. The effective state of enablement for the module at the given level of the hierarchy.
@@ -30,13 +31,16 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1Effective
3031
use GoogleApi.Gax.ModelBase
3132

3233
@type t :: %__MODULE__{
34+
:cloudProvider => String.t() | nil,
3335
:customConfig =>
3436
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig.t() | nil,
3537
:displayName => String.t() | nil,
3638
:enablementState => String.t() | nil,
3739
:name => String.t() | nil
3840
}
3941

42+
field(:cloudProvider)
43+
4044
field(:customConfig,
4145
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig
4246
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1ResourceV
3030
* `resourceValue` (*type:* `String.t`, *default:* `nil`) - Required. Resource value level this expression represents
3131
* `scope` (*type:* `String.t`, *default:* `nil`) - Project or folder to scope this configuration to. For example, "project/456" would apply this configuration only to resources in "project/456" scope will be checked with `AND` of other resources.
3232
* `sensitiveDataProtectionMapping` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping.t`, *default:* `nil`) - A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".
33-
* `tagValues` (*type:* `list(String.t)`, *default:* `nil`) - Required. Tag values combined with `AND` to check against. Values in the form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
33+
* `tagValues` (*type:* `list(String.t)`, *default:* `nil`) - Required. Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of "tagValues/123". Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
3434
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp this resource value configuration was last updated.
3535
"""
3636

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1SecurityH
2222
## Attributes
2323
2424
* `ancestorModule` (*type:* `String.t`, *default:* `nil`) - Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, `ancestor_module` specifies the organization or folder from which the custom module is inherited.
25+
* `cloudProvider` (*type:* `String.t`, *default:* `nil`) - The cloud provider of the custom module.
2526
* `customConfig` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig.t`, *default:* `nil`) - The user specified custom configuration for the module.
2627
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
2728
* `enablementState` (*type:* `String.t`, *default:* `nil`) - The enablement state of the custom module.
@@ -34,6 +35,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1SecurityH
3435

3536
@type t :: %__MODULE__{
3637
:ancestorModule => String.t() | nil,
38+
:cloudProvider => String.t() | nil,
3739
:customConfig =>
3840
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig.t() | nil,
3941
:displayName => String.t() | nil,
@@ -44,6 +46,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1SecurityH
4446
}
4547

4648
field(:ancestorModule)
49+
field(:cloudProvider)
4750

4851
field(:customConfig,
4952
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV1CustomConfig
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GoogleCloudSecuritycenterV2Disk do
19+
@moduledoc """
20+
Contains information about the disk associated with the finding.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the disk, for example, "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id".
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:name => String.t() | nil
31+
}
32+
33+
field(:name)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk do
37+
def decode(value, options) do
38+
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Disk do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)