#include <rule.h>
A rule to be applied in a Policy.
◆ Rule() [1/2]
| google_compute_api::Rule::Rule |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ Rule() [2/2]
| google_compute_api::Rule::Rule |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~Rule()
| google_compute_api::Rule::~Rule |
( |
| ) |
|
|
virtual |
◆ clear_action()
| void google_compute_api::Rule::clear_action |
( |
| ) |
|
|
inline |
Clears the 'action' attribute.
◆ clear_conditions()
| void google_compute_api::Rule::clear_conditions |
( |
| ) |
|
|
inline |
Clears the 'conditions' attribute.
◆ clear_description()
| void google_compute_api::Rule::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description' attribute.
◆ clear_ins()
| void google_compute_api::Rule::clear_ins |
( |
| ) |
|
|
inline |
Clears the 'ins' attribute.
◆ clear_log_configs()
| void google_compute_api::Rule::clear_log_configs |
( |
| ) |
|
|
inline |
Clears the 'logConfigs' attribute.
◆ clear_not_ins()
| void google_compute_api::Rule::clear_not_ins |
( |
| ) |
|
|
inline |
Clears the 'notIns' attribute.
◆ clear_permissions()
| void google_compute_api::Rule::clear_permissions |
( |
| ) |
|
|
inline |
Clears the 'permissions' attribute.
◆ get_action()
| const StringPiece google_compute_api::Rule::get_action |
( |
| ) |
const |
|
inline |
Get the value of the 'action' attribute.
◆ get_conditions()
| const client::JsonCppArray<Condition > google_compute_api::Rule::get_conditions |
( |
| ) |
const |
Get a reference to the value of the 'conditions' attribute.
◆ get_description()
| const StringPiece google_compute_api::Rule::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description' attribute.
◆ get_ins()
| const client::JsonCppArray<string > google_compute_api::Rule::get_ins |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'ins' attribute.
◆ get_log_configs()
| const client::JsonCppArray<LogConfig > google_compute_api::Rule::get_log_configs |
( |
| ) |
const |
Get a reference to the value of the 'logConfigs' attribute.
◆ get_not_ins()
| const client::JsonCppArray<string > google_compute_api::Rule::get_not_ins |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'notIns' attribute.
◆ get_permissions()
| const client::JsonCppArray<string > google_compute_api::Rule::get_permissions |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'permissions' attribute.
◆ GetTypeName()
| const StringPiece google_compute_api::Rule::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_action()
| bool google_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_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_compute_api::Rule::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_action()
| void google_compute_api::Rule::set_action |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'action' attribute.
Required.
- Parameters
-
◆ set_description()
| void google_compute_api::Rule::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description' attribute.
Human-readable description of the rule.
- Parameters
-
The documentation for this class was generated from the following files:
- google/compute_api/rule.h
- google/compute_api/rule.cc