container  v1
Public Member Functions | Static Public Member Functions | List of all members
google_container_api::MaintenancePolicy Class Reference

#include <maintenance_policy.h>

Inheritance diagram for google_container_api::MaintenancePolicy:

Public Member Functions

 MaintenancePolicy (const Json::Value &storage)
 
 MaintenancePolicy (Json::Value *storage)
 
virtual ~MaintenancePolicy ()
 
const StringPiece GetTypeName () const
 
bool has_resource_version () const
 
void clear_resource_version ()
 
const StringPiece get_resource_version () const
 
void set_resource_version (const StringPiece &value)
 
bool has_window () const
 
void clear_window ()
 
const MaintenanceWindow get_window () const
 
MaintenanceWindow mutable_window ()
 

Static Public Member Functions

static MaintenancePolicyNew ()
 

Detailed Description

MaintenancePolicy defines the maintenance policy to be used for the cluster.

Constructor & Destructor Documentation

◆ MaintenancePolicy() [1/2]

google_container_api::MaintenancePolicy::MaintenancePolicy ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.

◆ ~MaintenancePolicy()

google_container_api::MaintenancePolicy::~MaintenancePolicy ( )
virtual

Standard destructor.

Member Function Documentation

◆ 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

Returns a string denoting the type of this data object.

Returns
google_container_api::MaintenancePolicy

◆ 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()

MaintenanceWindow google_container_api::MaintenancePolicy::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()

MaintenancePolicy * google_container_api::MaintenancePolicy::New ( )
static

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
[in]valueThe new value.

The documentation for this class was generated from the following files: