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

#include <user.h>

Inheritance diagram for google_sqladmin_api::User:

Public Member Functions

 User (const Json::Value &storage)
 
 User (Json::Value *storage)
 
virtual ~User ()
 
const StringPiece GetTypeName () const
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_host () const
 
void clear_host ()
 
const StringPiece get_host () const
 
void set_host (const StringPiece &value)
 
bool has_instance () const
 
void clear_instance ()
 
const StringPiece get_instance () const
 
void set_instance (const StringPiece &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_password () const
 
void clear_password ()
 
const StringPiece get_password () const
 
void set_password (const StringPiece &value)
 
bool has_project () const
 
void clear_project ()
 
const StringPiece get_project () const
 
void set_project (const StringPiece &value)
 

Static Public Member Functions

static UserNew ()
 

Detailed Description

A Cloud SQL user resource.

Constructor & Destructor Documentation

◆ User() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ User() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~User()

google_sqladmin_api::User::~User ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_etag()

void google_sqladmin_api::User::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_host()

void google_sqladmin_api::User::clear_host ( )
inline

Clears the 'host' attribute.

◆ clear_instance()

void google_sqladmin_api::User::clear_instance ( )
inline

Clears the 'instance' attribute.

◆ clear_kind()

void google_sqladmin_api::User::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_sqladmin_api::User::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_password()

void google_sqladmin_api::User::clear_password ( )
inline

Clears the 'password' attribute.

◆ clear_project()

void google_sqladmin_api::User::clear_project ( )
inline

Clears the 'project' attribute.

◆ get_etag()

const StringPiece google_sqladmin_api::User::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_host()

const StringPiece google_sqladmin_api::User::get_host ( ) const
inline

Get the value of the 'host' attribute.

◆ get_instance()

const StringPiece google_sqladmin_api::User::get_instance ( ) const
inline

Get the value of the 'instance' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_name()

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

Get the value of the 'name' attribute.

◆ get_password()

const StringPiece google_sqladmin_api::User::get_password ( ) const
inline

Get the value of the 'password' attribute.

◆ get_project()

const StringPiece google_sqladmin_api::User::get_project ( ) const
inline

Get the value of the 'project' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_sqladmin_api::User

◆ has_etag()

bool google_sqladmin_api::User::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_host()

bool google_sqladmin_api::User::has_host ( ) const
inline

Determine if the 'host' attribute was set.

Returns
true if the 'host' attribute was set.

◆ has_instance()

bool google_sqladmin_api::User::has_instance ( ) const
inline

Determine if the 'instance' attribute was set.

Returns
true if the 'instance' attribute was set.

◆ has_kind()

bool google_sqladmin_api::User::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::User::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_password()

bool google_sqladmin_api::User::has_password ( ) const
inline

Determine if the 'password' attribute was set.

Returns
true if the 'password' attribute was set.

◆ has_project()

bool google_sqladmin_api::User::has_project ( ) const
inline

Determine if the 'project' attribute was set.

Returns
true if the 'project' attribute was set.

◆ New()

User * google_sqladmin_api::User::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_etag()

void google_sqladmin_api::User::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

This field is deprecated and will be removed from a future version of the API.

Parameters
[in]valueThe new value.

◆ set_host()

void google_sqladmin_api::User::set_host ( const StringPiece &  value)
inline

Change the 'host' attribute.

The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion.

Parameters
[in]valueThe new value.

◆ set_instance()

void google_sqladmin_api::User::set_instance ( const StringPiece &  value)
inline

Change the 'instance' attribute.

The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update since it is already specified on the URL.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

This is always sql::user.

Parameters
[in]valueThe new value.

◆ set_name()

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

Change the 'name' attribute.

The name of the user in the Cloud SQL instance. Can be omitted for update since it is already specified in the URL.

Parameters
[in]valueThe new value.

◆ set_password()

void google_sqladmin_api::User::set_password ( const StringPiece &  value)
inline

Change the 'password' attribute.

The password for the user.

Parameters
[in]valueThe new value.

◆ set_project()

void google_sqladmin_api::User::set_project ( const StringPiece &  value)
inline

Change the 'project' attribute.

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update since it is already specified on the URL.

Parameters
[in]valueThe new value.

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