Skip to content

Commit 42c4d04

Browse files
chore: [Many APIs] Update gapic-generator-python to v1.18.4 (#12954)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 657207628 Source-Link: googleapis/googleapis@33fe71e Source-Link: googleapis/googleapis-gen@e02739d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeS10cm91Ymxlc2hvb3Rlci8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzFjNTdmMTJhODNkNDdhMWRkYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXNpbXVsYXRvci8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzFjNTdmMTJhODNkNDdhMWRkYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXRyb3VibGVzaG9vdGVyLWlhbS8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzFjNTdmMTJhODNkNDdhMWRkYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZhdGUtY2F0YWxvZy8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzFjNTdmMTJhODNkNDdhMWRkYSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZpbGVnZWRhY2Nlc3NtYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiJlMDI3MzlkMTIyZWQxNWJkNWVmNTc3MWM1N2YxMmE4M2Q0N2ExZGRhIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJhcGlkbWlncmF0aW9uYXNzZXNzbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiZTAyNzM5ZDEyMmVkMTViZDVlZjU3NzF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VmNTc3MWM1N2YxMmE4M2Q0N2ExZGRhIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d95af77 commit 42c4d04

File tree

172 files changed

+2191
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+2191
-327
lines changed

packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.11.4" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-policy-troubleshooter/google/cloud/policytroubleshooter_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.11.4" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-policy-troubleshooter/samples/generated_samples/snippet_metadata_google.cloud.policytroubleshooter.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-policy-troubleshooter",
11-
"version": "1.11.4"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-policy-troubleshooter/tests/unit/gapic/policytroubleshooter_v1/test_iam_checker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from google.api_core import gapic_v1, grpc_helpers, grpc_helpers_async, path_template
3030
from google.api_core import api_core_version, client_options
3131
from google.api_core import exceptions as core_exceptions
32+
from google.api_core import retry as retries
3233
import google.auth
3334
from google.auth import credentials as ga_credentials
3435
from google.auth.exceptions import MutualTLSChannelError

packages/google-cloud-policysimulator/google/cloud/policysimulator/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.7" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ async def sample_list_replay_results():
644644
method=rpc,
645645
request=request,
646646
response=response,
647+
retry=retry,
648+
timeout=timeout,
647649
metadata=metadata,
648650
)
649651

packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,8 @@ def sample_list_replay_results():
10781078
method=rpc,
10791079
request=request,
10801080
response=response,
1081+
retry=retry,
1082+
timeout=timeout,
10811083
metadata=metadata,
10821084
)
10831085

packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/pagers.py

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,22 @@
2222
Optional,
2323
Sequence,
2424
Tuple,
25+
Union,
2526
)
2627

28+
from google.api_core import gapic_v1
29+
from google.api_core import retry as retries
30+
from google.api_core import retry_async as retries_async
31+
32+
try:
33+
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
34+
OptionalAsyncRetry = Union[
35+
retries_async.AsyncRetry, gapic_v1.method._MethodDefault, None
36+
]
37+
except AttributeError: # pragma: NO COVER
38+
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
39+
OptionalAsyncRetry = Union[retries_async.AsyncRetry, object, None] # type: ignore
40+
2741
from google.cloud.policysimulator_v1.types import simulator
2842

2943

@@ -51,6 +65,8 @@ def __init__(
5165
request: simulator.ListReplayResultsRequest,
5266
response: simulator.ListReplayResultsResponse,
5367
*,
68+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
69+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
5470
metadata: Sequence[Tuple[str, str]] = ()
5571
):
5672
"""Instantiate the pager.
@@ -62,12 +78,17 @@ def __init__(
6278
The initial request object.
6379
response (google.cloud.policysimulator_v1.types.ListReplayResultsResponse):
6480
The initial response object.
81+
retry (google.api_core.retry.Retry): Designation of what errors,
82+
if any, should be retried.
83+
timeout (float): The timeout for this request.
6584
metadata (Sequence[Tuple[str, str]]): Strings which should be
6685
sent along with the request as metadata.
6786
"""
6887
self._method = method
6988
self._request = simulator.ListReplayResultsRequest(request)
7089
self._response = response
90+
self._retry = retry
91+
self._timeout = timeout
7192
self._metadata = metadata
7293

7394
def __getattr__(self, name: str) -> Any:
@@ -78,7 +99,12 @@ def pages(self) -> Iterator[simulator.ListReplayResultsResponse]:
7899
yield self._response
79100
while self._response.next_page_token:
80101
self._request.page_token = self._response.next_page_token
81-
self._response = self._method(self._request, metadata=self._metadata)
102+
self._response = self._method(
103+
self._request,
104+
retry=self._retry,
105+
timeout=self._timeout,
106+
metadata=self._metadata,
107+
)
82108
yield self._response
83109

84110
def __iter__(self) -> Iterator[simulator.ReplayResult]:
@@ -113,6 +139,8 @@ def __init__(
113139
request: simulator.ListReplayResultsRequest,
114140
response: simulator.ListReplayResultsResponse,
115141
*,
142+
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
143+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
116144
metadata: Sequence[Tuple[str, str]] = ()
117145
):
118146
"""Instantiates the pager.
@@ -124,12 +152,17 @@ def __init__(
124152
The initial request object.
125153
response (google.cloud.policysimulator_v1.types.ListReplayResultsResponse):
126154
The initial response object.
155+
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
156+
if any, should be retried.
157+
timeout (float): The timeout for this request.
127158
metadata (Sequence[Tuple[str, str]]): Strings which should be
128159
sent along with the request as metadata.
129160
"""
130161
self._method = method
131162
self._request = simulator.ListReplayResultsRequest(request)
132163
self._response = response
164+
self._retry = retry
165+
self._timeout = timeout
133166
self._metadata = metadata
134167

135168
def __getattr__(self, name: str) -> Any:
@@ -140,7 +173,12 @@ async def pages(self) -> AsyncIterator[simulator.ListReplayResultsResponse]:
140173
yield self._response
141174
while self._response.next_page_token:
142175
self._request.page_token = self._response.next_page_token
143-
self._response = await self._method(self._request, metadata=self._metadata)
176+
self._response = await self._method(
177+
self._request,
178+
retry=self._retry,
179+
timeout=self._timeout,
180+
metadata=self._metadata,
181+
)
144182
yield self._response
145183

146184
def __aiter__(self) -> AsyncIterator[simulator.ReplayResult]:

packages/google-cloud-policysimulator/samples/generated_samples/snippet_metadata_google.cloud.policysimulator.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-policysimulator",
11-
"version": "0.1.7"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)