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

Commit

Permalink
docs: Fix formatting of request arg in docstring (#28)
Browse files Browse the repository at this point in the history
* chore: Update gapic-generator-python to v1.9.0

PiperOrigin-RevId: 517425588

Source-Link: googleapis/googleapis@33c93eb

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5f59789d19fc43270ff2124967d4ec8992b8e8f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDVmNTk3ODlkMTlmYzQzMjcwZmYyMTI0OTY3ZDRlYzg5OTJiOGU4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* docs: Fix formatting of request arg in docstring

chore: Update gapic-generator-python to v1.9.1
PiperOrigin-RevId: 518604533

Source-Link: googleapis/googleapis@8a085ae

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2ab4b0a0ae2907e812c209198a74e0898afcb04
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJhYjRiMGEwYWUyOTA3ZTgxMmMyMDkxOThhNzRlMDg5OGFmY2IwNCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* run generator locally

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Mar 24, 2023
1 parent 2933dca commit 825245f
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ async def sample_get_authorization():
Args:
request (Optional[Union[google.cloud.gsuiteaddons_v1.types.GetAuthorizationRequest, dict]]):
The request object. Request message to get Google
Workspace Add-ons authorization information.
Workspace Add-ons authorization
information.
name (:class:`str`):
Required. Name of the project for which to get the
Google Workspace Add-ons authorization information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ def sample_get_authorization():
Args:
request (Union[google.cloud.gsuiteaddons_v1.types.GetAuthorizationRequest, dict]):
The request object. Request message to get Google
Workspace Add-ons authorization information.
Workspace Add-ons authorization
information.
name (str):
Required. Name of the project for which to get the
Google Workspace Add-ons authorization information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ def __call__(
request (~.gsuiteaddons.CreateDeploymentRequest):
The request object. Request message to create a
deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -558,7 +557,6 @@ def __call__(
request (~.gsuiteaddons.DeleteDeploymentRequest):
The request object. Request message to delete a
deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -637,7 +635,6 @@ def __call__(
The request object. Request message to get Google
Workspace Add-ons authorization
information.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -815,7 +812,6 @@ def __call__(
request (~.gsuiteaddons.GetInstallStatusRequest):
The request object. Request message to get the install
status of a developer mode deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -907,7 +903,6 @@ def __call__(
request (~.gsuiteaddons.InstallDeploymentRequest):
The request object. Request message to install a
developer mode deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -994,7 +989,6 @@ def __call__(
request (~.gsuiteaddons.ListDeploymentsRequest):
The request object. Request message to list deployments
for a project.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1084,7 +1078,6 @@ def __call__(
request (~.gsuiteaddons.ReplaceDeploymentRequest):
The request object. Request message to create or replace
a deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1183,7 +1176,6 @@ def __call__(
request (~.gsuiteaddons.UninstallDeploymentRequest):
The request object. Request message to uninstall a
developer mode deployment.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
52 changes: 25 additions & 27 deletions google/cloud/gsuiteaddons_v1/types/gsuiteaddons.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

from typing import MutableMapping, MutableSequence

import google.apps.script.type # type: ignore
import google.apps.script.type.calendar
import google.apps.script.type.docs
import google.apps.script.type.drive
import google.apps.script.type.gmail
import google.apps.script.type.sheets
import google.apps.script.type.slides
from google.apps.script.type.calendar.types import calendar_addon_manifest
from google.apps.script.type.docs.types import docs_addon_manifest
from google.apps.script.type.drive.types import drive_addon_manifest
from google.apps.script.type.gmail.types import gmail_addon_manifest
from google.apps.script.type.sheets.types import sheets_addon_manifest
from google.apps.script.type.slides.types import slides_addon_manifest
from google.apps.script.type.types import script_manifest
from google.protobuf import wrappers_pb2 # type: ignore
import proto # type: ignore

Expand Down Expand Up @@ -395,47 +395,45 @@ class AddOns(proto.Message):
endpoints
"""

common: google.apps.script.type.types.CommonAddOnManifest = proto.Field(
common: script_manifest.CommonAddOnManifest = proto.Field(
proto.MESSAGE,
number=1,
message=google.apps.script.type.types.CommonAddOnManifest,
message=script_manifest.CommonAddOnManifest,
)
gmail: google.apps.script.type.gmail.types.GmailAddOnManifest = proto.Field(
gmail: gmail_addon_manifest.GmailAddOnManifest = proto.Field(
proto.MESSAGE,
number=2,
message=google.apps.script.type.gmail.types.GmailAddOnManifest,
message=gmail_addon_manifest.GmailAddOnManifest,
)
drive: google.apps.script.type.drive.types.DriveAddOnManifest = proto.Field(
drive: drive_addon_manifest.DriveAddOnManifest = proto.Field(
proto.MESSAGE,
number=5,
message=google.apps.script.type.drive.types.DriveAddOnManifest,
message=drive_addon_manifest.DriveAddOnManifest,
)
calendar: google.apps.script.type.calendar.types.CalendarAddOnManifest = (
proto.Field(
proto.MESSAGE,
number=6,
message=google.apps.script.type.calendar.types.CalendarAddOnManifest,
)
calendar: calendar_addon_manifest.CalendarAddOnManifest = proto.Field(
proto.MESSAGE,
number=6,
message=calendar_addon_manifest.CalendarAddOnManifest,
)
docs: google.apps.script.type.docs.types.DocsAddOnManifest = proto.Field(
docs: docs_addon_manifest.DocsAddOnManifest = proto.Field(
proto.MESSAGE,
number=7,
message=google.apps.script.type.docs.types.DocsAddOnManifest,
message=docs_addon_manifest.DocsAddOnManifest,
)
sheets: google.apps.script.type.sheets.types.SheetsAddOnManifest = proto.Field(
sheets: sheets_addon_manifest.SheetsAddOnManifest = proto.Field(
proto.MESSAGE,
number=8,
message=google.apps.script.type.sheets.types.SheetsAddOnManifest,
message=sheets_addon_manifest.SheetsAddOnManifest,
)
slides: google.apps.script.type.slides.types.SlidesAddOnManifest = proto.Field(
slides: slides_addon_manifest.SlidesAddOnManifest = proto.Field(
proto.MESSAGE,
number=10,
message=google.apps.script.type.slides.types.SlidesAddOnManifest,
message=slides_addon_manifest.SlidesAddOnManifest,
)
http_options: google.apps.script.type.types.HttpOptions = proto.Field(
http_options: script_manifest.HttpOptions = proto.Field(
proto.MESSAGE,
number=15,
message=google.apps.script.type.types.HttpOptions,
message=script_manifest.HttpOptions,
)


Expand Down
1 change: 1 addition & 0 deletions testing/constraints-3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
google-api-core
proto-plus
protobuf
google-apps-script-type
1 change: 1 addition & 0 deletions testing/constraints-3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
google-api-core
proto-plus
protobuf
google-apps-script-type
1 change: 1 addition & 0 deletions testing/constraints-3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
google-api-core
proto-plus
protobuf
google-apps-script-type
1 change: 1 addition & 0 deletions testing/constraints-3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
google-api-core
proto-plus
protobuf
google-apps-script-type
1 change: 1 addition & 0 deletions testing/constraints-3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
google-api-core
proto-plus
protobuf
google-apps-script-type
11 changes: 11 additions & 0 deletions tests/unit/gapic/gsuiteaddons_v1/test_g_suite_add_ons.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
from google.api_core import gapic_v1, grpc_helpers, grpc_helpers_async, path_template
from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
from google.apps.script.type.calendar.types import calendar_addon_manifest
from google.apps.script.type.docs.types import docs_addon_manifest
from google.apps.script.type.drive.types import drive_addon_manifest
from google.apps.script.type.gmail.types import gmail_addon_manifest
from google.apps.script.type.sheets.types import sheets_addon_manifest
from google.apps.script.type.slides.types import slides_addon_manifest
from google.apps.script.type.types import (
addon_widget_set,
extension_point,
script_manifest,
)
import google.auth
from google.auth import credentials as ga_credentials
from google.auth.exceptions import MutualTLSChannelError
Expand Down

0 comments on commit 825245f

Please sign in to comment.