@@ -25,13 +25,15 @@ const (
2525)
2626
2727// Interfaces needed for tests
28+ //
2829// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
2930type APIClientInterface interface {
3031 GetZoneExecute (ctx context.Context , projectId , zoneId string ) (* dns.ZoneResponse , error )
3132 GetRecordSetExecute (ctx context.Context , projectId , zoneId , rrSetId string ) (* dns.RecordSetResponse , error )
3233}
3334
3435// CreateZoneWaitHandler will wait for zone creation
36+ //
3537// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
3638func CreateZoneWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId string ) * wait.AsyncActionHandler [dns.ZoneResponse ] {
3739 handler := wait .New (func () (waitFinished bool , response * dns.ZoneResponse , err error ) {
@@ -55,6 +57,7 @@ func CreateZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId,
5557}
5658
5759// PartialUpdateZoneWaitHandler will wait for zone update
60+ //
5861// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
5962func PartialUpdateZoneWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId string ) * wait.AsyncActionHandler [dns.ZoneResponse ] {
6063 handler := wait .New (func () (waitFinished bool , response * dns.ZoneResponse , err error ) {
@@ -79,6 +82,7 @@ func PartialUpdateZoneWaitHandler(ctx context.Context, a APIClientInterface, pro
7982
8083// DeleteZoneWaitHandler will wait for zone deletion
8184// returned interface is nil or *ZoneResponseZone
85+ //
8286// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
8387func DeleteZoneWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId string ) * wait.AsyncActionHandler [dns.ZoneResponse ] {
8488 handler := wait .New (func () (waitFinished bool , response * dns.ZoneResponse , err error ) {
@@ -102,6 +106,7 @@ func DeleteZoneWaitHandler(ctx context.Context, a APIClientInterface, projectId,
102106}
103107
104108// CreateRecordWaitHandler will wait for recordset creation
109+ //
105110// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
106111func CreateRecordSetWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId , rrSetId string ) * wait.AsyncActionHandler [dns.RecordSetResponse ] {
107112 handler := wait .New (func () (waitFinished bool , response * dns.RecordSetResponse , err error ) {
@@ -125,6 +130,7 @@ func CreateRecordSetWaitHandler(ctx context.Context, a APIClientInterface, proje
125130}
126131
127132// UpdateRecordWaitHandler will wait for recordset update
133+ //
128134// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
129135func PartialUpdateRecordSetWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId , rrSetId string ) * wait.AsyncActionHandler [dns.RecordSetResponse ] {
130136 handler := wait .New (func () (waitFinished bool , response * dns.RecordSetResponse , err error ) {
@@ -149,6 +155,7 @@ func PartialUpdateRecordSetWaitHandler(ctx context.Context, a APIClientInterface
149155
150156// DeleteRecordWaitHandler will wait for deletion
151157// returned interface is nil or *RecordSetResponse
158+ //
152159// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
153160func DeleteRecordSetWaitHandler (ctx context.Context , a APIClientInterface , projectId , instanceId , rrSetId string ) * wait.AsyncActionHandler [dns.RecordSetResponse ] {
154161 handler := wait .New (func () (waitFinished bool , response * dns.RecordSetResponse , err error ) {
0 commit comments