-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Run client (#11219)
Auto-created at 2024-03-28 13:16:32 +0000 using the toys pull request generator.
- Loading branch information
1 parent
6a87a89
commit 22c71d5
Showing
16 changed files
with
790 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_request.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
46 changes: 46 additions & 0 deletions
46
clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
57 changes: 57 additions & 0 deletions
57
clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_status_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_image_export_status.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
46 changes: 46 additions & 0 deletions
46
clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_metadata.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
clients/run/lib/google_api/run/v2/model/proto2_bridge_message_set.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.