Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint.
The definition of a constraint.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#boolean_constraint
def boolean_constraint() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint
-
(::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
Note: The following fields are mutually exclusive:
boolean_constraint
,list_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#boolean_constraint=
def boolean_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint
-
value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
Note: The following fields are mutually exclusive:
boolean_constraint
,list_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
Note: The following fields are mutually exclusive:
boolean_constraint
,list_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#constraint_default
def constraint_default() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault) — The evaluation behavior of this constraint in the absence of 'Policy'.
#constraint_default=
def constraint_default=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault) — The evaluation behavior of this constraint in the absence of 'Policy'.
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault) — The evaluation behavior of this constraint in the absence of 'Policy'.
#description
def description() -> ::String
-
(::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
#description=
def description=(value) -> ::String
-
value (::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
-
(::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
#display_name
def display_name() -> ::String
- (::String) — The human readable name of the constraint.
#display_name=
def display_name=(value) -> ::String
- value (::String) — The human readable name of the constraint.
- (::String) — The human readable name of the constraint.
#list_constraint
def list_constraint() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint
-
(::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
Note: The following fields are mutually exclusive:
list_constraint
,boolean_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#list_constraint=
def list_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint
-
value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
Note: The following fields are mutually exclusive:
list_constraint
,boolean_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
Note: The following fields are mutually exclusive:
list_constraint
,boolean_constraint
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
def name() -> ::String
-
(::String) — The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example,
constraints/compute.disableSerialPortAccess
.
#name=
def name=(value) -> ::String
-
value (::String) — The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example,
constraints/compute.disableSerialPortAccess
.
-
(::String) — The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example,
constraints/compute.disableSerialPortAccess
.