@@ -87,7 +87,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
87
87
88
88
@classmethod
89
89
def entry_path (cls , project , location , entry_group , entry ):
90
- """Return a fully-qualified entry string."""
90
+ """DEPRECATED. Return a fully-qualified entry string."""
91
+ warnings .warn (
92
+ "Resource name helper functions are deprecated." ,
93
+ PendingDeprecationWarning ,
94
+ stacklevel = 1 ,
95
+ )
91
96
return google .api_core .path_template .expand (
92
97
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" ,
93
98
project = project ,
@@ -98,7 +103,12 @@ def entry_path(cls, project, location, entry_group, entry):
98
103
99
104
@classmethod
100
105
def entry_group_path (cls , project , location , entry_group ):
101
- """Return a fully-qualified entry_group string."""
106
+ """DEPRECATED. Return a fully-qualified entry_group string."""
107
+ warnings .warn (
108
+ "Resource name helper functions are deprecated." ,
109
+ PendingDeprecationWarning ,
110
+ stacklevel = 1 ,
111
+ )
102
112
return google .api_core .path_template .expand (
103
113
"projects/{project}/locations/{location}/entryGroups/{entry_group}" ,
104
114
project = project ,
@@ -108,7 +118,12 @@ def entry_group_path(cls, project, location, entry_group):
108
118
109
119
@classmethod
110
120
def field_path (cls , project , location , tag_template , field ):
111
- """Return a fully-qualified field string."""
121
+ """DEPRECATED. Return a fully-qualified field string."""
122
+ warnings .warn (
123
+ "Resource name helper functions are deprecated." ,
124
+ PendingDeprecationWarning ,
125
+ stacklevel = 1 ,
126
+ )
112
127
return google .api_core .path_template .expand (
113
128
"projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" ,
114
129
project = project ,
@@ -119,7 +134,12 @@ def field_path(cls, project, location, tag_template, field):
119
134
120
135
@classmethod
121
136
def location_path (cls , project , location ):
122
- """Return a fully-qualified location string."""
137
+ """DEPRECATED. Return a fully-qualified location string."""
138
+ warnings .warn (
139
+ "Resource name helper functions are deprecated." ,
140
+ PendingDeprecationWarning ,
141
+ stacklevel = 1 ,
142
+ )
123
143
return google .api_core .path_template .expand (
124
144
"projects/{project}/locations/{location}" ,
125
145
project = project ,
@@ -128,7 +148,12 @@ def location_path(cls, project, location):
128
148
129
149
@classmethod
130
150
def tag_path (cls , project , location , entry_group , entry , tag ):
131
- """Return a fully-qualified tag string."""
151
+ """DEPRECATED. Return a fully-qualified tag string."""
152
+ warnings .warn (
153
+ "Resource name helper functions are deprecated." ,
154
+ PendingDeprecationWarning ,
155
+ stacklevel = 1 ,
156
+ )
132
157
return google .api_core .path_template .expand (
133
158
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" ,
134
159
project = project ,
@@ -140,7 +165,12 @@ def tag_path(cls, project, location, entry_group, entry, tag):
140
165
141
166
@classmethod
142
167
def tag_template_path (cls , project , location , tag_template ):
143
- """Return a fully-qualified tag_template string."""
168
+ """DEPRECATED. Return a fully-qualified tag_template string."""
169
+ warnings .warn (
170
+ "Resource name helper functions are deprecated." ,
171
+ PendingDeprecationWarning ,
172
+ stacklevel = 1 ,
173
+ )
144
174
return google .api_core .path_template .expand (
145
175
"projects/{project}/locations/{location}/tagTemplates/{tag_template}" ,
146
176
project = project ,
0 commit comments