Skip to content

Commit

Permalink
feat: Automated regeneration of Run client (#11219)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-28 13:16:32 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 28, 2024
1 parent 6a87a89 commit 22c71d5
Show file tree
Hide file tree
Showing 16 changed files with 790 additions and 9 deletions.
2 changes: 1 addition & 1 deletion clients/run/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_run, "~> 0.29"}]
[{:google_api_run, "~> 0.30"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/run/lib/google_api/run/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Run.V1 do
API client metadata for GoogleApi.Run.V1.
"""

@discovery_revision "20240310"
@discovery_revision "20240322"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.Run.V1.Model.NFSVolumeSource do
@moduledoc """
Represents a persistent volume that will be mounted using NFS. This volume will be shared between all instances of the Service and data will not be deleted when the instance is shut down.
Represents a persistent volume that will be mounted using NFS. This volume will be shared between all instances of the resource and data will not be deleted when the instance is shut down.
## Attributes
Expand Down
429 changes: 429 additions & 0 deletions clients/run/lib/google_api/run/v2/api/projects.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/run/lib/google_api/run/v2/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Run.V2 do
API client metadata for GoogleApi.Run.V2.
"""

@discovery_revision "20240310"
@discovery_revision "20240322"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BinaryAuthorization do
## Attributes
* `breakglassJustification` (*type:* `String.t`, *default:* `nil`) - If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
* `policy` (*type:* `String.t`, *default:* `nil`) - The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
* `useDefault` (*type:* `boolean()`, *default:* `nil`) - If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:breakglassJustification => String.t() | nil,
:policy => String.t() | nil,
:useDefault => boolean() | nil
}

field(:breakglassJustification)
field(:policy)
field(:useDefault)
end

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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.Run.V2.Model.GoogleCloudRunV2ExportImageRequest do
@moduledoc """
Request message for exporting Cloud Run image.
## Attributes
* `destinationRepo` (*type:* `String.t`, *default:* `nil`) - Required. The export destination url (the Artifact Registry repo).
"""

use GoogleApi.Gax.ModelBase

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

field(:destinationRepo)
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageRequest do
def decode(value, options) do
GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageRequest.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageRequest 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,46 @@
# 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.Run.V2.Model.GoogleCloudRunV2ExportImageResponse do
@moduledoc """
ExportImageResponse contains an operation Id to track the image export operation.
## Attributes
* `operationId` (*type:* `String.t`, *default:* `nil`) - An operation ID used to track the status of image exports tied to the original pod ID in the request.
"""

use GoogleApi.Gax.ModelBase

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

field(:operationId)
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse do
def decode(value, options) do
GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse 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,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.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse do
@moduledoc """
ExportStatusResponse contains the status of image export operation, with the status of each image export job.
## Attributes
* `imageExportStatuses` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus.t)`, *default:* `nil`) - The status of each image export job.
* `operationId` (*type:* `String.t`, *default:* `nil`) - The operation id.
* `operationState` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the overall export operation.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:imageExportStatuses =>
list(GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus.t()) | nil,
:operationId => String.t() | nil,
:operationState => String.t() | nil
}

field(:imageExportStatuses,
as: GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus,
type: :list
)

field(:operationId)
field(:operationState)
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse do
def decode(value, options) do
GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse 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 @@ -17,12 +17,12 @@

defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource do
@moduledoc """
Represents a GCS Bucket mounted as a volume.
Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
## Attributes
* `bucket` (*type:* `String.t`, *default:* `nil`) - GCS Bucket name
* `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, mount the GCS bucket as read-only
* `bucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage Bucket name.
* `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, the volume will be mounted as read only for all mounts.
"""

use GoogleApi.Gax.ModelBase
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.Run.V2.Model.GoogleCloudRunV2ImageExportStatus do
@moduledoc """
The status of an image export job.
## Attributes
* `exportJobState` (*type:* `String.t`, *default:* `nil`) - Output only. Has the image export job finished (regardless of successful or failure).
* `exportedImageDigest` (*type:* `String.t`, *default:* `nil`) - The exported image ID as it will appear in Artifact Registry.
* `status` (*type:* `GoogleApi.Run.V2.Model.UtilStatusProto.t`, *default:* `nil`) - The status of the export task if done.
* `tag` (*type:* `String.t`, *default:* `nil`) - The image tag as it will appear in Artifact Registry.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:exportJobState => String.t() | nil,
:exportedImageDigest => String.t() | nil,
:status => GoogleApi.Run.V2.Model.UtilStatusProto.t() | nil,
:tag => String.t() | nil
}

field(:exportJobState)
field(:exportedImageDigest)
field(:status, as: GoogleApi.Run.V2.Model.UtilStatusProto)
field(:tag)
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus do
def decode(value, options) do
GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ImageExportStatus 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,46 @@
# 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.Run.V2.Model.GoogleCloudRunV2Metadata do
@moduledoc """
Metadata represents the JSON encoded generated customer metadata.
## Attributes
* `metadata` (*type:* `String.t`, *default:* `nil`) - JSON encoded Google-generated Customer Metadata for a given resource/project.
"""

use GoogleApi.Gax.ModelBase

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

field(:metadata)
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata do
def decode(value, options) do
GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata 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 @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource do
## Attributes
* `path` (*type:* `String.t`, *default:* `nil`) - Path that is exported by the NFS server.
* `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, mount the NFS volume as read only
* `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, the volume will be mounted as read only for all mounts.
* `server` (*type:* `String.t`, *default:* `nil`) - Hostname or IP address of the NFS server
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.Run.V2.Model.Proto2BridgeMessageSet do
@moduledoc """
This is proto2's version of MessageSet.
## Attributes
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.Proto2BridgeMessageSet do
def decode(value, options) do
GoogleApi.Run.V2.Model.Proto2BridgeMessageSet.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.Proto2BridgeMessageSet do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading

0 comments on commit 22c71d5

Please sign in to comment.