Skip to content

Commit

Permalink
feat: Automated regeneration of OnDemandScanning client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed May 1, 2024
1 parent e6a95f9 commit cb33d33
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/on_demand_scanning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_on_demand_scanning, "~> 0.4"}]
[{:google_api_on_demand_scanning, "~> 0.5"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.OnDemandScanning.V1 do
API client metadata for GoogleApi.OnDemandScanning.V1.
"""

@discovery_revision "20240304"
@discovery_revision "20240429"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.ComplianceOccurrence do
* `nonComplianceReason` (*type:* `String.t`, *default:* `nil`) -
* `nonCompliantFiles` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.NonCompliantFile.t)`, *default:* `nil`) -
* `version` (*type:* `GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion.t`, *default:* `nil`) - The OS and config version the benchmark was run on.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:nonComplianceReason => String.t() | nil,
:nonCompliantFiles =>
list(GoogleApi.OnDemandScanning.V1.Model.NonCompliantFile.t()) | nil
list(GoogleApi.OnDemandScanning.V1.Model.NonCompliantFile.t()) | nil,
:version => GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion.t() | nil
}

field(:nonComplianceReason)
field(:nonCompliantFiles, as: GoogleApi.OnDemandScanning.V1.Model.NonCompliantFile, type: :list)
field(:version, as: GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion)
end

defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.ComplianceOccurrence do
Expand Down
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.OnDemandScanning.V1.Model.ComplianceVersion do
@moduledoc """
Describes the CIS benchmark version that is applicable to a given OS and os version.
## Attributes
* `benchmarkDocument` (*type:* `String.t`, *default:* `nil`) - The name of the document that defines this benchmark, e.g. "CIS Container-Optimized OS".
* `cpeUri` (*type:* `String.t`, *default:* `nil`) - The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
* `version` (*type:* `String.t`, *default:* `nil`) - The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:benchmarkDocument => String.t() | nil,
:cpeUri => String.t() | nil,
:version => String.t() | nil
}

field(:benchmarkDocument)
field(:cpeUri)
field(:version)
end

defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion do
def decode(value, options) do
GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.ComplianceVersion do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/on_demand_scanning/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.OnDemandScanning.Mixfile do
use Mix.Project

@version "0.4.0"
@version "0.5.0"

def project() do
[
Expand Down

0 comments on commit cb33d33

Please sign in to comment.