@@ -92,12 +92,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
92
92
93
93
@classmethod
94
94
def crypto_key_path (cls , project , location , key_ring , crypto_key ):
95
- """DEPRECATED. Return a fully-qualified crypto_key string."""
96
- warnings .warn (
97
- "Resource name helper functions are deprecated." ,
98
- PendingDeprecationWarning ,
99
- stacklevel = 1 ,
100
- )
95
+ """Return a fully-qualified crypto_key string."""
101
96
return google .api_core .path_template .expand (
102
97
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" ,
103
98
project = project ,
@@ -108,12 +103,7 @@ def crypto_key_path(cls, project, location, key_ring, crypto_key):
108
103
109
104
@classmethod
110
105
def crypto_key_path_path (cls , project , location , key_ring , crypto_key_path ):
111
- """DEPRECATED. Return a fully-qualified crypto_key_path string."""
112
- warnings .warn (
113
- "Resource name helper functions are deprecated." ,
114
- PendingDeprecationWarning ,
115
- stacklevel = 1 ,
116
- )
106
+ """Return a fully-qualified crypto_key_path string."""
117
107
return google .api_core .path_template .expand (
118
108
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key_path=**}" ,
119
109
project = project ,
@@ -126,12 +116,7 @@ def crypto_key_path_path(cls, project, location, key_ring, crypto_key_path):
126
116
def crypto_key_version_path (
127
117
cls , project , location , key_ring , crypto_key , crypto_key_version
128
118
):
129
- """DEPRECATED. Return a fully-qualified crypto_key_version string."""
130
- warnings .warn (
131
- "Resource name helper functions are deprecated." ,
132
- PendingDeprecationWarning ,
133
- stacklevel = 1 ,
134
- )
119
+ """Return a fully-qualified crypto_key_version string."""
135
120
return google .api_core .path_template .expand (
136
121
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" ,
137
122
project = project ,
@@ -143,12 +128,7 @@ def crypto_key_version_path(
143
128
144
129
@classmethod
145
130
def import_job_path (cls , project , location , key_ring , import_job ):
146
- """DEPRECATED. Return a fully-qualified import_job string."""
147
- warnings .warn (
148
- "Resource name helper functions are deprecated." ,
149
- PendingDeprecationWarning ,
150
- stacklevel = 1 ,
151
- )
131
+ """Return a fully-qualified import_job string."""
152
132
return google .api_core .path_template .expand (
153
133
"projects/{project}/locations/{location}/keyRings/{key_ring}/importJobs/{import_job}" ,
154
134
project = project ,
@@ -159,12 +139,7 @@ def import_job_path(cls, project, location, key_ring, import_job):
159
139
160
140
@classmethod
161
141
def key_ring_path (cls , project , location , key_ring ):
162
- """DEPRECATED. Return a fully-qualified key_ring string."""
163
- warnings .warn (
164
- "Resource name helper functions are deprecated." ,
165
- PendingDeprecationWarning ,
166
- stacklevel = 1 ,
167
- )
142
+ """Return a fully-qualified key_ring string."""
168
143
return google .api_core .path_template .expand (
169
144
"projects/{project}/locations/{location}/keyRings/{key_ring}" ,
170
145
project = project ,
@@ -174,12 +149,7 @@ def key_ring_path(cls, project, location, key_ring):
174
149
175
150
@classmethod
176
151
def location_path (cls , project , location ):
177
- """DEPRECATED. Return a fully-qualified location string."""
178
- warnings .warn (
179
- "Resource name helper functions are deprecated." ,
180
- PendingDeprecationWarning ,
181
- stacklevel = 1 ,
182
- )
152
+ """Return a fully-qualified location string."""
183
153
return google .api_core .path_template .expand (
184
154
"projects/{project}/locations/{location}" ,
185
155
project = project ,
0 commit comments