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

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#25)
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 dd83ae8 commit 7d5d4de
Show file tree
Hide file tree
Showing 18 changed files with 76 additions and 76 deletions.
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 @@ -356,7 +356,7 @@ def __init__(

def create_environment(
self,
request: environments.CreateEnvironmentRequest = None,
request: Union[environments.CreateEnvironmentRequest, dict] = None,
*,
parent: str = None,
environment: environments.Environment = None,
Expand All @@ -367,7 +367,7 @@ def create_environment(
r"""Create a new environment.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.CreateEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.CreateEnvironmentRequest, dict]):
The request object. Create a new environment.
parent (str):
The parent must be of the form
Expand Down Expand Up @@ -445,7 +445,7 @@ def create_environment(

def get_environment(
self,
request: environments.GetEnvironmentRequest = None,
request: Union[environments.GetEnvironmentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -455,7 +455,7 @@ def get_environment(
r"""Get an existing environment.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.GetEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.GetEnvironmentRequest, dict]):
The request object. Get an environment.
name (str):
The resource name of the environment
Expand Down Expand Up @@ -516,7 +516,7 @@ def get_environment(

def list_environments(
self,
request: environments.ListEnvironmentsRequest = None,
request: Union[environments.ListEnvironmentsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -526,7 +526,7 @@ def list_environments(
r"""List environments.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.ListEnvironmentsRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.ListEnvironmentsRequest, dict]):
The request object. List environments in a project and
location.
parent (str):
Expand Down Expand Up @@ -597,7 +597,7 @@ def list_environments(

def update_environment(
self,
request: environments.UpdateEnvironmentRequest = None,
request: Union[environments.UpdateEnvironmentRequest, dict] = None,
*,
name: str = None,
environment: environments.Environment = None,
Expand All @@ -609,7 +609,7 @@ def update_environment(
r"""Update an environment.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.UpdateEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.UpdateEnvironmentRequest, dict]):
The request object. Update an environment.
name (str):
The relative resource name of the
Expand Down Expand Up @@ -860,7 +860,7 @@ def update_environment(

def delete_environment(
self,
request: environments.DeleteEnvironmentRequest = None,
request: Union[environments.DeleteEnvironmentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -870,7 +870,7 @@ def delete_environment(
r"""Delete an environment.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.DeleteEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.DeleteEnvironmentRequest, dict]):
The request object. Delete an environment.
name (str):
The environment to delete, in the
Expand Down
Expand Up @@ -119,7 +119,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 @@ -82,16 +82,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 @@ -129,16 +129,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 @@ -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 @@ -334,7 +334,7 @@ def __init__(

def list_image_versions(
self,
request: image_versions.ListImageVersionsRequest = None,
request: Union[image_versions.ListImageVersionsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -344,7 +344,7 @@ def list_image_versions(
r"""List ImageVersions for provided location.
Args:
request (google.cloud.orchestration.airflow.service_v1.types.ListImageVersionsRequest):
request (Union[google.cloud.orchestration.airflow.service_v1.types.ListImageVersionsRequest, dict]):
The request object. List ImageVersions in a project and
location.
parent (str):
Expand Down
Expand Up @@ -117,7 +117,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 @@ -80,16 +80,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 @@ -127,16 +127,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 @@ -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 @@ -358,7 +358,7 @@ def __init__(

def create_environment(
self,
request: environments.CreateEnvironmentRequest = None,
request: Union[environments.CreateEnvironmentRequest, dict] = None,
*,
parent: str = None,
environment: environments.Environment = None,
Expand All @@ -369,7 +369,7 @@ def create_environment(
r"""Create a new environment.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.CreateEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.CreateEnvironmentRequest, dict]):
The request object. Create a new environment.
parent (str):
The parent must be of the form
Expand Down Expand Up @@ -447,7 +447,7 @@ def create_environment(

def get_environment(
self,
request: environments.GetEnvironmentRequest = None,
request: Union[environments.GetEnvironmentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -457,7 +457,7 @@ def get_environment(
r"""Get an existing environment.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.GetEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.GetEnvironmentRequest, dict]):
The request object. Get an environment.
name (str):
The resource name of the environment
Expand Down Expand Up @@ -518,7 +518,7 @@ def get_environment(

def list_environments(
self,
request: environments.ListEnvironmentsRequest = None,
request: Union[environments.ListEnvironmentsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -528,7 +528,7 @@ def list_environments(
r"""List environments.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.ListEnvironmentsRequest, dict]):
The request object. List environments in a project and
location.
parent (str):
Expand Down Expand Up @@ -599,7 +599,7 @@ def list_environments(

def update_environment(
self,
request: environments.UpdateEnvironmentRequest = None,
request: Union[environments.UpdateEnvironmentRequest, dict] = None,
*,
name: str = None,
environment: environments.Environment = None,
Expand All @@ -611,7 +611,7 @@ def update_environment(
r"""Update an environment.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.UpdateEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.UpdateEnvironmentRequest, dict]):
The request object. Update an environment.
name (str):
The relative resource name of the
Expand Down Expand Up @@ -882,7 +882,7 @@ def update_environment(

def delete_environment(
self,
request: environments.DeleteEnvironmentRequest = None,
request: Union[environments.DeleteEnvironmentRequest, dict] = None,
*,
name: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -892,7 +892,7 @@ def delete_environment(
r"""Delete an environment.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.DeleteEnvironmentRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.DeleteEnvironmentRequest, dict]):
The request object. Delete an environment.
name (str):
The environment to delete, in the
Expand Down Expand Up @@ -974,7 +974,7 @@ def delete_environment(

def restart_web_server(
self,
request: environments.RestartWebServerRequest = None,
request: Union[environments.RestartWebServerRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -983,7 +983,7 @@ def restart_web_server(
r"""Restart Airflow web server.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.RestartWebServerRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.RestartWebServerRequest, dict]):
The request object. Restart Airflow web server.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def restart_web_server(

def check_upgrade(
self,
request: environments.CheckUpgradeRequest = None,
request: Union[environments.CheckUpgradeRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
Expand All @@ -1046,7 +1046,7 @@ def check_upgrade(
returned Operation.
Args:
request (google.cloud.orchestration.airflow.service_v1beta1.types.CheckUpgradeRequest):
request (Union[google.cloud.orchestration.airflow.service_v1beta1.types.CheckUpgradeRequest, dict]):
The request object. Request to check whether image
upgrade will succeed.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Expand Up @@ -119,7 +119,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 @@ -82,16 +82,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 7d5d4de

Please sign in to comment.