-
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 (#10896)
Auto-created at 2024-03-12 01:34:44 +0000 using the toys pull request generator.
- Loading branch information
1 parent
44162de
commit 8e61f63
Showing
158 changed files
with
13,990 additions
and
804 deletions.
There are no files selected for viewing
2,062 changes: 1,894 additions & 168 deletions
2,062
clients/security_center/lib/google_api/security_center/v1/api/folders.ex
Large diffs are not rendered by default.
Oops, something went wrong.
3,166 changes: 2,953 additions & 213 deletions
3,166
clients/security_center/lib/google_api/security_center/v1/api/organizations.ex
Large diffs are not rendered by default.
Oops, something went wrong.
2,062 changes: 1,894 additions & 168 deletions
2,062
clients/security_center/lib/google_api/security_center/v1/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,14 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Access do | |
* `callerIp` (*type:* `String.t`, *default:* `nil`) - Caller's IP address, such as "1.1.1.1". | ||
* `callerIpGeo` (*type:* `GoogleApi.SecurityCenter.V1.Model.Geolocation.t`, *default:* `nil`) - The caller IP's geolocation, which identifies where the call came from. | ||
* `methodName` (*type:* `String.t`, *default:* `nil`) - The method that the service account called, e.g. "SetIamPolicy". | ||
* `principalEmail` (*type:* `String.t`, *default:* `nil`) - Associated email, such as "[email protected]". The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id). | ||
* `principalSubject` (*type:* `String.t`, *default:* `nil`) - A string representing the principal_subject associated with the identity. As compared to `principal_email`, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name}/subjects/{subject}` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name}[{subject}]` | ||
* `serviceAccountDelegationInfo` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.ServiceAccountDelegationInfo.t)`, *default:* `nil`) - Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities are present, they are guaranteed to be sorted based on the original ordering of the identity delegation events. | ||
* `serviceAccountKeyName` (*type:* `String.t`, *default:* `nil`) - The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}" | ||
* `principalEmail` (*type:* `String.t`, *default:* `nil`) - Associated email, such as "[email protected]". The email address of the authenticated user or a service account acting on behalf of a third party principal making the request. For third party identity callers, the `principal_subject` field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit logs](https://cloud.google.com/logging/docs/audit#user-id). | ||
* `principalSubject` (*type:* `String.t`, *default:* `nil`) - A string that represents the principal_subject that is associated with the identity. Unlike `principal_email`, `principal_subject` supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format is `principal://iam.googleapis.com/{identity pool name}/subject/{subject}`. Some GKE identities, such as GKE_WORKLOAD, FREEFORM, and GKE_HUB_WORKLOAD, still use the legacy format `serviceAccount:{identity pool name}[{subject}]`. | ||
* `serviceAccountDelegationInfo` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.ServiceAccountDelegationInfo.t)`, *default:* `nil`) - The identity delegation history of an authenticated service account that made the request. The `serviceAccountDelegationInfo[]` object contains information about the real authorities that try to access Google Cloud resources by delegating on a service account. When multiple authorities are present, they are guaranteed to be sorted based on the original ordering of the identity delegation events. | ||
* `serviceAccountKeyName` (*type:* `String.t`, *default:* `nil`) - The name of the service account key that was used to create or exchange credentials when authenticating the service account that made the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}". | ||
* `serviceName` (*type:* `String.t`, *default:* `nil`) - This is the API service that the service account made a call to, e.g. "iam.googleapis.com" | ||
* `userAgentFamily` (*type:* `String.t`, *default:* `nil`) - What kind of user agent is associated, e.g. operating system shells, embedded or stand-alone applications, etc. | ||
* `userName` (*type:* `String.t`, *default:* `nil`) - A string representing a username. This is likely not an IAM principal. For instance, this may be the system user name if the finding is VM-related, or this may be some type of application login user name, depending on the type of finding. | ||
* `userAgent` (*type:* `String.t`, *default:* `nil`) - The caller's user agent string associated with the finding. | ||
* `userAgentFamily` (*type:* `String.t`, *default:* `nil`) - Type of user agent associated with the finding. For example, an operating system shell or an embedded or standalone application. | ||
* `userName` (*type:* `String.t`, *default:* `nil`) - A string that represents a username. The username provided depends on the type of the finding and is likely not an IAM principal. For example, this can be a system username if the finding is related to a virtual machine, or it can be an application login username. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
@@ -45,6 +46,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Access do | |
list(GoogleApi.SecurityCenter.V1.Model.ServiceAccountDelegationInfo.t()) | nil, | ||
:serviceAccountKeyName => String.t() | nil, | ||
:serviceName => String.t() | nil, | ||
:userAgent => String.t() | nil, | ||
:userAgentFamily => String.t() | nil, | ||
:userName => String.t() | nil | ||
} | ||
|
@@ -62,6 +64,7 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Access do | |
|
||
field(:serviceAccountKeyName) | ||
field(:serviceName) | ||
field(:userAgent) | ||
field(:userAgentFamily) | ||
field(:userName) | ||
end | ||
|
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
49 changes: 49 additions & 0 deletions
49
clients/security_center/lib/google_api/security_center/v1/model/application.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,49 @@ | ||
# 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.Application do | ||
@moduledoc """ | ||
Represents an application associated with a finding. | ||
## Attributes | ||
* `baseUri` (*type:* `String.t`, *default:* `nil`) - The base URI that identifies the network location of the application in which the vulnerability was detected. For example, `http://example.com`. | ||
* `fullUri` (*type:* `String.t`, *default:* `nil`) - The full URI with payload that can be used to reproduce the vulnerability. For example, `http://example.com?p=aMmYgI6H`. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:baseUri => String.t() | nil, | ||
:fullUri => String.t() | nil | ||
} | ||
|
||
field(:baseUri) | ||
field(:fullUri) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.Application do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.Application.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Application do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
64 changes: 64 additions & 0 deletions
64
clients/security_center/lib/google_api/security_center/v1/model/attack_exposure.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,64 @@ | ||
# 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.AttackExposure do | ||
@moduledoc """ | ||
An attack exposure contains the results of an attack path simulation run. | ||
## Attributes | ||
* `attackExposureResult` (*type:* `String.t`, *default:* `nil`) - The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: organizations/123/simulations/456/attackExposureResults/789 | ||
* `exposedHighValueResourcesCount` (*type:* `integer()`, *default:* `nil`) - The number of high value resources that are exposed as a result of this finding. | ||
* `exposedLowValueResourcesCount` (*type:* `integer()`, *default:* `nil`) - The number of high value resources that are exposed as a result of this finding. | ||
* `exposedMediumValueResourcesCount` (*type:* `integer()`, *default:* `nil`) - The number of medium value resources that are exposed as a result of this finding. | ||
* `latestCalculationTime` (*type:* `DateTime.t`, *default:* `nil`) - The most recent time the attack exposure was updated on this finding. | ||
* `score` (*type:* `float()`, *default:* `nil`) - A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:attackExposureResult => String.t() | nil, | ||
:exposedHighValueResourcesCount => integer() | nil, | ||
:exposedLowValueResourcesCount => integer() | nil, | ||
:exposedMediumValueResourcesCount => integer() | nil, | ||
:latestCalculationTime => DateTime.t() | nil, | ||
:score => float() | nil, | ||
:state => String.t() | nil | ||
} | ||
|
||
field(:attackExposureResult) | ||
field(:exposedHighValueResourcesCount) | ||
field(:exposedLowValueResourcesCount) | ||
field(:exposedMediumValueResourcesCount) | ||
field(:latestCalculationTime, as: DateTime) | ||
field(:score) | ||
field(:state) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.AttackExposure do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.AttackExposure.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.AttackExposure do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
clients/security_center/lib/google_api/security_center/v1/model/attack_path.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,52 @@ | ||
# 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.AttackPath do | ||
@moduledoc """ | ||
A path that an attacker could take to reach an exposed resource. | ||
## Attributes | ||
* `edges` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.AttackPathEdge.t)`, *default:* `nil`) - A list of the edges between nodes in this attack path. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - The attack path name, for example, `organizations/12/simulation/34/valuedResources/56/attackPaths/78` | ||
* `pathNodes` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.AttackPathNode.t)`, *default:* `nil`) - A list of nodes that exist in this attack path. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:edges => list(GoogleApi.SecurityCenter.V1.Model.AttackPathEdge.t()) | nil, | ||
:name => String.t() | nil, | ||
:pathNodes => list(GoogleApi.SecurityCenter.V1.Model.AttackPathNode.t()) | nil | ||
} | ||
|
||
field(:edges, as: GoogleApi.SecurityCenter.V1.Model.AttackPathEdge, type: :list) | ||
field(:name) | ||
field(:pathNodes, as: GoogleApi.SecurityCenter.V1.Model.AttackPathNode, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.AttackPath do | ||
def decode(value, options) do | ||
GoogleApi.SecurityCenter.V1.Model.AttackPath.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.AttackPath do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
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
Oops, something went wrong.