@@ -2047,7 +2047,8 @@ func (s *API) GetNamespace(req *GetNamespaceRequest, opts ...scw.RequestOption)
20472047
20482048// WaitForNamespaceRequest is used by WaitForNamespace method.
20492049type WaitForNamespaceRequest struct {
2050- GetNamespaceRequest
2050+ Region scw.Region
2051+ NamespaceID string
20512052 Timeout * time.Duration
20522053 RetryInterval * time.Duration
20532054}
@@ -2070,7 +2071,7 @@ func (s *API) WaitForNamespace(req *WaitForNamespaceRequest, opts ...scw.Request
20702071 }
20712072
20722073 res , err := async .WaitSync (& async.WaitSyncConfig {
2073- Get : func () (interface {} , bool , error ) {
2074+ Get : func () (any , bool , error ) {
20742075 res , err := s .GetNamespace (& GetNamespaceRequest {
20752076 Region : req .Region ,
20762077 NamespaceID : req .NamespaceID ,
@@ -2276,7 +2277,8 @@ func (s *API) GetContainer(req *GetContainerRequest, opts ...scw.RequestOption)
22762277
22772278// WaitForContainerRequest is used by WaitForContainer method.
22782279type WaitForContainerRequest struct {
2279- GetContainerRequest
2280+ Region scw.Region
2281+ ContainerID string
22802282 Timeout * time.Duration
22812283 RetryInterval * time.Duration
22822284}
@@ -2299,7 +2301,7 @@ func (s *API) WaitForContainer(req *WaitForContainerRequest, opts ...scw.Request
22992301 }
23002302
23012303 res , err := async .WaitSync (& async.WaitSyncConfig {
2302- Get : func () (interface {} , bool , error ) {
2304+ Get : func () (any , bool , error ) {
23032305 res , err := s .GetContainer (& GetContainerRequest {
23042306 Region : req .Region ,
23052307 ContainerID : req .ContainerID ,
@@ -2532,7 +2534,8 @@ func (s *API) GetCron(req *GetCronRequest, opts ...scw.RequestOption) (*Cron, er
25322534
25332535// WaitForCronRequest is used by WaitForCron method.
25342536type WaitForCronRequest struct {
2535- GetCronRequest
2537+ Region scw.Region
2538+ CronID string
25362539 Timeout * time.Duration
25372540 RetryInterval * time.Duration
25382541}
@@ -2555,7 +2558,7 @@ func (s *API) WaitForCron(req *WaitForCronRequest, opts ...scw.RequestOption) (*
25552558 }
25562559
25572560 res , err := async .WaitSync (& async.WaitSyncConfig {
2558- Get : func () (interface {} , bool , error ) {
2561+ Get : func () (any , bool , error ) {
25592562 res , err := s .GetCron (& GetCronRequest {
25602563 Region : req .Region ,
25612564 CronID : req .CronID ,
@@ -2749,7 +2752,8 @@ func (s *API) GetDomain(req *GetDomainRequest, opts ...scw.RequestOption) (*Doma
27492752
27502753// WaitForDomainRequest is used by WaitForDomain method.
27512754type WaitForDomainRequest struct {
2752- GetDomainRequest
2755+ Region scw.Region
2756+ DomainID string
27532757 Timeout * time.Duration
27542758 RetryInterval * time.Duration
27552759}
@@ -2772,7 +2776,7 @@ func (s *API) WaitForDomain(req *WaitForDomainRequest, opts ...scw.RequestOption
27722776 }
27732777
27742778 res , err := async .WaitSync (& async.WaitSyncConfig {
2775- Get : func () (interface {} , bool , error ) {
2779+ Get : func () (any , bool , error ) {
27762780 res , err := s .GetDomain (& GetDomainRequest {
27772781 Region : req .Region ,
27782782 DomainID : req .DomainID ,
@@ -2923,7 +2927,8 @@ func (s *API) GetToken(req *GetTokenRequest, opts ...scw.RequestOption) (*Token,
29232927
29242928// WaitForTokenRequest is used by WaitForToken method.
29252929type WaitForTokenRequest struct {
2926- GetTokenRequest
2930+ Region scw.Region
2931+ TokenID string
29272932 Timeout * time.Duration
29282933 RetryInterval * time.Duration
29292934}
@@ -2945,7 +2950,7 @@ func (s *API) WaitForToken(req *WaitForTokenRequest, opts ...scw.RequestOption)
29452950 }
29462951
29472952 res , err := async .WaitSync (& async.WaitSyncConfig {
2948- Get : func () (interface {} , bool , error ) {
2953+ Get : func () (any , bool , error ) {
29492954 res , err := s .GetToken (& GetTokenRequest {
29502955 Region : req .Region ,
29512956 TokenID : req .TokenID ,
@@ -3104,7 +3109,8 @@ func (s *API) GetTrigger(req *GetTriggerRequest, opts ...scw.RequestOption) (*Tr
31043109
31053110// WaitForTriggerRequest is used by WaitForTrigger method.
31063111type WaitForTriggerRequest struct {
3107- GetTriggerRequest
3112+ Region scw.Region
3113+ TriggerID string
31083114 Timeout * time.Duration
31093115 RetryInterval * time.Duration
31103116}
@@ -3127,7 +3133,7 @@ func (s *API) WaitForTrigger(req *WaitForTriggerRequest, opts ...scw.RequestOpti
31273133 }
31283134
31293135 res , err := async .WaitSync (& async.WaitSyncConfig {
3130- Get : func () (interface {} , bool , error ) {
3136+ Get : func () (any , bool , error ) {
31313137 res , err := s .GetTrigger (& GetTriggerRequest {
31323138 Region : req .Region ,
31333139 TriggerID : req .TriggerID ,
0 commit comments