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
@@ -323,12 +320,7 @@ def user(email):
323320
324321 Returns:
325322 str: A member string corresponding to the given user.
326-
327- DEPRECATED: set the role `user:{email}` in the binding instead.
328323 """
329- warnings .warn (
330- _FACTORY_DEPRECATED_MSG .format ("user:{email}" ), DeprecationWarning ,
331- )
332324 return "user:%s" % (email ,)
333325
334326 @staticmethod
@@ -341,12 +333,7 @@ def service_account(email):
341333 Returns:
342334 str: A member string corresponding to the given service account.
343335
344- DEPRECATED: set the role `serviceAccount:{email}` in the binding instead.
345336 """
346- warnings .warn (
347- _FACTORY_DEPRECATED_MSG .format ("serviceAccount:{email}" ),
348- DeprecationWarning ,
349- )
350337 return "serviceAccount:%s" % (email ,)
351338
352339 @staticmethod
@@ -358,12 +345,7 @@ def group(email):
358345
359346 Returns:
360347 str: A member string corresponding to the given group.
361-
362- DEPRECATED: set the role `group:{email}` in the binding instead.
363348 """
364- warnings .warn (
365- _FACTORY_DEPRECATED_MSG .format ("group:{email}" ), DeprecationWarning ,
366- )
367349 return "group:%s" % (email ,)
368350
369351 @staticmethod
@@ -375,12 +357,7 @@ def domain(domain):
375357
376358 Returns:
377359 str: A member string corresponding to the given domain.
378-
379- DEPRECATED: set the role `domain:{email}` in the binding instead.
380360 """
381- warnings .warn (
382- _FACTORY_DEPRECATED_MSG .format ("domain:{email}" ), DeprecationWarning ,
383- )
384361 return "domain:%s" % (domain ,)
385362
386363 @staticmethod
@@ -389,12 +366,7 @@ def all_users():
389366
390367 Returns:
391368 str: A member string representing all users.
392-
393- DEPRECATED: set the role `allUsers` in the binding instead.
394369 """
395- warnings .warn (
396- _FACTORY_DEPRECATED_MSG .format ("allUsers" ), DeprecationWarning ,
397- )
398370 return "allUsers"
399371
400372 @staticmethod
@@ -403,12 +375,7 @@ def authenticated_users():
403375
404376 Returns:
405377 str: A member string representing all authenticated users.
406-
407- DEPRECATED: set the role `allAuthenticatedUsers` in the binding instead.
408378 """
409- warnings .warn (
410- _FACTORY_DEPRECATED_MSG .format ("allAuthenticatedUsers" ), DeprecationWarning ,
411- )
412379 return "allAuthenticatedUsers"
413380
414381 @classmethod
0 commit comments