diff --git a/clients/run/README.md b/clients/run/README.md index a9de1a3860..c692878e5a 100644 --- a/clients/run/README.md +++ b/clients/run/README.md @@ -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 ``` diff --git a/clients/run/lib/google_api/run/v1/metadata.ex b/clients/run/lib/google_api/run/v1/metadata.ex index 561c153fdc..9068cc88e3 100644 --- a/clients/run/lib/google_api/run/v1/metadata.ex +++ b/clients/run/lib/google_api/run/v1/metadata.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v1/model/nfs_volume_source.ex b/clients/run/lib/google_api/run/v1/model/nfs_volume_source.ex index 986c32c1fe..aa55592a8a 100644 --- a/clients/run/lib/google_api/run/v1/model/nfs_volume_source.ex +++ b/clients/run/lib/google_api/run/v1/model/nfs_volume_source.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/api/projects.ex b/clients/run/lib/google_api/run/v2/api/projects.ex index e98a7d1ce2..6a74c4fd93 100644 --- a/clients/run/lib/google_api/run/v2/api/projects.ex +++ b/clients/run/lib/google_api/run/v2/api/projects.ex @@ -25,6 +25,253 @@ defmodule GoogleApi.Run.V2.Api.Projects do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + Export image for a given resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the resource of which image metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `locations_id1` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_export_image( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_export_image( + connection, + projects_id, + locations_id, + locations_id1, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "locationsId1" => URI.encode(locations_id1, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportImageResponse{}] + ) + end + + @doc """ + Export image metadata for a given resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the resource of which image metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `locations_id1` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_export_image_metadata( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_export_image_metadata( + connection, + projects_id, + locations_id, + locations_id1, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImageMetadata", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "locationsId1" => URI.encode(locations_id1, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata{}]) + end + + @doc """ + Export generated customer metadata for a given resource. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the resource of which metadata should be exported. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}` for Service `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `locations_id1` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_export_metadata( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_export_metadata( + connection, + projects_id, + locations_id, + locations_id1, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportMetadata", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "locationsId1" => URI.encode(locations_id1, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleCloudRunV2Metadata{}]) + end + @doc """ Creates a Job. @@ -938,6 +1185,97 @@ defmodule GoogleApi.Run.V2.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleLongrunningOperation{}]) end + @doc """ + Read the status of an image export operation. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the resource of which image export operation status has to be fetched. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `jobs_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `executions_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `executions_id1` (*type:* `String.t`) - Part of `operationId`. Required. The operation id returned from ExportImage. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_jobs_executions_export_status( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_jobs_executions_export_status( + connection, + projects_id, + locations_id, + jobs_id, + executions_id, + executions_id1, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/v2/projects/{projectsId}/locations/{locationsId}/jobs/{jobsId}/executions/{executionsId}/{executionsId1}:exportStatus", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "jobsId" => URI.encode(jobs_id, &URI.char_unreserved?/1), + "executionsId" => URI.encode(executions_id, &URI.char_unreserved?/1), + "executionsId1" => URI.encode(executions_id1, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse{}] + ) + end + @doc """ Gets information about an Execution. @@ -2369,6 +2707,97 @@ defmodule GoogleApi.Run.V2.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleLongrunningOperation{}]) end + @doc """ + Read the status of an image export operation. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the resource of which image export operation status has to be fetched. Format: `projects/{project_id_or_number}/locations/{location}/services/{service}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution}` for Execution + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `revisions_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `revisions_id1` (*type:* `String.t`) - Part of `operationId`. Required. The operation id returned from ExportImage. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_services_revisions_export_status( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_services_revisions_export_status( + connection, + projects_id, + locations_id, + services_id, + revisions_id, + revisions_id1, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/v2/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/revisions/{revisionsId}/{revisionsId1}:exportStatus", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "servicesId" => URI.encode(services_id, &URI.char_unreserved?/1), + "revisionsId" => URI.encode(revisions_id, &URI.char_unreserved?/1), + "revisionsId1" => URI.encode(revisions_id1, &URI.char_unreserved?/1) + } + ) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Run.V2.Model.GoogleCloudRunV2ExportStatusResponse{}] + ) + end + @doc """ Gets information about a Revision. diff --git a/clients/run/lib/google_api/run/v2/metadata.ex b/clients/run/lib/google_api/run/v2/metadata.ex index a5859bca9a..466de58de1 100644 --- a/clients/run/lib/google_api/run/v2/metadata.ex +++ b/clients/run/lib/google_api/run/v2/metadata.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_binary_authorization.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_binary_authorization.ex index 8bee61224b..b2fb8b2b7f 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_binary_authorization.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_binary_authorization.ex @@ -22,6 +22,7 @@ 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. """ @@ -29,10 +30,12 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2BinaryAuthorization do @type t :: %__MODULE__{ :breakglassJustification => String.t() | nil, + :policy => String.t() | nil, :useDefault => boolean() | nil } field(:breakglassJustification) + field(:policy) field(:useDefault) end diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_request.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_request.ex new file mode 100644 index 0000000000..d7d8c4a80b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_request.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_response.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_response.ex new file mode 100644 index 0000000000..a92028cafe --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_image_response.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_status_response.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_status_response.ex new file mode 100644 index 0000000000..2266cb6afb --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_export_status_response.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_gcs_volume_source.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_gcs_volume_source.ex index 2cc7069156..57b3712627 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_gcs_volume_source.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_gcs_volume_source.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_image_export_status.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_image_export_status.ex new file mode 100644 index 0000000000..1bfe70cd36 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_image_export_status.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_metadata.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_metadata.ex new file mode 100644 index 0000000000..3591194e34 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_metadata.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_nfs_volume_source.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_nfs_volume_source.ex index 37f18eb13c..2792496979 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_nfs_volume_source.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_nfs_volume_source.ex @@ -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 """ diff --git a/clients/run/lib/google_api/run/v2/model/proto2_bridge_message_set.ex b/clients/run/lib/google_api/run/v2/model/proto2_bridge_message_set.ex new file mode 100644 index 0000000000..442abbb5f9 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/proto2_bridge_message_set.ex @@ -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 diff --git a/clients/run/lib/google_api/run/v2/model/util_status_proto.ex b/clients/run/lib/google_api/run/v2/model/util_status_proto.ex new file mode 100644 index 0000000000..082c03e827 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/util_status_proto.ex @@ -0,0 +1,58 @@ +# 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.UtilStatusProto do + @moduledoc """ + Wire-format for a Status object + + ## Attributes + + * `canonicalCode` (*type:* `integer()`, *default:* `nil`) - The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be. + * `code` (*type:* `integer()`, *default:* `nil`) - Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto + * `message` (*type:* `String.t`, *default:* `nil`) - Detail message + * `messageSet` (*type:* `GoogleApi.Run.V2.Model.Proto2BridgeMessageSet.t`, *default:* `nil`) - message_set associates an arbitrary proto message with the status. + * `space` (*type:* `String.t`, *default:* `nil`) - The following are usually only present when code != 0 Space to which this status belongs + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :canonicalCode => integer() | nil, + :code => integer() | nil, + :message => String.t() | nil, + :messageSet => GoogleApi.Run.V2.Model.Proto2BridgeMessageSet.t() | nil, + :space => String.t() | nil + } + + field(:canonicalCode) + field(:code) + field(:message) + field(:messageSet, as: GoogleApi.Run.V2.Model.Proto2BridgeMessageSet) + field(:space) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.UtilStatusProto do + def decode(value, options) do + GoogleApi.Run.V2.Model.UtilStatusProto.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.UtilStatusProto do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/mix.exs b/clients/run/mix.exs index d093717962..af186400f5 100644 --- a/clients/run/mix.exs +++ b/clients/run/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Run.Mixfile do use Mix.Project - @version "0.29.0" + @version "0.30.0" def project() do [