@@ -850,6 +850,39 @@ def __init__(
850850
851851 self ._logged_web_access_uris = set ()
852852
853+ @classmethod
854+ def _empty_constructor (
855+ cls ,
856+ project : Optional [str ] = None ,
857+ location : Optional [str ] = None ,
858+ credentials : Optional [auth_credentials .Credentials ] = None ,
859+ resource_name : Optional [str ] = None ,
860+ ) -> "_RunnableJob" :
861+ """Initializes with all attributes set to None.
862+
863+ The attributes should be populated after a future is complete. This allows
864+ scheduling of additional API calls before the resource is created.
865+
866+ Args:
867+ project (str): Optional. Project of the resource noun.
868+ location (str): Optional. The location of the resource noun.
869+ credentials(google.auth.credentials.Credentials):
870+ Optional. custom credentials to use when accessing interacting with
871+ resource noun.
872+ resource_name(str): Optional. A fully-qualified resource name or ID.
873+ Returns:
874+ An instance of this class with attributes set to None.
875+ """
876+ self = super ()._empty_constructor (
877+ project = project ,
878+ location = location ,
879+ credentials = credentials ,
880+ resource_name = resource_name ,
881+ )
882+
883+ self ._logged_web_access_uris = set ()
884+ return self
885+
853886 @property
854887 def web_access_uris (self ) -> Dict [str , Union [str , Dict [str , str ]]]:
855888 """Fetch the runnable job again and return the latest web access uris.
0 commit comments