Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: add v1 (#36)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-workflows/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #30  🦕
  • Loading branch information
busunkim96 committed Mar 31, 2021
1 parent 9496429 commit a843aae
Show file tree
Hide file tree
Showing 43 changed files with 10,043 additions and 75 deletions.
11 changes: 11 additions & 0 deletions docs/executions_v1/executions.rst
@@ -0,0 +1,11 @@
Executions
----------------------------

.. automodule:: google.cloud.workflows.executions_v1.services.executions
:members:
:inherited-members:


.. automodule:: google.cloud.workflows.executions_v1.services.executions.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/executions_v1/services.rst
@@ -0,0 +1,6 @@
Services for Google Cloud Workflows Executions v1 API
=====================================================
.. toctree::
:maxdepth: 2

executions
7 changes: 7 additions & 0 deletions docs/executions_v1/types.rst
@@ -0,0 +1,7 @@
Types for Google Cloud Workflows Executions v1 API
==================================================

.. automodule:: google.cloud.workflows.executions_v1.types
:members:
:undoc-members:
:show-inheritance:
16 changes: 15 additions & 1 deletion docs/index.rst
Expand Up @@ -2,7 +2,21 @@

.. include:: multiprocessing.rst

API Reference
This package includes clients for multiple versions of the Workflows API By default, you will get ``v1``, the latest version.

v1
---
.. toctree::
:maxdepth: 2

workflows_v1/services
executions_v1/services
workflows_v1/types
executions_v1/types

The previous beta release, spelled ``v1beta`` is provided to continue to support code previously written against it. In order to use it, you will want to import from it e.g., ``google.cloud.workflows_v1`` in lieu of ``google.cloud.workflows`` (or the equivalent ``google.cloud.workflows_v1``).

v1beta
-------------
.. toctree::
:maxdepth: 2
Expand Down
6 changes: 6 additions & 0 deletions docs/workflows_v1/services.rst
@@ -0,0 +1,6 @@
Services for Google Cloud Workflows v1 API
==========================================
.. toctree::
:maxdepth: 2

workflows
7 changes: 7 additions & 0 deletions docs/workflows_v1/types.rst
@@ -0,0 +1,7 @@
Types for Google Cloud Workflows v1 API
=======================================

.. automodule:: google.cloud.workflows_v1.types
:members:
:undoc-members:
:show-inheritance:
11 changes: 11 additions & 0 deletions docs/workflows_v1/workflows.rst
@@ -0,0 +1,11 @@
Workflows
---------------------------

.. automodule:: google.cloud.workflows_v1.services.workflows
:members:
:inherited-members:


.. automodule:: google.cloud.workflows_v1.services.workflows.pagers
:members:
:inherited-members:
20 changes: 10 additions & 10 deletions google/cloud/workflows/__init__.py
Expand Up @@ -15,18 +15,18 @@
# limitations under the License.
#

from google.cloud.workflows_v1beta.services.workflows.async_client import (
from google.cloud.workflows_v1.services.workflows.async_client import (
WorkflowsAsyncClient,
)
from google.cloud.workflows_v1beta.services.workflows.client import WorkflowsClient
from google.cloud.workflows_v1beta.types.workflows import CreateWorkflowRequest
from google.cloud.workflows_v1beta.types.workflows import DeleteWorkflowRequest
from google.cloud.workflows_v1beta.types.workflows import GetWorkflowRequest
from google.cloud.workflows_v1beta.types.workflows import ListWorkflowsRequest
from google.cloud.workflows_v1beta.types.workflows import ListWorkflowsResponse
from google.cloud.workflows_v1beta.types.workflows import OperationMetadata
from google.cloud.workflows_v1beta.types.workflows import UpdateWorkflowRequest
from google.cloud.workflows_v1beta.types.workflows import Workflow
from google.cloud.workflows_v1.services.workflows.client import WorkflowsClient
from google.cloud.workflows_v1.types.workflows import CreateWorkflowRequest
from google.cloud.workflows_v1.types.workflows import DeleteWorkflowRequest
from google.cloud.workflows_v1.types.workflows import GetWorkflowRequest
from google.cloud.workflows_v1.types.workflows import ListWorkflowsRequest
from google.cloud.workflows_v1.types.workflows import ListWorkflowsResponse
from google.cloud.workflows_v1.types.workflows import OperationMetadata
from google.cloud.workflows_v1.types.workflows import UpdateWorkflowRequest
from google.cloud.workflows_v1.types.workflows import Workflow

__all__ = (
"CreateWorkflowRequest",
Expand Down
28 changes: 9 additions & 19 deletions google/cloud/workflows/executions/__init__.py
Expand Up @@ -15,29 +15,19 @@
# limitations under the License.
#

from google.cloud.workflows.executions_v1beta.services.executions.async_client import (
from google.cloud.workflows.executions_v1.services.executions.async_client import (
ExecutionsAsyncClient,
)
from google.cloud.workflows.executions_v1beta.services.executions.client import (
from google.cloud.workflows.executions_v1.services.executions.client import (
ExecutionsClient,
)
from google.cloud.workflows.executions_v1beta.types.executions import (
CancelExecutionRequest,
)
from google.cloud.workflows.executions_v1beta.types.executions import (
CreateExecutionRequest,
)
from google.cloud.workflows.executions_v1beta.types.executions import Execution
from google.cloud.workflows.executions_v1beta.types.executions import ExecutionView
from google.cloud.workflows.executions_v1beta.types.executions import (
GetExecutionRequest,
)
from google.cloud.workflows.executions_v1beta.types.executions import (
ListExecutionsRequest,
)
from google.cloud.workflows.executions_v1beta.types.executions import (
ListExecutionsResponse,
)
from google.cloud.workflows.executions_v1.types.executions import CancelExecutionRequest
from google.cloud.workflows.executions_v1.types.executions import CreateExecutionRequest
from google.cloud.workflows.executions_v1.types.executions import Execution
from google.cloud.workflows.executions_v1.types.executions import ExecutionView
from google.cloud.workflows.executions_v1.types.executions import GetExecutionRequest
from google.cloud.workflows.executions_v1.types.executions import ListExecutionsRequest
from google.cloud.workflows.executions_v1.types.executions import ListExecutionsResponse

__all__ = (
"CancelExecutionRequest",
Expand Down
37 changes: 37 additions & 0 deletions google/cloud/workflows/executions_v1/__init__.py
@@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-

# 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.
#

from .services.executions import ExecutionsClient
from .types.executions import CancelExecutionRequest
from .types.executions import CreateExecutionRequest
from .types.executions import Execution
from .types.executions import ExecutionView
from .types.executions import GetExecutionRequest
from .types.executions import ListExecutionsRequest
from .types.executions import ListExecutionsResponse


__all__ = (
"CancelExecutionRequest",
"CreateExecutionRequest",
"Execution",
"ExecutionView",
"GetExecutionRequest",
"ListExecutionsRequest",
"ListExecutionsResponse",
"ExecutionsClient",
)
2 changes: 2 additions & 0 deletions google/cloud/workflows/executions_v1/py.typed
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-workflows-executions package uses inline types.
16 changes: 16 additions & 0 deletions google/cloud/workflows/executions_v1/services/__init__.py
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-

# 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.
#
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-

# 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.
#

from .client import ExecutionsClient
from .async_client import ExecutionsAsyncClient

__all__ = (
"ExecutionsClient",
"ExecutionsAsyncClient",
)

0 comments on commit a843aae

Please sign in to comment.