|
30 | 30 | @SuppressWarnings("javadoc") |
31 | 31 | public final class Instance extends com.google.api.client.json.GenericJson { |
32 | 32 |
|
| 33 | + /** |
| 34 | + * Optional. Specifies whether an instance needs to spin up. Once the instance is active, the |
| 35 | + * activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation |
| 36 | + * policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an |
| 37 | + * instance can/cannot be activated (for example, a read pool instance should be stopped before |
| 38 | + * stopping primary etc.). Please refer to the API documentation for more details. |
| 39 | + * The value may be {@code null}. |
| 40 | + */ |
| 41 | + @com.google.api.client.util.Key |
| 42 | + private java.lang.String activationPolicy; |
| 43 | + |
33 | 44 | /** |
34 | 45 | * Annotations to allow client tools to store small amount of arbitrary data. This is distinct |
35 | 46 | * from labels. https://google.aip.dev/128 |
@@ -255,6 +266,31 @@ public final class Instance extends com.google.api.client.json.GenericJson { |
255 | 266 | @com.google.api.client.util.Key |
256 | 267 | private Node writableNode; |
257 | 268 |
|
| 269 | + /** |
| 270 | + * Optional. Specifies whether an instance needs to spin up. Once the instance is active, the |
| 271 | + * activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation |
| 272 | + * policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an |
| 273 | + * instance can/cannot be activated (for example, a read pool instance should be stopped before |
| 274 | + * stopping primary etc.). Please refer to the API documentation for more details. |
| 275 | + * @return value or {@code null} for none |
| 276 | + */ |
| 277 | + public java.lang.String getActivationPolicy() { |
| 278 | + return activationPolicy; |
| 279 | + } |
| 280 | + |
| 281 | + /** |
| 282 | + * Optional. Specifies whether an instance needs to spin up. Once the instance is active, the |
| 283 | + * activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation |
| 284 | + * policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an |
| 285 | + * instance can/cannot be activated (for example, a read pool instance should be stopped before |
| 286 | + * stopping primary etc.). Please refer to the API documentation for more details. |
| 287 | + * @param activationPolicy activationPolicy or {@code null} for none |
| 288 | + */ |
| 289 | + public Instance setActivationPolicy(java.lang.String activationPolicy) { |
| 290 | + this.activationPolicy = activationPolicy; |
| 291 | + return this; |
| 292 | + } |
| 293 | + |
258 | 294 | /** |
259 | 295 | * Annotations to allow client tools to store small amount of arbitrary data. This is distinct |
260 | 296 | * from labels. https://google.aip.dev/128 |
|
0 commit comments