diff --git a/clients/run/lib/google_api/run/v1/api/namespaces.ex b/clients/run/lib/google_api/run/v1/api/namespaces.ex index 4815d033c7..c9068aaf1d 100644 --- a/clients/run/lib/google_api/run/v1/api/namespaces.ex +++ b/clients/run/lib/google_api/run/v1/api/namespaces.ex @@ -265,7 +265,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `parent`. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `namespaces_id` (*type:* `String.t`) - Part of `parent`. Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -334,7 +334,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `name`. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `domainmappings_id` (*type:* `String.t`) - Part of `name`. See documentation of `namespacesId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -420,7 +420,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `name`. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `domainmappings_id` (*type:* `String.t`) - Part of `name`. See documentation of `namespacesId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -498,7 +498,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `parent`. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `namespaces_id` (*type:* `String.t`) - Part of `parent`. Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -672,7 +672,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:apiVersion` (*type:* `String.t`) - Optional. Cloud Run currently ignores this parameter. * `:kind` (*type:* `String.t`) - Optional. Cloud Run currently ignores this parameter. - * `:propagationPolicy` (*type:* `String.t`) - Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * `:propagationPolicy` (*type:* `String.t`) - Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -1337,7 +1337,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do * `:apiVersion` (*type:* `String.t`) - Cloud Run currently ignores this parameter. * `:dryRun` (*type:* `String.t`) - Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` * `:kind` (*type:* `String.t`) - Cloud Run currently ignores this parameter. - * `:propagationPolicy` (*type:* `String.t`) - Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see https://kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + * `:propagationPolicy` (*type:* `String.t`) - Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -1771,7 +1771,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to delete. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to delete. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `namespacesId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -1856,7 +1856,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `namespacesId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -2007,7 +2007,7 @@ defmodule GoogleApi.Run.V1.Api.Namespaces do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `namespaces_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `namespacesId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. diff --git a/clients/run/lib/google_api/run/v1/api/projects.ex b/clients/run/lib/google_api/run/v1/api/projects.ex index 9a42613552..1b49b68204 100644 --- a/clients/run/lib/google_api/run/v1/api/projects.ex +++ b/clients/run/lib/google_api/run/v1/api/projects.ex @@ -414,7 +414,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -492,7 +492,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `domainmappings_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -582,7 +582,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `domainmappings_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -664,7 +664,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -995,6 +995,333 @@ defmodule GoogleApi.Run.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Run.V1.Model.TestIamPermissionsResponse{}]) end + @doc """ + Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource to be deleted. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*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.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_operations_delete( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_operations_delete( + connection, + projects_id, + locations_id, + operations_id, + 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(:delete) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &(URI.char_unreserved?(&1) || &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.V1.Model.Empty{}]) + end + + @doc """ + Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*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.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_operations_get( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_operations_get( + connection, + projects_id, + locations_id, + operations_id, + 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( + "/v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &(URI.char_unreserved?(&1) || &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.V1.Model.GoogleLongrunningOperation{}]) + end + + @doc """ + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. To query for all of the operations for a project. + * `locations_id` (*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"). + * `:filter` (*type:* `String.t`) - Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project. + * `:pageSize` (*type:* `integer()`) - The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. . + * `:pageToken` (*type:* `String.t`) - Token identifying which result to start with, which is returned by a previous list call. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V1.Model.GoogleLongrunningListOperationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_operations_list( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V1.Model.GoogleLongrunningListOperationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_operations_list( + connection, + projects_id, + locations_id, + 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, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/projects/{projectsId}/locations/{locationsId}/operations", %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &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.V1.Model.GoogleLongrunningListOperationsResponse{}] + ) + end + + @doc """ + Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource to wait on. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*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.V1.Model.GoogleLongrunningWaitOperationRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V1.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_operations_wait( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V1.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_operations_wait( + connection, + projects_id, + locations_id, + operations_id, + 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( + "/v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &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.V1.Model.GoogleLongrunningOperation{}]) + end + @doc """ Delete a revision. @@ -1019,7 +1346,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do * `:apiVersion` (*type:* `String.t`) - Cloud Run currently ignores this parameter. * `:dryRun` (*type:* `String.t`) - Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` * `:kind` (*type:* `String.t`) - Cloud Run currently ignores this parameter. - * `:propagationPolicy` (*type:* `String.t`) - Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see https://kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + * `:propagationPolicy` (*type:* `String.t`) - Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -1503,7 +1830,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to delete. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to delete. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1589,7 +1916,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1838,7 +2165,7 @@ defmodule GoogleApi.Run.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The fully qualified name of the service to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters diff --git a/clients/run/lib/google_api/run/v1/metadata.ex b/clients/run/lib/google_api/run/v1/metadata.ex index 16749d27cd..5482819c66 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 "20221106" + @discovery_revision "20240303" def discovery_revision(), do: @discovery_revision end diff --git a/clients/run/lib/google_api/run/v1/model/authorized_domain.ex b/clients/run/lib/google_api/run/v1/model/authorized_domain.ex index 670a612ac7..fa42656e3d 100644 --- a/clients/run/lib/google_api/run/v1/model/authorized_domain.ex +++ b/clients/run/lib/google_api/run/v1/model/authorized_domain.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.AuthorizedDomain do @moduledoc """ - A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Webmaster Central](https://www.google.com/webmasters/verification/home). + A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Search Console](https://search.google.com/search-console/welcome). ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/binding.ex b/clients/run/lib/google_api/run/v1/model/binding.ex index 72db97c623..3ef13315ae 100644 --- a/clients/run/lib/google_api/run/v1/model/binding.ex +++ b/clients/run/lib/google_api/run/v1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Run.V1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.Run.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/configuration.ex b/clients/run/lib/google_api/run/v1/model/configuration.ex index 8c8c8ed015..3ba6c8accc 100644 --- a/clients/run/lib/google_api/run/v1/model/configuration.ex +++ b/clients/run/lib/google_api/run/v1/model/configuration.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.Configuration do @moduledoc """ - Configuration represents the "floating HEAD" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision's name. See also: https://github.com/knative/specs/blob/main/specs/serving/overview.md#configuration + Configuration represents the "floating HEAD" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision's name. ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/container.ex b/clients/run/lib/google_api/run/v1/model/container.ex index 784569126b..7690077699 100644 --- a/clients/run/lib/google_api/run/v1/model/container.ex +++ b/clients/run/lib/google_api/run/v1/model/container.ex @@ -23,17 +23,17 @@ defmodule GoogleApi.Run.V1.Model.Container do * `args` (*type:* `list(String.t)`, *default:* `nil`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run. * `command` (*type:* `list(String.t)`, *default:* `nil`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references are not supported in Cloud Run. - * `env` (*type:* `list(GoogleApi.Run.V1.Model.EnvVar.t)`, *default:* `nil`) - List of environment variables to set in the container. + * `env` (*type:* `list(GoogleApi.Run.V1.Model.EnvVar.t)`, *default:* `nil`) - List of environment variables to set in the container. EnvVar with duplicate names are generally allowed; if referencing a secret, the name must be unique for the container. For non-secret EnvVar names, the Container will only get the last-declared one. * `envFrom` (*type:* `list(GoogleApi.Run.V1.Model.EnvFromSource.t)`, *default:* `nil`) - Not supported by Cloud Run. - * `image` (*type:* `String.t`, *default:* `nil`) - Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (*type:* `String.t`, *default:* `nil`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `livenessProbe` (*type:* `GoogleApi.Run.V1.Model.Probe.t`, *default:* `nil`) - Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `name` (*type:* `String.t`, *default:* `nil`) - Name of the container specified as a DNS_LABEL. Currently unused in Cloud Run. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names + * `image` (*type:* `String.t`, *default:* `nil`) - Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. + * `imagePullPolicy` (*type:* `String.t`, *default:* `nil`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. + * `livenessProbe` (*type:* `GoogleApi.Run.V1.Model.Probe.t`, *default:* `nil`) - Periodic probe of container liveness. Container will be restarted if the probe fails. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the container specified as a DNS_LABEL (RFC 1123). * `ports` (*type:* `list(GoogleApi.Run.V1.Model.ContainerPort.t)`, *default:* `nil`) - List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on. * `readinessProbe` (*type:* `GoogleApi.Run.V1.Model.Probe.t`, *default:* `nil`) - Not supported by Cloud Run. - * `resources` (*type:* `GoogleApi.Run.V1.Model.ResourceRequirements.t`, *default:* `nil`) - Compute Resources required by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `resources` (*type:* `GoogleApi.Run.V1.Model.ResourceRequirements.t`, *default:* `nil`) - Compute Resources required by this container. * `securityContext` (*type:* `GoogleApi.Run.V1.Model.SecurityContext.t`, *default:* `nil`) - Not supported by Cloud Run. - * `startupProbe` (*type:* `GoogleApi.Run.V1.Model.Probe.t`, *default:* `nil`) - Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not receive traffic if the probe fails. If not provided, a default startup probe with TCP socket action is used. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `startupProbe` (*type:* `GoogleApi.Run.V1.Model.Probe.t`, *default:* `nil`) - Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not receive traffic if the probe fails. If not provided, a default startup probe with TCP socket action is used. * `terminationMessagePath` (*type:* `String.t`, *default:* `nil`) - Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. * `terminationMessagePolicy` (*type:* `String.t`, *default:* `nil`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. * `volumeMounts` (*type:* `list(GoogleApi.Run.V1.Model.VolumeMount.t)`, *default:* `nil`) - Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Pod volumes to mount into the container's filesystem. diff --git a/clients/run/lib/google_api/run/v1/model/container_override.ex b/clients/run/lib/google_api/run/v1/model/container_override.ex new file mode 100644 index 0000000000..446478b446 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/container_override.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.V1.Model.ContainerOverride do + @moduledoc """ + Per container override specification. + + ## Attributes + + * `args` (*type:* `list(String.t)`, *default:* `nil`) - Arguments to the entrypoint. The specified arguments replace and override any existing entrypoint arguments. Must be empty if `clear_args` is set to true. + * `clearArgs` (*type:* `boolean()`, *default:* `nil`) - Optional. Set to True to clear all existing arguments. + * `env` (*type:* `list(GoogleApi.Run.V1.Model.EnvVar.t)`, *default:* `nil`) - List of environment variables to set in the container. All specified environment variables are merged with existing environment variables. When the specified environment variables exist, these values override any existing values. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the container specified as a DNS_LABEL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :args => list(String.t()) | nil, + :clearArgs => boolean() | nil, + :env => list(GoogleApi.Run.V1.Model.EnvVar.t()) | nil, + :name => String.t() | nil + } + + field(:args, type: :list) + field(:clearArgs) + field(:env, as: GoogleApi.Run.V1.Model.EnvVar, type: :list) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.ContainerOverride do + def decode(value, options) do + GoogleApi.Run.V1.Model.ContainerOverride.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.ContainerOverride do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/container_port.ex b/clients/run/lib/google_api/run/v1/model/container_port.ex index 42225fe0f5..57ba9d9b08 100644 --- a/clients/run/lib/google_api/run/v1/model/container_port.ex +++ b/clients/run/lib/google_api/run/v1/model/container_port.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V1.Model.ContainerPort do ## Attributes - * `containerPort` (*type:* `integer()`, *default:* `nil`) - Port number the container listens on. This must be a valid port number, 0 < x < 65536. + * `containerPort` (*type:* `integer()`, *default:* `nil`) - Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port * `name` (*type:* `String.t`, *default:* `nil`) - If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". * `protocol` (*type:* `String.t`, *default:* `nil`) - Protocol for port. Must be "TCP". Defaults to "TCP". """ diff --git a/clients/run/lib/google_api/run/v1/model/csi_volume_source.ex b/clients/run/lib/google_api/run/v1/model/csi_volume_source.ex new file mode 100644 index 0000000000..d222405ea8 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/csi_volume_source.ex @@ -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.Run.V1.Model.CSIVolumeSource do + @moduledoc """ + Storage volume source using the Container Storage Interface. + + ## Attributes + + * `driver` (*type:* `String.t`, *default:* `nil`) - name of the CSI driver for the requested storage system. Cloud Run supports the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage Bucket as a volume. + * `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, mount the volume as read only. Defaults to false. + * `volumeAttributes` (*type:* `map()`, *default:* `nil`) - stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :driver => String.t() | nil, + :readOnly => boolean() | nil, + :volumeAttributes => map() | nil + } + + field(:driver) + field(:readOnly) + field(:volumeAttributes, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.CSIVolumeSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.CSIVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.CSIVolumeSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/empty.ex b/clients/run/lib/google_api/run/v1/model/empty.ex new file mode 100644 index 0000000000..fa90169307 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/empty.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.V1.Model.Empty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.Empty do + def decode(value, options) do + GoogleApi.Run.V1.Model.Empty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.Empty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/empty_dir_volume_source.ex b/clients/run/lib/google_api/run/v1/model/empty_dir_volume_source.ex new file mode 100644 index 0000000000..def7e67f3c --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/empty_dir_volume_source.ex @@ -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.Run.V1.Model.EmptyDirVolumeSource do + @moduledoc """ + In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs). + + ## Attributes + + * `medium` (*type:* `String.t`, *default:* `nil`) - The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (*type:* `String.t`, *default:* `nil`) - Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :medium => String.t() | nil, + :sizeLimit => String.t() | nil + } + + field(:medium) + field(:sizeLimit) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.EmptyDirVolumeSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.EmptyDirVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.EmptyDirVolumeSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/env_var.ex b/clients/run/lib/google_api/run/v1/model/env_var.ex index 90cd98760e..85c5f027fc 100644 --- a/clients/run/lib/google_api/run/v1/model/env_var.ex +++ b/clients/run/lib/google_api/run/v1/model/env_var.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V1.Model.EnvVar do ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the environment variable. Must be a C_IDENTIFIER. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the environment variable. * `value` (*type:* `String.t`, *default:* `nil`) - Value of the environment variable. Defaults to "". Variable references are not supported in Cloud Run. * `valueFrom` (*type:* `GoogleApi.Run.V1.Model.EnvVarSource.t`, *default:* `nil`) - Source for the environment variable's value. Only supports secret_key_ref. Cannot be used if value is not empty. """ diff --git a/clients/run/lib/google_api/run/v1/model/execution.ex b/clients/run/lib/google_api/run/v1/model/execution.ex index 4611e2a933..21cdc0090b 100644 --- a/clients/run/lib/google_api/run/v1/model/execution.ex +++ b/clients/run/lib/google_api/run/v1/model/execution.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V1.Model.Execution do ## Attributes - * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (*type:* `GoogleApi.Run.V1.Model.ExecutionSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `status` (*type:* `GoogleApi.Run.V1.Model.ExecutionStatus.t`, *default:* `nil`) - Output only. Current status of an execution. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. + * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. + * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. + * `spec` (*type:* `GoogleApi.Run.V1.Model.ExecutionSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of an execution. + * `status` (*type:* `GoogleApi.Run.V1.Model.ExecutionStatus.t`, *default:* `nil`) - Output only. Current status of an execution. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/execution_spec.ex b/clients/run/lib/google_api/run/v1/model/execution_spec.ex index d602a61d78..a745dadd90 100644 --- a/clients/run/lib/google_api/run/v1/model/execution_spec.ex +++ b/clients/run/lib/google_api/run/v1/model/execution_spec.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V1.Model.ExecutionSpec do ## Attributes * `parallelism` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be <= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism. - * `taskCount` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. + * `taskCount` (*type:* `integer()`, *default:* `nil`) - Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1. * `template` (*type:* `GoogleApi.Run.V1.Model.TaskTemplateSpec.t`, *default:* `nil`) - Optional. The template used to create tasks for this execution. """ diff --git a/clients/run/lib/google_api/run/v1/model/execution_template_spec.ex b/clients/run/lib/google_api/run/v1/model/execution_template_spec.ex index 4c27d0b0f8..57cea24a41 100644 --- a/clients/run/lib/google_api/run/v1/model/execution_template_spec.ex +++ b/clients/run/lib/google_api/run/v1/model/execution_template_spec.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.ExecutionTemplateSpec do @moduledoc """ - ExecutionTemplateSpec describes the metadata and spec an Execution should have when created from a job. Based on: https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 + ExecutionTemplateSpec describes the metadata and spec an Execution should have when created from a job. ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/google_cloud_run_v1_condition.ex b/clients/run/lib/google_api/run/v1/model/google_cloud_run_v1_condition.ex index 8994775020..961d3a5f9a 100644 --- a/clients/run/lib/google_api/run/v1/model/google_cloud_run_v1_condition.ex +++ b/clients/run/lib/google_api/run/v1/model/google_cloud_run_v1_condition.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition do * `reason` (*type:* `String.t`, *default:* `nil`) - Optional. One-word CamelCase reason for the condition's last transition. These are intended to be stable, unique values which the client may use to trigger error handling logic, whereas messages which may be changed later by the server. * `severity` (*type:* `String.t`, *default:* `nil`) - Optional. How to interpret this condition. One of Error, Warning, or Info. Conditions of severity Info do not contribute to resource readiness. * `status` (*type:* `String.t`, *default:* `nil`) - Status of the condition, one of True, False, Unknown. - * `type` (*type:* `String.t`, *default:* `nil`) - type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready" or "Completed": True when the Resource is ready. + * `type` (*type:* `String.t`, *default:* `nil`) - type is used to communicate the status of the reconciliation process. Types common to all resources include: * "Ready" or "Completed": True when the Resource is ready. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_config.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_config.ex new file mode 100644 index 0000000000..0d5ca7458b --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_config.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.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig do + @moduledoc """ + ApprovalConfig describes configuration for manual approval of a build. + + ## Attributes + + * `approvalRequired` (*type:* `boolean()`, *default:* `nil`) - Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approvalRequired => boolean() | nil + } + + field(:approvalRequired) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_result.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_result.ex new file mode 100644 index 0000000000..f40290dad9 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_approval_result.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.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult do + @moduledoc """ + ApprovalResult describes the decision and associated metadata of a manual approval of a build. + + ## Attributes + + * `approvalTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the approval decision was made. + * `approverAccount` (*type:* `String.t`, *default:* `nil`) - Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called. + * `comment` (*type:* `String.t`, *default:* `nil`) - Optional. An optional comment for this manual approval result. + * `decision` (*type:* `String.t`, *default:* `nil`) - Required. The decision of this manual approval. + * `url` (*type:* `String.t`, *default:* `nil`) - Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approvalTime => DateTime.t() | nil, + :approverAccount => String.t() | nil, + :comment => String.t() | nil, + :decision => String.t() | nil, + :url => String.t() | nil + } + + field(:approvalTime, as: DateTime) + field(:approverAccount) + field(:comment) + field(:decision) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifact_objects.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifact_objects.ex new file mode 100644 index 0000000000..1e833150e8 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifact_objects.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects do + @moduledoc """ + Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. + + ## Attributes + + * `location` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. + * `paths` (*type:* `list(String.t)`, *default:* `nil`) - Path globs used to match files in the build's workspace. + * `timing` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing all artifact objects. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => String.t() | nil, + :paths => list(String.t()) | nil, + :timing => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil + } + + field(:location) + field(:paths, type: :list) + field(:timing, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifacts.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifacts.ex new file mode 100644 index 0000000000..5c17c6123c --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_artifacts.ex @@ -0,0 +1,71 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts do + @moduledoc """ + Artifacts produced by a build that should be uploaded upon successful completion of all build steps. + + ## Attributes + + * `images` (*type:* `list(String.t)`, *default:* `nil`) - A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. + * `mavenArtifacts` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.t)`, *default:* `nil`) - A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + * `npmPackages` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage.t)`, *default:* `nil`) - A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE. + * `objects` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.t`, *default:* `nil`) - A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. + * `pythonPackages` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage.t)`, *default:* `nil`) - A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :images => list(String.t()) | nil, + :mavenArtifacts => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.t()) | nil, + :npmPackages => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage.t()) | nil, + :objects => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.t() | nil, + :pythonPackages => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage.t()) | nil + } + + field(:images, type: :list) + + field(:mavenArtifacts, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact, + type: :list + ) + + field(:npmPackages, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage, type: :list) + + field(:objects, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects) + + field(:pythonPackages, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build.ex new file mode 100644 index 0000000000..c352840e79 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build.ex @@ -0,0 +1,136 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1Build do + @moduledoc """ + A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + + ## Attributes + + * `approval` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval.t`, *default:* `nil`) - Output only. Describes this build's approval configuration, status, and result. + * `artifacts` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts.t`, *default:* `nil`) - Artifacts produced by the build that should be uploaded upon successful completion of all build steps. + * `availableSecrets` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets.t`, *default:* `nil`) - Secrets and secret environment variables. + * `buildTriggerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the request to create the build was received. + * `failureInfo` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo.t`, *default:* `nil`) - Output only. Contains information about the build when status=FAILURE. + * `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. Unique identifier of the build. + * `images` (*type:* `list(String.t)`, *default:* `nil`) - A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the `Build` resource's results field. If any of the images fail to be pushed, the build status is marked `FAILURE`. + * `logUrl` (*type:* `String.t`, *default:* `nil`) - Output only. URL to logs for this build in Google Cloud Console. + * `logsBucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service. + * `options` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions.t`, *default:* `nil`) - Special options for this build. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the project. + * `queueTtl` (*type:* `String.t`, *default:* `nil`) - TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time. + * `results` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results.t`, *default:* `nil`) - Output only. Results of the build. + * `secrets` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret.t)`, *default:* `nil`) - Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. + * `source` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source.t`, *default:* `nil`) - The location of the source files to build. + * `sourceProvenance` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.t`, *default:* `nil`) - Output only. A permanent fixed identifier for source. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was started. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build. + * `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Customer-readable message about the current status. + * `steps` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep.t)`, *default:* `nil`) - Required. The operations to be performed on the workspace. + * `substitutions` (*type:* `map()`, *default:* `nil`) - Substitutions data for `Build` resource. + * `tags` (*type:* `list(String.t)`, *default:* `nil`) - Tags for annotation of a `Build`. These are not docker tags. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is 60 minutes. + * `timing` (*type:* `%{optional(String.t) => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t}`, *default:* `nil`) - Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included. + * `warnings` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning.t)`, *default:* `nil`) - Output only. Non-fatal problems encountered during the execution of the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approval => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval.t() | nil, + :artifacts => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts.t() | nil, + :availableSecrets => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets.t() | nil, + :buildTriggerId => String.t() | nil, + :createTime => DateTime.t() | nil, + :failureInfo => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo.t() | nil, + :finishTime => DateTime.t() | nil, + :id => String.t() | nil, + :images => list(String.t()) | nil, + :logUrl => String.t() | nil, + :logsBucket => String.t() | nil, + :name => String.t() | nil, + :options => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions.t() | nil, + :projectId => String.t() | nil, + :queueTtl => String.t() | nil, + :results => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results.t() | nil, + :secrets => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret.t()) | nil, + :serviceAccount => String.t() | nil, + :source => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source.t() | nil, + :sourceProvenance => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.t() | nil, + :startTime => DateTime.t() | nil, + :status => String.t() | nil, + :statusDetail => String.t() | nil, + :steps => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep.t()) | nil, + :substitutions => map() | nil, + :tags => list(String.t()) | nil, + :timeout => String.t() | nil, + :timing => + %{ + optional(String.t()) => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() + } + | nil, + :warnings => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning.t()) | nil + } + + field(:approval, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval) + field(:artifacts, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Artifacts) + field(:availableSecrets, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets) + field(:buildTriggerId) + field(:createTime, as: DateTime) + field(:failureInfo, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo) + field(:finishTime, as: DateTime) + field(:id) + field(:images, type: :list) + field(:logUrl) + field(:logsBucket) + field(:name) + field(:options, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions) + field(:projectId) + field(:queueTtl) + field(:results, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results) + field(:secrets, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret, type: :list) + field(:serviceAccount) + field(:source, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source) + field(:sourceProvenance, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance) + field(:startTime, as: DateTime) + field(:status) + field(:statusDetail) + field(:steps, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep, type: :list) + field(:substitutions, type: :map) + field(:tags, type: :list) + field(:timeout) + field(:timing, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan, type: :map) + field(:warnings, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_approval.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_approval.ex new file mode 100644 index 0000000000..24be47a80d --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_approval.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval do + @moduledoc """ + BuildApproval describes a build's approval configuration, state, and result. + + ## Attributes + + * `config` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.t`, *default:* `nil`) - Output only. Configuration for manual approval of this build. + * `result` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.t`, *default:* `nil`) - Output only. Result of manual approval for this Build. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of this build's approval. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :config => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.t() | nil, + :result => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.t() | nil, + :state => String.t() | nil + } + + field(:config, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig) + field(:result, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ApprovalResult) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildApproval do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_operation_metadata.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_operation_metadata.ex new file mode 100644 index 0000000000..e7bfaa8127 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_operation_metadata.ex @@ -0,0 +1,48 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata do + @moduledoc """ + Metadata for build operations. + + ## Attributes + + * `build` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build.t`, *default:* `nil`) - The build that the operation is tracking. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :build => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build.t() | nil + } + + field(:build, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Build) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_options.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_options.ex new file mode 100644 index 0000000000..23df34ffff --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_options.ex @@ -0,0 +1,88 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions do + @moduledoc """ + Optional arguments to enable specific features of builds. + + ## Attributes + + * `automapSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to include built-in and custom substitutions as env variables for all build steps. + * `defaultLogsBucketBehavior` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify how default logs buckets are setup. + * `diskSizeGb` (*type:* `String.t`, *default:* `nil`) - Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 2000GB; builds that request more than the maximum are rejected with an error. + * `dynamicSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file. + * `env` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". + * `logStreamingOption` (*type:* `String.t`, *default:* `nil`) - Option to define build log streaming behavior to Cloud Storage. + * `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored. + * `machineType` (*type:* `String.t`, *default:* `nil`) - Compute Engine machine type on which to run the build. + * `pool` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption.t`, *default:* `nil`) - Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. + * `requestedVerifyOption` (*type:* `String.t`, *default:* `nil`) - Requested verifiability options. + * `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build. + * `sourceProvenanceHash` (*type:* `list(String.t)`, *default:* `nil`) - Requested hash for SourceProvenance. + * `substitutionOption` (*type:* `String.t`, *default:* `nil`) - Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file. + * `volumes` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume.t)`, *default:* `nil`) - Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration. + * `workerPool` (*type:* `String.t`, *default:* `nil`) - This field deprecated; please use `pool.name` instead. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :automapSubstitutions => boolean() | nil, + :defaultLogsBucketBehavior => String.t() | nil, + :diskSizeGb => String.t() | nil, + :dynamicSubstitutions => boolean() | nil, + :env => list(String.t()) | nil, + :logStreamingOption => String.t() | nil, + :logging => String.t() | nil, + :machineType => String.t() | nil, + :pool => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption.t() | nil, + :requestedVerifyOption => String.t() | nil, + :secretEnv => list(String.t()) | nil, + :sourceProvenanceHash => list(String.t()) | nil, + :substitutionOption => String.t() | nil, + :volumes => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume.t()) | nil, + :workerPool => String.t() | nil + } + + field(:automapSubstitutions) + field(:defaultLogsBucketBehavior) + field(:diskSizeGb) + field(:dynamicSubstitutions) + field(:env, type: :list) + field(:logStreamingOption) + field(:logging) + field(:machineType) + field(:pool, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption) + field(:requestedVerifyOption) + field(:secretEnv, type: :list) + field(:sourceProvenanceHash, type: :list) + field(:substitutionOption) + field(:volumes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume, type: :list) + field(:workerPool) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_step.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_step.ex new file mode 100644 index 0000000000..17e5751da3 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_build_step.ex @@ -0,0 +1,97 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep do + @moduledoc """ + A step in the build pipeline. + + ## Attributes + + * `allowExitCodes` (*type:* `list(integer())`, *default:* `nil`) - Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence. + * `allowFailure` (*type:* `boolean()`, *default:* `nil`) - Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field. + * `args` (*type:* `list(String.t)`, *default:* `nil`) - A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments. + * `automapSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. + * `dir` (*type:* `String.t`, *default:* `nil`) - Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution. + * `entrypoint` (*type:* `String.t`, *default:* `nil`) - Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. + * `env` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". + * `exitCode` (*type:* `integer()`, *default:* `nil`) - Output only. Return code from running the step. + * `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step. + * `pullTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pulling this build step's builder image only. + * `script` (*type:* `String.t`, *default:* `nil`) - A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. + * `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. + * `timing` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for executing this build step. + * `volumes` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume.t)`, *default:* `nil`) - List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration. + * `waitFor` (*type:* `list(String.t)`, *default:* `nil`) - The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowExitCodes => list(integer()) | nil, + :allowFailure => boolean() | nil, + :args => list(String.t()) | nil, + :automapSubstitutions => boolean() | nil, + :dir => String.t() | nil, + :entrypoint => String.t() | nil, + :env => list(String.t()) | nil, + :exitCode => integer() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :pullTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :script => String.t() | nil, + :secretEnv => list(String.t()) | nil, + :status => String.t() | nil, + :timeout => String.t() | nil, + :timing => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :volumes => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume.t()) | nil, + :waitFor => list(String.t()) | nil + } + + field(:allowExitCodes, type: :list) + field(:allowFailure) + field(:args, type: :list) + field(:automapSubstitutions) + field(:dir) + field(:entrypoint) + field(:env, type: :list) + field(:exitCode) + field(:id) + field(:name) + field(:pullTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:script) + field(:secretEnv, type: :list) + field(:status) + field(:timeout) + field(:timing, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:volumes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume, type: :list) + field(:waitFor, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuildStep do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_built_image.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_built_image.ex new file mode 100644 index 0000000000..88fa6090d4 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_built_image.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage do + @moduledoc """ + An image built by the pipeline. + + ## Attributes + + * `digest` (*type:* `String.t`, *default:* `nil`) - Docker Registry 2.0 digest. + * `name` (*type:* `String.t`, *default:* `nil`) - Name used to push the container image to Google Container Registry, as presented to `docker push`. + * `pushTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified image. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :digest => String.t() | nil, + :name => String.t() | nil, + :pushTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil + } + + field(:digest) + field(:name) + field(:pushTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_connected_repository.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_connected_repository.ex new file mode 100644 index 0000000000..d98a2a8cd0 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_connected_repository.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository do + @moduledoc """ + Location of the source in a 2nd-gen Google Cloud Build repository resource. + + ## Attributes + + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. + * `repository` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`. + * `revision` (*type:* `String.t`, *default:* `nil`) - The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dir => String.t() | nil, + :repository => String.t() | nil, + :revision => String.t() | nil + } + + field(:dir) + field(:repository) + field(:revision) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_failure_info.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_failure_info.ex new file mode 100644 index 0000000000..8d8933a1ae --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_failure_info.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo do + @moduledoc """ + A fatal problem encountered during the execution of the build. + + ## Attributes + + * `detail` (*type:* `String.t`, *default:* `nil`) - Explains the failure issue in more detail using hard-coded text. + * `type` (*type:* `String.t`, *default:* `nil`) - The name of the failure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detail => String.t() | nil, + :type => String.t() | nil + } + + field(:detail) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FailureInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_file_hashes.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_file_hashes.ex new file mode 100644 index 0000000000..8f3d6b5b7f --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_file_hashes.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.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes do + @moduledoc """ + Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. + + ## Attributes + + * `fileHash` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash.t)`, *default:* `nil`) - Collection of file hashes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHash => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash.t()) | nil + } + + field(:fileHash, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_git_source.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_git_source.ex new file mode 100644 index 0000000000..98676feb6c --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_git_source.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource do + @moduledoc """ + Location of the source in any accessible Git repository. + + ## Attributes + + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. + * `revision` (*type:* `String.t`, *default:* `nil`) - The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch. + * `url` (*type:* `String.t`, *default:* `nil`) - Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dir => String.t() | nil, + :revision => String.t() | nil, + :url => String.t() | nil + } + + field(:dir) + field(:revision) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_hash.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_hash.ex new file mode 100644 index 0000000000..22ccd7af68 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_hash.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash do + @moduledoc """ + Container message for hash values. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - The type of hash that was performed. + * `value` (*type:* `String.t`, *default:* `nil`) - The hash value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Hash do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_inline_secret.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_inline_secret.ex new file mode 100644 index 0000000000..989afed164 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_inline_secret.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret do + @moduledoc """ + Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value. + + ## Attributes + + * `envMap` (*type:* `map()`, *default:* `nil`) - Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets. + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :envMap => map() | nil, + :kmsKeyName => String.t() | nil + } + + field(:envMap, type: :map) + field(:kmsKeyName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_maven_artifact.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_maven_artifact.ex new file mode 100644 index 0000000000..db933985a1 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_maven_artifact.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.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact do + @moduledoc """ + A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + + ## Attributes + + * `artifactId` (*type:* `String.t`, *default:* `nil`) - Maven `artifactId` value used when uploading the artifact to Artifact Registry. + * `groupId` (*type:* `String.t`, *default:* `nil`) - Maven `groupId` value used when uploading the artifact to Artifact Registry. + * `path` (*type:* `String.t`, *default:* `nil`) - Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + * `version` (*type:* `String.t`, *default:* `nil`) - Maven `version` value used when uploading the artifact to Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :artifactId => String.t() | nil, + :groupId => String.t() | nil, + :path => String.t() | nil, + :repository => String.t() | nil, + :version => String.t() | nil + } + + field(:artifactId) + field(:groupId) + field(:path) + field(:repository) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1MavenArtifact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_npm_package.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_npm_package.ex new file mode 100644 index 0000000000..f30db7d59e --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_npm_package.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage do + @moduledoc """ + Npm package to upload to Artifact Registry upon successful completion of all build steps. + + ## Attributes + + * `packagePath` (*type:* `String.t`, *default:* `nil`) - Path to the package.json. e.g. workspace/path/to/package + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :packagePath => String.t() | nil, + :repository => String.t() | nil + } + + field(:packagePath) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1NpmPackage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_pool_option.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_pool_option.ex new file mode 100644 index 0000000000..1a52a61da5 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_pool_option.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.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption do + @moduledoc """ + Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PoolOption do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_python_package.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_python_package.ex new file mode 100644 index 0000000000..2521732fee --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_python_package.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage do + @moduledoc """ + Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + + ## Attributes + + * `paths` (*type:* `list(String.t)`, *default:* `nil`) - Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :paths => list(String.t()) | nil, + :repository => String.t() | nil + } + + field(:paths, type: :list) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1PythonPackage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_repo_source.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_repo_source.ex new file mode 100644 index 0000000000..f294f8a67d --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_repo_source.ex @@ -0,0 +1,67 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource do + @moduledoc """ + Location of the source in a Google Cloud Source Repository. + + ## Attributes + + * `branchName` (*type:* `String.t`, *default:* `nil`) - Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax + * `commitSha` (*type:* `String.t`, *default:* `nil`) - Explicit commit SHA to build. + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. + * `invertRegex` (*type:* `boolean()`, *default:* `nil`) - Only trigger a build if the revision regex does NOT match the revision regex. + * `projectId` (*type:* `String.t`, *default:* `nil`) - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. + * `repoName` (*type:* `String.t`, *default:* `nil`) - Name of the Cloud Source Repository. + * `substitutions` (*type:* `map()`, *default:* `nil`) - Substitutions to use in a triggered build. Should only be used with RunBuildTrigger + * `tagName` (*type:* `String.t`, *default:* `nil`) - Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :branchName => String.t() | nil, + :commitSha => String.t() | nil, + :dir => String.t() | nil, + :invertRegex => boolean() | nil, + :projectId => String.t() | nil, + :repoName => String.t() | nil, + :substitutions => map() | nil, + :tagName => String.t() | nil + } + + field(:branchName) + field(:commitSha) + field(:dir) + field(:invertRegex) + field(:projectId) + field(:repoName) + field(:substitutions, type: :map) + field(:tagName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_results.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_results.ex new file mode 100644 index 0000000000..bfa54bfdc6 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_results.ex @@ -0,0 +1,86 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1Results do + @moduledoc """ + Artifacts created by the build pipeline. + + ## Attributes + + * `artifactManifest` (*type:* `String.t`, *default:* `nil`) - Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. + * `artifactTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Time to push all non-container artifacts to Cloud Storage. + * `buildStepImages` (*type:* `list(String.t)`, *default:* `nil`) - List of build step digests, in the order corresponding to build step indices. + * `buildStepOutputs` (*type:* `list(String.t)`, *default:* `nil`) - List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. + * `images` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage.t)`, *default:* `nil`) - Container images that were built as a part of the build. + * `mavenArtifacts` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.t)`, *default:* `nil`) - Maven artifacts uploaded to Artifact Registry at the end of the build. + * `npmPackages` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.t)`, *default:* `nil`) - Npm packages uploaded to Artifact Registry at the end of the build. + * `numArtifacts` (*type:* `String.t`, *default:* `nil`) - Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. + * `pythonPackages` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.t)`, *default:* `nil`) - Python artifacts uploaded to Artifact Registry at the end of the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :artifactManifest => String.t() | nil, + :artifactTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :buildStepImages => list(String.t()) | nil, + :buildStepOutputs => list(String.t()) | nil, + :images => list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage.t()) | nil, + :mavenArtifacts => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.t()) | nil, + :npmPackages => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.t()) | nil, + :numArtifacts => String.t() | nil, + :pythonPackages => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.t()) | nil + } + + field(:artifactManifest) + field(:artifactTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:buildStepImages, type: :list) + field(:buildStepOutputs, type: :list) + field(:images, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1BuiltImage, type: :list) + + field(:mavenArtifacts, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact, + type: :list + ) + + field(:npmPackages, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage, + type: :list + ) + + field(:numArtifacts) + + field(:pythonPackages, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Results do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret.ex new file mode 100644 index 0000000000..22b22637cc --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret do + @moduledoc """ + Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. + + ## Attributes + + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Cloud KMS key name to use to decrypt these envs. + * `secretEnv` (*type:* `map()`, *default:* `nil`) - Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kmsKeyName => String.t() | nil, + :secretEnv => map() | nil + } + + field(:kmsKeyName) + field(:secretEnv, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secret do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret_manager_secret.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret_manager_secret.ex new file mode 100644 index 0000000000..984ec34f37 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secret_manager_secret.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret do + @moduledoc """ + Pairs a secret environment variable with a SecretVersion in Secret Manager. + + ## Attributes + + * `env` (*type:* `String.t`, *default:* `nil`) - Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. + * `versionName` (*type:* `String.t`, *default:* `nil`) - Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/* + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :env => String.t() | nil, + :versionName => String.t() | nil + } + + field(:env) + field(:versionName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secrets.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secrets.ex new file mode 100644 index 0000000000..5747dc25fd --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_secrets.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.V1.Model.GoogleDevtoolsCloudbuildV1Secrets do + @moduledoc """ + Secrets and secret environment variables. + + ## Attributes + + * `inline` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret.t)`, *default:* `nil`) - Secrets encrypted with KMS key and the associated secret environment variable. + * `secretManager` (*type:* `list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.t)`, *default:* `nil`) - Secrets in Secret Manager and associated secret environment variable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inline => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret.t()) | nil, + :secretManager => + list(GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.t()) | nil + } + + field(:inline, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1InlineSecret, type: :list) + + field(:secretManager, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Secrets do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source.ex new file mode 100644 index 0000000000..9fa457262b --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source.ex @@ -0,0 +1,67 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1Source do + @moduledoc """ + Location of the source in a supported storage service. + + ## Attributes + + * `connectedRepository` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t`, *default:* `nil`) - Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource. + * `gitSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource.t`, *default:* `nil`) - If provided, get the source from this Git repository. + * `repoSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource.t`, *default:* `nil`) - If provided, get the source from this location in a Cloud Source Repository. + * `storageSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource.t`, *default:* `nil`) - If provided, get the source from this location in Cloud Storage. + * `storageSourceManifest` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t`, *default:* `nil`) - If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connectedRepository => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t() | nil, + :gitSource => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource.t() | nil, + :repoSource => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource.t() | nil, + :storageSource => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource.t() | nil, + :storageSourceManifest => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t() | nil + } + + field(:connectedRepository, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository + ) + + field(:gitSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource) + field(:repoSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource) + field(:storageSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource) + + field(:storageSourceManifest, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Source do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source_provenance.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source_provenance.ex new file mode 100644 index 0000000000..fdaa5823f7 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_source_provenance.ex @@ -0,0 +1,79 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance do + @moduledoc """ + Provenance of the source. Ways to find the original source, or verify that some source was used for this build. + + ## Attributes + + * `fileHashes` (*type:* `%{optional(String.t) => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t}`, *default:* `nil`) - Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file. + * `resolvedConnectedRepository` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t`, *default:* `nil`) - Output only. A copy of the build's `source.connected_repository`, if exists, with any revisions resolved. + * `resolvedGitSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource.t`, *default:* `nil`) - Output only. A copy of the build's `source.git_source`, if exists, with any revisions resolved. + * `resolvedRepoSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource.t`, *default:* `nil`) - A copy of the build's `source.repo_source`, if exists, with any revisions resolved. + * `resolvedStorageSource` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource.t`, *default:* `nil`) - A copy of the build's `source.storage_source`, if exists, with any generations resolved. + * `resolvedStorageSourceManifest` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t`, *default:* `nil`) - A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => + %{ + optional(String.t()) => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() + } + | nil, + :resolvedConnectedRepository => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t() | nil, + :resolvedGitSource => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource.t() | nil, + :resolvedRepoSource => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource.t() | nil, + :resolvedStorageSource => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource.t() | nil, + :resolvedStorageSourceManifest => + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes, type: :map) + + field(:resolvedConnectedRepository, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository + ) + + field(:resolvedGitSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1GitSource) + field(:resolvedRepoSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1RepoSource) + + field(:resolvedStorageSource, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource) + + field(:resolvedStorageSourceManifest, + as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1SourceProvenance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source.ex new file mode 100644 index 0000000000..3de770463a --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source.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.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource do + @moduledoc """ + Location of the source in an archive file in Cloud Storage. + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * `generation` (*type:* `String.t`, *default:* `nil`) - Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. + * `object` (*type:* `String.t`, *default:* `nil`) - Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. + * `sourceFetcher` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify the tool to fetch the source file for the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :generation => String.t() | nil, + :object => String.t() | nil, + :sourceFetcher => String.t() | nil + } + + field(:bucket) + field(:generation) + field(:object) + field(:sourceFetcher) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source_manifest.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source_manifest.ex new file mode 100644 index 0000000000..b09133704d --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_storage_source_manifest.ex @@ -0,0 +1,54 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest do + @moduledoc """ + Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * `generation` (*type:* `String.t`, *default:* `nil`) - Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. + * `object` (*type:* `String.t`, *default:* `nil`) - Cloud Storage object containing the source manifest. This object must be a JSON file. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :generation => String.t() | nil, + :object => String.t() | nil + } + + field(:bucket) + field(:generation) + field(:object) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_time_span.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_time_span.ex new file mode 100644 index 0000000000..911fc029aa --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_time_span.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan do + @moduledoc """ + Start and end times for a build execution phase. + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - End of time span. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Start of time span. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :startTime => DateTime.t() | nil + } + + field(:endTime, as: DateTime) + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_maven_artifact.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_maven_artifact.ex new file mode 100644 index 0000000000..7a1ab74913 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_maven_artifact.ex @@ -0,0 +1,54 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact do + @moduledoc """ + A Maven artifact uploaded using the MavenArtifact directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the Maven Artifact. + * `pushTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded artifact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_npm_package.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_npm_package.ex new file mode 100644 index 0000000000..3e1742273d --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_npm_package.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage do + @moduledoc """ + An npm package uploaded to Artifact Registry using the NpmPackage directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the npm package. + * `pushTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded npm package. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_python_package.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_python_package.ex new file mode 100644 index 0000000000..325b22aebf --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_uploaded_python_package.ex @@ -0,0 +1,54 @@ +# 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.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage do + @moduledoc """ + Artifact uploaded using the PythonPackage directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the Python Artifact. + * `pushTiming` (*type:* `GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded artifact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_volume.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_volume.ex new file mode 100644 index 0000000000..f383631631 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_volume.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume do + @moduledoc """ + Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. + * `path` (*type:* `String.t`, *default:* `nil`) - Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :path => String.t() | nil + } + + field(:name) + field(:path) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Volume do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_warning.ex b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_warning.ex new file mode 100644 index 0000000000..4d3a6c30f6 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_devtools_cloudbuild_v1_warning.ex @@ -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.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning do + @moduledoc """ + A non-fatal problem encountered during the execution of the build. + + ## Attributes + + * `priority` (*type:* `String.t`, *default:* `nil`) - The priority for this warning. + * `text` (*type:* `String.t`, *default:* `nil`) - Explanation of the warning generated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :priority => String.t() | nil, + :text => String.t() | nil + } + + field(:priority) + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleDevtoolsCloudbuildV1Warning do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_longrunning_list_operations_response.ex b/clients/run/lib/google_api/run/v1/model/google_longrunning_list_operations_response.ex new file mode 100644 index 0000000000..53f6e72499 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_longrunning_list_operations_response.ex @@ -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.Run.V1.Model.GoogleLongrunningListOperationsResponse do + @moduledoc """ + The response message for Operations.ListOperations. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The standard List next-page token. + * `operations` (*type:* `list(GoogleApi.Run.V1.Model.GoogleLongrunningOperation.t)`, *default:* `nil`) - A list of operations that matches the specified filter in the request. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :operations => list(GoogleApi.Run.V1.Model.GoogleLongrunningOperation.t()) | nil + } + + field(:nextPageToken) + field(:operations, as: GoogleApi.Run.V1.Model.GoogleLongrunningOperation, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningListOperationsResponse do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleLongrunningListOperationsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningListOperationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_longrunning_operation.ex b/clients/run/lib/google_api/run/v1/model/google_longrunning_operation.ex new file mode 100644 index 0000000000..7f4a29ee6b --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_longrunning_operation.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.V1.Model.GoogleLongrunningOperation do + @moduledoc """ + This resource represents a long-running operation that is the result of a network API call. + + ## Attributes + + * `done` (*type:* `boolean()`, *default:* `nil`) - If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. + * `error` (*type:* `GoogleApi.Run.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. + * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. + * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :done => boolean() | nil, + :error => GoogleApi.Run.V1.Model.GoogleRpcStatus.t() | nil, + :metadata => map() | nil, + :name => String.t() | nil, + :response => map() | nil + } + + field(:done) + field(:error, as: GoogleApi.Run.V1.Model.GoogleRpcStatus) + field(:metadata, type: :map) + field(:name) + field(:response, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningOperation do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleLongrunningOperation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningOperation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/google_longrunning_wait_operation_request.ex b/clients/run/lib/google_api/run/v1/model/google_longrunning_wait_operation_request.ex new file mode 100644 index 0000000000..b069a1a88d --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/google_longrunning_wait_operation_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.V1.Model.GoogleLongrunningWaitOperationRequest do + @moduledoc """ + The request message for Operations.WaitOperation. + + ## Attributes + + * `timeout` (*type:* `String.t`, *default:* `nil`) - The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeout => String.t() | nil + } + + field(:timeout) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningWaitOperationRequest do + def decode(value, options) do + GoogleApi.Run.V1.Model.GoogleLongrunningWaitOperationRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.GoogleLongrunningWaitOperationRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/grpc_action.ex b/clients/run/lib/google_api/run/v1/model/grpc_action.ex index 959db4cf04..c0049da24d 100644 --- a/clients/run/lib/google_api/run/v1/model/grpc_action.ex +++ b/clients/run/lib/google_api/run/v1/model/grpc_action.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V1.Model.GRPCAction do ## Attributes * `port` (*type:* `integer()`, *default:* `nil`) - Port number of the gRPC service. Number must be in the range 1 to 65535. - * `service` (*type:* `String.t`, *default:* `nil`) - Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. + * `service` (*type:* `String.t`, *default:* `nil`) - Service is the name of the service to place in the gRPC HealthCheckRequest. If this is not specified, the default behavior is defined by gRPC. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/http_get_action.ex b/clients/run/lib/google_api/run/v1/model/http_get_action.ex index 74d017aa3c..411e270358 100644 --- a/clients/run/lib/google_api/run/v1/model/http_get_action.ex +++ b/clients/run/lib/google_api/run/v1/model/http_get_action.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Run.V1.Model.HTTPGetAction do * `host` (*type:* `String.t`, *default:* `nil`) - Not supported by Cloud Run. * `httpHeaders` (*type:* `list(GoogleApi.Run.V1.Model.HTTPHeader.t)`, *default:* `nil`) - Custom headers to set in the request. HTTP allows repeated headers. * `path` (*type:* `String.t`, *default:* `nil`) - Path to access on the HTTP server. + * `port` (*type:* `integer()`, *default:* `nil`) - Port number to access on the container. Number must be in the range 1 to 65535. * `scheme` (*type:* `String.t`, *default:* `nil`) - Not supported by Cloud Run. """ @@ -33,12 +34,14 @@ defmodule GoogleApi.Run.V1.Model.HTTPGetAction do :host => String.t() | nil, :httpHeaders => list(GoogleApi.Run.V1.Model.HTTPHeader.t()) | nil, :path => String.t() | nil, + :port => integer() | nil, :scheme => String.t() | nil } field(:host) field(:httpHeaders, as: GoogleApi.Run.V1.Model.HTTPHeader, type: :list) field(:path) + field(:port) field(:scheme) end diff --git a/clients/run/lib/google_api/run/v1/model/job.ex b/clients/run/lib/google_api/run/v1/model/job.ex index 8fd1e7251a..02adda6c35 100644 --- a/clients/run/lib/google_api/run/v1/model/job.ex +++ b/clients/run/lib/google_api/run/v1/model/job.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V1.Model.Job do ## Attributes - * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (*type:* `GoogleApi.Run.V1.Model.JobSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `status` (*type:* `GoogleApi.Run.V1.Model.JobStatus.t`, *default:* `nil`) - Output only. Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. + * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. + * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. + * `spec` (*type:* `GoogleApi.Run.V1.Model.JobSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of a job. + * `status` (*type:* `GoogleApi.Run.V1.Model.JobStatus.t`, *default:* `nil`) - Output only. Current status of a job. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/list_meta.ex b/clients/run/lib/google_api/run/v1/model/list_meta.ex index d23731dc78..bad48ee489 100644 --- a/clients/run/lib/google_api/run/v1/model/list_meta.ex +++ b/clients/run/lib/google_api/run/v1/model/list_meta.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V1.Model.ListMeta do ## Attributes * `continue` (*type:* `String.t`, *default:* `nil`) - Continuation token is a value emitted when the count of items is larger than the user/system limit. To retrieve the next page of items, pass the value of `continue` as the next request's `page_token`. - * `resourceVersion` (*type:* `String.t`, *default:* `nil`) - Opaque string that identifies the server's internal version of this object. It can be used by clients to determine when objects have changed. If the message is passed back to the server, it must be left unmodified. https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * `resourceVersion` (*type:* `String.t`, *default:* `nil`) - Opaque string that identifies the server's internal version of this object. It can be used by clients to determine when objects have changed. If the message is passed back to the server, it must be left unmodified. * `selfLink` (*type:* `String.t`, *default:* `nil`) - URL representing this object. """ diff --git a/clients/run/lib/google_api/run/v1/model/local_object_reference.ex b/clients/run/lib/google_api/run/v1/model/local_object_reference.ex index bbfbf305fc..bd7105dec2 100644 --- a/clients/run/lib/google_api/run/v1/model/local_object_reference.ex +++ b/clients/run/lib/google_api/run/v1/model/local_object_reference.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V1.Model.LocalObjectReference do ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the referent. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/location.ex b/clients/run/lib/google_api/run/v1/model/location.ex index 6abc9d3f1c..1665a935ef 100644 --- a/clients/run/lib/google_api/run/v1/model/location.ex +++ b/clients/run/lib/google_api/run/v1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.Location do @moduledoc """ - A resource that represents Google Cloud Platform location. + A resource that represents a Google Cloud location. ## Attributes 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 new file mode 100644 index 0000000000..986c32c1fe --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/nfs_volume_source.ex @@ -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.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. + + ## 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. Defaults to false. + * `server` (*type:* `String.t`, *default:* `nil`) - Hostname or IP address of the NFS server. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :path => String.t() | nil, + :readOnly => boolean() | nil, + :server => String.t() | nil + } + + field(:path) + field(:readOnly) + field(:server) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.NFSVolumeSource do + def decode(value, options) do + GoogleApi.Run.V1.Model.NFSVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.NFSVolumeSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/object_meta.ex b/clients/run/lib/google_api/run/v1/model/object_meta.ex index 4f8839d486..1057d0700c 100644 --- a/clients/run/lib/google_api/run/v1/model/object_meta.ex +++ b/clients/run/lib/google_api/run/v1/model/object_meta.ex @@ -17,25 +17,25 @@ defmodule GoogleApi.Run.V1.Model.ObjectMeta do @moduledoc """ - k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. Execution. More info: https://kubernetes.io/docs/user-guide/annotations + * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. * `clusterName` (*type:* `String.t`, *default:* `nil`) - Not supported by Cloud Run - * `creationTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - UTC timestamp representing the server time when this object was created. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * `creationTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - UTC timestamp representing the server time when this object was created. * `deletionGracePeriodSeconds` (*type:* `integer()`, *default:* `nil`) - Not supported by Cloud Run * `deletionTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - The read-only soft deletion timestamp for this resource. In Cloud Run, users are not able to set this field. Instead, they must call the corresponding Delete API. * `finalizers` (*type:* `list(String.t)`, *default:* `nil`) - Not supported by Cloud Run * `generateName` (*type:* `String.t`, *default:* `nil`) - Not supported by Cloud Run * `generation` (*type:* `integer()`, *default:* `nil`) - A system-provided sequence number representing a specific generation of the desired state. - * `labels` (*type:* `map()`, *default:* `nil`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: https://kubernetes.io/docs/user-guide/labels - * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the resource. In Cloud Run, name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once created. More info: https://kubernetes.io/docs/user-guide/identifiers#names If ObjectMeta is part of a CreateServiceRequest, name must contain fewer than 50 characters. + * `labels` (*type:* `map()`, *default:* `nil`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the resource. Name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once created. * `namespace` (*type:* `String.t`, *default:* `nil`) - Required. Defines the space within each name must be unique within a Cloud Run region. In Cloud Run, it must be project ID or number. * `ownerReferences` (*type:* `list(GoogleApi.Run.V1.Model.OwnerReference.t)`, *default:* `nil`) - Not supported by Cloud Run - * `resourceVersion` (*type:* `String.t`, *default:* `nil`) - Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit the value to disable conflict-detection. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `resourceVersion` (*type:* `String.t`, *default:* `nil`) - Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit the value to disable conflict-detection. * `selfLink` (*type:* `String.t`, *default:* `nil`) - URL representing this object. - * `uid` (*type:* `String.t`, *default:* `nil`) - Unique, system-generated identifier for this resource. More info: https://kubernetes.io/docs/user-guide/identifiers#uids + * `uid` (*type:* `String.t`, *default:* `nil`) - Unique, system-generated identifier for this resource. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/overrides.ex b/clients/run/lib/google_api/run/v1/model/overrides.ex new file mode 100644 index 0000000000..1c0191f520 --- /dev/null +++ b/clients/run/lib/google_api/run/v1/model/overrides.ex @@ -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.Run.V1.Model.Overrides do + @moduledoc """ + RunJob Overrides that contains Execution fields to be overridden on the go. + + ## Attributes + + * `containerOverrides` (*type:* `list(GoogleApi.Run.V1.Model.ContainerOverride.t)`, *default:* `nil`) - Per container override specification. + * `taskCount` (*type:* `integer()`, *default:* `nil`) - The desired number of tasks the execution should run. Will replace existing task_count value. + * `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerOverrides => list(GoogleApi.Run.V1.Model.ContainerOverride.t()) | nil, + :taskCount => integer() | nil, + :timeoutSeconds => integer() | nil + } + + field(:containerOverrides, as: GoogleApi.Run.V1.Model.ContainerOverride, type: :list) + field(:taskCount) + field(:timeoutSeconds) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.Overrides do + def decode(value, options) do + GoogleApi.Run.V1.Model.Overrides.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V1.Model.Overrides do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/run/lib/google_api/run/v1/model/policy.ex b/clients/run/lib/google_api/run/v1/model/policy.ex index 6ebbc3030a..0e56f233d3 100644 --- a/clients/run/lib/google_api/run/v1/model/policy.ex +++ b/clients/run/lib/google_api/run/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/probe.ex b/clients/run/lib/google_api/run/v1/model/probe.ex index 1ba1e2b260..49baf4c390 100644 --- a/clients/run/lib/google_api/run/v1/model/probe.ex +++ b/clients/run/lib/google_api/run/v1/model/probe.ex @@ -25,11 +25,11 @@ defmodule GoogleApi.Run.V1.Model.Probe do * `failureThreshold` (*type:* `integer()`, *default:* `nil`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. * `grpc` (*type:* `GoogleApi.Run.V1.Model.GRPCAction.t`, *default:* `nil`) - GRPCAction specifies an action involving a GRPC port. * `httpGet` (*type:* `GoogleApi.Run.V1.Model.HTTPGetAction.t`, *default:* `nil`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. * `periodSeconds` (*type:* `integer()`, *default:* `nil`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. * `successThreshold` (*type:* `integer()`, *default:* `nil`) - Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set. * `tcpSocket` (*type:* `GoogleApi.Run.V1.Model.TCPSocketAction.t`, *default:* `nil`) - TCPSocket specifies an action involving a TCP port. - * `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/resource_requirements.ex b/clients/run/lib/google_api/run/v1/model/resource_requirements.ex index a1a983da0a..f5251f25b7 100644 --- a/clients/run/lib/google_api/run/v1/model/resource_requirements.ex +++ b/clients/run/lib/google_api/run/v1/model/resource_requirements.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.Run.V1.Model.ResourceRequirements do ## Attributes - * `limits` (*type:* `map()`, *default:* `nil`) - Only memory and CPU are supported. Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go - * `requests` (*type:* `map()`, *default:* `nil`) - Only memory and CPU are supported. Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + * `limits` (*type:* `map()`, *default:* `nil`) - Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys are supported. * For supported 'cpu' values, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits + * `requests` (*type:* `map()`, *default:* `nil`) - Requests describes the minimum amount of compute resources required. Only `cpu` and `memory` are supported. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. * For supported 'cpu' values, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/revision_spec.ex b/clients/run/lib/google_api/run/v1/model/revision_spec.ex index c5c676ca7a..068ffdee1b 100644 --- a/clients/run/lib/google_api/run/v1/model/revision_spec.ex +++ b/clients/run/lib/google_api/run/v1/model/revision_spec.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Run.V1.Model.RevisionSpec do ## Attributes * `containerConcurrency` (*type:* `integer()`, *default:* `nil`) - ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container instance of the Revision. If not specified, defaults to 80. - * `containers` (*type:* `list(GoogleApi.Run.V1.Model.Container.t)`, *default:* `nil`) - Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. In Cloud Run, only a single container may be provided. The runtime contract is documented here: https://github.com/knative/specs/blob/main/specs/serving/runtime-contract.md + * `containers` (*type:* `list(GoogleApi.Run.V1.Model.Container.t)`, *default:* `nil`) - Required. Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. In Cloud Run, only a single container may be provided. * `enableServiceLinks` (*type:* `boolean()`, *default:* `nil`) - Not supported by Cloud Run. * `imagePullSecrets` (*type:* `list(GoogleApi.Run.V1.Model.LocalObjectReference.t)`, *default:* `nil`) - Not supported by Cloud Run. * `serviceAccountName` (*type:* `String.t`, *default:* `nil`) - Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. diff --git a/clients/run/lib/google_api/run/v1/model/revision_status.ex b/clients/run/lib/google_api/run/v1/model/revision_status.ex index f702c4097f..e92d6367d6 100644 --- a/clients/run/lib/google_api/run/v1/model/revision_status.ex +++ b/clients/run/lib/google_api/run/v1/model/revision_status.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Run.V1.Model.RevisionStatus do ## Attributes * `conditions` (*type:* `list(GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition.t)`, *default:* `nil`) - Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. As a Revision is being prepared, it will incrementally update conditions. Revision-specific conditions include: * `ResourcesAvailable`: `True` when underlying resources have been provisioned. * `ContainerHealthy`: `True` when the Revision readiness check completes. * `Active`: `True` when the Revision may receive traffic. + * `desiredReplicas` (*type:* `integer()`, *default:* `nil`) - Output only. The configured number of instances running this revision. For Cloud Run, this only includes instances provisioned using the minScale annotation. It does not include instances created by autoscaling. * `imageDigest` (*type:* `String.t`, *default:* `nil`) - ImageDigest holds the resolved digest for the image specified within .Spec.Container.Image. The digest is resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object. * `logUrl` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the generated logging url for this particular revision based on the revision url template specified in the controller's config. * `observedGeneration` (*type:* `integer()`, *default:* `nil`) - ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False. @@ -32,6 +33,7 @@ defmodule GoogleApi.Run.V1.Model.RevisionStatus do @type t :: %__MODULE__{ :conditions => list(GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition.t()) | nil, + :desiredReplicas => integer() | nil, :imageDigest => String.t() | nil, :logUrl => String.t() | nil, :observedGeneration => integer() | nil, @@ -39,6 +41,7 @@ defmodule GoogleApi.Run.V1.Model.RevisionStatus do } field(:conditions, as: GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition, type: :list) + field(:desiredReplicas) field(:imageDigest) field(:logUrl) field(:observedGeneration) diff --git a/clients/run/lib/google_api/run/v1/model/revision_template.ex b/clients/run/lib/google_api/run/v1/model/revision_template.ex index 3006db79b5..6ea3e8614d 100644 --- a/clients/run/lib/google_api/run/v1/model/revision_template.ex +++ b/clients/run/lib/google_api/run/v1/model/revision_template.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.RevisionTemplate do @moduledoc """ - RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 + RevisionTemplateSpec describes the data a revision should have when created from a template. ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/route.ex b/clients/run/lib/google_api/run/v1/model/route.ex index 32f3d3686c..c367189136 100644 --- a/clients/run/lib/google_api/run/v1/model/route.ex +++ b/clients/run/lib/google_api/run/v1/model/route.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V1.Model.Route do @moduledoc """ - Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for "latest ready" revision changes, and smoothly rolling out latest revisions. See also: https://github.com/knative/specs/blob/main/specs/serving/overview.md#route Cloud Run currently supports referencing a single Configuration to automatically deploy the "latest ready" Revision from that Configuration. + Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for "latest ready" revision changes, and smoothly rolling out latest revisions. Cloud Run currently supports referencing a single Configuration to automatically deploy the "latest ready" Revision from that Configuration. ## Attributes diff --git a/clients/run/lib/google_api/run/v1/model/route_status.ex b/clients/run/lib/google_api/run/v1/model/route_status.ex index 629fbc59c1..64c23e0b0c 100644 --- a/clients/run/lib/google_api/run/v1/model/route_status.ex +++ b/clients/run/lib/google_api/run/v1/model/route_status.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Run.V1.Model.RouteStatus do * `conditions` (*type:* `list(GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition.t)`, *default:* `nil`) - Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. * `observedGeneration` (*type:* `integer()`, *default:* `nil`) - ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. Note that providing a TrafficTarget that has latest_revision=True will result in a Route that does not increment either its metadata.generation or its observedGeneration, as new "latest ready" revisions from the Configuration are processed without an update to the Route's spec. * `traffic` (*type:* `list(GoogleApi.Run.V1.Model.TrafficTarget.t)`, *default:* `nil`) - Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that was last observed. - * `url` (*type:* `String.t`, *default:* `nil`) - URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form: https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app + * `url` (*type:* `String.t`, *default:* `nil`) - URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form: `https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app` """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/run_job_request.ex b/clients/run/lib/google_api/run/v1/model/run_job_request.ex index 977013557f..2d8bf03584 100644 --- a/clients/run/lib/google_api/run/v1/model/run_job_request.ex +++ b/clients/run/lib/google_api/run/v1/model/run_job_request.ex @@ -21,11 +21,16 @@ defmodule GoogleApi.Run.V1.Model.RunJobRequest do ## Attributes + * `overrides` (*type:* `GoogleApi.Run.V1.Model.Overrides.t`, *default:* `nil`) - Optional. Overrides existing job configuration for one specific new job execution only, using the specified values to update the job configuration for the new execution. """ use GoogleApi.Gax.ModelBase - @type t :: %__MODULE__{} + @type t :: %__MODULE__{ + :overrides => GoogleApi.Run.V1.Model.Overrides.t() | nil + } + + field(:overrides, as: GoogleApi.Run.V1.Model.Overrides) end defimpl Poison.Decoder, for: GoogleApi.Run.V1.Model.RunJobRequest do diff --git a/clients/run/lib/google_api/run/v1/model/service.ex b/clients/run/lib/google_api/run/v1/model/service.ex index c2a1afbc56..153da38da5 100644 --- a/clients/run/lib/google_api/run/v1/model/service.ex +++ b/clients/run/lib/google_api/run/v1/model/service.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.Run.V1.Model.Service do @moduledoc """ - Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. See also: https://github.com/knative/serving/blob/main/docs/spec/overview.md#service + Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. ## Attributes * `apiVersion` (*type:* `String.t`, *default:* `nil`) - The API version for this call. It must be "serving.knative.dev/v1". * `kind` (*type:* `String.t`, *default:* `nil`) - The kind of resource. It must be "Service". - * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Metadata associated with this Service, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in Service.metadata.annotations. * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from `run.googleapis.com/ingress` while the system is processing a change to `run.googleapis.com/ingress` or if the system failed to process a change to `run.googleapis.com/ingress`. When the system has processed all changes successfully `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal. + * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Metadata associated with this Service, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in Service.metadata.annotations. * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from `run.googleapis.com/ingress` while the system is processing a change to `run.googleapis.com/ingress` or if the system failed to process a change to `run.googleapis.com/ingress`. When the system has processed all changes successfully `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal. * `spec` (*type:* `GoogleApi.Run.V1.Model.ServiceSpec.t`, *default:* `nil`) - Holds the desired state of the Service (from the client). * `status` (*type:* `GoogleApi.Run.V1.Model.ServiceStatus.t`, *default:* `nil`) - Communicates the system-controlled state of the Service. """ diff --git a/clients/run/lib/google_api/run/v1/model/service_status.ex b/clients/run/lib/google_api/run/v1/model/service_status.ex index d30f2241a9..67ace92a85 100644 --- a/clients/run/lib/google_api/run/v1/model/service_status.ex +++ b/clients/run/lib/google_api/run/v1/model/service_status.ex @@ -25,9 +25,9 @@ defmodule GoogleApi.Run.V1.Model.ServiceStatus do * `conditions` (*type:* `list(GoogleApi.Run.V1.Model.GoogleCloudRunV1Condition.t)`, *default:* `nil`) - Conditions communicate information about ongoing/complete reconciliation processes that bring the `spec` inline with the observed state of the world. Service-specific conditions include: * `ConfigurationsReady`: `True` when the underlying Configuration is ready. * `RoutesReady`: `True` when the underlying Route is ready. * `Ready`: `True` when all underlying resources are ready. * `latestCreatedRevisionName` (*type:* `String.t`, *default:* `nil`) - Name of the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName. * `latestReadyRevisionName` (*type:* `String.t`, *default:* `nil`) - Name of the latest Revision from this Service's Configuration that has had its `Ready` condition become `True`. - * `observedGeneration` (*type:* `integer()`, *default:* `nil`) - Returns the generation last fully processed by the system. This will only match metadata.generation when reconciliation is complete. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. + * `observedGeneration` (*type:* `integer()`, *default:* `nil`) - Returns the generation last seen by the system. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. * `traffic` (*type:* `list(GoogleApi.Run.V1.Model.TrafficTarget.t)`, *default:* `nil`) - Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. - * `url` (*type:* `String.t`, *default:* `nil`) - URL that will distribute traffic over the provided traffic targets. It generally has the form https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app + * `url` (*type:* `String.t`, *default:* `nil`) - URL that will distribute traffic over the provided traffic targets. It generally has the form `https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app` """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/status.ex b/clients/run/lib/google_api/run/v1/model/status.ex index 6e1bfb7d8c..ed01803a43 100644 --- a/clients/run/lib/google_api/run/v1/model/status.ex +++ b/clients/run/lib/google_api/run/v1/model/status.ex @@ -24,9 +24,9 @@ defmodule GoogleApi.Run.V1.Model.Status do * `code` (*type:* `integer()`, *default:* `nil`) - Suggested HTTP return code for this status, 0 if not set. * `details` (*type:* `GoogleApi.Run.V1.Model.StatusDetails.t`, *default:* `nil`) - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. * `message` (*type:* `String.t`, *default:* `nil`) - A human-readable description of the status of this operation. - * `metadata` (*type:* `GoogleApi.Run.V1.Model.ListMeta.t`, *default:* `nil`) - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `metadata` (*type:* `GoogleApi.Run.V1.Model.ListMeta.t`, *default:* `nil`) - Standard list metadata. * `reason` (*type:* `String.t`, *default:* `nil`) - A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - * `status` (*type:* `String.t`, *default:* `nil`) - Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `status` (*type:* `String.t`, *default:* `nil`) - Status of the operation. One of: "Success" or "Failure". """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/status_details.ex b/clients/run/lib/google_api/run/v1/model/status_details.ex index 6030527655..fc14a2088a 100644 --- a/clients/run/lib/google_api/run/v1/model/status_details.ex +++ b/clients/run/lib/google_api/run/v1/model/status_details.ex @@ -23,10 +23,10 @@ defmodule GoogleApi.Run.V1.Model.StatusDetails do * `causes` (*type:* `list(GoogleApi.Run.V1.Model.StatusCause.t)`, *default:* `nil`) - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. * `group` (*type:* `String.t`, *default:* `nil`) - The group attribute of the resource associated with the status StatusReason. - * `kind` (*type:* `String.t`, *default:* `nil`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `kind` (*type:* `String.t`, *default:* `nil`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. * `name` (*type:* `String.t`, *default:* `nil`) - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). * `retryAfterSeconds` (*type:* `integer()`, *default:* `nil`) - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - * `uid` (*type:* `String.t`, *default:* `nil`) - UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/user-guide/identifiers#uids + * `uid` (*type:* `String.t`, *default:* `nil`) - UID of the resource. (when there is a single resource which can be described). """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/task.ex b/clients/run/lib/google_api/run/v1/model/task.ex index b3af8ffda3..37551a397d 100644 --- a/clients/run/lib/google_api/run/v1/model/task.ex +++ b/clients/run/lib/google_api/run/v1/model/task.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V1.Model.Task do ## Attributes - * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (*type:* `GoogleApi.Run.V1.Model.TaskSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of a task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `status` (*type:* `GoogleApi.Run.V1.Model.TaskStatus.t`, *default:* `nil`) - Output only. Current status of a task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `apiVersion` (*type:* `String.t`, *default:* `nil`) - Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. + * `kind` (*type:* `String.t`, *default:* `nil`) - Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. + * `metadata` (*type:* `GoogleApi.Run.V1.Model.ObjectMeta.t`, *default:* `nil`) - Optional. Standard object's metadata. + * `spec` (*type:* `GoogleApi.Run.V1.Model.TaskSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of a task. + * `status` (*type:* `GoogleApi.Run.V1.Model.TaskStatus.t`, *default:* `nil`) - Output only. Current status of a task. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/task_spec.ex b/clients/run/lib/google_api/run/v1/model/task_spec.ex index d19cadedaf..f5e1565373 100644 --- a/clients/run/lib/google_api/run/v1/model/task_spec.ex +++ b/clients/run/lib/google_api/run/v1/model/task_spec.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V1.Model.TaskSpec do ## Attributes - * `containers` (*type:* `list(GoogleApi.Run.V1.Model.Container.t)`, *default:* `nil`) - Optional. List of containers belonging to the task. We disallow a number of fields on this Container. Only a single container may be provided. - * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Optional. Number of retries allowed per task, before marking this job failed. + * `containers` (*type:* `list(GoogleApi.Run.V1.Model.Container.t)`, *default:* `nil`) - Optional. List of containers belonging to the task. We disallow a number of fields on this Container. + * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Optional. Number of retries allowed per task, before marking this job failed. Defaults to 3. * `serviceAccountName` (*type:* `String.t`, *default:* `nil`) - Optional. Email address of the IAM service account associated with the task of a job execution. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account. - * `timeoutSeconds` (*type:* `String.t`, *default:* `nil`) - Optional. Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. - * `volumes` (*type:* `list(GoogleApi.Run.V1.Model.Volume.t)`, *default:* `nil`) - Optional. List of volumes that can be mounted by containers belonging to the task. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `timeoutSeconds` (*type:* `String.t`, *default:* `nil`) - Optional. Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. Defaults to 600 seconds. + * `volumes` (*type:* `list(GoogleApi.Run.V1.Model.Volume.t)`, *default:* `nil`) - Optional. List of volumes that can be mounted by containers belonging to the task. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/task_template_spec.ex b/clients/run/lib/google_api/run/v1/model/task_template_spec.ex index 1297e3cd6b..c00716d261 100644 --- a/clients/run/lib/google_api/run/v1/model/task_template_spec.ex +++ b/clients/run/lib/google_api/run/v1/model/task_template_spec.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V1.Model.TaskTemplateSpec do ## Attributes - * `spec` (*type:* `GoogleApi.Run.V1.Model.TaskSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of the task. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `spec` (*type:* `GoogleApi.Run.V1.Model.TaskSpec.t`, *default:* `nil`) - Optional. Specification of the desired behavior of the task. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v1/model/volume.ex b/clients/run/lib/google_api/run/v1/model/volume.ex index 85296482e9..0bb58a8163 100644 --- a/clients/run/lib/google_api/run/v1/model/volume.ex +++ b/clients/run/lib/google_api/run/v1/model/volume.ex @@ -22,7 +22,10 @@ defmodule GoogleApi.Run.V1.Model.Volume do ## Attributes * `configMap` (*type:* `GoogleApi.Run.V1.Model.ConfigMapVolumeSource.t`, *default:* `nil`) - Not supported in Cloud Run. + * `csi` (*type:* `GoogleApi.Run.V1.Model.CSIVolumeSource.t`, *default:* `nil`) - Volume specified by the Container Storage Interface driver + * `emptyDir` (*type:* `GoogleApi.Run.V1.Model.EmptyDirVolumeSource.t`, *default:* `nil`) - Ephemeral storage used as a shared volume. * `name` (*type:* `String.t`, *default:* `nil`) - Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved. + * `nfs` (*type:* `GoogleApi.Run.V1.Model.NFSVolumeSource.t`, *default:* `nil`) - * `secret` (*type:* `GoogleApi.Run.V1.Model.SecretVolumeSource.t`, *default:* `nil`) - The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secretName. """ @@ -30,12 +33,18 @@ defmodule GoogleApi.Run.V1.Model.Volume do @type t :: %__MODULE__{ :configMap => GoogleApi.Run.V1.Model.ConfigMapVolumeSource.t() | nil, + :csi => GoogleApi.Run.V1.Model.CSIVolumeSource.t() | nil, + :emptyDir => GoogleApi.Run.V1.Model.EmptyDirVolumeSource.t() | nil, :name => String.t() | nil, + :nfs => GoogleApi.Run.V1.Model.NFSVolumeSource.t() | nil, :secret => GoogleApi.Run.V1.Model.SecretVolumeSource.t() | nil } field(:configMap, as: GoogleApi.Run.V1.Model.ConfigMapVolumeSource) + field(:csi, as: GoogleApi.Run.V1.Model.CSIVolumeSource) + field(:emptyDir, as: GoogleApi.Run.V1.Model.EmptyDirVolumeSource) field(:name) + field(:nfs, as: GoogleApi.Run.V1.Model.NFSVolumeSource) field(:secret, as: GoogleApi.Run.V1.Model.SecretVolumeSource) end diff --git a/clients/run/lib/google_api/run/v1/model/volume_mount.ex b/clients/run/lib/google_api/run/v1/model/volume_mount.ex index 53246f23fc..bf43d6ff2d 100644 --- a/clients/run/lib/google_api/run/v1/model/volume_mount.ex +++ b/clients/run/lib/google_api/run/v1/model/volume_mount.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Run.V1.Model.VolumeMount do * `mountPath` (*type:* `String.t`, *default:* `nil`) - Required. Path within the container at which the volume should be mounted. Must not contain ':'. * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the volume. There must be a corresponding Volume with the same name. - * `readOnly` (*type:* `boolean()`, *default:* `nil`) - Only true is accepted for Secret Volumes. Defaults to true for Secrets Volumes. + * `readOnly` (*type:* `boolean()`, *default:* `nil`) - Sets the mount to be read-only or read-write. Not used by Cloud Run. * `subPath` (*type:* `String.t`, *default:* `nil`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). """ 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 a50cf34f7b..b1979a083b 100644 --- a/clients/run/lib/google_api/run/v2/api/projects.ex +++ b/clients/run/lib/google_api/run/v2/api/projects.ex @@ -762,13 +762,100 @@ defmodule GoogleApi.Run.V2.Api.Projects do ) end + @doc """ + Cancels an Execution. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the Execution to cancel. Format: `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, where `{project}` can be project id or number. + * `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`. + * `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.GoogleCloudRunV2CancelExecutionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_jobs_executions_cancel( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_jobs_executions_cancel( + connection, + projects_id, + locations_id, + jobs_id, + executions_id, + 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}/jobs/{jobsId}/executions/{executionsId}:cancel", + %{ + "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) + } + ) + |> 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.GoogleLongrunningOperation{}]) + end + @doc """ Deletes an Execution. ## Parameters * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the Execution to delete. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}, where {project} can be project id or number. + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the Execution to delete. Format: `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, where `{project}` can be project id or number. * `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`. @@ -857,7 +944,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The full name of the Execution. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}, where {project} can be project id or number. + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The full name of the Execution. Format: `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`, where `{project}` can be project id or number. * `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`. @@ -942,7 +1029,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}, where {project} can be project id or number. + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The Execution from which the Executions should be listed. To list all Executions across Jobs, use "-" instead of Job name. Format: `projects/{project}/locations/{location}/jobs/{job}`, where `{project}` can be project id or number. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `jobs_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1370,7 +1457,7 @@ defmodule GoogleApi.Run.V2.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 @@ -1451,6 +1538,89 @@ defmodule GoogleApi.Run.V2.Api.Projects do ) end + @doc """ + Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource to wait on. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `operations_id` (*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.GoogleLongrunningWaitOperationRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Run.V2.Model.GoogleLongrunningOperation{}}` on success + * `{:error, info}` on failure + """ + @spec run_projects_locations_operations_wait( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Run.V2.Model.GoogleLongrunningOperation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def run_projects_locations_operations_wait( + connection, + projects_id, + locations_id, + operations_id, + 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}/operations/{operationsId}:wait", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "operationsId" => URI.encode(operations_id, &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.GoogleLongrunningOperation{}]) + end + @doc """ Creates a new Service in a given project and location. @@ -1780,7 +1950,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.Run.V2.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The location and project to list resources on. Location must be a valid GCP region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number. + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The location and project to list resources on. Location must be a valid Google Cloud region, and cannot be the "-" wildcard. Format: projects/{project}/locations/{location}, where {project} can be project id or number. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -1877,7 +2047,7 @@ defmodule GoogleApi.Run.V2.Api.Projects do * `: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"). - * `:allowMissing` (*type:* `boolean()`) - If set to true, and if the Service does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. + * `:allowMissing` (*type:* `boolean()`) - If set to true, and if the Service does not exist, it will create a new one. The caller must have 'run.services.create' permissions if this is set to true and the Service does not exist. * `:validateOnly` (*type:* `boolean()`) - Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. * `:body` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Service.t`) - * `opts` (*type:* `keyword()`) - Call options diff --git a/clients/run/lib/google_api/run/v2/metadata.ex b/clients/run/lib/google_api/run/v2/metadata.ex index b7030aaaca..80433b300d 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 "20221106" + @discovery_revision "20240303" def discovery_revision(), do: @discovery_revision end diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cancel_execution_request.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cancel_execution_request.ex new file mode 100644 index 0000000000..73ee8faa7d --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cancel_execution_request.ex @@ -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.Run.V2.Model.GoogleCloudRunV2CancelExecutionRequest do + @moduledoc """ + Request message for deleting an Execution. + + ## Attributes + + * `etag` (*type:* `String.t`, *default:* `nil`) - A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates. + * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - Indicates that the request should be validated without actually cancelling any resources. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :etag => String.t() | nil, + :validateOnly => boolean() | nil + } + + field(:etag) + field(:validateOnly) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2CancelExecutionRequest do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2CancelExecutionRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2CancelExecutionRequest 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_cloud_sql_instance.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cloud_sql_instance.ex index c2ed42616b..655a7b2385 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cloud_sql_instance.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_cloud_sql_instance.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2CloudSqlInstance do @moduledoc """ - Represents a specific Cloud SQL instance. + Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. ## Attributes diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container.ex index 73644f3a17..34294ccd79 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container.ex @@ -17,19 +17,20 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Container do @moduledoc """ - A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime. + A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments can be supplied by the system to the container at runtime. ## Attributes - * `args` (*type:* `list(String.t)`, *default:* `nil`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (*type:* `list(String.t)`, *default:* `nil`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `args` (*type:* `list(String.t)`, *default:* `nil`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. + * `command` (*type:* `list(String.t)`, *default:* `nil`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. + * `dependsOn` (*type:* `list(String.t)`, *default:* `nil`) - Names of the containers that must start before this container. * `env` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar.t)`, *default:* `nil`) - List of environment variables to set in the container. - * `image` (*type:* `String.t`, *default:* `nil`) - Required. URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images - * `livenessProbe` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe.t`, *default:* `nil`) - Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `name` (*type:* `String.t`, *default:* `nil`) - Name of the container specified as a DNS_LABEL. + * `image` (*type:* `String.t`, *default:* `nil`) - Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. + * `livenessProbe` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe.t`, *default:* `nil`) - Periodic probe of container liveness. Container will be restarted if the probe fails. + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the container specified as a DNS_LABEL (RFC 1123). * `ports` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerPort.t)`, *default:* `nil`) - List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on. - * `resources` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements.t`, *default:* `nil`) - Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `startupProbe` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe.t`, *default:* `nil`) - Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements.t`, *default:* `nil`) - Compute Resource requirements by this container. + * `startupProbe` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe.t`, *default:* `nil`) - Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. * `volumeMounts` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2VolumeMount.t)`, *default:* `nil`) - Volume to mount into the container's filesystem. * `workingDir` (*type:* `String.t`, *default:* `nil`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. """ @@ -39,6 +40,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Container do @type t :: %__MODULE__{ :args => list(String.t()) | nil, :command => list(String.t()) | nil, + :dependsOn => list(String.t()) | nil, :env => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar.t()) | nil, :image => String.t() | nil, :livenessProbe => GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe.t() | nil, @@ -52,6 +54,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Container do field(:args, type: :list) field(:command, type: :list) + field(:dependsOn, type: :list) field(:env, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar, type: :list) field(:image) field(:livenessProbe, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container_override.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container_override.ex new file mode 100644 index 0000000000..1f8569b7f4 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_container_override.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.GoogleCloudRunV2ContainerOverride do + @moduledoc """ + Per-container override specification. + + ## Attributes + + * `args` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Arguments to the entrypoint. Will replace existing args for override. + * `clearArgs` (*type:* `boolean()`, *default:* `nil`) - Optional. True if the intention is to clear out existing args list. + * `env` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar.t)`, *default:* `nil`) - List of environment variables to set in the container. Will be merged with existing env for override. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the container specified as a DNS_LABEL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :args => list(String.t()) | nil, + :clearArgs => boolean() | nil, + :env => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar.t()) | nil, + :name => String.t() | nil + } + + field(:args, type: :list) + field(:clearArgs) + field(:env, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar, type: :list) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride 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_empty_dir_volume_source.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_empty_dir_volume_source.ex new file mode 100644 index 0000000000..cd31f14998 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_empty_dir_volume_source.ex @@ -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.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource do + @moduledoc """ + In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs). + + ## Attributes + + * `medium` (*type:* `String.t`, *default:* `nil`) - The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional + * `sizeLimit` (*type:* `String.t`, *default:* `nil`) - Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :medium => String.t() | nil, + :sizeLimit => String.t() | nil + } + + field(:medium) + field(:sizeLimit) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource 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_env_var.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_env_var.ex index 0e821a8fce..d205f6f6f8 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_env_var.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_env_var.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVar do ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the environment variable. Must not exceed 32768 characters. * `value` (*type:* `String.t`, *default:* `nil`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes. * `valueSource` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2EnvVarSource.t`, *default:* `nil`) - Source for the environment variable's value. """ diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution.ex index e84eecff5b..5f32bf8f5e 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution.ex @@ -21,7 +21,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. + * `annotations` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. + * `cancelledCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of tasks which reached phase Cancelled. * `completionTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the execution was completed. It is not guaranteed to be set in happens-before order across separate operations. * `conditions` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t)`, *default:* `nil`) - Output only. The Condition of this Execution, containing its readiness status, and detailed error information in case it did not reach the desired state. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the execution was acknowledged by the execution controller. It is not guaranteed to be set in happens-before order across separate operations. @@ -31,16 +32,19 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do * `failedCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of tasks which reached phase Failed. * `generation` (*type:* `String.t`, *default:* `nil`) - Output only. A number that monotonically increases every time the user modifies the desired state. * `job` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the parent Job. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved. - * `launchStage` (*type:* `String.t`, *default:* `nil`) - Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). + * `labels` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels + * `launchStage` (*type:* `String.t`, *default:* `nil`) - The least stable launch stage needed to create this resource, as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA. + * `logUri` (*type:* `String.t`, *default:* `nil`) - Output only. URI where logs for this execution can be found in Cloud Console. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The unique name of this Execution. * `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Execution. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. - * `parallelism` (*type:* `integer()`, *default:* `nil`) - Output only. Specifies the maximum desired number of tasks the execution should run at any given time. Must be <= task_count. The actual number of tasks running in steady state will be less than this number when ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `parallelism` (*type:* `integer()`, *default:* `nil`) - Output only. Specifies the maximum desired number of tasks the execution should run at any given time. Must be <= task_count. The actual number of tasks running in steady state will be less than this number when ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. * `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud Run. + * `retriedCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of tasks which have retried at least once. * `runningCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of actively running tasks. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the execution started to run. It is not guaranteed to be set in happens-before order across separate operations. * `succeededCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of tasks which reached phase Succeeded. - * `taskCount` (*type:* `integer()`, *default:* `nil`) - Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `taskCount` (*type:* `integer()`, *default:* `nil`) - Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. * `template` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskTemplate.t`, *default:* `nil`) - Output only. The template used to create tasks for this execution. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time. @@ -50,6 +54,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do @type t :: %__MODULE__{ :annotations => map() | nil, + :cancelledCount => integer() | nil, :completionTime => DateTime.t() | nil, :conditions => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t()) | nil, :createTime => DateTime.t() | nil, @@ -61,11 +66,14 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do :job => String.t() | nil, :labels => map() | nil, :launchStage => String.t() | nil, + :logUri => String.t() | nil, :name => String.t() | nil, :observedGeneration => String.t() | nil, :parallelism => integer() | nil, :reconciling => boolean() | nil, + :retriedCount => integer() | nil, :runningCount => integer() | nil, + :satisfiesPzs => boolean() | nil, :startTime => DateTime.t() | nil, :succeededCount => integer() | nil, :taskCount => integer() | nil, @@ -75,6 +83,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do } field(:annotations, type: :map) + field(:cancelledCount) field(:completionTime, as: DateTime) field(:conditions, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition, type: :list) field(:createTime, as: DateTime) @@ -86,11 +95,14 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Execution do field(:job) field(:labels, type: :map) field(:launchStage) + field(:logUri) field(:name) field(:observedGeneration) field(:parallelism) field(:reconciling) + field(:retriedCount) field(:runningCount) + field(:satisfiesPzs) field(:startTime, as: DateTime) field(:succeededCount) field(:taskCount) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution_template.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution_template.ex index ee141e26d9..f98eb620d7 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution_template.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_execution_template.ex @@ -21,10 +21,10 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. + * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules. + * `labels` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate. * `parallelism` (*type:* `integer()`, *default:* `nil`) - Specifies the maximum desired number of tasks the execution should run at given time. Must be <= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism. - * `taskCount` (*type:* `integer()`, *default:* `nil`) - Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `taskCount` (*type:* `integer()`, *default:* `nil`) - Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1. * `template` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskTemplate.t`, *default:* `nil`) - Required. Describes the task(s) that will be created when executing an execution. """ 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 new file mode 100644 index 0000000000..2cc7069156 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_gcs_volume_source.ex @@ -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.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource do + @moduledoc """ + Represents a GCS Bucket mounted as a volume. + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - GCS Bucket name + * `readOnly` (*type:* `boolean()`, *default:* `nil`) - If true, mount the GCS bucket as read-only + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :readOnly => boolean() | nil + } + + field(:bucket) + field(:readOnly) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource 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_grpc_action.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_grpc_action.ex index 1ab8db54ce..d70fcb6339 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_grpc_action.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_grpc_action.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2GRPCAction do ## Attributes - * `port` (*type:* `integer()`, *default:* `nil`) - Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to 8080. - * `service` (*type:* `String.t`, *default:* `nil`) - Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. + * `port` (*type:* `integer()`, *default:* `nil`) - Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort. + * `service` (*type:* `String.t`, *default:* `nil`) - Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_http_get_action.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_http_get_action.ex index 98e03de080..76962d512c 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_http_get_action.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_http_get_action.ex @@ -23,17 +23,20 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction do * `httpHeaders` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader.t)`, *default:* `nil`) - Custom headers to set in the request. HTTP allows repeated headers. * `path` (*type:* `String.t`, *default:* `nil`) - Path to access on the HTTP server. Defaults to '/'. + * `port` (*type:* `integer()`, *default:* `nil`) - Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :httpHeaders => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader.t()) | nil, - :path => String.t() | nil + :path => String.t() | nil, + :port => integer() | nil } field(:httpHeaders, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPHeader, type: :list) field(:path) + field(:port) end defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction do diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_job.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_job.ex index 65f04c799f..6fe9855ed6 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_job.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_job.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do @moduledoc """ - Job represents the configuration of a single job. A job an immutable resource that references a container image which is run to completion. + Job represents the configuration of a single job, which references a container image that is run to completion. ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run will populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations' namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations + * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules. * `binaryAuthorization` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2BinaryAuthorization.t`, *default:* `nil`) - Settings for the Binary Authorization feature. * `client` (*type:* `String.t`, *default:* `nil`) - Arbitrary identifier for the API client. * `clientVersion` (*type:* `String.t`, *default:* `nil`) - Arbitrary version identifier for the API client. @@ -33,13 +33,14 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do * `executionCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of executions created for this job. * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. For a deleted resource, the time after which it will be permamently deleted. * `generation` (*type:* `String.t`, *default:* `nil`) - Output only. A number that monotonically increases every time the user modifies the desired state. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved. + * `labels` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job. * `lastModifier` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of the last authenticated modifier. * `latestCreatedExecution` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionReference.t`, *default:* `nil`) - Output only. Name of the last created execution. - * `launchStage` (*type:* `String.t`, *default:* `nil`) - The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. + * `launchStage` (*type:* `String.t`, *default:* `nil`) - The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. * `name` (*type:* `String.t`, *default:* `nil`) - The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} * `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Job. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. * `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, `observed_generation` and `latest_succeeded_execution`, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `observed_generation` and `generation`, `latest_succeeded_execution` and `latest_created_execution`. If reconciliation failed, `observed_generation` and `latest_succeeded_execution` will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in `terminal_condition` and `conditions`. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `template` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate.t`, *default:* `nil`) - Required. The template used to create executions for this Job. * `terminalCondition` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t`, *default:* `nil`) - Output only. The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. @@ -70,6 +71,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do :name => String.t() | nil, :observedGeneration => String.t() | nil, :reconciling => boolean() | nil, + :satisfiesPzs => boolean() | nil, :template => GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate.t() | nil, :terminalCondition => GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t() | nil, :uid => String.t() | nil, @@ -95,6 +97,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Job do field(:name) field(:observedGeneration) field(:reconciling) + field(:satisfiesPzs) field(:template, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2ExecutionTemplate) field(:terminalCondition, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition) field(:uid) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_network_interface.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_network_interface.ex new file mode 100644 index 0000000000..ccc1d1f294 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_network_interface.ex @@ -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.Run.V2.Model.GoogleCloudRunV2NetworkInterface do + @moduledoc """ + Direct VPC egress settings. + + ## Attributes + + * `network` (*type:* `String.t`, *default:* `nil`) - The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork. + * `subnetwork` (*type:* `String.t`, *default:* `nil`) - The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used. + * `tags` (*type:* `list(String.t)`, *default:* `nil`) - Network tags applied to this Cloud Run resource. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :network => String.t() | nil, + :subnetwork => String.t() | nil, + :tags => list(String.t()) | nil + } + + field(:network) + field(:subnetwork) + field(:tags, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface 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 new file mode 100644 index 0000000000..37f18eb13c --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_nfs_volume_source.ex @@ -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.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource do + @moduledoc """ + Represents an NFS mount. + + ## 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 + * `server` (*type:* `String.t`, *default:* `nil`) - Hostname or IP address of the NFS server + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :path => String.t() | nil, + :readOnly => boolean() | nil, + :server => String.t() | nil + } + + field(:path) + field(:readOnly) + field(:server) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource 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_overrides.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_overrides.ex new file mode 100644 index 0000000000..9eebf94a8f --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_overrides.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.GoogleCloudRunV2Overrides do + @moduledoc """ + RunJob Overrides that contains Execution fields to be overridden. + + ## Attributes + + * `containerOverrides` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride.t)`, *default:* `nil`) - Per container override specification. + * `taskCount` (*type:* `integer()`, *default:* `nil`) - Optional. The desired number of tasks the execution should run. Will replace existing task_count value. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :containerOverrides => + list(GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride.t()) | nil, + :taskCount => integer() | nil, + :timeout => String.t() | nil + } + + field(:containerOverrides, + as: GoogleApi.Run.V2.Model.GoogleCloudRunV2ContainerOverride, + type: :list + ) + + field(:taskCount) + field(:timeout) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides 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_probe.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_probe.ex index 7aefe5979a..9b095a3f1e 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_probe.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_probe.ex @@ -24,10 +24,10 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Probe do * `failureThreshold` (*type:* `integer()`, *default:* `nil`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. * `grpc` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2GRPCAction.t`, *default:* `nil`) - GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified. * `httpGet` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2HTTPGetAction.t`, *default:* `nil`) - HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified. - * `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. * `periodSeconds` (*type:* `integer()`, *default:* `nil`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. * `tcpSocket` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TCPSocketAction.t`, *default:* `nil`) - TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified. - * `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_resource_requirements.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_resource_requirements.ex index f2fa077b60..8310e6ad16 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_resource_requirements.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_resource_requirements.ex @@ -21,19 +21,22 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements do ## Attributes - * `cpuIdle` (*type:* `boolean()`, *default:* `nil`) - Determines whether CPU should be throttled or not outside of requests. - * `limits` (*type:* `map()`, *default:* `nil`) - Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + * `cpuIdle` (*type:* `boolean()`, *default:* `nil`) - Determines whether CPU is only allocated during requests (true by default). However, if ResourceRequirements is set, the caller must explicitly set this field to true to preserve the default behavior. + * `limits` (*type:* `map()`, *default:* `nil`) - Only `memory` and `cpu` keys in the map are supported. Notes: * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits + * `startupCpuBoost` (*type:* `boolean()`, *default:* `nil`) - Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :cpuIdle => boolean() | nil, - :limits => map() | nil + :limits => map() | nil, + :startupCpuBoost => boolean() | nil } field(:cpuIdle) field(:limits, type: :map) + field(:startupCpuBoost) end defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements do diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision.ex index 0019abd6b4..0d6da4036e 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision.ex @@ -21,26 +21,31 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Revision do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. + * `annotations` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. * `conditions` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t)`, *default:* `nil`) - Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state. * `containers` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t)`, *default:* `nil`) - Holds the single container that defines the unit of execution for this Revision. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time. * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. * `encryptionKey` (*type:* `String.t`, *default:* `nil`) - A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek + * `encryptionKeyRevocationAction` (*type:* `String.t`, *default:* `nil`) - The action to take if the encryption key is revoked. + * `encryptionKeyShutdownDuration` (*type:* `String.t`, *default:* `nil`) - If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. * `executionEnvironment` (*type:* `String.t`, *default:* `nil`) - The execution environment being used to host this Revision. * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request. * `generation` (*type:* `String.t`, *default:* `nil`) - Output only. A number that monotonically increases every time the user modifies the desired state. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved. - * `launchStage` (*type:* `String.t`, *default:* `nil`) - Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). + * `labels` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. + * `launchStage` (*type:* `String.t`, *default:* `nil`) - The least stable launch stage needed to create this resource, as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA. * `logUri` (*type:* `String.t`, *default:* `nil`) - Output only. The Google Console URI to obtain logs for the Revision. * `maxInstanceRequestConcurrency` (*type:* `integer()`, *default:* `nil`) - Sets the maximum number of requests that each serving instance can receive. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The unique name of this Revision. * `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. * `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Service.reconciling` for additional information on reconciliation process in Cloud Run. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `scaling` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling.t`, *default:* `nil`) - Scaling settings for this revision. + * `scalingStatus` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus.t`, *default:* `nil`) - Output only. The current effective scaling settings for the revision. * `service` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the parent service. * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. + * `sessionAffinity` (*type:* `boolean()`, *default:* `nil`) - Enable session affinity. * `timeout` (*type:* `String.t`, *default:* `nil`) - Max allowed time for an instance to respond to a request. * `uid` (*type:* `String.t`, *default:* `nil`) - Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last-modified time. @@ -57,6 +62,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Revision do :createTime => DateTime.t() | nil, :deleteTime => DateTime.t() | nil, :encryptionKey => String.t() | nil, + :encryptionKeyRevocationAction => String.t() | nil, + :encryptionKeyShutdownDuration => String.t() | nil, :etag => String.t() | nil, :executionEnvironment => String.t() | nil, :expireTime => DateTime.t() | nil, @@ -68,9 +75,13 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Revision do :name => String.t() | nil, :observedGeneration => String.t() | nil, :reconciling => boolean() | nil, + :satisfiesPzs => boolean() | nil, :scaling => GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling.t() | nil, + :scalingStatus => + GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus.t() | nil, :service => String.t() | nil, :serviceAccount => String.t() | nil, + :sessionAffinity => boolean() | nil, :timeout => String.t() | nil, :uid => String.t() | nil, :updateTime => DateTime.t() | nil, @@ -84,6 +95,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Revision do field(:createTime, as: DateTime) field(:deleteTime, as: DateTime) field(:encryptionKey) + field(:encryptionKeyRevocationAction) + field(:encryptionKeyShutdownDuration) field(:etag) field(:executionEnvironment) field(:expireTime, as: DateTime) @@ -95,9 +108,12 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Revision do field(:name) field(:observedGeneration) field(:reconciling) + field(:satisfiesPzs) field(:scaling, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling) + field(:scalingStatus, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus) field(:service) field(:serviceAccount) + field(:sessionAffinity) field(:timeout) field(:uid) field(:updateTime, as: DateTime) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_scaling_status.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_scaling_status.ex new file mode 100644 index 0000000000..0523093f9f --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_scaling_status.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.GoogleCloudRunV2RevisionScalingStatus do + @moduledoc """ + Effective settings for the current revision + + ## Attributes + + * `desiredMinInstanceCount` (*type:* `integer()`, *default:* `nil`) - The current number of min instances provisioned for this revision. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :desiredMinInstanceCount => integer() | nil + } + + field(:desiredMinInstanceCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScalingStatus 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_revision_template.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_template.ex index 94f8d4812c..2608bcc054 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_template.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_revision_template.ex @@ -21,15 +21,17 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. + * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules. * `containers` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t)`, *default:* `nil`) - Holds the single container that defines the unit of execution for this Revision. * `encryptionKey` (*type:* `String.t`, *default:* `nil`) - A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * `executionEnvironment` (*type:* `String.t`, *default:* `nil`) - The sandbox environment to host this Revision. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. + * `healthCheckDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Disables health checking containers during deployment. + * `labels` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate. * `maxInstanceRequestConcurrency` (*type:* `integer()`, *default:* `nil`) - Sets the maximum number of requests that each serving instance can receive. * `revision` (*type:* `String.t`, *default:* `nil`) - The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name. * `scaling` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling.t`, *default:* `nil`) - Scaling settings for this Revision. * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. + * `sessionAffinity` (*type:* `boolean()`, *default:* `nil`) - Optional. Enable session affinity. * `timeout` (*type:* `String.t`, *default:* `nil`) - Max allowed time for an instance to respond to a request. * `volumes` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume.t)`, *default:* `nil`) - A list of Volumes to make available to containers. * `vpcAccess` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess.t`, *default:* `nil`) - VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. @@ -42,11 +44,13 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate do :containers => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t()) | nil, :encryptionKey => String.t() | nil, :executionEnvironment => String.t() | nil, + :healthCheckDisabled => boolean() | nil, :labels => map() | nil, :maxInstanceRequestConcurrency => integer() | nil, :revision => String.t() | nil, :scaling => GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling.t() | nil, :serviceAccount => String.t() | nil, + :sessionAffinity => boolean() | nil, :timeout => String.t() | nil, :volumes => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume.t()) | nil, :vpcAccess => GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess.t() | nil @@ -56,11 +60,13 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate do field(:containers, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Container, type: :list) field(:encryptionKey) field(:executionEnvironment) + field(:healthCheckDisabled) field(:labels, type: :map) field(:maxInstanceRequestConcurrency) field(:revision) field(:scaling, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionScaling) field(:serviceAccount) + field(:sessionAffinity) field(:timeout) field(:volumes, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume, type: :list) field(:vpcAccess, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_run_job_request.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_run_job_request.ex index 153ecf50a6..50d6a13779 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_run_job_request.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_run_job_request.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RunJobRequest do ## Attributes * `etag` (*type:* `String.t`, *default:* `nil`) - A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. + * `overrides` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides.t`, *default:* `nil`) - Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec. * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - Indicates that the request should be validated without actually deleting any resources. """ @@ -29,10 +30,12 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2RunJobRequest do @type t :: %__MODULE__{ :etag => String.t() | nil, + :overrides => GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides.t() | nil, :validateOnly => boolean() | nil } field(:etag) + field(:overrides, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Overrides) field(:validateOnly) end diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service.ex index 8732a821ba..af69112de0 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service.ex @@ -21,27 +21,31 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Service do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run will populate some annotations using 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field follows Kubernetes annotations' namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations + * `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected in new resources. All system annotations in v1 now have a corresponding field in v2 Service. This field follows Kubernetes annotations' namespacing, limits, and rules. * `binaryAuthorization` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2BinaryAuthorization.t`, *default:* `nil`) - Settings for the Binary Authorization feature. * `client` (*type:* `String.t`, *default:* `nil`) - Arbitrary identifier for the API client. * `clientVersion` (*type:* `String.t`, *default:* `nil`) - Arbitrary version identifier for the API client. * `conditions` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t)`, *default:* `nil`) - Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Service does not reach its Serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time. * `creator` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of the authenticated creator. + * `customAudiences` (*type:* `list(String.t)`, *default:* `nil`) - One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences. + * `defaultUriDisabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Disables public resolution of the default URI of this service. * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The deletion time. * `description` (*type:* `String.t`, *default:* `nil`) - User-provided description of the Service. This field currently has a 512-character limit. * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. For a deleted resource, the time after which it will be permamently deleted. * `generation` (*type:* `String.t`, *default:* `nil`) - Output only. A number that monotonically increases every time the user modifies the desired state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`. * `ingress` (*type:* `String.t`, *default:* `nil`) - Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. - * `labels` (*type:* `map()`, *default:* `nil`) - Map of string keys and values that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Service. * `lastModifier` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of the last authenticated modifier. * `latestCreatedRevision` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the last created revision. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. * `latestReadyRevision` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the latest revision that is serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. - * `launchStage` (*type:* `String.t`, *default:* `nil`) - The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. + * `launchStage` (*type:* `String.t`, *default:* `nil`) - The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. * `name` (*type:* `String.t`, *default:* `nil`) - The fully qualified name of this Service. In CreateServiceRequest, this field is ignored, and instead composed from CreateServiceRequest.parent and CreateServiceRequest.service_id. Format: projects/{project}/locations/{location}/services/{service_id} * `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Service currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a `string` instead of an `integer`. * `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Returns true if the Service is currently being acted upon by the system to bring it into the desired state. When a new Service is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Service to the desired serving state. This process is called reconciliation. While reconciliation is in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the Service, or there was an error, and reconciliation failed. This state can be found in `terminal_condition.state`. If reconciliation succeeded, the following fields will match: `traffic` and `traffic_statuses`, `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`. If reconciliation failed, `traffic_statuses`, `observed_generation`, and `latest_ready_revision` will have the state of the last serving revision, or empty for newly created Services. Additional information on the failure can be found in `terminal_condition` and `conditions`. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. + * `scaling` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling.t`, *default:* `nil`) - Optional. Specifies service-level scaling settings * `template` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate.t`, *default:* `nil`) - Required. The template used to create revisions for this Service. * `terminalCondition` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t`, *default:* `nil`) - Output only. The Condition of this Service, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run. * `traffic` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2TrafficTarget.t)`, *default:* `nil`) - Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest `Ready` Revision. @@ -62,6 +66,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Service do :conditions => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t()) | nil, :createTime => DateTime.t() | nil, :creator => String.t() | nil, + :customAudiences => list(String.t()) | nil, + :defaultUriDisabled => boolean() | nil, :deleteTime => DateTime.t() | nil, :description => String.t() | nil, :etag => String.t() | nil, @@ -76,6 +82,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Service do :name => String.t() | nil, :observedGeneration => String.t() | nil, :reconciling => boolean() | nil, + :satisfiesPzs => boolean() | nil, + :scaling => GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling.t() | nil, :template => GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate.t() | nil, :terminalCondition => GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t() | nil, :traffic => list(GoogleApi.Run.V2.Model.GoogleCloudRunV2TrafficTarget.t()) | nil, @@ -93,6 +101,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Service do field(:conditions, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition, type: :list) field(:createTime, as: DateTime) field(:creator) + field(:customAudiences, type: :list) + field(:defaultUriDisabled) field(:deleteTime, as: DateTime) field(:description) field(:etag) @@ -107,6 +117,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Service do field(:name) field(:observedGeneration) field(:reconciling) + field(:satisfiesPzs) + field(:scaling, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling) field(:template, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2RevisionTemplate) field(:terminalCondition, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition) field(:traffic, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2TrafficTarget, type: :list) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service_scaling.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service_scaling.ex new file mode 100644 index 0000000000..eaaac6541a --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_service_scaling.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.GoogleCloudRunV2ServiceScaling do + @moduledoc """ + Scaling settings applied at the service level rather than at the revision level. + + ## Attributes + + * `minInstanceCount` (*type:* `integer()`, *default:* `nil`) - total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :minInstanceCount => integer() | nil + } + + field(:minInstanceCount) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2ServiceScaling 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_task.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task.ex index 020e81c54d..6a0490a6d8 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Task do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - KRM-style annotations for the resource. + * `annotations` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. * `completionTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations. * `conditions` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t)`, *default:* `nil`) - Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state. * `containers` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t)`, *default:* `nil`) - Holds the single container that defines the unit of execution for this task. - * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the task was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations. * `deleteTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. * `encryptionKey` (*type:* `String.t`, *default:* `nil`) - Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. @@ -35,13 +35,16 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Task do * `generation` (*type:* `String.t`, *default:* `nil`) - Output only. A number that monotonically increases every time the user modifies the desired state. * `index` (*type:* `integer()`, *default:* `nil`) - Output only. Index of the Task, unique per execution, and beginning at 0. * `job` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the parent Job. - * `labels` (*type:* `map()`, *default:* `nil`) - KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels Cloud Run will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved. + * `labels` (*type:* `map()`, *default:* `nil`) - Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels * `lastAttemptResult` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskAttemptResult.t`, *default:* `nil`) - Output only. Result of the last attempt of this Task. + * `logUri` (*type:* `String.t`, *default:* `nil`) - Output only. URI where logs for this execution can be found in Cloud Console. * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Number of retries allowed per Task, before marking this Task failed. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The unique name of this Task. * `observedGeneration` (*type:* `String.t`, *default:* `nil`) - Output only. The generation of this Task. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud Run. * `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether the resource's reconciliation is still in progress. See comments in `Job.reconciling` for additional information on reconciliation process in Cloud Run. * `retried` (*type:* `integer()`, *default:* `nil`) - Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. + * `scheduledTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations. * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. * `timeout` (*type:* `String.t`, *default:* `nil`) - Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. @@ -71,11 +74,14 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Task do :labels => map() | nil, :lastAttemptResult => GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskAttemptResult.t() | nil, + :logUri => String.t() | nil, :maxRetries => integer() | nil, :name => String.t() | nil, :observedGeneration => String.t() | nil, :reconciling => boolean() | nil, :retried => integer() | nil, + :satisfiesPzs => boolean() | nil, + :scheduledTime => DateTime.t() | nil, :serviceAccount => String.t() | nil, :startTime => DateTime.t() | nil, :timeout => String.t() | nil, @@ -101,11 +107,14 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Task do field(:job) field(:labels, type: :map) field(:lastAttemptResult, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskAttemptResult) + field(:logUri) field(:maxRetries) field(:name) field(:observedGeneration) field(:reconciling) field(:retried) + field(:satisfiesPzs) + field(:scheduledTime, as: DateTime) field(:serviceAccount) field(:startTime, as: DateTime) field(:timeout) diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task_template.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task_template.ex index 1ada5071aa..286ce8dd95 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task_template.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_task_template.ex @@ -24,9 +24,9 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskTemplate do * `containers` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t)`, *default:* `nil`) - Holds the single container that defines the unit of execution for this task. * `encryptionKey` (*type:* `String.t`, *default:* `nil`) - A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * `executionEnvironment` (*type:* `String.t`, *default:* `nil`) - The execution environment being used to host this Task. - * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Number of retries allowed per Task, before marking this Task failed. + * `maxRetries` (*type:* `integer()`, *default:* `nil`) - Number of retries allowed per Task, before marking this Task failed. Defaults to 3. * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account. - * `timeout` (*type:* `String.t`, *default:* `nil`) - Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. Defaults to 600 seconds. * `volumes` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume.t)`, *default:* `nil`) - A list of Volumes to make available to containers. * `vpcAccess` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess.t`, *default:* `nil`) - VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. """ diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_tcp_socket_action.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_tcp_socket_action.ex index 672efa1d19..ed35632ada 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_tcp_socket_action.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_tcp_socket_action.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2TCPSocketAction do ## Attributes - * `port` (*type:* `integer()`, *default:* `nil`) - Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080. + * `port` (*type:* `integer()`, *default:* `nil`) - Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_volume.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_volume.ex index 7d40245c5b..71de817f23 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_volume.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_volume.ex @@ -22,20 +22,29 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume do ## Attributes * `cloudSqlInstance` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2CloudSqlInstance.t`, *default:* `nil`) - For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. + * `emptyDir` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource.t`, *default:* `nil`) - Ephemeral storage used as a shared volume. + * `gcs` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource.t`, *default:* `nil`) - Persistent storage backed by a Google Cloud Storage bucket. * `name` (*type:* `String.t`, *default:* `nil`) - Required. Volume's name. - * `secret` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2SecretVolumeSource.t`, *default:* `nil`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `nfs` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource.t`, *default:* `nil`) - For NFS Voumes, contains the path to the nfs Volume + * `secret` (*type:* `GoogleApi.Run.V2.Model.GoogleCloudRunV2SecretVolumeSource.t`, *default:* `nil`) - Secret represents a secret that should populate this volume. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :cloudSqlInstance => GoogleApi.Run.V2.Model.GoogleCloudRunV2CloudSqlInstance.t() | nil, + :emptyDir => GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource.t() | nil, + :gcs => GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource.t() | nil, :name => String.t() | nil, + :nfs => GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource.t() | nil, :secret => GoogleApi.Run.V2.Model.GoogleCloudRunV2SecretVolumeSource.t() | nil } field(:cloudSqlInstance, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2CloudSqlInstance) + field(:emptyDir, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2EmptyDirVolumeSource) + field(:gcs, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2GCSVolumeSource) field(:name) + field(:nfs, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2NFSVolumeSource) field(:secret, as: GoogleApi.Run.V2.Model.GoogleCloudRunV2SecretVolumeSource) end diff --git a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_vpc_access.ex b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_vpc_access.ex index 9fa8d78bbd..5252ea037b 100644 --- a/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_vpc_access.ex +++ b/clients/run/lib/google_api/run/v2/model/google_cloud_run_v2_vpc_access.ex @@ -17,23 +17,31 @@ defmodule GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess do @moduledoc """ - VPC Access settings. For more information on creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, visit https://cloud.google.com/run/docs/configuring/connecting-vpc + VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. ## Attributes - * `connector` (*type:* `String.t`, *default:* `nil`) - VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. - * `egress` (*type:* `String.t`, *default:* `nil`) - Traffic VPC egress settings. + * `connector` (*type:* `String.t`, *default:* `nil`) - VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors. + * `egress` (*type:* `String.t`, *default:* `nil`) - Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY. + * `networkInterfaces` (*type:* `list(GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface.t)`, *default:* `nil`) - Direct VPC egress settings. Currently only single network interface is supported. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :connector => String.t() | nil, - :egress => String.t() | nil + :egress => String.t() | nil, + :networkInterfaces => + list(GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface.t()) | nil } field(:connector) field(:egress) + + field(:networkInterfaces, + as: GoogleApi.Run.V2.Model.GoogleCloudRunV2NetworkInterface, + type: :list + ) end defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess do diff --git a/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_approval_config.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_approval_config.ex new file mode 100644 index 0000000000..2e0f22610c --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_approval_config.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.GoogleDevtoolsCloudbuildV1ApprovalConfig do + @moduledoc """ + ApprovalConfig describes configuration for manual approval of a build. + + ## Attributes + + * `approvalRequired` (*type:* `boolean()`, *default:* `nil`) - Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approvalRequired => boolean() | nil + } + + field(:approvalRequired) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig 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_devtools_cloudbuild_v1_approval_result.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_approval_result.ex new file mode 100644 index 0000000000..3b026e86ac --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_approval_result.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.GoogleDevtoolsCloudbuildV1ApprovalResult do + @moduledoc """ + ApprovalResult describes the decision and associated metadata of a manual approval of a build. + + ## Attributes + + * `approvalTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the approval decision was made. + * `approverAccount` (*type:* `String.t`, *default:* `nil`) - Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called. + * `comment` (*type:* `String.t`, *default:* `nil`) - Optional. An optional comment for this manual approval result. + * `decision` (*type:* `String.t`, *default:* `nil`) - Required. The decision of this manual approval. + * `url` (*type:* `String.t`, *default:* `nil`) - Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approvalTime => DateTime.t() | nil, + :approverAccount => String.t() | nil, + :comment => String.t() | nil, + :decision => String.t() | nil, + :url => String.t() | nil + } + + field(:approvalTime, as: DateTime) + field(:approverAccount) + field(:comment) + field(:decision) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult 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_devtools_cloudbuild_v1_artifact_objects.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_artifact_objects.ex new file mode 100644 index 0000000000..a2ec6408ca --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_artifact_objects.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects do + @moduledoc """ + Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. + + ## Attributes + + * `location` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. + * `paths` (*type:* `list(String.t)`, *default:* `nil`) - Path globs used to match files in the build's workspace. + * `timing` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing all artifact objects. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :location => String.t() | nil, + :paths => list(String.t()) | nil, + :timing => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil + } + + field(:location) + field(:paths, type: :list) + field(:timing, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects 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_devtools_cloudbuild_v1_artifacts.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_artifacts.ex new file mode 100644 index 0000000000..7e4604be71 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_artifacts.ex @@ -0,0 +1,71 @@ +# 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.GoogleDevtoolsCloudbuildV1Artifacts do + @moduledoc """ + Artifacts produced by a build that should be uploaded upon successful completion of all build steps. + + ## Attributes + + * `images` (*type:* `list(String.t)`, *default:* `nil`) - A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. + * `mavenArtifacts` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.t)`, *default:* `nil`) - A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + * `npmPackages` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage.t)`, *default:* `nil`) - A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE. + * `objects` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.t`, *default:* `nil`) - A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. + * `pythonPackages` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage.t)`, *default:* `nil`) - A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :images => list(String.t()) | nil, + :mavenArtifacts => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.t()) | nil, + :npmPackages => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage.t()) | nil, + :objects => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects.t() | nil, + :pythonPackages => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage.t()) | nil + } + + field(:images, type: :list) + + field(:mavenArtifacts, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact, + type: :list + ) + + field(:npmPackages, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage, type: :list) + + field(:objects, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ArtifactObjects) + + field(:pythonPackages, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts 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_devtools_cloudbuild_v1_build.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build.ex new file mode 100644 index 0000000000..084f77587c --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build.ex @@ -0,0 +1,136 @@ +# 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.GoogleDevtoolsCloudbuildV1Build do + @moduledoc """ + A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. + + ## Attributes + + * `approval` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval.t`, *default:* `nil`) - Output only. Describes this build's approval configuration, status, and result. + * `artifacts` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts.t`, *default:* `nil`) - Artifacts produced by the build that should be uploaded upon successful completion of all build steps. + * `availableSecrets` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets.t`, *default:* `nil`) - Secrets and secret environment variables. + * `buildTriggerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the request to create the build was received. + * `failureInfo` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo.t`, *default:* `nil`) - Output only. Contains information about the build when status=FAILURE. + * `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. Unique identifier of the build. + * `images` (*type:* `list(String.t)`, *default:* `nil`) - A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the `Build` resource's results field. If any of the images fail to be pushed, the build status is marked `FAILURE`. + * `logUrl` (*type:* `String.t`, *default:* `nil`) - Output only. URL to logs for this build in Google Cloud Console. + * `logsBucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service. + * `options` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions.t`, *default:* `nil`) - Special options for this build. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. ID of the project. + * `queueTtl` (*type:* `String.t`, *default:* `nil`) - TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time. + * `results` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results.t`, *default:* `nil`) - Output only. Results of the build. + * `secrets` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret.t)`, *default:* `nil`) - Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. + * `source` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source.t`, *default:* `nil`) - The location of the source files to build. + * `sourceProvenance` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.t`, *default:* `nil`) - Output only. A permanent fixed identifier for source. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was started. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build. + * `statusDetail` (*type:* `String.t`, *default:* `nil`) - Output only. Customer-readable message about the current status. + * `steps` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep.t)`, *default:* `nil`) - Required. The operations to be performed on the workspace. + * `substitutions` (*type:* `map()`, *default:* `nil`) - Substitutions data for `Build` resource. + * `tags` (*type:* `list(String.t)`, *default:* `nil`) - Tags for annotation of a `Build`. These are not docker tags. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is 60 minutes. + * `timing` (*type:* `%{optional(String.t) => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t}`, *default:* `nil`) - Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included. + * `warnings` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning.t)`, *default:* `nil`) - Output only. Non-fatal problems encountered during the execution of the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :approval => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval.t() | nil, + :artifacts => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts.t() | nil, + :availableSecrets => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets.t() | nil, + :buildTriggerId => String.t() | nil, + :createTime => DateTime.t() | nil, + :failureInfo => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo.t() | nil, + :finishTime => DateTime.t() | nil, + :id => String.t() | nil, + :images => list(String.t()) | nil, + :logUrl => String.t() | nil, + :logsBucket => String.t() | nil, + :name => String.t() | nil, + :options => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions.t() | nil, + :projectId => String.t() | nil, + :queueTtl => String.t() | nil, + :results => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results.t() | nil, + :secrets => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret.t()) | nil, + :serviceAccount => String.t() | nil, + :source => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source.t() | nil, + :sourceProvenance => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.t() | nil, + :startTime => DateTime.t() | nil, + :status => String.t() | nil, + :statusDetail => String.t() | nil, + :steps => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep.t()) | nil, + :substitutions => map() | nil, + :tags => list(String.t()) | nil, + :timeout => String.t() | nil, + :timing => + %{ + optional(String.t()) => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() + } + | nil, + :warnings => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning.t()) | nil + } + + field(:approval, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval) + field(:artifacts, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Artifacts) + field(:availableSecrets, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets) + field(:buildTriggerId) + field(:createTime, as: DateTime) + field(:failureInfo, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo) + field(:finishTime, as: DateTime) + field(:id) + field(:images, type: :list) + field(:logUrl) + field(:logsBucket) + field(:name) + field(:options, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions) + field(:projectId) + field(:queueTtl) + field(:results, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results) + field(:secrets, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret, type: :list) + field(:serviceAccount) + field(:source, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source) + field(:sourceProvenance, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance) + field(:startTime, as: DateTime) + field(:status) + field(:statusDetail) + field(:steps, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep, type: :list) + field(:substitutions, type: :map) + field(:tags, type: :list) + field(:timeout) + field(:timing, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan, type: :map) + field(:warnings, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build 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_devtools_cloudbuild_v1_build_approval.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_approval.ex new file mode 100644 index 0000000000..2292412611 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_approval.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval do + @moduledoc """ + BuildApproval describes a build's approval configuration, state, and result. + + ## Attributes + + * `config` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.t`, *default:* `nil`) - Output only. Configuration for manual approval of this build. + * `result` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.t`, *default:* `nil`) - Output only. Result of manual approval for this Build. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of this build's approval. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :config => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig.t() | nil, + :result => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult.t() | nil, + :state => String.t() | nil + } + + field(:config, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalConfig) + field(:result, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ApprovalResult) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildApproval 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_devtools_cloudbuild_v1_build_operation_metadata.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_operation_metadata.ex new file mode 100644 index 0000000000..27c1a3156b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_operation_metadata.ex @@ -0,0 +1,48 @@ +# 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.GoogleDevtoolsCloudbuildV1BuildOperationMetadata do + @moduledoc """ + Metadata for build operations. + + ## Attributes + + * `build` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build.t`, *default:* `nil`) - The build that the operation is tracking. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :build => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build.t() | nil + } + + field(:build, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Build) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOperationMetadata 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_devtools_cloudbuild_v1_build_options.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_options.ex new file mode 100644 index 0000000000..dac93cf0ee --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_options.ex @@ -0,0 +1,88 @@ +# 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.GoogleDevtoolsCloudbuildV1BuildOptions do + @moduledoc """ + Optional arguments to enable specific features of builds. + + ## Attributes + + * `automapSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to include built-in and custom substitutions as env variables for all build steps. + * `defaultLogsBucketBehavior` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify how default logs buckets are setup. + * `diskSizeGb` (*type:* `String.t`, *default:* `nil`) - Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 2000GB; builds that request more than the maximum are rejected with an error. + * `dynamicSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file. + * `env` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". + * `logStreamingOption` (*type:* `String.t`, *default:* `nil`) - Option to define build log streaming behavior to Cloud Storage. + * `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored. + * `machineType` (*type:* `String.t`, *default:* `nil`) - Compute Engine machine type on which to run the build. + * `pool` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption.t`, *default:* `nil`) - Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. + * `requestedVerifyOption` (*type:* `String.t`, *default:* `nil`) - Requested verifiability options. + * `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build. + * `sourceProvenanceHash` (*type:* `list(String.t)`, *default:* `nil`) - Requested hash for SourceProvenance. + * `substitutionOption` (*type:* `String.t`, *default:* `nil`) - Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file. + * `volumes` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume.t)`, *default:* `nil`) - Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration. + * `workerPool` (*type:* `String.t`, *default:* `nil`) - This field deprecated; please use `pool.name` instead. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :automapSubstitutions => boolean() | nil, + :defaultLogsBucketBehavior => String.t() | nil, + :diskSizeGb => String.t() | nil, + :dynamicSubstitutions => boolean() | nil, + :env => list(String.t()) | nil, + :logStreamingOption => String.t() | nil, + :logging => String.t() | nil, + :machineType => String.t() | nil, + :pool => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption.t() | nil, + :requestedVerifyOption => String.t() | nil, + :secretEnv => list(String.t()) | nil, + :sourceProvenanceHash => list(String.t()) | nil, + :substitutionOption => String.t() | nil, + :volumes => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume.t()) | nil, + :workerPool => String.t() | nil + } + + field(:automapSubstitutions) + field(:defaultLogsBucketBehavior) + field(:diskSizeGb) + field(:dynamicSubstitutions) + field(:env, type: :list) + field(:logStreamingOption) + field(:logging) + field(:machineType) + field(:pool, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption) + field(:requestedVerifyOption) + field(:secretEnv, type: :list) + field(:sourceProvenanceHash, type: :list) + field(:substitutionOption) + field(:volumes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume, type: :list) + field(:workerPool) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildOptions 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_devtools_cloudbuild_v1_build_step.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_step.ex new file mode 100644 index 0000000000..524b31ca1e --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_build_step.ex @@ -0,0 +1,97 @@ +# 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.GoogleDevtoolsCloudbuildV1BuildStep do + @moduledoc """ + A step in the build pipeline. + + ## Attributes + + * `allowExitCodes` (*type:* `list(integer())`, *default:* `nil`) - Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence. + * `allowFailure` (*type:* `boolean()`, *default:* `nil`) - Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field. + * `args` (*type:* `list(String.t)`, *default:* `nil`) - A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments. + * `automapSubstitutions` (*type:* `boolean()`, *default:* `nil`) - Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption. + * `dir` (*type:* `String.t`, *default:* `nil`) - Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution. + * `entrypoint` (*type:* `String.t`, *default:* `nil`) - Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. + * `env` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". + * `exitCode` (*type:* `integer()`, *default:* `nil`) - Output only. Return code from running the step. + * `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step. + * `pullTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pulling this build step's builder image only. + * `script` (*type:* `String.t`, *default:* `nil`) - A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. + * `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. + * `status` (*type:* `String.t`, *default:* `nil`) - Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses. + * `timeout` (*type:* `String.t`, *default:* `nil`) - Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. + * `timing` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for executing this build step. + * `volumes` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume.t)`, *default:* `nil`) - List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration. + * `waitFor` (*type:* `list(String.t)`, *default:* `nil`) - The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :allowExitCodes => list(integer()) | nil, + :allowFailure => boolean() | nil, + :args => list(String.t()) | nil, + :automapSubstitutions => boolean() | nil, + :dir => String.t() | nil, + :entrypoint => String.t() | nil, + :env => list(String.t()) | nil, + :exitCode => integer() | nil, + :id => String.t() | nil, + :name => String.t() | nil, + :pullTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :script => String.t() | nil, + :secretEnv => list(String.t()) | nil, + :status => String.t() | nil, + :timeout => String.t() | nil, + :timing => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :volumes => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume.t()) | nil, + :waitFor => list(String.t()) | nil + } + + field(:allowExitCodes, type: :list) + field(:allowFailure) + field(:args, type: :list) + field(:automapSubstitutions) + field(:dir) + field(:entrypoint) + field(:env, type: :list) + field(:exitCode) + field(:id) + field(:name) + field(:pullTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:script) + field(:secretEnv, type: :list) + field(:status) + field(:timeout) + field(:timing, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:volumes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume, type: :list) + field(:waitFor, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuildStep 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_devtools_cloudbuild_v1_built_image.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_built_image.ex new file mode 100644 index 0000000000..ca6eb157b5 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_built_image.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage do + @moduledoc """ + An image built by the pipeline. + + ## Attributes + + * `digest` (*type:* `String.t`, *default:* `nil`) - Docker Registry 2.0 digest. + * `name` (*type:* `String.t`, *default:* `nil`) - Name used to push the container image to Google Container Registry, as presented to `docker push`. + * `pushTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified image. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :digest => String.t() | nil, + :name => String.t() | nil, + :pushTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil + } + + field(:digest) + field(:name) + field(:pushTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage 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_devtools_cloudbuild_v1_connected_repository.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_connected_repository.ex new file mode 100644 index 0000000000..81fbdb07e4 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_connected_repository.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository do + @moduledoc """ + Location of the source in a 2nd-gen Google Cloud Build repository resource. + + ## Attributes + + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. + * `repository` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`. + * `revision` (*type:* `String.t`, *default:* `nil`) - The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dir => String.t() | nil, + :repository => String.t() | nil, + :revision => String.t() | nil + } + + field(:dir) + field(:repository) + field(:revision) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository 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_devtools_cloudbuild_v1_failure_info.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_failure_info.ex new file mode 100644 index 0000000000..db7588fa78 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_failure_info.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo do + @moduledoc """ + A fatal problem encountered during the execution of the build. + + ## Attributes + + * `detail` (*type:* `String.t`, *default:* `nil`) - Explains the failure issue in more detail using hard-coded text. + * `type` (*type:* `String.t`, *default:* `nil`) - The name of the failure. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :detail => String.t() | nil, + :type => String.t() | nil + } + + field(:detail) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FailureInfo 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_devtools_cloudbuild_v1_file_hashes.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_file_hashes.ex new file mode 100644 index 0000000000..4f47c46f5b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_file_hashes.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.GoogleDevtoolsCloudbuildV1FileHashes do + @moduledoc """ + Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. + + ## Attributes + + * `fileHash` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash.t)`, *default:* `nil`) - Collection of file hashes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHash => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash.t()) | nil + } + + field(:fileHash, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes 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_devtools_cloudbuild_v1_git_source.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_git_source.ex new file mode 100644 index 0000000000..eb80df93ef --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_git_source.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource do + @moduledoc """ + Location of the source in any accessible Git repository. + + ## Attributes + + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. + * `revision` (*type:* `String.t`, *default:* `nil`) - The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch. + * `url` (*type:* `String.t`, *default:* `nil`) - Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dir => String.t() | nil, + :revision => String.t() | nil, + :url => String.t() | nil + } + + field(:dir) + field(:revision) + field(:url) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource 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_devtools_cloudbuild_v1_hash.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_hash.ex new file mode 100644 index 0000000000..aebd346276 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_hash.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash do + @moduledoc """ + Container message for hash values. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - The type of hash that was performed. + * `value` (*type:* `String.t`, *default:* `nil`) - The hash value. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil, + :value => String.t() | nil + } + + field(:type) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Hash 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_devtools_cloudbuild_v1_inline_secret.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_inline_secret.ex new file mode 100644 index 0000000000..cbc4a39b12 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_inline_secret.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret do + @moduledoc """ + Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value. + + ## Attributes + + * `envMap` (*type:* `map()`, *default:* `nil`) - Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets. + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/* + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :envMap => map() | nil, + :kmsKeyName => String.t() | nil + } + + field(:envMap, type: :map) + field(:kmsKeyName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret 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_devtools_cloudbuild_v1_maven_artifact.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_maven_artifact.ex new file mode 100644 index 0000000000..1d16bd528b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_maven_artifact.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.GoogleDevtoolsCloudbuildV1MavenArtifact do + @moduledoc """ + A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + + ## Attributes + + * `artifactId` (*type:* `String.t`, *default:* `nil`) - Maven `artifactId` value used when uploading the artifact to Artifact Registry. + * `groupId` (*type:* `String.t`, *default:* `nil`) - Maven `groupId` value used when uploading the artifact to Artifact Registry. + * `path` (*type:* `String.t`, *default:* `nil`) - Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + * `version` (*type:* `String.t`, *default:* `nil`) - Maven `version` value used when uploading the artifact to Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :artifactId => String.t() | nil, + :groupId => String.t() | nil, + :path => String.t() | nil, + :repository => String.t() | nil, + :version => String.t() | nil + } + + field(:artifactId) + field(:groupId) + field(:path) + field(:repository) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1MavenArtifact 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_devtools_cloudbuild_v1_npm_package.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_npm_package.ex new file mode 100644 index 0000000000..375de6a2e8 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_npm_package.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage do + @moduledoc """ + Npm package to upload to Artifact Registry upon successful completion of all build steps. + + ## Attributes + + * `packagePath` (*type:* `String.t`, *default:* `nil`) - Path to the package.json. e.g. workspace/path/to/package + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :packagePath => String.t() | nil, + :repository => String.t() | nil + } + + field(:packagePath) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1NpmPackage 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_devtools_cloudbuild_v1_pool_option.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_pool_option.ex new file mode 100644 index 0000000000..7e5eda8e2b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_pool_option.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.GoogleDevtoolsCloudbuildV1PoolOption do + @moduledoc """ + Details about how a build should be executed on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil + } + + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PoolOption 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_devtools_cloudbuild_v1_python_package.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_python_package.ex new file mode 100644 index 0000000000..2363a9bec3 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_python_package.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage do + @moduledoc """ + Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + + ## Attributes + + * `paths` (*type:* `list(String.t)`, *default:* `nil`) - Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + * `repository` (*type:* `String.t`, *default:* `nil`) - Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :paths => list(String.t()) | nil, + :repository => String.t() | nil + } + + field(:paths, type: :list) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1PythonPackage 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_devtools_cloudbuild_v1_repo_source.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_repo_source.ex new file mode 100644 index 0000000000..8a0de13248 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_repo_source.ex @@ -0,0 +1,67 @@ +# 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.GoogleDevtoolsCloudbuildV1RepoSource do + @moduledoc """ + Location of the source in a Google Cloud Source Repository. + + ## Attributes + + * `branchName` (*type:* `String.t`, *default:* `nil`) - Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax + * `commitSha` (*type:* `String.t`, *default:* `nil`) - Explicit commit SHA to build. + * `dir` (*type:* `String.t`, *default:* `nil`) - Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution. + * `invertRegex` (*type:* `boolean()`, *default:* `nil`) - Only trigger a build if the revision regex does NOT match the revision regex. + * `projectId` (*type:* `String.t`, *default:* `nil`) - ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. + * `repoName` (*type:* `String.t`, *default:* `nil`) - Name of the Cloud Source Repository. + * `substitutions` (*type:* `map()`, *default:* `nil`) - Substitutions to use in a triggered build. Should only be used with RunBuildTrigger + * `tagName` (*type:* `String.t`, *default:* `nil`) - Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :branchName => String.t() | nil, + :commitSha => String.t() | nil, + :dir => String.t() | nil, + :invertRegex => boolean() | nil, + :projectId => String.t() | nil, + :repoName => String.t() | nil, + :substitutions => map() | nil, + :tagName => String.t() | nil + } + + field(:branchName) + field(:commitSha) + field(:dir) + field(:invertRegex) + field(:projectId) + field(:repoName) + field(:substitutions, type: :map) + field(:tagName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource 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_devtools_cloudbuild_v1_results.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_results.ex new file mode 100644 index 0000000000..d7e11bbc98 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_results.ex @@ -0,0 +1,86 @@ +# 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.GoogleDevtoolsCloudbuildV1Results do + @moduledoc """ + Artifacts created by the build pipeline. + + ## Attributes + + * `artifactManifest` (*type:* `String.t`, *default:* `nil`) - Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. + * `artifactTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Time to push all non-container artifacts to Cloud Storage. + * `buildStepImages` (*type:* `list(String.t)`, *default:* `nil`) - List of build step digests, in the order corresponding to build step indices. + * `buildStepOutputs` (*type:* `list(String.t)`, *default:* `nil`) - List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. + * `images` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage.t)`, *default:* `nil`) - Container images that were built as a part of the build. + * `mavenArtifacts` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.t)`, *default:* `nil`) - Maven artifacts uploaded to Artifact Registry at the end of the build. + * `npmPackages` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.t)`, *default:* `nil`) - Npm packages uploaded to Artifact Registry at the end of the build. + * `numArtifacts` (*type:* `String.t`, *default:* `nil`) - Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. + * `pythonPackages` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.t)`, *default:* `nil`) - Python artifacts uploaded to Artifact Registry at the end of the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :artifactManifest => String.t() | nil, + :artifactTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :buildStepImages => list(String.t()) | nil, + :buildStepOutputs => list(String.t()) | nil, + :images => list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage.t()) | nil, + :mavenArtifacts => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.t()) | nil, + :npmPackages => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.t()) | nil, + :numArtifacts => String.t() | nil, + :pythonPackages => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.t()) | nil + } + + field(:artifactManifest) + field(:artifactTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:buildStepImages, type: :list) + field(:buildStepOutputs, type: :list) + field(:images, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1BuiltImage, type: :list) + + field(:mavenArtifacts, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact, + type: :list + ) + + field(:npmPackages, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage, + type: :list + ) + + field(:numArtifacts) + + field(:pythonPackages, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Results 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_devtools_cloudbuild_v1_secret.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secret.ex new file mode 100644 index 0000000000..79ef941d8f --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secret.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret do + @moduledoc """ + Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. + + ## Attributes + + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Cloud KMS key name to use to decrypt these envs. + * `secretEnv` (*type:* `map()`, *default:* `nil`) - Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kmsKeyName => String.t() | nil, + :secretEnv => map() | nil + } + + field(:kmsKeyName) + field(:secretEnv, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secret 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_devtools_cloudbuild_v1_secret_manager_secret.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secret_manager_secret.ex new file mode 100644 index 0000000000..48a3686814 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secret_manager_secret.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret do + @moduledoc """ + Pairs a secret environment variable with a SecretVersion in Secret Manager. + + ## Attributes + + * `env` (*type:* `String.t`, *default:* `nil`) - Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. + * `versionName` (*type:* `String.t`, *default:* `nil`) - Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/* + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :env => String.t() | nil, + :versionName => String.t() | nil + } + + field(:env) + field(:versionName) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret 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_devtools_cloudbuild_v1_secrets.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secrets.ex new file mode 100644 index 0000000000..57934ab4d9 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_secrets.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.GoogleDevtoolsCloudbuildV1Secrets do + @moduledoc """ + Secrets and secret environment variables. + + ## Attributes + + * `inline` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret.t)`, *default:* `nil`) - Secrets encrypted with KMS key and the associated secret environment variable. + * `secretManager` (*type:* `list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.t)`, *default:* `nil`) - Secrets in Secret Manager and associated secret environment variable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inline => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret.t()) | nil, + :secretManager => + list(GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret.t()) | nil + } + + field(:inline, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1InlineSecret, type: :list) + + field(:secretManager, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SecretManagerSecret, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Secrets 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_devtools_cloudbuild_v1_source.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_source.ex new file mode 100644 index 0000000000..7fd94bfafc --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_source.ex @@ -0,0 +1,67 @@ +# 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.GoogleDevtoolsCloudbuildV1Source do + @moduledoc """ + Location of the source in a supported storage service. + + ## Attributes + + * `connectedRepository` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t`, *default:* `nil`) - Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource. + * `gitSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource.t`, *default:* `nil`) - If provided, get the source from this Git repository. + * `repoSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource.t`, *default:* `nil`) - If provided, get the source from this location in a Cloud Source Repository. + * `storageSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource.t`, *default:* `nil`) - If provided, get the source from this location in Cloud Storage. + * `storageSourceManifest` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t`, *default:* `nil`) - If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connectedRepository => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t() | nil, + :gitSource => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource.t() | nil, + :repoSource => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource.t() | nil, + :storageSource => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource.t() | nil, + :storageSourceManifest => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t() | nil + } + + field(:connectedRepository, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository + ) + + field(:gitSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource) + field(:repoSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource) + field(:storageSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource) + + field(:storageSourceManifest, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Source 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_devtools_cloudbuild_v1_source_provenance.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_source_provenance.ex new file mode 100644 index 0000000000..874c386d6d --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_source_provenance.ex @@ -0,0 +1,79 @@ +# 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.GoogleDevtoolsCloudbuildV1SourceProvenance do + @moduledoc """ + Provenance of the source. Ways to find the original source, or verify that some source was used for this build. + + ## Attributes + + * `fileHashes` (*type:* `%{optional(String.t) => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t}`, *default:* `nil`) - Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file. + * `resolvedConnectedRepository` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t`, *default:* `nil`) - Output only. A copy of the build's `source.connected_repository`, if exists, with any revisions resolved. + * `resolvedGitSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource.t`, *default:* `nil`) - Output only. A copy of the build's `source.git_source`, if exists, with any revisions resolved. + * `resolvedRepoSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource.t`, *default:* `nil`) - A copy of the build's `source.repo_source`, if exists, with any revisions resolved. + * `resolvedStorageSource` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource.t`, *default:* `nil`) - A copy of the build's `source.storage_source`, if exists, with any generations resolved. + * `resolvedStorageSourceManifest` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t`, *default:* `nil`) - A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => + %{ + optional(String.t()) => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() + } + | nil, + :resolvedConnectedRepository => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository.t() | nil, + :resolvedGitSource => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource.t() | nil, + :resolvedRepoSource => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource.t() | nil, + :resolvedStorageSource => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource.t() | nil, + :resolvedStorageSourceManifest => + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes, type: :map) + + field(:resolvedConnectedRepository, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1ConnectedRepository + ) + + field(:resolvedGitSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1GitSource) + field(:resolvedRepoSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1RepoSource) + + field(:resolvedStorageSource, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource) + + field(:resolvedStorageSourceManifest, + as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1SourceProvenance 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_devtools_cloudbuild_v1_storage_source.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_storage_source.ex new file mode 100644 index 0000000000..c5f470250d --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_storage_source.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.GoogleDevtoolsCloudbuildV1StorageSource do + @moduledoc """ + Location of the source in an archive file in Cloud Storage. + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * `generation` (*type:* `String.t`, *default:* `nil`) - Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. + * `object` (*type:* `String.t`, *default:* `nil`) - Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. + * `sourceFetcher` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify the tool to fetch the source file for the build. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :generation => String.t() | nil, + :object => String.t() | nil, + :sourceFetcher => String.t() | nil + } + + field(:bucket) + field(:generation) + field(:object) + field(:sourceFetcher) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSource 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_devtools_cloudbuild_v1_storage_source_manifest.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_storage_source_manifest.ex new file mode 100644 index 0000000000..ff7009b76b --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_storage_source_manifest.ex @@ -0,0 +1,54 @@ +# 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.GoogleDevtoolsCloudbuildV1StorageSourceManifest do + @moduledoc """ + Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * `generation` (*type:* `String.t`, *default:* `nil`) - Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. + * `object` (*type:* `String.t`, *default:* `nil`) - Cloud Storage object containing the source manifest. This object must be a JSON file. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :generation => String.t() | nil, + :object => String.t() | nil + } + + field(:bucket) + field(:generation) + field(:object) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1StorageSourceManifest 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_devtools_cloudbuild_v1_time_span.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_time_span.ex new file mode 100644 index 0000000000..b8950b60c6 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_time_span.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan do + @moduledoc """ + Start and end times for a build execution phase. + + ## Attributes + + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - End of time span. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Start of time span. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :endTime => DateTime.t() | nil, + :startTime => DateTime.t() | nil + } + + field(:endTime, as: DateTime) + field(:startTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan 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_devtools_cloudbuild_v1_uploaded_maven_artifact.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_maven_artifact.ex new file mode 100644 index 0000000000..b069abb097 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_maven_artifact.ex @@ -0,0 +1,54 @@ +# 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.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact do + @moduledoc """ + A Maven artifact uploaded using the MavenArtifact directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the Maven Artifact. + * `pushTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded artifact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedMavenArtifact 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_devtools_cloudbuild_v1_uploaded_npm_package.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_npm_package.ex new file mode 100644 index 0000000000..75fa3aaca6 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_npm_package.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage do + @moduledoc """ + An npm package uploaded to Artifact Registry using the NpmPackage directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the npm package. + * `pushTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded npm package. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedNpmPackage 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_devtools_cloudbuild_v1_uploaded_python_package.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_python_package.ex new file mode 100644 index 0000000000..4581d033aa --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_uploaded_python_package.ex @@ -0,0 +1,54 @@ +# 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.GoogleDevtoolsCloudbuildV1UploadedPythonPackage do + @moduledoc """ + Artifact uploaded using the PythonPackage directive. + + ## Attributes + + * `fileHashes` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t`, *default:* `nil`) - Hash types and values of the Python Artifact. + * `pushTiming` (*type:* `GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t`, *default:* `nil`) - Output only. Stores timing information for pushing the specified artifact. + * `uri` (*type:* `String.t`, *default:* `nil`) - URI of the uploaded artifact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileHashes => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes.t() | nil, + :pushTiming => GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan.t() | nil, + :uri => String.t() | nil + } + + field(:fileHashes, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1FileHashes) + field(:pushTiming, as: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1TimeSpan) + field(:uri) +end + +defimpl Poison.Decoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1UploadedPythonPackage 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_devtools_cloudbuild_v1_volume.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_volume.ex new file mode 100644 index 0000000000..d47c16de4c --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_volume.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume do + @moduledoc """ + Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. + * `path` (*type:* `String.t`, *default:* `nil`) - Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :path => String.t() | nil + } + + field(:name) + field(:path) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Volume 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_devtools_cloudbuild_v1_warning.ex b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_warning.ex new file mode 100644 index 0000000000..fa01de18c9 --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_devtools_cloudbuild_v1_warning.ex @@ -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.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning do + @moduledoc """ + A non-fatal problem encountered during the execution of the build. + + ## Attributes + + * `priority` (*type:* `String.t`, *default:* `nil`) - The priority for this warning. + * `text` (*type:* `String.t`, *default:* `nil`) - Explanation of the warning generated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :priority => String.t() | nil, + :text => String.t() | nil + } + + field(:priority) + field(:text) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleDevtoolsCloudbuildV1Warning 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_iam_v1_binding.ex b/clients/run/lib/google_api/run/v2/model/google_iam_v1_binding.ex index 07e258f2d4..644975b4ef 100644 --- a/clients/run/lib/google_api/run/v2/model/google_iam_v1_binding.ex +++ b/clients/run/lib/google_api/run/v2/model/google_iam_v1_binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Run.V2.Model.GoogleIamV1Binding do ## Attributes * `condition` (*type:* `GoogleApi.Run.V2.Model.GoogleTypeExpr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v2/model/google_iam_v1_policy.ex b/clients/run/lib/google_api/run/v2/model/google_iam_v1_policy.ex index f1e66d990a..48628e8071 100644 --- a/clients/run/lib/google_api/run/v2/model/google_iam_v1_policy.ex +++ b/clients/run/lib/google_api/run/v2/model/google_iam_v1_policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleIamV1Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/run/lib/google_api/run/v2/model/google_longrunning_operation.ex b/clients/run/lib/google_api/run/v2/model/google_longrunning_operation.ex index 7a972b6f39..1546ed4dfe 100644 --- a/clients/run/lib/google_api/run/v2/model/google_longrunning_operation.ex +++ b/clients/run/lib/google_api/run/v2/model/google_longrunning_operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Run.V2.Model.GoogleLongrunningOperation do * `error` (*type:* `GoogleApi.Run.V2.Model.GoogleRpcStatus.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/run/lib/google_api/run/v2/model/google_longrunning_wait_operation_request.ex b/clients/run/lib/google_api/run/v2/model/google_longrunning_wait_operation_request.ex new file mode 100644 index 0000000000..c0cdd471ee --- /dev/null +++ b/clients/run/lib/google_api/run/v2/model/google_longrunning_wait_operation_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.GoogleLongrunningWaitOperationRequest do + @moduledoc """ + The request message for Operations.WaitOperation. + + ## Attributes + + * `timeout` (*type:* `String.t`, *default:* `nil`) - The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :timeout => String.t() | nil + } + + field(:timeout) +end + +defimpl Poison.Decoder, for: GoogleApi.Run.V2.Model.GoogleLongrunningWaitOperationRequest do + def decode(value, options) do + GoogleApi.Run.V2.Model.GoogleLongrunningWaitOperationRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Run.V2.Model.GoogleLongrunningWaitOperationRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end