cloudresourcemanager  v1beta1
Public Member Functions | Static Public Member Functions | List of all members
google_cloudresourcemanager_api::ResourceId Class Reference

#include <resource_id.h>

Inheritance diagram for google_cloudresourcemanager_api::ResourceId:

Public Member Functions

 ResourceId (const Json::Value &storage)
 
 ResourceId (Json::Value *storage)
 
virtual ~ResourceId ()
 
const StringPiece GetTypeName () const
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static ResourceIdNew ()
 

Detailed Description

A container to reference an id for any resource type. A resource in Google Cloud Platform is a generic term for something you (a developer) may want to interact with through one of our API's. Some examples are an App Engine app, a Compute Engine instance, a Cloud SQL database, and so on.

Constructor & Destructor Documentation

◆ ResourceId() [1/2]

google_cloudresourcemanager_api::ResourceId::ResourceId ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ ResourceId() [2/2]

google_cloudresourcemanager_api::ResourceId::ResourceId ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~ResourceId()

google_cloudresourcemanager_api::ResourceId::~ResourceId ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_id()

void google_cloudresourcemanager_api::ResourceId::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_type()

void google_cloudresourcemanager_api::ResourceId::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_id()

const StringPiece google_cloudresourcemanager_api::ResourceId::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_type()

const StringPiece google_cloudresourcemanager_api::ResourceId::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

const StringPiece google_cloudresourcemanager_api::ResourceId::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_cloudresourcemanager_api::ResourceId

◆ has_id()

bool google_cloudresourcemanager_api::ResourceId::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_type()

bool google_cloudresourcemanager_api::ResourceId::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ New()

ResourceId * google_cloudresourcemanager_api::ResourceId::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_id()

void google_cloudresourcemanager_api::ResourceId::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

Required field for the type-specific id. This should correspond to the id used in the type-specific API's.

Parameters
[in]valueThe new value.

◆ set_type()

void google_cloudresourcemanager_api::ResourceId::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".

Parameters
[in]valueThe new value.

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