#include <maintenance_policy.h>
MaintenancePolicy defines the maintenance policy to be used for the cluster.
◆ MaintenancePolicy() [1/2]
google_container_api::MaintenancePolicy::MaintenancePolicy |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ MaintenancePolicy() [2/2]
google_container_api::MaintenancePolicy::MaintenancePolicy |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~MaintenancePolicy()
google_container_api::MaintenancePolicy::~MaintenancePolicy |
( |
| ) |
|
|
virtual |
◆ clear_resource_version()
void google_container_api::MaintenancePolicy::clear_resource_version |
( |
| ) |
|
|
inline |
Clears the 'resourceVersion
' attribute.
◆ clear_window()
void google_container_api::MaintenancePolicy::clear_window |
( |
| ) |
|
|
inline |
Clears the 'window
' attribute.
◆ get_resource_version()
const StringPiece google_container_api::MaintenancePolicy::get_resource_version |
( |
| ) |
const |
|
inline |
Get the value of the 'resourceVersion
' attribute.
◆ get_window()
const MaintenanceWindow google_container_api::MaintenancePolicy::get_window |
( |
| ) |
const |
Get a reference to the value of the 'window
' attribute.
◆ GetTypeName()
const StringPiece google_container_api::MaintenancePolicy::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_resource_version()
bool google_container_api::MaintenancePolicy::has_resource_version |
( |
| ) |
const |
|
inline |
Determine if the 'resourceVersion
' attribute was set.
- Returns
- true if the '
resourceVersion
' attribute was set.
◆ has_window()
bool google_container_api::MaintenancePolicy::has_window |
( |
| ) |
const |
|
inline |
Determine if the 'window
' attribute was set.
- Returns
- true if the '
window
' attribute was set.
◆ mutable_window()
Gets a reference to a mutable value of the 'window
' property.
Specifies the maintenance window in which maintenance may be performed.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_resource_version()
void google_container_api::MaintenancePolicy::set_resource_version |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'resourceVersion
' attribute.
A hash identifying the version of this policy, so that updates to fields of the policy won't accidentally undo intermediate changes (and so that users of the API unaware of some fields won't accidentally remove other fields). Make a get() request to the cluster to get the current resource version and include it with requests to set the policy.
- Parameters
-
The documentation for this class was generated from the following files: