diff --git a/clients/security_center/README.md b/clients/security_center/README.md index 3dc83e2c4c..e3f63736a0 100644 --- a/clients/security_center/README.md +++ b/clients/security_center/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_security_center, "~> 0.36"}] + [{:google_api_security_center, "~> 0.37"}] end ``` diff --git a/clients/security_center/lib/google_api/security_center/v1/api/organizations.ex b/clients/security_center/lib/google_api/security_center/v1/api/organizations.ex index 7a90633ae4..8a02a234d3 100644 --- a/clients/security_center/lib/google_api/security_center/v1/api/organizations.ex +++ b/clients/security_center/lib/google_api/security_center/v1/api/organizations.ex @@ -477,6 +477,84 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Organizations do |> Response.decode(opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.SecurityMarks{}]) end + @doc """ + Lists the attack paths for a set of simulation results or valued resources and filter. + + ## Parameters + + * `connection` (*type:* `GoogleApi.SecurityCenter.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Name of parent to list attack paths. Valid formats: `organizations/{organization}`, `organizations/{organization}/simulations/{simulation}` `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}` `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - The filter expression that filters the attack path in the response. Supported fields: * `valued_resources` supports = + * `:pageSize` (*type:* `integer()`) - The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000. + * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListAttackPathsResponse`; indicates that this is a continuation of a prior `ListAttackPaths` call, and that the system should return the next page of data. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.SecurityCenter.V1.Model.ListAttackPathsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec securitycenter_organizations_attack_paths_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.SecurityCenter.V1.Model.ListAttackPathsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def securitycenter_organizations_attack_paths_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/attackPaths", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.SecurityCenter.V1.Model.ListAttackPathsResponse{}] + ) + end + @doc """ Creates a BigQuery export. @@ -2562,7 +2640,7 @@ defmodule GoogleApi.SecurityCenter.V1.Api.Organizations do end @doc """ - Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. ## Parameters diff --git a/clients/security_center/lib/google_api/security_center/v1/metadata.ex b/clients/security_center/lib/google_api/security_center/v1/metadata.ex index 74799fe3ba..a352c610ed 100644 --- a/clients/security_center/lib/google_api/security_center/v1/metadata.ex +++ b/clients/security_center/lib/google_api/security_center/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.SecurityCenter.V1 do API client metadata for GoogleApi.SecurityCenter.V1. """ - @discovery_revision "20241111" + @discovery_revision "20241205" def discovery_revision(), do: @discovery_revision end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue.ex new file mode 100644 index 0000000000..10b834753b --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue.ex @@ -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 diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_domain.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_domain.ex new file mode 100644 index 0000000000..1ddc0a83b9 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_domain.ex @@ -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 diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding.ex new file mode 100644 index 0000000000..bde9c01327 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding.ex @@ -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 diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_cve.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_cve.ex new file mode 100644 index 0000000000..a67e5cce82 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_cve.ex @@ -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.GoogleCloudSecuritycenterV2IssueFindingCve do + @moduledoc """ + The CVE of the finding. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The CVE name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingCve do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_security_bulletin.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_security_bulletin.ex new file mode 100644 index 0000000000..7477711b51 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_finding_security_bulletin.ex @@ -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.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin do + @moduledoc """ + The security bulletin of the finding. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The security bulletin name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_mute.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_mute.ex new file mode 100644 index 0000000000..53f3c266bc --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_mute.ex @@ -0,0 +1,57 @@ +# 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.GoogleCloudSecuritycenterV2IssueMute do + @moduledoc """ + The mute information of the issue. + + ## Attributes + + * `muteInitiator` (*type:* `String.t`, *default:* `nil`) - The email address of the user who last changed the mute state of the issue. + * `muteReason` (*type:* `String.t`, *default:* `nil`) - The user-provided reason for muting the issue. + * `muteState` (*type:* `String.t`, *default:* `nil`) - Output only. The mute state of the issue. + * `muteUpdateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the issue was muted. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :muteInitiator => String.t() | nil, + :muteReason => String.t() | nil, + :muteState => String.t() | nil, + :muteUpdateTime => DateTime.t() | nil + } + + field(:muteInitiator) + field(:muteReason) + field(:muteState) + field(:muteUpdateTime, as: DateTime) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource.ex new file mode 100644 index 0000000000..321d3d0e7e --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource.ex @@ -0,0 +1,86 @@ +# 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.GoogleCloudSecuritycenterV2IssueResource do + @moduledoc """ + A resource associated with the an issue. + + ## Attributes + + * `awsMetadata` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata.t`, *default:* `nil`) - The AWS metadata of the resource associated with the issue. Only populated for AWS resources. + * `azureMetadata` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata.t`, *default:* `nil`) - The Azure metadata of the resource associated with the issue. Only populated for Azure resources. + * `cloudProvider` (*type:* `String.t`, *default:* `nil`) - The cloud provider of the resource associated with the issue. + * `displayName` (*type:* `String.t`, *default:* `nil`) - The resource-type specific display name of the resource associated with the issue. + * `googleCloudMetadata` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata.t`, *default:* `nil`) - The Google Cloud metadata of the resource associated with the issue. Only populated for Google Cloud resources. + * `name` (*type:* `String.t`, *default:* `nil`) - The full resource name of the resource associated with the issue. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of the resource associated with the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :awsMetadata => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata.t() + | nil, + :azureMetadata => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata.t() + | nil, + :cloudProvider => String.t() | nil, + :displayName => String.t() | nil, + :googleCloudMetadata => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata.t() + | nil, + :name => String.t() | nil, + :type => String.t() | nil + } + + field(:awsMetadata, + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata + ) + + field(:azureMetadata, + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata + ) + + field(:cloudProvider) + field(:displayName) + + field(:googleCloudMetadata, + as: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata + ) + + field(:name) + field(:type) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata.ex new file mode 100644 index 0000000000..93451fcdca --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata.ex @@ -0,0 +1,56 @@ +# 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.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata do + @moduledoc """ + The AWS metadata of a resource associated with an issue. + + ## Attributes + + * `account` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount.t`, *default:* `nil`) - The AWS account of the resource associated with the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :account => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount.t() + | nil + } + + field(:account, + as: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata_aws_account.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata_aws_account.ex new file mode 100644 index 0000000000..3a1805793f --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_aws_metadata_aws_account.ex @@ -0,0 +1,56 @@ +# 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.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount do + @moduledoc """ + The AWS account of the resource associated with the issue. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The AWS account ID of the resource associated with the issue. + * `name` (*type:* `String.t`, *default:* `nil`) - The AWS account name of the resource associated with the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :name => String.t() | nil + } + + field(:id) + field(:name) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata.ex new file mode 100644 index 0000000000..7b84a9ca01 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata.ex @@ -0,0 +1,56 @@ +# 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.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata do + @moduledoc """ + The Azure metadata of a resource associated with an issue. + + ## Attributes + + * `subscription` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription.t`, *default:* `nil`) - The Azure subscription of the resource associated with the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :subscription => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription.t() + | nil + } + + field(:subscription, + as: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata_azure_subscription.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata_azure_subscription.ex new file mode 100644 index 0000000000..26d047f8e5 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_azure_metadata_azure_subscription.ex @@ -0,0 +1,56 @@ +# 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.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription do + @moduledoc """ + The Azure subscription of the resource associated with the issue. + + ## Attributes + + * `displayName` (*type:* `String.t`, *default:* `nil`) - The Azure subscription display name of the resource associated with the issue. + * `id` (*type:* `String.t`, *default:* `nil`) - The Azure subscription ID of the resource associated with the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :displayName => String.t() | nil, + :id => String.t() | nil + } + + field(:displayName) + field(:id) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_google_cloud_metadata.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_google_cloud_metadata.ex new file mode 100644 index 0000000000..75ea5b88a6 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_resource_google_cloud_metadata.ex @@ -0,0 +1,53 @@ +# 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.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata do + @moduledoc """ + Google Cloud metadata of a resource associated with an issue. + + ## Attributes + + * `projectId` (*type:* `String.t`, *default:* `nil`) - The project ID that the resource associated with the issue belongs to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :projectId => String.t() | nil + } + + field(:projectId) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context.ex new file mode 100644 index 0000000000..8bf7740fb1 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context.ex @@ -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.GoogleCloudSecuritycenterV2IssueSecurityContext do + @moduledoc """ + Security context associated with an issue. + + ## Attributes + + * `aggregatedCount` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount.t`, *default:* `nil`) - The aggregated count of the security context. + * `context` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext.t`, *default:* `nil`) - The context of the security context. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregatedCount => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount.t() + | nil, + :context => + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext.t() + | nil + } + + field(:aggregatedCount, + as: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount + ) + + field(:context, + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext + ) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_aggregated_count.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_aggregated_count.ex new file mode 100644 index 0000000000..f47872cb87 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_aggregated_count.ex @@ -0,0 +1,56 @@ +# 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.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount do + @moduledoc """ + Aggregated count of a security context. + + ## Attributes + + * `key` (*type:* `String.t`, *default:* `nil`) - Aggregation key. + * `value` (*type:* `integer()`, *default:* `nil`) - Aggregation value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :key => String.t() | nil, + :value => integer() | nil + } + + field(:key) + field(:value) +end + +defimpl Poison.Decoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_context.ex b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_context.ex new file mode 100644 index 0000000000..275f428f57 --- /dev/null +++ b/clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v2_issue_security_context_context.ex @@ -0,0 +1,54 @@ +# 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.GoogleCloudSecuritycenterV2IssueSecurityContextContext do + @moduledoc """ + Context of a security context. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Context type. + * `values` (*type:* `list(String.t)`, *default:* `nil`) - Context values. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil, + :values => list(String.t()) | nil + } + + field(:type) + field(:values, type: :list) +end + +defimpl Poison.Decoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext do + def decode(value, options) do + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContextContext do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/security_center/mix.exs b/clients/security_center/mix.exs index b8c525ec49..85b1fa7bdd 100644 --- a/clients/security_center/mix.exs +++ b/clients/security_center/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.SecurityCenter.Mixfile do use Mix.Project - @version "0.36.0" + @version "0.37.0" def project() do [