|
| 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.GoogleCloudSecuritycenterV2Issue do |
| 19 | + @moduledoc """ |
| 20 | + Security Command Center Issue. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the issue was created. |
| 25 | + * `description` (*type:* `String.t`, *default:* `nil`) - The description of the issue in Markdown format. |
| 26 | + * `detection` (*type:* `String.t`, *default:* `nil`) - The finding category or rule name that generated the issue. |
| 27 | + * `domains` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain.t)`, *default:* `nil`) - The domains of the issue. |
| 28 | + * `exposureScore` (*type:* `float()`, *default:* `nil`) - The exposure score of the issue. |
| 29 | + * `issueType` (*type:* `String.t`, *default:* `nil`) - The type of the issue. |
| 30 | + * `lastObservationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the issue was last observed. |
| 31 | + * `mute` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute.t`, *default:* `nil`) - The mute information of the issue. |
| 32 | + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The name of the issue. Format: organizations/{organization}/locations/{location}/issues/{issue} |
| 33 | + * `primaryResource` (*type:* `GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t`, *default:* `nil`) - The primary resource associated with the issue. |
| 34 | + * `relatedFindings` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding.t)`, *default:* `nil`) - The findings related to the issue. |
| 35 | + * `remediations` (*type:* `list(String.t)`, *default:* `nil`) - Approaches to remediate the issue in Markdown format. |
| 36 | + * `secondaryResources` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t)`, *default:* `nil`) - Additional resources associated with the issue. |
| 37 | + * `securityContexts` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext.t)`, *default:* `nil`) - The security context of the issue. |
| 38 | + * `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the issue. |
| 39 | + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the issue. |
| 40 | + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the issue was last updated. |
| 41 | + """ |
| 42 | + |
| 43 | + use GoogleApi.Gax.ModelBase |
| 44 | + |
| 45 | + @type t :: %__MODULE__{ |
| 46 | + :createTime => DateTime.t() | nil, |
| 47 | + :description => String.t() | nil, |
| 48 | + :detection => String.t() | nil, |
| 49 | + :domains => |
| 50 | + list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain.t()) |
| 51 | + | nil, |
| 52 | + :exposureScore => float() | nil, |
| 53 | + :issueType => String.t() | nil, |
| 54 | + :lastObservationTime => DateTime.t() | nil, |
| 55 | + :mute => |
| 56 | + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute.t() | nil, |
| 57 | + :name => String.t() | nil, |
| 58 | + :primaryResource => |
| 59 | + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t() | nil, |
| 60 | + :relatedFindings => |
| 61 | + list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding.t()) |
| 62 | + | nil, |
| 63 | + :remediations => list(String.t()) | nil, |
| 64 | + :secondaryResources => |
| 65 | + list(GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource.t()) |
| 66 | + | nil, |
| 67 | + :securityContexts => |
| 68 | + list( |
| 69 | + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext.t() |
| 70 | + ) |
| 71 | + | nil, |
| 72 | + :severity => String.t() | nil, |
| 73 | + :state => String.t() | nil, |
| 74 | + :updateTime => DateTime.t() | nil |
| 75 | + } |
| 76 | + |
| 77 | + field(:createTime, as: DateTime) |
| 78 | + field(:description) |
| 79 | + field(:detection) |
| 80 | + |
| 81 | + field(:domains, |
| 82 | + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueDomain, |
| 83 | + type: :list |
| 84 | + ) |
| 85 | + |
| 86 | + field(:exposureScore) |
| 87 | + field(:issueType) |
| 88 | + field(:lastObservationTime, as: DateTime) |
| 89 | + field(:mute, as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueMute) |
| 90 | + field(:name) |
| 91 | + |
| 92 | + field(:primaryResource, |
| 93 | + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource |
| 94 | + ) |
| 95 | + |
| 96 | + field(:relatedFindings, |
| 97 | + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueFinding, |
| 98 | + type: :list |
| 99 | + ) |
| 100 | + |
| 101 | + field(:remediations, type: :list) |
| 102 | + |
| 103 | + field(:secondaryResources, |
| 104 | + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueResource, |
| 105 | + type: :list |
| 106 | + ) |
| 107 | + |
| 108 | + field(:securityContexts, |
| 109 | + as: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2IssueSecurityContext, |
| 110 | + type: :list |
| 111 | + ) |
| 112 | + |
| 113 | + field(:severity) |
| 114 | + field(:state) |
| 115 | + field(:updateTime, as: DateTime) |
| 116 | +end |
| 117 | + |
| 118 | +defimpl Poison.Decoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue do |
| 119 | + def decode(value, options) do |
| 120 | + GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue.decode(value, options) |
| 121 | + end |
| 122 | +end |
| 123 | + |
| 124 | +defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.GoogleCloudSecuritycenterV2Issue do |
| 125 | + def encode(value, options) do |
| 126 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 127 | + end |
| 128 | +end |
0 commit comments