Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of OnDemandScanning client #10979

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Api.Projects do
end

@doc """
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

## Parameters

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 "20221024"
@discovery_revision "20240304"

def discovery_revision(), do: @discovery_revision
end
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.OnDemandScanning.V1.Model.BinarySourceInfo do
@moduledoc """


## Attributes

* `binaryVersion` (*type:* `GoogleApi.OnDemandScanning.V1.Model.PackageVersion.t`, *default:* `nil`) - The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15.
* `sourceVersion` (*type:* `GoogleApi.OnDemandScanning.V1.Model.PackageVersion.t`, *default:* `nil`) - The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:binaryVersion => GoogleApi.OnDemandScanning.V1.Model.PackageVersion.t() | nil,
:sourceVersion => GoogleApi.OnDemandScanning.V1.Model.PackageVersion.t() | nil
}

field(:binaryVersion, as: GoogleApi.OnDemandScanning.V1.Model.PackageVersion)
field(:sourceVersion, as: GoogleApi.OnDemandScanning.V1.Model.PackageVersion)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.BinarySourceInfo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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.BuildDefinition do
@moduledoc """


## Attributes

* `buildType` (*type:* `String.t`, *default:* `nil`) -
* `externalParameters` (*type:* `map()`, *default:* `nil`) -
* `internalParameters` (*type:* `map()`, *default:* `nil`) -
* `resolvedDependencies` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.ResourceDescriptor.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:buildType => String.t() | nil,
:externalParameters => map() | nil,
:internalParameters => map() | nil,
:resolvedDependencies =>
list(GoogleApi.OnDemandScanning.V1.Model.ResourceDescriptor.t()) | nil
}

field(:buildType)
field(:externalParameters, type: :map)
field(:internalParameters, type: :map)

field(:resolvedDependencies,
as: GoogleApi.OnDemandScanning.V1.Model.ResourceDescriptor,
type: :list
)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.BuildDefinition do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
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.BuildMetadata do
@moduledoc """


## Attributes

* `finishedOn` (*type:* `DateTime.t`, *default:* `nil`) -
* `invocationId` (*type:* `String.t`, *default:* `nil`) -
* `startedOn` (*type:* `DateTime.t`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:finishedOn => DateTime.t() | nil,
:invocationId => String.t() | nil,
:startedOn => DateTime.t() | nil
}

field(:finishedOn, as: DateTime)
field(:invocationId)
field(:startedOn, as: DateTime)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.BuildMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.BuildOccurrence do

## Attributes

* `inTotoSlsaProvenanceV1` (*type:* `GoogleApi.OnDemandScanning.V1.Model.InTotoSlsaProvenanceV1.t`, *default:* `nil`) - In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.
* `intotoProvenance` (*type:* `GoogleApi.OnDemandScanning.V1.Model.InTotoProvenance.t`, *default:* `nil`) - Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
* `intotoStatement` (*type:* `GoogleApi.OnDemandScanning.V1.Model.InTotoStatement.t`, *default:* `nil`) - In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope.
* `provenance` (*type:* `GoogleApi.OnDemandScanning.V1.Model.BuildProvenance.t`, *default:* `nil`) - The actual provenance for the build.
Expand All @@ -30,12 +31,15 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.BuildOccurrence do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:inTotoSlsaProvenanceV1 =>
GoogleApi.OnDemandScanning.V1.Model.InTotoSlsaProvenanceV1.t() | nil,
:intotoProvenance => GoogleApi.OnDemandScanning.V1.Model.InTotoProvenance.t() | nil,
:intotoStatement => GoogleApi.OnDemandScanning.V1.Model.InTotoStatement.t() | nil,
:provenance => GoogleApi.OnDemandScanning.V1.Model.BuildProvenance.t() | nil,
:provenanceBytes => String.t() | nil
}

