-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of SecurityCenter client (#12663)
Auto-created at 2024-12-08 13:10:57 +0000 using the toys pull request generator.
- Loading branch information
1 parent
5e4da7f
commit 0a2b35d
Showing
19 changed files
with
1,020 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
...ty_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue do | ||
@moduledoc """ | ||
Security Command Center Issue. | ||
## Attributes | ||
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the issue was created. | ||
* `description` (*type:* `String.t`, *default:* `nil`) - The description of the issue in Markdown format. | ||
* `detection` (*type:* `String.t`, *default:* `nil`) - The finding category or rule name that generated the issue. | ||
* `domains` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain.t)`, *default:* `nil`) - The domains of the issue. | ||
* `exposureScore` (*type:* `float()`, *default:* `nil`) - The exposure score of the issue. | ||
* `issueType` (*type:* `String.t`, *default:* `nil`) - The type of the issue. | ||
* `lastObservationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the issue was last observed. | ||
* `mute` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute.t`, *default:* `nil`) - The mute information of the issue. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The name of the issue. Format: organizations/{organization}/locations/{location}/issues/{issue} | ||
* `primaryResource` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t`, *default:* `nil`) - The primary resource associated with the issue. | ||
* `relatedFindings` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding.t)`, *default:* `nil`) - The findings related to the issue. | ||
* `remediations` (*type:* `list(String.t)`, *default:* `nil`) - Approaches to remediate the issue in Markdown format. | ||
* `secondaryResources` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t)`, *default:* `nil`) - Additional resources associated with the issue. | ||
* `securityContexts` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext.t)`, *default:* `nil`) - The security context of the issue. | ||
* `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the issue. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the issue. | ||
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the issue was last updated. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:createTime => DateTime.t() | nil, | ||
:description => String.t() | nil, | ||
:detection => String.t() | nil, | ||
:domains => | ||
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain.t()) | ||
| nil, | ||
:exposureScore => float() | nil, | ||
:issueType => String.t() | nil, | ||
:lastObservationTime => DateTime.t() | nil, | ||
:mute => | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute.t() | nil, | ||
:name => String.t() | nil, | ||
:primaryResource => | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t() | nil, | ||
:relatedFindings => | ||
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding.t()) | ||
| nil, | ||
:remediations => list(String.t()) | nil, | ||
:secondaryResources => | ||
list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t()) | ||
| nil, | ||
:securityContexts => | ||
list( | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext.t() | ||
) | ||
| nil, | ||
:severity => String.t() | nil, | ||
:state => String.t() | nil, | ||
:updateTime => DateTime.t() | nil | ||
} | ||
|
||
field(:createTime, as: DateTime) | ||
field(:description) | ||
field(:detection) | ||
|
||
field(:domains, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain, | ||
type: :list | ||
) | ||
|
||
field(:exposureScore) | ||
field(:issueType) | ||
field(:lastObservationTime, as: DateTime) | ||
field(:mute, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute) | ||
field(:name) | ||
|
||
field(:primaryResource, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource | ||
) | ||
|
||
field(:relatedFindings, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding, | ||
type: :list | ||
) | ||
|
||
field(:remediations, type: :list) | ||
|
||
field(:secondaryResources, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource, | ||
type: :list | ||
) | ||
|
||
field(:securityContexts, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext, | ||
type: :list | ||
) | ||
|
||
field(:severity) | ||
field(:state) | ||
field(:updateTime, as: DateTime) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
51 changes: 51 additions & 0 deletions
51
...er/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_domain.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain do | ||
@moduledoc """ | ||
The domains of an issue. | ||
## Attributes | ||
* `domainCategory` (*type:* `String.t`, *default:* `nil`) - The domain category of the issue. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:domainCategory => String.t() | nil | ||
} | ||
|
||
field(:domainCategory) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
63 changes: 63 additions & 0 deletions
63
...r/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding do | ||
@moduledoc """ | ||
Finding related to an issue. | ||
## Attributes | ||
* `cve` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve.t`, *default:* `nil`) - The CVE of the finding. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the finding. | ||
* `securityBulletin` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin.t`, *default:* `nil`) - The security bulletin of the finding. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:cve => | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve.t() | nil, | ||
:name => String.t() | nil, | ||
:securityBulletin => | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin.t() | ||
| nil | ||
} | ||
|
||
field(:cve, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve) | ||
field(:name) | ||
|
||
field(:securityBulletin, | ||
as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.