|
20 | 20 | use Google\Service\CloudFilestore\Instance; |
21 | 21 | use Google\Service\CloudFilestore\ListInstancesResponse; |
22 | 22 | use Google\Service\CloudFilestore\Operation; |
| 23 | +use Google\Service\CloudFilestore\PauseReplicaRequest; |
23 | 24 | use Google\Service\CloudFilestore\PromoteReplicaRequest; |
24 | 25 | use Google\Service\CloudFilestore\RestoreInstanceRequest; |
| 26 | +use Google\Service\CloudFilestore\ResumeReplicaRequest; |
25 | 27 | use Google\Service\CloudFilestore\RevertInstanceRequest; |
26 | 28 |
|
27 | 29 | /** |
@@ -139,6 +141,26 @@ public function patch($name, Instance $postBody, $optParams = []) |
139 | 141 | $params = array_merge($params, $optParams); |
140 | 142 | return $this->call('patch', [$params], Operation::class); |
141 | 143 | } |
| 144 | + /** |
| 145 | + * Pause the standby instance (replica). WARNING: This operation makes the |
| 146 | + * standby instance's NFS filesystem writable. Any data written to the standby |
| 147 | + * instance while paused will be lost when the replica is resumed or promoted. |
| 148 | + * (instances.pauseReplica) |
| 149 | + * |
| 150 | + * @param string $name Required. The resource name of the instance, in the |
| 151 | + * format |
| 152 | + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. |
| 153 | + * @param PauseReplicaRequest $postBody |
| 154 | + * @param array $optParams Optional parameters. |
| 155 | + * @return Operation |
| 156 | + * @throws \Google\Service\Exception |
| 157 | + */ |
| 158 | + public function pauseReplica($name, PauseReplicaRequest $postBody, $optParams = []) |
| 159 | + { |
| 160 | + $params = ['name' => $name, 'postBody' => $postBody]; |
| 161 | + $params = array_merge($params, $optParams); |
| 162 | + return $this->call('pauseReplica', [$params], Operation::class); |
| 163 | + } |
142 | 164 | /** |
143 | 165 | * Promote the standby instance (replica). (instances.promoteReplica) |
144 | 166 | * |
@@ -176,6 +198,25 @@ public function restore($name, RestoreInstanceRequest $postBody, $optParams = [] |
176 | 198 | $params = array_merge($params, $optParams); |
177 | 199 | return $this->call('restore', [$params], Operation::class); |
178 | 200 | } |
| 201 | + /** |
| 202 | + * Resume the standby instance (replica). WARNING: Any data written to the |
| 203 | + * standby instance while paused will be lost when the replica is resumed. |
| 204 | + * (instances.resumeReplica) |
| 205 | + * |
| 206 | + * @param string $name Required. The resource name of the instance, in the |
| 207 | + * format |
| 208 | + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`. |
| 209 | + * @param ResumeReplicaRequest $postBody |
| 210 | + * @param array $optParams Optional parameters. |
| 211 | + * @return Operation |
| 212 | + * @throws \Google\Service\Exception |
| 213 | + */ |
| 214 | + public function resumeReplica($name, ResumeReplicaRequest $postBody, $optParams = []) |
| 215 | + { |
| 216 | + $params = ['name' => $name, 'postBody' => $postBody]; |
| 217 | + $params = array_merge($params, $optParams); |
| 218 | + return $this->call('resumeReplica', [$params], Operation::class); |
| 219 | + } |
179 | 220 | /** |
180 | 221 | * Revert an existing instance's file system to a specified snapshot. |
181 | 222 | * (instances.revert) |
|
0 commit comments