|
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
|
@@ -292,6 +303,31 @@ public final class Instance extends com.google.api.client.json.GenericJson {
|
292 | 303 | @com.google.api.client.util.Key
|
293 | 304 | private Node writableNode;
|
294 | 305 |
|
| 306 | + /** |
| 307 | + * Optional. Specifies whether an instance needs to spin up. Once the instance is active, the |
| 308 | + * activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation |
| 309 | + * policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an |
| 310 | + * instance can/cannot be activated (for example, a read pool instance should be stopped before |
| 311 | + * stopping primary etc.). Please refer to the API documentation for more details. |
| 312 | + * @return value or {@code null} for none |
| 313 | + */ |
| 314 | + public java.lang.String getActivationPolicy() { |
| 315 | + return activationPolicy; |
| 316 | + } |
| 317 | + |
| 318 | + /** |
| 319 | + * Optional. Specifies whether an instance needs to spin up. Once the instance is active, the |
| 320 | + * activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation |
| 321 | + * policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an |
| 322 | + * instance can/cannot be activated (for example, a read pool instance should be stopped before |
| 323 | + * stopping primary etc.). Please refer to the API documentation for more details. |
| 324 | + * @param activationPolicy activationPolicy or {@code null} for none |
| 325 | + */ |
| 326 | + public Instance setActivationPolicy(java.lang.String activationPolicy) { |
| 327 | + this.activationPolicy = activationPolicy; |
| 328 | + return this; |
| 329 | + } |
| 330 | + |
295 | 331 | /**
|
296 | 332 | * Annotations to allow client tools to store small amount of arbitrary data. This is distinct
|
297 | 333 | * from labels. https://google.aip.dev/128
|
|
0 commit comments