field(:inTotoSlsaProvenanceV1, as: GoogleApi.OnDemandScanning.V1.Model.InTotoSlsaProvenanceV1)
field(:intotoProvenance, as: GoogleApi.OnDemandScanning.V1.Model.InTotoProvenance)
field(:intotoStatement, as: GoogleApi.OnDemandScanning.V1.Model.InTotoStatement)
field(:provenance, as: GoogleApi.OnDemandScanning.V1.Model.BuildProvenance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.DiscoveryOccurrence do
* `continuousAnalysis` (*type:* `String.t`, *default:* `nil`) - Whether the resource is continuously analyzed.
* `cpe` (*type:* `String.t`, *default:* `nil`) - The CPE of the resource being scanned.
* `lastScanTime` (*type:* `DateTime.t`, *default:* `nil`) - The last time this resource was scanned.
* `sbomStatus` (*type:* `GoogleApi.OnDemandScanning.V1.Model.SBOMStatus.t`, *default:* `nil`) - The status of an SBOM generation.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -41,7 +42,8 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.DiscoveryOccurrence do
:archiveTime => DateTime.t() | nil,
:continuousAnalysis => String.t() | nil,
:cpe => String.t() | nil,
:lastScanTime => DateTime.t() | nil
:lastScanTime => DateTime.t() | nil,
:sbomStatus => GoogleApi.OnDemandScanning.V1.Model.SBOMStatus.t() | nil
}

field(:analysisCompleted, as: GoogleApi.OnDemandScanning.V1.Model.AnalysisCompleted)
Expand All @@ -52,6 +54,7 @@ defmodule GoogleApi.OnDemandScanning.V1.Model.DiscoveryOccurrence do
field(:continuousAnalysis)
field(:cpe)
field(:lastScanTime, as: DateTime)
field(:sbomStatus, as: GoogleApi.OnDemandScanning.V1.Model.SBOMStatus)
end

defimpl Poison.Decoder, for: GoogleApi.OnDemandScanning.V1.Model.DiscoveryOccurrence do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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.InTotoSlsaProvenanceV1 do
@moduledoc """


## Attributes

* `_type` (*type:* `String.t`, *default:* `nil`) - InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement
* `predicate` (*type:* `GoogleApi.OnDemandScanning.V1.Model.SlsaProvenanceV1.t`, *default:* `nil`) -
* `predicateType` (*type:* `String.t`, *default:* `nil`) -
* `subject` (*type:* `list(GoogleApi.OnDemandScanning.V1.Model.Subject.t)`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:_type => String.t() | nil,
:predicate => GoogleApi.OnDemandScanning.V1.Model.SlsaProvenanceV1.t() | nil,
:predicateType => String.t() | nil,
:subject => list(GoogleApi.OnDemandScanning.V1.Model.Subject.t()) | nil
}

field(:_type)
field(:predicate, as: GoogleApi.OnDemandScanning.V1.Model.SlsaProvenanceV1)
field(:predicateType)
field(:subject, as: GoogleApi.OnDemandScanning.V1.Model.Subject, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.InTotoSlsaProvenanceV1 do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
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.OnDemandScanning.V1.Model.Justification do
@moduledoc """
Justification provides the justification when the state of the assessment if NOT_AFFECTED.

## Attributes

* `details` (*type:* `String.t`, *default:* `nil`) - Additional details on why this justification was chosen.
* `justificationType` (*type:* `String.t`, *default:* `nil`) - The justification type for this vulnerability.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:details => String.t() | nil,
:justificationType => String.t() | nil
}

field(:details)
field(:justificationType)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.Justification do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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.Maintainer do
@moduledoc """


## Attributes

* `email` (*type:* `String.t`, *default:* `nil`) -
* `kind` (*type:* `String.t`, *default:* `nil`) -
* `name` (*type:* `String.t`, *default:* `nil`) -
* `url` (*type:* `String.t`, *default:* `nil`) -
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:email => String.t() | nil,
:kind => String.t() | nil,
:name => String.t() | nil,
:url => String.t() | nil
}

field(:email)
field(:kind)
field(:name)
field(:url)
end

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

defimpl Poison.Encoder, for: GoogleApi.OnDemandScanning.V1.Model.Maintainer do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading