Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule.
This rule message is a customized version of the one defined in the Organization Policy system. In addition to the fields defined in the original organization policy, it contains additional field(s) under specific circumstances to support analysis results.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allow_all
def allow_all() -> ::Boolean
Returns
- (::Boolean) — Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
#allow_all=
def allow_all=(value) -> ::Boolean
Parameter
- value (::Boolean) — Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
Returns
- (::Boolean) — Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
#condition
def condition() -> ::Google::Type::Expr
Returns
- (::Google::Type::Expr) — The evaluating condition for this rule.
#condition=
def condition=(value) -> ::Google::Type::Expr
Parameter
- value (::Google::Type::Expr) — The evaluating condition for this rule.
Returns
- (::Google::Type::Expr) — The evaluating condition for this rule.
#deny_all
def deny_all() -> ::Boolean
Returns
- (::Boolean) — Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
#deny_all=
def deny_all=(value) -> ::Boolean
Parameter
- value (::Boolean) — Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
Returns
- (::Boolean) — Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
#enforce
def enforce() -> ::Boolean
Returns
-
(::Boolean) — If
true
, then thePolicy
is enforced. Iffalse
, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
#enforce=
def enforce=(value) -> ::Boolean
Parameter
-
value (::Boolean) — If
true
, then thePolicy
is enforced. Iffalse
, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
Returns
-
(::Boolean) — If
true
, then thePolicy
is enforced. Iffalse
, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
#values
def values() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues) — List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
#values=
def values=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues
Parameter
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues) — List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues) — List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.