1
1
# -*- coding: utf-8 -*-
2
2
#
3
- # Copyright 2019 Google LLC
3
+ # Copyright 2020 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# 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):
87
87
88
88
@classmethod
89
89
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."""
96
91
return google .api_core .path_template .expand (
97
92
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" ,
98
93
project = project ,
@@ -103,12 +98,7 @@ def entry_path(cls, project, location, entry_group, entry):
103
98
104
99
@classmethod
105
100
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."""
112
102
return google .api_core .path_template .expand (
113
103
"projects/{project}/locations/{location}/entryGroups/{entry_group}" ,
114
104
project = project ,
@@ -118,12 +108,7 @@ def entry_group_path(cls, project, location, entry_group):
118
108
119
109
@classmethod
120
110
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."""
127
112
return google .api_core .path_template .expand (
128
113
"projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" ,
129
114
project = project ,
@@ -134,12 +119,7 @@ def field_path(cls, project, location, tag_template, field):
134
119
135
120
@classmethod
136
121
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."""
143
123
return google .api_core .path_template .expand (
144
124
"projects/{project}/locations/{location}" ,
145
125
project = project ,
@@ -148,12 +128,7 @@ def location_path(cls, project, location):
148
128
149
129
@classmethod
150
130
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."""
157
132
return google .api_core .path_template .expand (
158
133
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" ,
159
134
project = project ,
@@ -165,12 +140,7 @@ def tag_path(cls, project, location, entry_group, entry, tag):
165
140
166
141
@classmethod
167
142
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."""
174
144
return google .api_core .path_template .expand (
175
145
"projects/{project}/locations/{location}/tagTemplates/{tag_template}" ,
176
146
project = project ,
0 commit comments