-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of AppEngine client
- Loading branch information
1 parent
9e554ee
commit de010ac
Showing
19 changed files
with
660 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# 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.AppEngine.V1.Api.Projects do | ||
@moduledoc """ | ||
API calls for all endpoints tagged `Projects`. | ||
""" | ||
|
||
alias GoogleApi.AppEngine.V1.Connection | ||
alias GoogleApi.Gax.{Request, Response} | ||
|
||
@library_version Mix.Project.config() |> Keyword.get(:version, "") | ||
|
||
@doc """ | ||
Lists all domains the user is authorized to administer. | ||
## Parameters | ||
* `connection` (*type:* `GoogleApi.AppEngine.V1.Connection.t`) - Connection to server | ||
* `projects_id` (*type:* `String.t`) - Part of `parent`. Name of the parent Application resource. Example: apps/myapp. | ||
* `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. | ||
* `applications_id` (*type:* `String.t`) - Part of `parent`. 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"). | ||
* `:pageSize` (*type:* `integer()`) - Maximum results to return per page. | ||
* `:pageToken` (*type:* `String.t`) - Continuation token for fetching the next page of results. | ||
* `opts` (*type:* `keyword()`) - Call options | ||
## Returns | ||
* `{:ok, %GoogleApi.AppEngine.V1.Model.ListAuthorizedDomainsResponse{}}` on success | ||
* `{:error, info}` on failure | ||
""" | ||
@spec appengine_projects_locations_applications_authorized_domains_list( | ||
Tesla.Env.client(), | ||
String.t(), | ||
String.t(), | ||
String.t(), | ||
keyword(), | ||
keyword() | ||
) :: | ||
{:ok, GoogleApi.AppEngine.V1.Model.ListAuthorizedDomainsResponse.t()} | ||
| {:ok, Tesla.Env.t()} | ||
| {:ok, list()} | ||
| {:error, any()} | ||
def appengine_projects_locations_applications_authorized_domains_list( | ||
connection, | ||
projects_id, | ||
locations_id, | ||
applications_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, | ||
:pageSize => :query, | ||
:pageToken => :query | ||
} | ||
|
||
request = | ||
Request.new() | ||
|> Request.method(:get) | ||
|> Request.url( | ||
"/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/authorizedDomains", | ||
%{ | ||
"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) | ||
} | ||
) | ||
|> 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.ListAuthorizedDomainsResponse{}] | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
clients/app_engine/lib/google_api/app_engine/v1/model/container_state.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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.AppEngine.V1.Model.ContainerState do | ||
@moduledoc """ | ||
ContainerState contains the externally-visible container state that is used to communicate the state and reasoning for that state to the CLH. This data is not persisted by CCFE, but is instead derived from CCFE's internal representation of the container state. | ||
## Attributes | ||
* `currentReasons` (*type:* `GoogleApi.AppEngine.V1.Model.Reasons.t`, *default:* `nil`) - | ||
* `previousReasons` (*type:* `GoogleApi.AppEngine.V1.Model.Reasons.t`, *default:* `nil`) - The previous and current reasons for a container state will be sent for a container event. CLHs that need to know the signal that caused the container event to trigger (edges) as opposed to just knowing the state can act upon differences in the previous and current reasons.Reasons will be provided for every system: service management, data governance, abuse, and billing.If this is a CCFE-triggered event used for reconciliation then the current reasons will be set to their *_CONTROL_PLANE_SYNC state. The previous reasons will contain the last known set of non-unknown non-control_plane_sync reasons for the state. | ||
* `state` (*type:* `String.t`, *default:* `nil`) - The current state of the container. This state is the culmination of all of the opinions from external systems that CCFE knows about of the container. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:currentReasons => GoogleApi.AppEngine.V1.Model.Reasons.t() | nil, | ||
:previousReasons => GoogleApi.AppEngine.V1.Model.Reasons.t() | nil, | ||
:state => String.t() | nil | ||
} | ||
|
||
field(:currentReasons, as: GoogleApi.AppEngine.V1.Model.Reasons) | ||
field(:previousReasons, as: GoogleApi.AppEngine.V1.Model.Reasons) | ||
field(:state) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AppEngine.V1.Model.ContainerState do | ||
def decode(value, options) do | ||
GoogleApi.AppEngine.V1.Model.ContainerState.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AppEngine.V1.Model.ContainerState do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.