sqladmin  v1beta4
Public Member Functions | Static Public Member Functions | List of all members
google_sqladmin_api::Operation Class Reference

#include <operation.h>

Inheritance diagram for google_sqladmin_api::Operation:

Public Member Functions

 Operation (const Json::Value &storage)
 
 Operation (Json::Value *storage)
 
virtual ~Operation ()
 
const StringPiece GetTypeName () const
 
bool has_end_time () const
 
void clear_end_time ()
 
client::DateTime get_end_time () const
 
void set_end_time (client::DateTime value)
 
bool has_error () const
 
void clear_error ()
 
const OperationErrors get_error () const
 
OperationErrors mutable_error ()
 
bool has_export_context () const
 
void clear_export_context ()
 
const ExportContext get_export_context () const
 
ExportContext mutable_exportContext ()
 
bool has_import_context () const
 
void clear_import_context ()
 
const ImportContext get_import_context () const
 
ImportContext mutable_importContext ()
 
bool has_insert_time () const
 
void clear_insert_time ()
 
client::DateTime get_insert_time () const
 
void set_insert_time (client::DateTime value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_operation_type () const
 
void clear_operation_type ()
 
const StringPiece get_operation_type () const
 
void set_operation_type (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_start_time () const
 
void clear_start_time ()
 
client::DateTime get_start_time () const
 
void set_start_time (client::DateTime value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_target_id () const
 
void clear_target_id ()
 
const StringPiece get_target_id () const
 
void set_target_id (const StringPiece &value)
 
bool has_target_link () const
 
void clear_target_link ()
 
const StringPiece get_target_link () const
 
void set_target_link (const StringPiece &value)
 
bool has_target_project () const
 
void clear_target_project ()
 
const StringPiece get_target_project () const
 
void set_target_project (const StringPiece &value)
 
bool has_user () const
 
void clear_user ()
 
const StringPiece get_user () const
 
void set_user (const StringPiece &value)
 

Static Public Member Functions

static OperationNew ()
 

Detailed Description

An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.

Constructor & Destructor Documentation

◆ Operation() [1/2]

google_sqladmin_api::Operation::Operation ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Operation() [2/2]

google_sqladmin_api::Operation::Operation ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Operation()

google_sqladmin_api::Operation::~Operation ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_end_time()

void google_sqladmin_api::Operation::clear_end_time ( )
inline

Clears the 'endTime' attribute.

◆ clear_error()

void google_sqladmin_api::Operation::clear_error ( )
inline

Clears the 'error' attribute.

◆ clear_export_context()

void google_sqladmin_api::Operation::clear_export_context ( )
inline

Clears the 'exportContext' attribute.

◆ clear_import_context()

void google_sqladmin_api::Operation::clear_import_context ( )
inline

Clears the 'importContext' attribute.

◆ clear_insert_time()

void google_sqladmin_api::Operation::clear_insert_time ( )
inline

Clears the 'insertTime' attribute.

◆ clear_kind()

void google_sqladmin_api::Operation::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_sqladmin_api::Operation::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_operation_type()

void google_sqladmin_api::Operation::clear_operation_type ( )
inline

Clears the 'operationType' attribute.

◆ clear_self_link()

void google_sqladmin_api::Operation::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_start_time()

void google_sqladmin_api::Operation::clear_start_time ( )
inline

Clears the 'startTime' attribute.

◆ clear_status()

void google_sqladmin_api::Operation::clear_status ( )
inline

Clears the 'status' attribute.

◆ clear_target_id()

void google_sqladmin_api::Operation::clear_target_id ( )
inline

Clears the 'targetId' attribute.

◆ clear_target_link()

void google_sqladmin_api::Operation::clear_target_link ( )
inline

Clears the 'targetLink' attribute.

◆ clear_target_project()

void google_sqladmin_api::Operation::clear_target_project ( )
inline

Clears the 'targetProject' attribute.

◆ clear_user()

void google_sqladmin_api::Operation::clear_user ( )
inline

Clears the 'user' attribute.

◆ get_end_time()

client::DateTime google_sqladmin_api::Operation::get_end_time ( ) const
inline

Get the value of the 'endTime' attribute.

◆ get_error()

const OperationErrors google_sqladmin_api::Operation::get_error ( ) const

Get a reference to the value of the 'error' attribute.

◆ get_export_context()

const ExportContext google_sqladmin_api::Operation::get_export_context ( ) const

Get a reference to the value of the 'exportContext' attribute.

◆ get_import_context()

const ImportContext google_sqladmin_api::Operation::get_import_context ( ) const

Get a reference to the value of the 'importContext' attribute.

◆ get_insert_time()

client::DateTime google_sqladmin_api::Operation::get_insert_time ( ) const
inline

Get the value of the 'insertTime' attribute.

◆ get_kind()

const StringPiece google_sqladmin_api::Operation::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_name()

const StringPiece google_sqladmin_api::Operation::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_operation_type()

const StringPiece google_sqladmin_api::Operation::get_operation_type ( ) const
inline

Get the value of the 'operationType' attribute.

◆ get_self_link()

const StringPiece google_sqladmin_api::Operation::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_start_time()

client::DateTime google_sqladmin_api::Operation::get_start_time ( ) const
inline

Get the value of the 'startTime' attribute.

◆ get_status()

const StringPiece google_sqladmin_api::Operation::get_status ( ) const
inline

Get the value of the 'status' attribute.

◆ get_target_id()

const StringPiece google_sqladmin_api::Operation::get_target_id ( ) const
inline

Get the value of the 'targetId' attribute.

◆ get_target_link()

const StringPiece google_sqladmin_api::Operation::get_target_link ( ) const
inline

Get the value of the 'targetLink' attribute.

◆ get_target_project()

const StringPiece google_sqladmin_api::Operation::get_target_project ( ) const
inline

Get the value of the 'targetProject' attribute.

◆ get_user()

const StringPiece google_sqladmin_api::Operation::get_user ( ) const
inline

Get the value of the 'user' attribute.

◆ GetTypeName()

const StringPiece google_sqladmin_api::Operation::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_sqladmin_api::Operation

◆ has_end_time()

bool google_sqladmin_api::Operation::has_end_time ( ) const
inline

Determine if the 'endTime' attribute was set.

Returns
true if the 'endTime' attribute was set.

◆ has_error()

bool google_sqladmin_api::Operation::has_error ( ) const
inline

Determine if the 'error' attribute was set.

Returns
true if the 'error' attribute was set.

◆ has_export_context()

bool google_sqladmin_api::Operation::has_export_context ( ) const
inline

Determine if the 'exportContext' attribute was set.

Returns
true if the 'exportContext' attribute was set.

◆ has_import_context()

bool google_sqladmin_api::Operation::has_import_context ( ) const
inline

Determine if the 'importContext' attribute was set.

Returns
true if the 'importContext' attribute was set.

◆ has_insert_time()

bool google_sqladmin_api::Operation::has_insert_time ( ) const
inline

Determine if the 'insertTime' attribute was set.

Returns
true if the 'insertTime' attribute was set.

◆ has_kind()

bool google_sqladmin_api::Operation::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_name()

bool google_sqladmin_api::Operation::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_operation_type()

bool google_sqladmin_api::Operation::has_operation_type ( ) const
inline

Determine if the 'operationType' attribute was set.

Returns
true if the 'operationType' attribute was set.

◆ has_self_link()

bool google_sqladmin_api::Operation::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_start_time()

bool google_sqladmin_api::Operation::has_start_time ( ) const
inline

Determine if the 'startTime' attribute was set.

Returns
true if the 'startTime' attribute was set.

◆ has_status()

bool google_sqladmin_api::Operation::has_status ( ) const
inline

Determine if the 'status' attribute was set.

Returns
true if the 'status' attribute was set.

◆ has_target_id()

bool google_sqladmin_api::Operation::has_target_id ( ) const
inline

Determine if the 'targetId' attribute was set.

Returns
true if the 'targetId' attribute was set.

◆ has_target_link()

bool google_sqladmin_api::Operation::has_target_link ( ) const
inline

Determine if the 'targetLink' attribute was set.

Returns
true if the 'targetLink' attribute was set.

◆ has_target_project()

bool google_sqladmin_api::Operation::has_target_project ( ) const
inline

Determine if the 'targetProject' attribute was set.

Returns
true if the 'targetProject' attribute was set.

◆ has_user()

bool google_sqladmin_api::Operation::has_user ( ) const
inline

Determine if the 'user' attribute was set.

Returns
true if the 'user' attribute was set.

◆ mutable_error()

OperationErrors google_sqladmin_api::Operation::mutable_error ( )

Gets a reference to a mutable value of the 'error' property.

If errors occurred during processing of this operation, this field will be populated.

Returns
The result can be modified to change the attribute value.

◆ mutable_exportContext()

ExportContext google_sqladmin_api::Operation::mutable_exportContext ( )

Gets a reference to a mutable value of the 'exportContext' property.

The context for export operation, if applicable.

Returns
The result can be modified to change the attribute value.

◆ mutable_importContext()

ImportContext google_sqladmin_api::Operation::mutable_importContext ( )

Gets a reference to a mutable value of the 'importContext' property.

The context for import operation, if applicable.

Returns
The result can be modified to change the attribute value.

◆ New()

Operation * google_sqladmin_api::Operation::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_end_time()

void google_sqladmin_api::Operation::set_end_time ( client::DateTime  value)
inline

Change the 'endTime' attribute.

The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Parameters
[in]valueThe new value.

◆ set_insert_time()

void google_sqladmin_api::Operation::set_insert_time ( client::DateTime  value)
inline

Change the 'insertTime' attribute.

The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_sqladmin_api::Operation::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

This is always sql::operation.

Parameters
[in]valueThe new value.

◆ set_name()

void google_sqladmin_api::Operation::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.

Parameters
[in]valueThe new value.

◆ set_operation_type()

void google_sqladmin_api::Operation::set_operation_type ( const StringPiece &  value)
inline

Change the 'operationType' attribute.

The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER, DELETE_USER, CREATE_DATABASE, DELETE_DATABASE .

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_sqladmin_api::Operation::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

The URI of this resource.

Parameters
[in]valueThe new value.

◆ set_start_time()

void google_sqladmin_api::Operation::set_start_time ( client::DateTime  value)
inline

Change the 'startTime' attribute.

The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Parameters
[in]valueThe new value.

◆ set_status()

void google_sqladmin_api::Operation::set_status ( const StringPiece &  value)
inline

Change the 'status' attribute.

The status of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.

Parameters
[in]valueThe new value.

◆ set_target_id()

void google_sqladmin_api::Operation::set_target_id ( const StringPiece &  value)
inline

Change the 'targetId' attribute.

Name of the database instance related to this operation.

Parameters
[in]valueThe new value.

◆ set_target_link()

void google_sqladmin_api::Operation::set_target_link ( const StringPiece &  value)
inline

Change the 'targetLink' attribute.

Parameters
[in]valueThe new value.

◆ set_target_project()

void google_sqladmin_api::Operation::set_target_project ( const StringPiece &  value)
inline

Change the 'targetProject' attribute.

The project ID of the target instance related to this operation.

Parameters
[in]valueThe new value.

◆ set_user()

void google_sqladmin_api::Operation::set_user ( const StringPiece &  value)
inline

Change the 'user' attribute.

The email address of the user who initiated this operation.

Parameters
[in]valueThe new value.

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