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

Commit c0418ae

Browse files
fix: update retry config (#27)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/131dd10e-845c-4b68-acf1-3514a23e446f/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 316182409 Source-Link: googleapis/googleapis@1846617 PiperOrigin-RevId: 316023184 Source-Link: googleapis/googleapis@500ecc4 PiperOrigin-RevId: 314363155 Source-Link: googleapis/googleapis@3a4894c
1 parent 4f57701 commit c0418ae

File tree

6 files changed

+30
-23
lines changed

6 files changed

+30
-23
lines changed

google/cloud/phishingprotection_v1beta1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
if sys.version_info[:2] == (2, 7):
2929
message = (
30-
"A future version of this library will drop support for Python 2.7."
31-
"More details about Python 2 support for Google Cloud Client Libraries"
30+
"A future version of this library will drop support for Python 2.7. "
31+
"More details about Python 2 support for Google Cloud Client Libraries "
3232
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
3333
)
3434
warnings.warn(message, DeprecationWarning)

google/cloud/phishingprotection_v1beta1/gapic/phishing_protection_service_client_config.py

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
config = {
22
"interfaces": {
33
"google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1": {
4-
"retry_codes": {
5-
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
6-
"non_idempotent": [],
7-
},
4+
"retry_codes": {"no_retry_codes": [], "no_retry_1_codes": []},
85
"retry_params": {
9-
"default": {
10-
"initial_retry_delay_millis": 100,
11-
"retry_delay_multiplier": 1.3,
12-
"max_retry_delay_millis": 60000,
13-
"initial_rpc_timeout_millis": 20000,
6+
"no_retry_params": {
7+
"initial_retry_delay_millis": 0,
8+
"retry_delay_multiplier": 0.0,
9+
"max_retry_delay_millis": 0,
10+
"initial_rpc_timeout_millis": 0,
11+
"rpc_timeout_multiplier": 1.0,
12+
"max_rpc_timeout_millis": 0,
13+
"total_timeout_millis": 0,
14+
},
15+
"no_retry_1_params": {
16+
"initial_retry_delay_millis": 0,
17+
"retry_delay_multiplier": 0.0,
18+
"max_retry_delay_millis": 0,
19+
"initial_rpc_timeout_millis": 600000,
1420
"rpc_timeout_multiplier": 1.0,
15-
"max_rpc_timeout_millis": 20000,
21+
"max_rpc_timeout_millis": 600000,
1622
"total_timeout_millis": 600000,
17-
}
23+
},
1824
},
1925
"methods": {
2026
"ReportPhishing": {
21-
"timeout_millis": 60000,
22-
"retry_codes_name": "non_idempotent",
23-
"retry_params_name": "default",
27+
"timeout_millis": 600000,
28+
"retry_codes_name": "no_retry_1_codes",
29+
"retry_params_name": "no_retry_1_params",
2430
}
2531
},
2632
}

google/cloud/phishingprotection_v1beta1/proto/phishingprotection_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
import nox
2424

2525

26-
BLACK_VERSION = "black==19.3b0"
26+
BLACK_VERSION = "black==19.10b0"
2727
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2828

29-
DEFAULT_PYTHON_VERSION = "3.7"
30-
SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.7"]
29+
DEFAULT_PYTHON_VERSION = "3.8"
30+
SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"]
3131
UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8"]
3232

3333

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/python-phishingprotection.git",
7-
"sha": "3cf1c90f28f16d73ca56027c3b68e72ee73517bb"
7+
"sha": "4f57701cc4d163eff7cfd83dd2f3932ad80ff264"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "eafa840ceec23b44a5c21670288107c661252711",
15-
"internalRef": "313488995"
14+
"sha": "184661793fbe3b89f2b485c303e7466cef9d21a1",
15+
"internalRef": "316182409"
1616
}
1717
},
1818
{

synth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@
9393
s.move(templated_files)
9494

9595
# TODO(busunkim): Use latest sphinx after microgenerator transition
96-
s.replace("noxfile.py", '"sphinx"', '"sphinx<3.0.0"')
96+
s.replace("noxfile.py", '''["']sphinx["']''', '"sphinx<3.0.0"')
9797

9898
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)