7474_ASSIGNMENT_DEPRECATED_MSG = """\
7575 Assigning to '{}' is deprecated. Use the `policy.bindings` property to modify bindings instead."""
7676
77- _FACTORY_DEPRECATED_MSG = """\
78- Factory method {0} is deprecated. Replace with '{0}'."""
79-
8077_DICT_ACCESS_MSG = """\
8178 Dict access is not supported on policies with version > 1 or with conditional bindings."""
8279
@@ -316,12 +313,7 @@ def user(email):
316313
317314 Returns:
318315 str: A member string corresponding to the given user.
319-
320- DEPRECATED: set the role `user:{email}` in the binding instead.
321316 """
322- warnings .warn (
323- _FACTORY_DEPRECATED_MSG .format ("user:{email}" ), DeprecationWarning ,
324- )
325317 return "user:%s" % (email ,)
326318
327319 @staticmethod
@@ -334,12 +326,7 @@ def service_account(email):
334326 Returns:
335327 str: A member string corresponding to the given service account.
336328
337- DEPRECATED: set the role `serviceAccount:{email}` in the binding instead.
338329 """
339- warnings .warn (
340- _FACTORY_DEPRECATED_MSG .format ("serviceAccount:{email}" ),
341- DeprecationWarning ,
342- )
343330 return "serviceAccount:%s" % (email ,)
344331
345332 @staticmethod
@@ -351,12 +338,7 @@ def group(email):
351338
352339 Returns:
353340 str: A member string corresponding to the given group.
354-
355- DEPRECATED: set the role `group:{email}` in the binding instead.
356341 """
357- warnings .warn (
358- _FACTORY_DEPRECATED_MSG .format ("group:{email}" ), DeprecationWarning ,
359- )
360342 return "group:%s" % (email ,)
361343
362344 @staticmethod
@@ -368,12 +350,7 @@ def domain(domain):
368350
369351 Returns:
370352 str: A member string corresponding to the given domain.
371-
372- DEPRECATED: set the role `domain:{email}` in the binding instead.
373353 """
374- warnings .warn (
375- _FACTORY_DEPRECATED_MSG .format ("domain:{email}" ), DeprecationWarning ,
376- )
377354 return "domain:%s" % (domain ,)
378355
379356 @staticmethod
@@ -382,12 +359,7 @@ def all_users():
382359
383360 Returns:
384361 str: A member string representing all users.
385-
386- DEPRECATED: set the role `allUsers` in the binding instead.
387362 """
388- warnings .warn (
389- _FACTORY_DEPRECATED_MSG .format ("allUsers" ), DeprecationWarning ,
390- )
391363 return "allUsers"
392364
393365 @staticmethod
@@ -396,12 +368,7 @@ def authenticated_users():
396368
397369 Returns:
398370 str: A member string representing all authenticated users.
399-
400- DEPRECATED: set the role `allAuthenticatedUsers` in the binding instead.
401371 """
402- warnings .warn (
403- _FACTORY_DEPRECATED_MSG .format ("allAuthenticatedUsers" ), DeprecationWarning ,
404- )
405372 return "allAuthenticatedUsers"
406373
407374 @classmethod
0 commit comments