diff --git a/clients/app_engine/README.md b/clients/app_engine/README.md index 02c139b2f9..908486cf70 100644 --- a/clients/app_engine/README.md +++ b/clients/app_engine/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_app_engine, "~> 0.42"}] + [{:google_api_app_engine, "~> 0.43"}] end ``` diff --git a/clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex b/clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex index 5172e489cb..b219fa458d 100644 --- a/clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex +++ b/clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex @@ -112,6 +112,91 @@ defmodule GoogleApi.AppEngine.V1.Api.Projects do ) end + @doc """ + Deletes the specified service and all enclosed versions. + + ## Parameters + + * `connection` (*type:* `GoogleApi.AppEngine.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Name of the resource requested. Example: apps/myapp/services/default. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `applications_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 + * `:"$.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.AppEngine.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec appengine_projects_locations_applications_services_delete( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.AppEngine.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def appengine_projects_locations_applications_services_delete( + connection, + projects_id, + locations_id, + applications_id, + services_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}/applications/{applicationsId}/services/{servicesId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "applicationsId" => URI.encode(applications_id, &URI.char_unreserved?/1), + "servicesId" => URI.encode(services_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.AppEngine.V1.Model.Operation{}]) + end + @doc """ Deletes an existing Version resource. diff --git a/clients/app_engine/lib/google_api/app_engine/v1/metadata.ex b/clients/app_engine/lib/google_api/app_engine/v1/metadata.ex index a8ef1ddf5e..124d07eaac 100644 --- a/clients/app_engine/lib/google_api/app_engine/v1/metadata.ex +++ b/clients/app_engine/lib/google_api/app_engine/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AppEngine.V1 do API client metadata for GoogleApi.AppEngine.V1. """ - @discovery_revision "20241118" + @discovery_revision "20241205" def discovery_revision(), do: @discovery_revision end diff --git a/clients/app_engine/mix.exs b/clients/app_engine/mix.exs index 6f5b544e8f..5d8f1d4c21 100644 --- a/clients/app_engine/mix.exs +++ b/clients/app_engine/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.AppEngine.Mixfile do use Mix.Project - @version "0.42.0" + @version "0.43.0" def project() do [