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

Commit 83a9356

Browse files
yoshi-automationbusunkim96
authored andcommitted
fix(phishingprotection): deprecate resource name helper methods (via synth) (#9862)
1 parent f61402a commit 83a9356

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

docs/_static/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
div#python2-eol {
22
border-color: red;
33
border-width: medium;
4-
}
4+
}

docs/_templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
{% extends "!layout.html" %}
23
{%- block content %}
34
{%- if theme_fixed_sidebar|lower == 'true' %}

google/cloud/phishingprotection_v1beta1/gapic/phishing_protection_service_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7878

7979
@classmethod
8080
def project_path(cls, project):
81-
"""Return a fully-qualified project string."""
81+
"""DEPRECATED. Return a fully-qualified project string."""
82+
warnings.warn(
83+
"Resource name helper functions are deprecated.",
84+
PendingDeprecationWarning,
85+
stacklevel=1,
86+
)
8287
return google.api_core.path_template.expand(
8388
"projects/{project}", project=project
8489
)

synth.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"updateTime": "2019-10-05T12:30:18.605559Z",
2+
"updateTime": "2019-11-20T13:27:53.652666Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.38.0",
8-
"dockerImage": "googleapis/artman@sha256:0d2f8d429110aeb8d82df6550ef4ede59d40df9062d260a1580fce688b0512bf"
7+
"version": "0.42.1",
8+
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "ceb8e2fb12f048cc94caae532ef0b4cf026a78f3",
16-
"internalRef": "272971705"
15+
"sha": "16543773103e2619d2b5f52456264de5bb9be104",
16+
"internalRef": "281423227"
1717
}
1818
},
1919
{
2020
"template": {
2121
"name": "python_library",
2222
"origin": "synthtool.gcp",
23-
"version": "2019.5.2"
23+
"version": "2019.10.17"
2424
}
2525
}
2626
],

0 commit comments

Comments
 (0)