11# -*- coding: utf-8 -*-
22#
3- # Copyright 2019 Google LLC
3+ # Copyright 2020 Google LLC
44#
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
@@ -87,12 +87,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8787
8888 @classmethod
8989 def entry_path (cls , project , location , entry_group , entry ):
90- """DEPRECATED. Return a fully-qualified entry string."""
91- warnings .warn (
92- "Resource name helper functions are deprecated." ,
93- PendingDeprecationWarning ,
94- stacklevel = 1 ,
95- )
90+ """Return a fully-qualified entry string."""
9691 return google .api_core .path_template .expand (
9792 "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" ,
9893 project = project ,
@@ -103,12 +98,7 @@ def entry_path(cls, project, location, entry_group, entry):
10398
10499 @classmethod
105100 def entry_group_path (cls , project , location , entry_group ):
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- )
101+ """Return a fully-qualified entry_group string."""
112102 return google .api_core .path_template .expand (
113103 "projects/{project}/locations/{location}/entryGroups/{entry_group}" ,
114104 project = project ,
@@ -118,12 +108,7 @@ def entry_group_path(cls, project, location, entry_group):
118108
119109 @classmethod
120110 def field_path (cls , project , location , tag_template , field ):
121- """DEPRECATED. Return a fully-qualified field string."""
122- warnings .warn (
123- "Resource name helper functions are deprecated." ,
124- PendingDeprecationWarning ,
125- stacklevel = 1 ,
126- )
111+ """Return a fully-qualified field string."""
127112 return google .api_core .path_template .expand (
128113 "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" ,
129114 project = project ,
@@ -134,12 +119,7 @@ def field_path(cls, project, location, tag_template, field):
134119
135120 @classmethod
136121 def location_path (cls , project , location ):
137- """DEPRECATED. Return a fully-qualified location string."""
138- warnings .warn (
139- "Resource name helper functions are deprecated." ,
140- PendingDeprecationWarning ,
141- stacklevel = 1 ,
142- )
122+ """Return a fully-qualified location string."""
143123 return google .api_core .path_template .expand (
144124 "projects/{project}/locations/{location}" ,
145125 project = project ,
@@ -148,12 +128,7 @@ def location_path(cls, project, location):
148128
149129 @classmethod
150130 def tag_path (cls , project , location , entry_group , entry , tag ):
151- """DEPRECATED. Return a fully-qualified tag string."""
152- warnings .warn (
153- "Resource name helper functions are deprecated." ,
154- PendingDeprecationWarning ,
155- stacklevel = 1 ,
156- )
131+ """Return a fully-qualified tag string."""
157132 return google .api_core .path_template .expand (
158133 "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" ,
159134 project = project ,
@@ -165,12 +140,7 @@ def tag_path(cls, project, location, entry_group, entry, tag):
165140
166141 @classmethod
167142 def tag_template_path (cls , project , location , tag_template ):
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- )
143+ """Return a fully-qualified tag_template string."""
174144 return google .api_core .path_template .expand (
175145 "projects/{project}/locations/{location}/tagTemplates/{tag_template}" ,
176146 project = project ,
0 commit comments