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.65.0 (#158)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 440970084

Source-Link: googleapis/googleapis@5e0a3d5

Source-Link: googleapis/googleapis-gen@b0c628a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9

docs: fix type in docstring for map fields
  • Loading branch information
gcf-owl-bot[bot] committed Apr 12, 2022
1 parent 51c3fbc commit f3ec9da
Show file tree
Hide file tree
Showing 22 changed files with 294 additions and 110 deletions.
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -216,7 +216,6 @@ async def list_executions(
executions are ordered by their start time (newest
first).
.. code-block:: python
from google.cloud.workflows import executions_v1
Expand Down Expand Up @@ -331,7 +330,6 @@ async def create_execution(
r"""Creates a new execution using the latest revision of
the given workflow.
.. code-block:: python
from google.cloud.workflows import executions_v1
Expand Down
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -466,7 +466,6 @@ def list_executions(
executions are ordered by their start time (newest
first).
.. code-block:: python
from google.cloud.workflows import executions_v1
Expand Down Expand Up @@ -581,7 +580,6 @@ def create_execution(
r"""Creates a new execution using the latest revision of
the given workflow.
.. code-block:: python
from google.cloud.workflows import executions_v1
Expand Down
Expand Up @@ -80,6 +80,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -190,5 +191,9 @@ def cancel_execution(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("ExecutionsTransport",)
Expand Up @@ -342,5 +342,9 @@ def cancel_execution(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("ExecutionsGrpcTransport",)
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -217,7 +217,6 @@ async def list_executions(
executions are ordered by their start time (newest
first).
.. code-block:: python
from google.cloud.workflows import executions_v1beta
Expand Down Expand Up @@ -332,7 +331,6 @@ async def create_execution(
r"""Creates a new execution using the latest revision of
the given workflow.
.. code-block:: python
from google.cloud.workflows import executions_v1beta
Expand Down
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -467,7 +467,6 @@ def list_executions(
executions are ordered by their start time (newest
first).
.. code-block:: python
from google.cloud.workflows import executions_v1beta
Expand Down Expand Up @@ -582,7 +581,6 @@ def create_execution(
r"""Creates a new execution using the latest revision of
the given workflow.
.. code-block:: python
from google.cloud.workflows import executions_v1beta
Expand Down
Expand Up @@ -80,6 +80,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -190,5 +191,9 @@ def cancel_execution(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("ExecutionsTransport",)
Expand Up @@ -343,5 +343,9 @@ def cancel_execution(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("ExecutionsGrpcTransport",)
6 changes: 1 addition & 5 deletions google/cloud/workflows_v1/services/workflows/async_client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -216,7 +216,6 @@ async def list_workflows(
r"""Lists Workflows in a given project and location.
The default order is not specified.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -431,7 +430,6 @@ async def create_workflow(
running operation will return
[ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -576,7 +574,6 @@ async def delete_workflow(
This method also cancels and deletes all running
executions of the workflow.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -705,7 +702,6 @@ async def update_workflow(
update operation. In that case, such revision will be
used in new workflow executions.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down
6 changes: 1 addition & 5 deletions google/cloud/workflows_v1/services/workflows/client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -444,7 +444,6 @@ def list_workflows(
r"""Lists Workflows in a given project and location.
The default order is not specified.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -659,7 +658,6 @@ def create_workflow(
running operation will return
[ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -804,7 +802,6 @@ def delete_workflow(
This method also cancels and deletes all running
executions of the workflow.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down Expand Up @@ -933,7 +930,6 @@ def update_workflow(
update operation. In that case, such revision will be
used in new workflow executions.
.. code-block:: python
from google.cloud import workflows_v1
Expand Down
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -210,5 +211,9 @@ def update_workflow(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("WorkflowsTransport",)
Expand Up @@ -390,5 +390,9 @@ def update_workflow(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("WorkflowsGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/workflows_v1/types/workflows.py
Expand Up @@ -73,7 +73,7 @@ class Workflow(proto.Message):
revision_create_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The timestamp that the latest
revision of the workflow was created.
labels (Sequence[google.cloud.workflows_v1.types.Workflow.LabelsEntry]):
labels (Mapping[str, str]):
Labels associated with this workflow.
Labels can contain at most 64 entries. Keys and
values can be no longer than 63 characters and
Expand Down
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -216,7 +216,6 @@ async def list_workflows(
r"""Lists Workflows in a given project and location.
The default order is not specified.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -431,7 +430,6 @@ async def create_workflow(
running operation will return
[ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -576,7 +574,6 @@ async def delete_workflow(
This method also cancels and deletes all running
executions of the workflow.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -705,7 +702,6 @@ async def update_workflow(
update operation. In that case, such revision will be
used in new workflow executions.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down
6 changes: 1 addition & 5 deletions google/cloud/workflows_v1beta/services/workflows/client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -444,7 +444,6 @@ def list_workflows(
r"""Lists Workflows in a given project and location.
The default order is not specified.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -659,7 +658,6 @@ def create_workflow(
running operation will return
[ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -804,7 +802,6 @@ def delete_workflow(
This method also cancels and deletes all running
executions of the workflow.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down Expand Up @@ -933,7 +930,6 @@ def update_workflow(
update operation. In that case, such revision will be
used in new workflow executions.
.. code-block:: python
from google.cloud import workflows_v1beta
Expand Down
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -210,5 +211,9 @@ def update_workflow(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("WorkflowsTransport",)
Expand Up @@ -390,5 +390,9 @@ def update_workflow(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("WorkflowsGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/workflows_v1beta/types/workflows.py
Expand Up @@ -70,7 +70,7 @@ class Workflow(proto.Message):
revision_create_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The timestamp that the latest
revision of the workflow was created.
labels (Sequence[google.cloud.workflows_v1beta.types.Workflow.LabelsEntry]):
labels (Mapping[str, str]):
Labels associated with this workflow.
Labels can contain at most 64 entries. Keys and
values can be no longer than 63 characters and
Expand Down

0 comments on commit f3ec9da

Please sign in to comment.