@@ -97,6 +97,63 @@ export class BdsWaiter {
97
97
) ;
98
98
}
99
99
100
+ /**
101
+ * Waits forNodeBackup till it reaches any of the provided states
102
+ *
103
+ * @param request the request to send
104
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
105
+ * @return response returns GetNodeBackupResponse | null (null in case of 404 response)
106
+ */
107
+ public async forNodeBackup (
108
+ request : serviceRequests . GetNodeBackupRequest ,
109
+ ...targetStates : models . NodeBackup . LifecycleState [ ]
110
+ ) : Promise < serviceResponses . GetNodeBackupResponse | null > {
111
+ return genericTerminalConditionWaiter (
112
+ this . config ,
113
+ ( ) => this . client . getNodeBackup ( request ) ,
114
+ response => targetStates . includes ( response . nodeBackup . lifecycleState ! ) ,
115
+ targetStates . includes ( models . NodeBackup . LifecycleState . Deleted )
116
+ ) ;
117
+ }
118
+
119
+ /**
120
+ * Waits forNodeBackupConfiguration till it reaches any of the provided states
121
+ *
122
+ * @param request the request to send
123
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
124
+ * @return response returns GetNodeBackupConfigurationResponse | null (null in case of 404 response)
125
+ */
126
+ public async forNodeBackupConfiguration (
127
+ request : serviceRequests . GetNodeBackupConfigurationRequest ,
128
+ ...targetStates : models . NodeBackupConfiguration . LifecycleState [ ]
129
+ ) : Promise < serviceResponses . GetNodeBackupConfigurationResponse | null > {
130
+ return genericTerminalConditionWaiter (
131
+ this . config ,
132
+ ( ) => this . client . getNodeBackupConfiguration ( request ) ,
133
+ response => targetStates . includes ( response . nodeBackupConfiguration . lifecycleState ! ) ,
134
+ targetStates . includes ( models . NodeBackupConfiguration . LifecycleState . Deleted )
135
+ ) ;
136
+ }
137
+
138
+ /**
139
+ * Waits forNodeReplaceConfiguration till it reaches any of the provided states
140
+ *
141
+ * @param request the request to send
142
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
143
+ * @return response returns GetNodeReplaceConfigurationResponse | null (null in case of 404 response)
144
+ */
145
+ public async forNodeReplaceConfiguration (
146
+ request : serviceRequests . GetNodeReplaceConfigurationRequest ,
147
+ ...targetStates : models . NodeReplaceConfiguration . LifecycleState [ ]
148
+ ) : Promise < serviceResponses . GetNodeReplaceConfigurationResponse | null > {
149
+ return genericTerminalConditionWaiter (
150
+ this . config ,
151
+ ( ) => this . client . getNodeReplaceConfiguration ( request ) ,
152
+ response => targetStates . includes ( response . nodeReplaceConfiguration . lifecycleState ! ) ,
153
+ targetStates . includes ( models . NodeReplaceConfiguration . LifecycleState . Deleted )
154
+ ) ;
155
+ }
156
+
100
157
/**
101
158
* Waits forWorkRequest
102
159
*
0 commit comments