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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#172)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent 27f27f8 commit 925a436
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 63 deletions.
74 changes: 37 additions & 37 deletions google/cloud/devtools/cloudbuild_v1/services/cloud_build/client.py
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
Expand Down Expand Up @@ -477,7 +477,7 @@ def __init__(

def create_build(
self,
request: cloudbuild.CreateBuildRequest = None,
request: Union[cloudbuild.CreateBuildRequest, dict] = None,
*,
project_id: str = None,
build: cloudbuild.Build = None,
Expand All @@ -492,7 +492,7 @@ def create_build(
build status (such as ``SUCCESS`` or ``FAILURE``).
Args:
request (google.cloud.devtools.cloudbuild_v1.types.CreateBuildRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.CreateBuildRequest, dict]):
The request object. Request to create a new build.
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -584,7 +584,7 @@ def create_build(

def get_build(
self,
request: cloudbuild.GetBuildRequest = None,
request: Union[cloudbuild.GetBuildRequest, dict] = None,
*,
project_id: str = None,
id: str = None,
Expand All @@ -599,7 +599,7 @@ def get_build(
information.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.GetBuildRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.GetBuildRequest, dict]):
The request object. Request to get a build.
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -679,7 +679,7 @@ def get_build(

def list_builds(
self,
request: cloudbuild.ListBuildsRequest = None,
request: Union[cloudbuild.ListBuildsRequest, dict] = None,
*,
project_id: str = None,
filter: str = None,
Expand All @@ -692,7 +692,7 @@ def list_builds(
may have finished successfully or unsuccessfully.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.ListBuildsRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.ListBuildsRequest, dict]):
The request object. Request to list builds.
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -761,7 +761,7 @@ def list_builds(

def cancel_build(
self,
request: cloudbuild.CancelBuildRequest = None,
request: Union[cloudbuild.CancelBuildRequest, dict] = None,
*,
project_id: str = None,
id: str = None,
Expand All @@ -772,7 +772,7 @@ def cancel_build(
r"""Cancels a build in progress.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.CancelBuildRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.CancelBuildRequest, dict]):
The request object. Request to cancel an ongoing build.
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -852,7 +852,7 @@ def cancel_build(

def retry_build(
self,
request: cloudbuild.RetryBuildRequest = None,
request: Union[cloudbuild.RetryBuildRequest, dict] = None,
*,
project_id: str = None,
id: str = None,
Expand Down Expand Up @@ -892,7 +892,7 @@ def retry_build(
settings.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.RetryBuildRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.RetryBuildRequest, dict]):
The request object. Specifies a build to retry.
project_id (str):
Required. ID of the project.
Expand Down Expand Up @@ -986,7 +986,7 @@ def retry_build(

def approve_build(
self,
request: cloudbuild.ApproveBuildRequest = None,
request: Union[cloudbuild.ApproveBuildRequest, dict] = None,
*,
name: str = None,
approval_result: cloudbuild.ApprovalResult = None,
Expand All @@ -1001,7 +1001,7 @@ def approve_build(
If rejected, the returned LRO will be immediately done.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.ApproveBuildRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.ApproveBuildRequest, dict]):
The request object. Request to approve or reject a
pending build.
name (str):
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def approve_build(

def create_build_trigger(
self,
request: cloudbuild.CreateBuildTriggerRequest = None,
request: Union[cloudbuild.CreateBuildTriggerRequest, dict] = None,
*,
project_id: str = None,
trigger: cloudbuild.BuildTrigger = None,
Expand All @@ -1115,7 +1115,7 @@ def create_build_trigger(
This API is experimental.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.CreateBuildTriggerRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.CreateBuildTriggerRequest, dict]):
The request object. Request to create a new
`BuildTrigger`.
project_id (str):
Expand Down Expand Up @@ -1178,7 +1178,7 @@ def create_build_trigger(

def get_build_trigger(
self,
request: cloudbuild.GetBuildTriggerRequest = None,
request: Union[cloudbuild.GetBuildTriggerRequest, dict] = None,
*,
project_id: str = None,
trigger_id: str = None,
Expand All @@ -1191,7 +1191,7 @@ def get_build_trigger(
This API is experimental.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.GetBuildTriggerRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.GetBuildTriggerRequest, dict]):
The request object. Returns the `BuildTrigger` with the
specified ID.
project_id (str):
Expand Down Expand Up @@ -1256,7 +1256,7 @@ def get_build_trigger(

def list_build_triggers(
self,
request: cloudbuild.ListBuildTriggersRequest = None,
request: Union[cloudbuild.ListBuildTriggersRequest, dict] = None,
*,
project_id: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1268,7 +1268,7 @@ def list_build_triggers(
This API is experimental.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.ListBuildTriggersRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.ListBuildTriggersRequest, dict]):
The request object. Request to list existing
`BuildTriggers`.
project_id (str):
Expand Down Expand Up @@ -1331,7 +1331,7 @@ def list_build_triggers(

def delete_build_trigger(
self,
request: cloudbuild.DeleteBuildTriggerRequest = None,
request: Union[cloudbuild.DeleteBuildTriggerRequest, dict] = None,
*,
project_id: str = None,
trigger_id: str = None,
Expand All @@ -1344,7 +1344,7 @@ def delete_build_trigger(
This API is experimental.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.DeleteBuildTriggerRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.DeleteBuildTriggerRequest, dict]):
The request object. Request to delete a `BuildTrigger`.
project_id (str):
Required. ID of the project that owns
Expand Down Expand Up @@ -1398,7 +1398,7 @@ def delete_build_trigger(

def update_build_trigger(
self,
request: cloudbuild.UpdateBuildTriggerRequest = None,
request: Union[cloudbuild.UpdateBuildTriggerRequest, dict] = None,
*,
project_id: str = None,
trigger_id: str = None,
Expand All @@ -1412,7 +1412,7 @@ def update_build_trigger(
This API is experimental.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.UpdateBuildTriggerRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.UpdateBuildTriggerRequest, dict]):
The request object. Request to update an existing
`BuildTrigger`.
project_id (str):
Expand Down Expand Up @@ -1482,7 +1482,7 @@ def update_build_trigger(

def run_build_trigger(
self,
request: cloudbuild.RunBuildTriggerRequest = None,
request: Union[cloudbuild.RunBuildTriggerRequest, dict] = None,
*,
project_id: str = None,
trigger_id: str = None,
Expand All @@ -1494,7 +1494,7 @@ def run_build_trigger(
r"""Runs a ``BuildTrigger`` at a particular source revision.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.RunBuildTriggerRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.RunBuildTriggerRequest, dict]):
The request object. Specifies a build trigger to run and
the source to use.
project_id (str):
Expand Down Expand Up @@ -1594,7 +1594,7 @@ def run_build_trigger(

def receive_trigger_webhook(
self,
request: cloudbuild.ReceiveTriggerWebhookRequest = None,
request: Union[cloudbuild.ReceiveTriggerWebhookRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1604,7 +1604,7 @@ def receive_trigger_webhook(
receives a webhook request targeted at a specific trigger.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.ReceiveTriggerWebhookRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.ReceiveTriggerWebhookRequest, dict]):
The request object. ReceiveTriggerWebhookRequest
[Experimental] is the request object accepted by the
ReceiveTriggerWebhook method.
Expand Down Expand Up @@ -1640,7 +1640,7 @@ def receive_trigger_webhook(

def create_worker_pool(
self,
request: cloudbuild.CreateWorkerPoolRequest = None,
request: Union[cloudbuild.CreateWorkerPoolRequest, dict] = None,
*,
parent: str = None,
worker_pool: cloudbuild.WorkerPool = None,
Expand All @@ -1652,7 +1652,7 @@ def create_worker_pool(
r"""Creates a ``WorkerPool``.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.CreateWorkerPoolRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.CreateWorkerPoolRequest, dict]):
The request object. Request to create a new
`WorkerPool`.
parent (str):
Expand Down Expand Up @@ -1759,7 +1759,7 @@ def create_worker_pool(

def get_worker_pool(
self,
request: cloudbuild.GetWorkerPoolRequest = None,
request: Union[cloudbuild.GetWorkerPoolRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1769,7 +1769,7 @@ def get_worker_pool(
r"""Returns details of a ``WorkerPool``.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.GetWorkerPoolRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.GetWorkerPoolRequest, dict]):
The request object. Request to get a `WorkerPool` with
the specified name.
name (str):
Expand Down Expand Up @@ -1844,7 +1844,7 @@ def get_worker_pool(

def delete_worker_pool(
self,
request: cloudbuild.DeleteWorkerPoolRequest = None,
request: Union[cloudbuild.DeleteWorkerPoolRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -1854,7 +1854,7 @@ def delete_worker_pool(
r"""Deletes a ``WorkerPool``.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.DeleteWorkerPoolRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.DeleteWorkerPoolRequest, dict]):
The request object. Request to delete a `WorkerPool`.
name (str):
Required. The name of the ``WorkerPool`` to delete.
Expand Down Expand Up @@ -1936,7 +1936,7 @@ def delete_worker_pool(

def update_worker_pool(
self,
request: cloudbuild.UpdateWorkerPoolRequest = None,
request: Union[cloudbuild.UpdateWorkerPoolRequest, dict] = None,
*,
worker_pool: cloudbuild.WorkerPool = None,
update_mask: field_mask_pb2.FieldMask = None,
Expand All @@ -1947,7 +1947,7 @@ def update_worker_pool(
r"""Updates a ``WorkerPool``.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.UpdateWorkerPoolRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.UpdateWorkerPoolRequest, dict]):
The request object. Request to update a `WorkerPool`.
worker_pool (google.cloud.devtools.cloudbuild_v1.types.WorkerPool):
Required. The ``WorkerPool`` to update.
Expand Down Expand Up @@ -2046,7 +2046,7 @@ def update_worker_pool(

def list_worker_pools(
self,
request: cloudbuild.ListWorkerPoolsRequest = None,
request: Union[cloudbuild.ListWorkerPoolsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -2056,7 +2056,7 @@ def list_worker_pools(
r"""Lists ``WorkerPool``\ s.
Args:
request (google.cloud.devtools.cloudbuild_v1.types.ListWorkerPoolsRequest):
request (Union[google.cloud.devtools.cloudbuild_v1.types.ListWorkerPoolsRequest, dict]):
The request object. Request to list `WorkerPool`\s.
parent (str):
Required. The parent of the collection of
Expand Down
Expand Up @@ -120,7 +120,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Expand Up @@ -90,16 +90,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Expand Up @@ -137,16 +137,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down

0 comments on commit 925a436

Please sign in to comment.