discovery  v1
Public Member Functions | Static Public Member Functions | List of all members
google_discovery_api::RestResource Class Reference

#include <rest_resource.h>

Inheritance diagram for google_discovery_api::RestResource:

Public Member Functions

 RestResource (const Json::Value &storage)
 
 RestResource (Json::Value *storage)
 
virtual ~RestResource ()
 
const StringPiece GetTypeName () const
 
bool has_methods () const
 
void clear_methods ()
 
const client::JsonCppAssociativeArray< RestMethodget_methods () const
 
client::JsonCppAssociativeArray< RestMethodmutable_methods ()
 
bool has_resources () const
 
void clear_resources ()
 
const client::JsonCppAssociativeArray< RestResourceget_resources () const
 
client::JsonCppAssociativeArray< RestResourcemutable_resources ()
 

Static Public Member Functions

static RestResourceNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ RestResource() [1/2]

google_discovery_api::RestResource::RestResource ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ RestResource() [2/2]

google_discovery_api::RestResource::RestResource ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~RestResource()

google_discovery_api::RestResource::~RestResource ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_methods()

void google_discovery_api::RestResource::clear_methods ( )
inline

Clears the 'methods' attribute.

◆ clear_resources()

void google_discovery_api::RestResource::clear_resources ( )
inline

Clears the 'resources' attribute.

◆ get_methods()

const client::JsonCppAssociativeArray<RestMethod > google_discovery_api::RestResource::get_methods ( ) const

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

◆ get_resources()

const client::JsonCppAssociativeArray<RestResource > google_discovery_api::RestResource::get_resources ( ) const

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

◆ GetTypeName()

const StringPiece google_discovery_api::RestResource::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_discovery_api::RestResource

◆ has_methods()

bool google_discovery_api::RestResource::has_methods ( ) const
inline

Determine if the 'methods' attribute was set.

Returns
true if the 'methods' attribute was set.

◆ has_resources()

bool google_discovery_api::RestResource::has_resources ( ) const
inline

Determine if the 'resources' attribute was set.

Returns
true if the 'resources' attribute was set.

◆ mutable_methods()

client::JsonCppAssociativeArray<RestMethod > google_discovery_api::RestResource::mutable_methods ( )

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

Methods on this resource.

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

◆ mutable_resources()

client::JsonCppAssociativeArray<RestResource > google_discovery_api::RestResource::mutable_resources ( )

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

Sub-resources on this resource.

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

◆ New()

RestResource * google_discovery_api::RestResource::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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