compute  v1
Public Member Functions | Static Public Member Functions | List of all members
google_compute_api::ServiceAccount Class Reference

#include <service_account.h>

Inheritance diagram for google_compute_api::ServiceAccount:

Public Member Functions

 ServiceAccount (const Json::Value &storage)
 
 ServiceAccount (Json::Value *storage)
 
virtual ~ServiceAccount ()
 
const StringPiece GetTypeName () const
 
bool has_email () const
 
void clear_email ()
 
const StringPiece get_email () const
 
void set_email (const StringPiece &value)
 
bool has_scopes () const
 
void clear_scopes ()
 
const client::JsonCppArray< string > get_scopes () const
 
client::JsonCppArray< string > mutable_scopes ()
 

Static Public Member Functions

static ServiceAccountNew ()
 

Detailed Description

A service account.

Constructor & Destructor Documentation

◆ ServiceAccount() [1/2]

google_compute_api::ServiceAccount::ServiceAccount ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ ServiceAccount() [2/2]

google_compute_api::ServiceAccount::ServiceAccount ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~ServiceAccount()

google_compute_api::ServiceAccount::~ServiceAccount ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_email()

void google_compute_api::ServiceAccount::clear_email ( )
inline

Clears the 'email' attribute.

◆ clear_scopes()

void google_compute_api::ServiceAccount::clear_scopes ( )
inline

Clears the 'scopes' attribute.

◆ get_email()

const StringPiece google_compute_api::ServiceAccount::get_email ( ) const
inline

Get the value of the 'email' attribute.

◆ get_scopes()

const client::JsonCppArray<string > google_compute_api::ServiceAccount::get_scopes ( ) const
inline

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

◆ GetTypeName()

const StringPiece google_compute_api::ServiceAccount::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_compute_api::ServiceAccount

◆ has_email()

bool google_compute_api::ServiceAccount::has_email ( ) const
inline

Determine if the 'email' attribute was set.

Returns
true if the 'email' attribute was set.

◆ has_scopes()

bool google_compute_api::ServiceAccount::has_scopes ( ) const
inline

Determine if the 'scopes' attribute was set.

Returns
true if the 'scopes' attribute was set.

◆ mutable_scopes()

client::JsonCppArray<string > google_compute_api::ServiceAccount::mutable_scopes ( )
inline

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

The list of scopes to be made available for this service account.

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

◆ New()

ServiceAccount * google_compute_api::ServiceAccount::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_email()

void google_compute_api::ServiceAccount::set_email ( const StringPiece &  value)
inline

Change the 'email' attribute.

Email address of the service account.

Parameters
[in]valueThe new value.

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