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

chore: upgrade gapic-generator-python to 0.43.2 #120

Closed
wants to merge 1 commit into from
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
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from google.cloud.securitycenter_v1.types import source
from google.cloud.securitycenter_v1.types import source as gcs_source
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 gi_policy # type: ignore
from google.protobuf import empty_pb2 as empty # 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 @@ -585,7 +585,7 @@ async def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> gi_policy.Policy:
r"""Gets the access control policy on the specified
Source.

Expand Down Expand Up @@ -1688,7 +1688,7 @@ async def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> gi_policy.Policy:
r"""Sets the access control policy on the specified
Source.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from google.cloud.securitycenter_v1.types import source
from google.cloud.securitycenter_v1.types import source as gcs_source
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 gi_policy # type: ignore
from google.protobuf import empty_pb2 as empty # 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 @@ -837,7 +837,7 @@ def get_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> gi_policy.Policy:
r"""Gets the access control policy on the specified
Source.

Expand Down Expand Up @@ -1868,7 +1868,7 @@ def set_iam_policy(
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy.Policy:
) -> gi_policy.Policy:
r"""Sets the access control policy on the specified
Source.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from google.cloud.securitycenter_v1.types import source
from google.cloud.securitycenter_v1.types import source as gcs_source
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 gi_policy # type: ignore
from google.longrunning import operations_pb2 as operations # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

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

Expand Down Expand Up @@ -507,7 +507,7 @@ def set_iam_policy(
self,
) -> typing.Callable[
[iam_policy.SetIamPolicyRequest],
typing.Union[policy.Policy, typing.Awaitable[policy.Policy]],
typing.Union[gi_policy.Policy, typing.Awaitable[gi_policy.Policy]],
]:
raise NotImplementedError()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from google.cloud.securitycenter_v1.types import source
from google.cloud.securitycenter_v1.types import source as gcs_source
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 gi_policy # type: ignore
from google.longrunning import operations_pb2 as operations # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

Expand Down Expand Up @@ -367,7 +367,7 @@ def delete_notification_config(
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.GetIamPolicyRequest], gi_policy.Policy]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy on the specified
Expand All @@ -387,7 +387,7 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1.SecurityCenter/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=gi_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

Expand Down Expand Up @@ -719,7 +719,7 @@ def set_finding_state(
@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], policy.Policy]:
) -> Callable[[iam_policy.SetIamPolicyRequest], gi_policy.Policy]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy on the specified
Expand All @@ -739,7 +739,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1.SecurityCenter/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=gi_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from google.cloud.securitycenter_v1.types import source
from google.cloud.securitycenter_v1.types import source as gcs_source
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 gi_policy # type: ignore
from google.longrunning import operations_pb2 as operations # type: ignore
from google.protobuf import empty_pb2 as empty # type: ignore

Expand Down Expand Up @@ -377,7 +377,7 @@ def delete_notification_config(
@property
def get_iam_policy(
self,
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.GetIamPolicyRequest], Awaitable[gi_policy.Policy]]:
r"""Return a callable for the get iam policy method over gRPC.

Gets the access control policy on the specified
Expand All @@ -397,7 +397,7 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1.SecurityCenter/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=gi_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

Expand Down Expand Up @@ -732,7 +732,7 @@ def set_finding_state(
@property
def set_iam_policy(
self,
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[policy.Policy]]:
) -> Callable[[iam_policy.SetIamPolicyRequest], Awaitable[gi_policy.Policy]]:
r"""Return a callable for the set iam policy method over gRPC.

Sets the access control policy on the specified
Expand All @@ -752,7 +752,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1.SecurityCenter/SetIamPolicy",
request_serializer=iam_policy.SetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=gi_policy.Policy.FromString,
)
return self._stubs["set_iam_policy"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from google.cloud.securitycenter_v1beta1.types import source
from google.cloud.securitycenter_v1beta1.types import source as gcs_source
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 google.protobuf import timestamp_pb2 as timestamp # type: ignore

Expand Down Expand Up @@ -403,7 +403,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 on the specified
Source.

Expand Down Expand Up @@ -1333,7 +1333,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 on the specified
Source.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from google.cloud.securitycenter_v1beta1.types import source
from google.cloud.securitycenter_v1beta1.types import source as gcs_source
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 google.protobuf import timestamp_pb2 as timestamp # type: ignore

Expand Down Expand Up @@ -626,7 +626,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 on the specified
Source.

Expand Down Expand Up @@ -1496,7 +1496,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 on the specified
Source.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from google.cloud.securitycenter_v1beta1.types import source
from google.cloud.securitycenter_v1beta1.types import source as gcs_source
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.longrunning import operations_pb2 as operations # type: ignore


Expand Down Expand Up @@ -308,7 +308,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 Down Expand Up @@ -416,7 +416,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 @@ -40,7 +40,7 @@
from google.cloud.securitycenter_v1beta1.types import source
from google.cloud.securitycenter_v1beta1.types import source as gcs_source
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.longrunning import operations_pb2 as operations # type: ignore

from .base import SecurityCenterTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -307,7 +307,7 @@ def create_finding(
@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 on the specified
Expand All @@ -327,7 +327,7 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1beta1.SecurityCenter/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

Expand Down Expand Up @@ -603,7 +603,7 @@ def set_finding_state(
@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 on the specified
Expand All @@ -623,7 +623,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1beta1.SecurityCenter/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 @@ -41,7 +41,7 @@
from google.cloud.securitycenter_v1beta1.types import source
from google.cloud.securitycenter_v1beta1.types import source as gcs_source
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.longrunning import operations_pb2 as operations # type: ignore

from .base import SecurityCenterTransport, DEFAULT_CLIENT_INFO
Expand Down Expand Up @@ -317,7 +317,7 @@ def create_finding(
@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 on the specified
Expand All @@ -337,7 +337,7 @@ def get_iam_policy(
self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1beta1.SecurityCenter/GetIamPolicy",
request_serializer=iam_policy.GetIamPolicyRequest.SerializeToString,
response_deserializer=policy.Policy.FromString,
response_deserializer=giv_policy.Policy.FromString,
)
return self._stubs["get_iam_policy"]

Expand Down Expand Up @@ -616,7 +616,7 @@ def set_finding_state(
@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 on the specified
Expand All @@ -636,7 +636,7 @@ def set_iam_policy(
self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary(
"/google.cloud.securitycenter.v1beta1.SecurityCenter/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 @@ -50,7 +50,7 @@
from google.cloud.securitycenter_v1p1beta1.types import source
from google.cloud.securitycenter_v1p1beta1.types import source as gcs_source
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 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 @@ -584,7 +584,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 on the specified
Source.

Expand Down Expand Up @@ -1737,7 +1737,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 on the specified
Source.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from google.cloud.securitycenter_v1p1beta1.types import source
from google.cloud.securitycenter_v1p1beta1.types import source as gcs_source
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 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 @@ -836,7 +836,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 on the specified
Source.

Expand Down Expand Up @@ -1917,7 +1917,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 on the specified
Source.

Expand Down
Loading