Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions google/cloud/tasks_v2/services/cloud_tasks/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from google.cloud.tasks_v2.types import task
from google.cloud.tasks_v2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -922,7 +922,7 @@ async def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if
the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1067,7 +1067,7 @@ async def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
policy.
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/tasks_v2/services/cloud_tasks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from google.cloud.tasks_v2.types import task
from google.cloud.tasks_v2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -1095,7 +1095,7 @@ def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if
the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1230,7 +1230,7 @@ def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
policy.
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/tasks_v2/services/cloud_tasks/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from google.cloud.tasks_v2.types import task
from google.cloud.tasks_v2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore


Expand Down Expand Up @@ -329,7 +329,7 @@ def get_iam_policy(
self,
) -> typing.Callable[
[iam_policy.GetIamPolicyRequest],
typing.Union[policy.Policy, typing.Awaitable[policy.Policy]],
typing.Union[giv_policy.Policy, typing.Awaitable[giv_policy.Policy]],
]:
raise NotImplementedError()

Expand All @@ -338,7 +338,7 @@ def set_iam_policy(
self,
) -> typing.Callable[
[iam_policy.SetIamPolicyRequest],
typing.Union[policy.Policy, typing.Awaitable[policy.Policy]],
typing.Union[giv_policy.Policy, typing.Awaitable[giv_policy.Policy]],
]:
raise NotImplementedError()

Expand Down
10 changes: 5 additions & 5 deletions google/cloud/tasks_v2/services/cloud_tasks/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from google.cloud.tasks_v2.types import task
from google.cloud.tasks_v2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

from .base import CloudTasksTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -491,7 +491,7 @@ def resume_queue(self) -> Callable[[cloudtasks.ResumeQueueRequest], queue.Queue]
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.GetIamPolicyRequest], giv_policy.Policy]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy for a
Expand All @@ -518,14 +518,14 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2.CloudTasks/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.SetIamPolicyRequest], giv_policy.Policy]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy for a
Expand Down Expand Up @@ -556,7 +556,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2.CloudTasks/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from google.cloud.tasks_v2.types import task
from google.cloud.tasks_v2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

from .base import CloudTasksTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -507,7 +507,7 @@ def resume_queue(
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[giv_policy.Policy]]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy for a
Expand All @@ -534,14 +534,14 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2.CloudTasks/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[giv_policy.Policy]]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy for a
Expand Down Expand Up @@ -572,7 +572,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2.CloudTasks/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from google.cloud.tasks_v2beta2.types import task
from google.cloud.tasks_v2beta2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -923,7 +923,7 @@ async def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty
policy if the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1068,7 +1068,7 @@ async def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
policy.
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/tasks_v2beta2/services/cloud_tasks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from google.cloud.tasks_v2beta2.types import task
from google.cloud.tasks_v2beta2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -1096,7 +1096,7 @@ def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty
policy if the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1231,7 +1231,7 @@ def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
policy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from google.cloud.tasks_v2beta2.types import task
from google.cloud.tasks_v2beta2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore


Expand Down Expand Up @@ -341,7 +341,7 @@ def get_iam_policy(
self,
) -> typing.Callable[
[iam_policy.GetIamPolicyRequest],
typing.Union[policy.Policy, typing.Awaitable[policy.Policy]],
typing.Union[giv_policy.Policy, typing.Awaitable[giv_policy.Policy]],
]:
raise NotImplementedError()

Expand All @@ -350,7 +350,7 @@ def set_iam_policy(
self,
) -> typing.Callable[
[iam_policy.SetIamPolicyRequest],
typing.Union[policy.Policy, typing.Awaitable[policy.Policy]],
typing.Union[giv_policy.Policy, typing.Awaitable[giv_policy.Policy]],
]:
raise NotImplementedError()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from google.cloud.tasks_v2beta2.types import task
from google.cloud.tasks_v2beta2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

from .base import CloudTasksTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -491,7 +491,7 @@ def resume_queue(self) -> Callable[[cloudtasks.ResumeQueueRequest], queue.Queue]
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.GetIamPolicyRequest], giv_policy.Policy]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy for a
Expand All @@ -518,14 +518,14 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.SetIamPolicyRequest], giv_policy.Policy]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy for a
Expand Down Expand Up @@ -556,7 +556,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from google.cloud.tasks_v2beta2.types import task
from google.cloud.tasks_v2beta2.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

from .base import CloudTasksTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -507,7 +507,7 @@ def resume_queue(
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[giv_policy.Policy]]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy for a
Expand All @@ -534,14 +534,14 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[giv_policy.Policy]]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy for a
Expand Down Expand Up @@ -572,7 +572,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from google.cloud.tasks_v2beta3.types import task
from google.cloud.tasks_v2beta3.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -923,7 +923,7 @@ async def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2beta3.Queue]. Returns an empty
policy if the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1068,7 +1068,7 @@ async def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
policy.
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/tasks_v2beta3/services/cloud_tasks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from google.cloud.tasks_v2beta3.types import task
from google.cloud.tasks_v2beta3.types import task as gct_task
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.iam.v1 import policy_pb2 as giv_policy # type: ignore
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
Expand Down Expand Up @@ -1096,7 +1096,7 @@ def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Gets the access control policy for a
[Queue][google.cloud.tasks.v2beta3.Queue]. Returns an empty
policy if the resource exists and does not have a policy set.
Expand Down Expand Up @@ -1231,7 +1231,7 @@ def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> giv_policy.Policy:
r"""Sets the access control policy for a
[Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
policy.
Expand Down
Loading