Skip to content

Commit

Permalink
feat: add async client (#8)
Browse files Browse the repository at this point in the history
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* fix(python): change autodoc_default_flags to autodoc_default_options

Source-Author: HemangChothani <50404902+HemangChothani@users.noreply.github.com>
Source-Date: Thu Jun 18 22:50:02 2020 +0530
Source-Repo: googleapis/synthtool
Source-Sha: cd522c3b4dde821766d95c80ae5aeb43d7a41170
Source-Link: googleapis/synthtool@cd522c3

* test: update tests for async

Co-authored-by: Bu Sun Kim <busunkim@google.com>
  • Loading branch information
yoshi-automation and busunkim96 authored Jun 20, 2020
1 parent ad50589 commit 9e46244
Show file tree
Hide file tree
Showing 19 changed files with 4,210 additions and 1,311 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-os-config/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# autodoc/autosummary flags
autoclass_content = "both"
autodoc_default_flags = ["members"]
autodoc_default_options = {"members": True}
autosummary_generate = True


Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-os-config/docs/osconfig_v1/services.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Client for Google Cloud Osconfig API
====================================
Services for Google Cloud Osconfig v1 API
=========================================

.. automodule:: google.cloud.osconfig_v1
.. automodule:: google.cloud.osconfig_v1.services.os_config_service
:members:
:inherited-members:
4 changes: 2 additions & 2 deletions packages/google-cloud-os-config/docs/osconfig_v1/types.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Types for Google Cloud Osconfig API
===================================
Types for Google Cloud Osconfig v1 API
======================================

.. automodule:: google.cloud.osconfig_v1.types
:members:
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
# limitations under the License.
#


from google.cloud.osconfig_v1.services.os_config_service.async_client import (
OsConfigServiceAsyncClient,
)
from google.cloud.osconfig_v1.services.os_config_service.client import (
OsConfigServiceClient,
)
Expand Down Expand Up @@ -80,6 +82,7 @@
"ListPatchJobsResponse",
"MonthlySchedule",
"OneTimeSchedule",
"OsConfigServiceAsyncClient",
"OsConfigServiceClient",
"PatchConfig",
"PatchDeployment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#


from .services.os_config_service import OsConfigServiceClient
from .types.patch_deployments import CreatePatchDeploymentRequest
from .types.patch_deployments import DeletePatchDeploymentRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
#

from .client import OsConfigServiceClient
from .async_client import OsConfigServiceAsyncClient

__all__ = ("OsConfigServiceClient",)
__all__ = ("OsConfigServiceClient", "OsConfigServiceAsyncClient")
Loading

0 comments on commit 9e46244

Please sign in to comment.