Skip to content

Commit

Permalink
Regenerate Workflows client (#8875)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-12-10 07:44:39,784 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-workflows
nothing to commit, working tree clean
2021-12-10 07:44:42,700 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpxsqm6wgk/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh Workflows
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpxsqm6wgk/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh Workflows
/workspace /workspace
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.8.0
  google_api_discovery 0.7.0
  google_gax 0.4.0
  hackney 1.18.0
  idna 6.1.1
  jason 1.2.2
  metrics 1.0.1
  mime 1.6.0
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.1
  poison 3.1.0
  ssl_verify_fun 1.1.6
  temp 0.4.7
  tesla 1.4.3
  unicode_util_compat 0.7.0
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting parse_trans (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 29 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

15:45:14.401 [info]  FETCHING: https://workflows.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1

15:45:14.753 [info]  FETCHING: https://workflows.googleapis.com/$discovery/rest?version=v1

15:45:14.995 [info]  FOUND: https://workflows.googleapis.com/$discovery/rest?version=v1
Couldn't determine old discovery revision. Generating by default.
Creating leading directories
Writing Empty to clients/workflows/lib/google_api/workflows/v1/model/empty.ex.
Writing ListLocationsResponse to clients/workflows/lib/google_api/workflows/v1/model/list_locations_response.ex.
Writing ListOperationsResponse to clients/workflows/lib/google_api/workflows/v1/model/list_operations_response.ex.
Writing ListWorkflowsResponse to clients/workflows/lib/google_api/workflows/v1/model/list_workflows_response.ex.
Writing Location to clients/workflows/lib/google_api/workflows/v1/model/location.ex.
Writing Operation to clients/workflows/lib/google_api/workflows/v1/model/operation.ex.
Writing OperationMetadata to clients/workflows/lib/google_api/workflows/v1/model/operation_metadata.ex.
Writing Status to clients/workflows/lib/google_api/workflows/v1/model/status.ex.
Writing Workflow to clients/workflows/lib/google_api/workflows/v1/model/workflow.ex.
Writing Projects to clients/workflows/lib/google_api/workflows/v1/api/projects.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs

15:45:15.060 [info]  FETCHING: https://workflows.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1beta

15:45:15.300 [info]  FETCHING: https://workflows.googleapis.com/$discovery/rest?version=v1beta

15:45:15.544 [info]  FOUND: https://workflows.googleapis.com/$discovery/rest?version=v1beta
Revision check: old=20210728, new=20211117, generating=true
Creating leading directories
Writing Empty to clients/workflows/lib/google_api/workflows/v1beta/model/empty.ex.
Writing ListLocationsResponse to clients/workflows/lib/google_api/workflows/v1beta/model/list_locations_response.ex.
Writing ListOperationsResponse to clients/workflows/lib/google_api/workflows/v1beta/model/list_operations_response.ex.
Writing ListWorkflowsResponse to clients/workflows/lib/google_api/workflows/v1beta/model/list_workflows_response.ex.
Writing Location to clients/workflows/lib/google_api/workflows/v1beta/model/location.ex.
Writing Operation to clients/workflows/lib/google_api/workflows/v1beta/model/operation.ex.
Writing OperationMetadata to clients/workflows/lib/google_api/workflows/v1beta/model/operation_metadata.ex.
Writing Status to clients/workflows/lib/google_api/workflows/v1beta/model/status.ex.
Writing Workflow to clients/workflows/lib/google_api/workflows/v1beta/model/workflow.ex.
Writing Projects to clients/workflows/lib/google_api/workflows/v1beta/api/projects.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

15:45:17.415 [info]  Bumping minor

15:45:17.593 [info]  Bumping minor
fixing file permissions
2021-12-10 07:45:21,316 synthtool [DEBUG] > Wrote metadata to clients/workflows/synth.metadata.
DEBUG:synthtool:Wrote metadata to clients/workflows/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/e1f687b8-a6c8-4d14-b7dc-719f70bb40d9/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
  • Loading branch information
yoshi-automation authored Dec 10, 2021
1 parent e52e4d6 commit dc73948
Show file tree
Hide file tree
Showing 16 changed files with 1,287 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_workflows, "~> 0.3"}]
[{:google_api_workflows, "~> 0.4"}]
end
```

Expand Down
735 changes: 735 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/api/projects.ex

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/connection.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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.Workflows.V1.Connection do
@moduledoc """
Handle Tesla connections for GoogleApi.Workflows.V1.
"""

@type t :: Tesla.Env.client()

use GoogleApi.Gax.Connection,
scopes: [
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
"https://www.googleapis.com/auth/cloud-platform"
],
otp_app: :google_api_workflows,
base_url: "https://workflows.googleapis.com/"
end
26 changes: 26 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/metadata.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2020 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.Workflows.V1 do
@moduledoc """
API client metadata for GoogleApi.Workflows.V1.
"""

@discovery_revision "20211117"

def discovery_revision(), do: @discovery_revision
end
41 changes: 41 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/model/empty.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Workflows.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); } The JSON representation for `Empty` is empty JSON object `{}`.
## Attributes
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.Empty do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.Empty.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.Empty do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -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.Workflows.V1.Model.ListLocationsResponse do
@moduledoc """
The response message for Locations.ListLocations.
## Attributes
* `locations` (*type:* `list(GoogleApi.Workflows.V1.Model.Location.t)`, *default:* `nil`) - A list of locations that matches the specified filter in the request.
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The standard List next-page token.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:locations => list(GoogleApi.Workflows.V1.Model.Location.t()) | nil,
:nextPageToken => String.t() | nil
}

field(:locations, as: GoogleApi.Workflows.V1.Model.Location, type: :list)
field(:nextPageToken)
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.ListLocationsResponse do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.ListLocationsResponse.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.ListLocationsResponse do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -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.Workflows.V1.Model.ListOperationsResponse 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.Workflows.V1.Model.Operation.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.Workflows.V1.Model.Operation.t()) | nil
}

field(:nextPageToken)
field(:operations, as: GoogleApi.Workflows.V1.Model.Operation, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.ListOperationsResponse do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.ListOperationsResponse.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.ListOperationsResponse do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
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.Workflows.V1.Model.ListWorkflowsResponse do
@moduledoc """
Response for the ListWorkflows method.
## Attributes
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Unreachable resources.
* `workflows` (*type:* `list(GoogleApi.Workflows.V1.Model.Workflow.t)`, *default:* `nil`) - The workflows which match the request.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:nextPageToken => String.t() | nil,
:unreachable => list(String.t()) | nil,
:workflows => list(GoogleApi.Workflows.V1.Model.Workflow.t()) | nil
}

field(:nextPageToken)
field(:unreachable, type: :list)
field(:workflows, as: GoogleApi.Workflows.V1.Model.Workflow, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.ListWorkflowsResponse do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.ListWorkflowsResponse.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.ListWorkflowsResponse do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
58 changes: 58 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/model/location.ex
Original file line number Diff line number Diff line change
@@ -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.Workflows.V1.Model.Location do
@moduledoc """
A resource that represents Google Cloud Platform location.
## Attributes
* `displayName` (*type:* `String.t`, *default:* `nil`) - The friendly name for this location, typically a nearby city name. For example, "Tokyo".
* `labels` (*type:* `map()`, *default:* `nil`) - Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
* `locationId` (*type:* `String.t`, *default:* `nil`) - The canonical id for this location. For example: `"us-east1"`.
* `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata. For example the available capacity at the given location.
* `name` (*type:* `String.t`, *default:* `nil`) - Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:displayName => String.t() | nil,
:labels => map() | nil,
:locationId => String.t() | nil,
:metadata => map() | nil,
:name => String.t() | nil
}

field(:displayName)
field(:labels, type: :map)
field(:locationId)
field(:metadata, type: :map)
field(:name)
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.Location do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.Location.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.Location do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
58 changes: 58 additions & 0 deletions clients/workflows/lib/google_api/workflows/v1/model/operation.ex
Original file line number Diff line number Diff line change
@@ -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.Workflows.V1.Model.Operation 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.Workflows.V1.Model.Status.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`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:done => boolean() | nil,
:error => GoogleApi.Workflows.V1.Model.Status.t() | nil,
:metadata => map() | nil,
:name => String.t() | nil,
:response => map() | nil
}

field(:done)
field(:error, as: GoogleApi.Workflows.V1.Model.Status)
field(:metadata, type: :map)
field(:name)
field(:response, type: :map)
end

defimpl Poison.Decoder, for: GoogleApi.Workflows.V1.Model.Operation do
def decode(value, options) do
GoogleApi.Workflows.V1.Model.Operation.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Workflows.V1.Model.Operation do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading

0 comments on commit dc73948

Please sign in to comment.