deploymentmanager  v2
Public Member Functions | Static Public Member Functions | List of all members
google_deploymentmanager_api::Rule Class Reference

#include <rule.h>

Inheritance diagram for google_deploymentmanager_api::Rule:

Public Member Functions

 Rule (const Json::Value &storage)
 
 Rule (Json::Value *storage)
 
virtual ~Rule ()
 
const StringPiece GetTypeName () const
 
bool has_action () const
 
void clear_action ()
 
const StringPiece get_action () const
 
void set_action (const StringPiece &value)
 
bool has_conditions () const
 
void clear_conditions ()
 
const client::JsonCppArray< Conditionget_conditions () const
 
client::JsonCppArray< Conditionmutable_conditions ()
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_ins () const
 
void clear_ins ()
 
const client::JsonCppArray< string > get_ins () const
 
client::JsonCppArray< string > mutable_ins ()
 
bool has_log_configs () const
 
void clear_log_configs ()
 
const client::JsonCppArray< LogConfigget_log_configs () const
 
client::JsonCppArray< LogConfigmutable_logConfigs ()
 
bool has_not_ins () const
 
void clear_not_ins ()
 
const client::JsonCppArray< string > get_not_ins () const
 
client::JsonCppArray< string > mutable_notIns ()
 
bool has_permissions () const
 
void clear_permissions ()
 
const client::JsonCppArray< string > get_permissions () const
 
client::JsonCppArray< string > mutable_permissions ()
 

Static Public Member Functions

static RuleNew ()
 

Detailed Description

A rule to be applied in a Policy.

Constructor & Destructor Documentation

◆ Rule() [1/2]

google_deploymentmanager_api::Rule::Rule ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ Rule() [2/2]

google_deploymentmanager_api::Rule::Rule ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~Rule()

google_deploymentmanager_api::Rule::~Rule ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_action()

void google_deploymentmanager_api::Rule::clear_action ( )
inline

Clears the 'action' attribute.

◆ clear_conditions()

void google_deploymentmanager_api::Rule::clear_conditions ( )
inline

Clears the 'conditions' attribute.

◆ clear_description()

void google_deploymentmanager_api::Rule::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_ins()

void google_deploymentmanager_api::Rule::clear_ins ( )
inline

Clears the 'ins' attribute.

◆ clear_log_configs()

void google_deploymentmanager_api::Rule::clear_log_configs ( )
inline

Clears the 'logConfigs' attribute.

◆ clear_not_ins()

void google_deploymentmanager_api::Rule::clear_not_ins ( )
inline

Clears the 'notIns' attribute.

◆ clear_permissions()

void google_deploymentmanager_api::Rule::clear_permissions ( )
inline

Clears the 'permissions' attribute.

◆ get_action()

const StringPiece google_deploymentmanager_api::Rule::get_action ( ) const
inline

Get the value of the 'action' attribute.

◆ get_conditions()

const client::JsonCppArray<Condition > google_deploymentmanager_api::Rule::get_conditions ( ) const

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

◆ get_description()

const StringPiece google_deploymentmanager_api::Rule::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_ins()

const client::JsonCppArray<string > google_deploymentmanager_api::Rule::get_ins ( ) const
inline

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

◆ get_log_configs()

const client::JsonCppArray<LogConfig > google_deploymentmanager_api::Rule::get_log_configs ( ) const

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

◆ get_not_ins()

const client::JsonCppArray<string > google_deploymentmanager_api::Rule::get_not_ins ( ) const
inline

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

◆ get_permissions()

const client::JsonCppArray<string > google_deploymentmanager_api::Rule::get_permissions ( ) const
inline

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

◆ GetTypeName()

const StringPiece google_deploymentmanager_api::Rule::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_deploymentmanager_api::Rule

◆ has_action()

bool google_deploymentmanager_api::Rule::has_action ( ) const
inline

Determine if the 'action' attribute was set.

Returns
true if the 'action' attribute was set.

◆ has_conditions()

bool google_deploymentmanager_api::Rule::has_conditions ( ) const
inline

Determine if the 'conditions' attribute was set.

Returns
true if the 'conditions' attribute was set.

◆ has_description()

bool google_deploymentmanager_api::Rule::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_ins()

bool google_deploymentmanager_api::Rule::has_ins ( ) const
inline

Determine if the 'ins' attribute was set.

Returns
true if the 'ins' attribute was set.

◆ has_log_configs()

bool google_deploymentmanager_api::Rule::has_log_configs ( ) const
inline

Determine if the 'logConfigs' attribute was set.

Returns
true if the 'logConfigs' attribute was set.

◆ has_not_ins()

bool google_deploymentmanager_api::Rule::has_not_ins ( ) const
inline

Determine if the 'notIns' attribute was set.

Returns
true if the 'notIns' attribute was set.

◆ has_permissions()

bool google_deploymentmanager_api::Rule::has_permissions ( ) const
inline

Determine if the 'permissions' attribute was set.

Returns
true if the 'permissions' attribute was set.

◆ mutable_conditions()

client::JsonCppArray<Condition > google_deploymentmanager_api::Rule::mutable_conditions ( )

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

Additional restrictions that must be met. All conditions must pass for the rule to match.

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

◆ mutable_ins()

client::JsonCppArray<string > google_deploymentmanager_api::Rule::mutable_ins ( )
inline

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

If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.

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

◆ mutable_logConfigs()

client::JsonCppArray<LogConfig > google_deploymentmanager_api::Rule::mutable_logConfigs ( )

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

The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.

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

◆ mutable_notIns()

client::JsonCppArray<string > google_deploymentmanager_api::Rule::mutable_notIns ( )
inline

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

If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.

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

◆ mutable_permissions()

client::JsonCppArray<string > google_deploymentmanager_api::Rule::mutable_permissions ( )
inline

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

A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.

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

◆ New()

Rule * google_deploymentmanager_api::Rule::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_action()

void google_deploymentmanager_api::Rule::set_action ( const StringPiece &  value)
inline

Change the 'action' attribute.

Required.

Parameters
[in]valueThe new value.

◆ set_description()

void google_deploymentmanager_api::Rule::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

Human-readable description of the rule.

Parameters
[in]valueThe new value.

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