Skip to content

Commit ec87853

Browse files
chore: Update gapic-generator-python to v1.8.5 (#258)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: googleapis/googleapis-gen@1907294 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent ddc5dc1 commit ec87853

File tree

4 files changed

+13
-9
lines changed
  • packages/google-cloud-webrisk/google/cloud

4 files changed

+13
-9
lines changed

packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/transports/rest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming
@@ -291,7 +291,7 @@ class _ComputeThreatListDiff(WebRiskServiceRestStub):
291291
def __hash__(self):
292292
return hash("ComputeThreatListDiff")
293293

294-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
294+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
295295
"threatType": {},
296296
"constraints": {},
297297
}
@@ -382,7 +382,7 @@ class _CreateSubmission(WebRiskServiceRestStub):
382382
def __hash__(self):
383383
return hash("CreateSubmission")
384384

385-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
385+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
386386

387387
@classmethod
388388
def _get_unset_required_fields(cls, message_dict):
@@ -483,7 +483,7 @@ class _SearchHashes(WebRiskServiceRestStub):
483483
def __hash__(self):
484484
return hash("SearchHashes")
485485

486-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
486+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
487487
"threatTypes": {},
488488
}
489489

@@ -573,7 +573,7 @@ class _SearchUris(WebRiskServiceRestStub):
573573
def __hash__(self):
574574
return hash("SearchUris")
575575

576-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
576+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
577577
"uri": "",
578578
"threatTypes": {},
579579
}

packages/google-cloud-webrisk/google/cloud/webrisk_v1/types/webrisk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/transports/rest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming
@@ -260,7 +260,7 @@ class _ComputeThreatListDiff(WebRiskServiceV1Beta1RestStub):
260260
def __hash__(self):
261261
return hash("ComputeThreatListDiff")
262262

263-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
263+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
264264
"threatType": {},
265265
"constraints": {},
266266
}
@@ -351,7 +351,7 @@ class _SearchHashes(WebRiskServiceV1Beta1RestStub):
351351
def __hash__(self):
352352
return hash("SearchHashes")
353353

354-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
354+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
355355
"threatTypes": {},
356356
}
357357

@@ -441,7 +441,7 @@ class _SearchUris(WebRiskServiceV1Beta1RestStub):
441441
def __hash__(self):
442442
return hash("SearchUris")
443443

444-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
444+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
445445
"uri": "",
446446
"threatTypes": {},
447447
}

packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/types/webrisk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

0 commit comments

Comments
 (0)