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
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
#boolean_constraint=
def boolean_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint
Parameter
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint) — Defines this constraint as being a BooleanConstraint.
#constraint_default
def constraint_default() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault
Returns
- (::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
Parameter
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault) — The evaluation behavior of this constraint in the absence of 'Policy'.
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault) — The evaluation behavior of this constraint in the absence of 'Policy'.
#description
def description() -> ::String
Returns
-
(::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
#description=
def description=(value) -> ::String
Parameter
-
value (::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
Returns
-
(::String) — Detailed description of what this
Constraint
controls as well as how and where it is enforced.
#display_name
def display_name() -> ::String
Returns
- (::String) — The human readable name of the constraint.
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — The human readable name of the constraint.
Returns
- (::String) — The human readable name of the constraint.
#list_constraint
def list_constraint() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
#list_constraint=
def list_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint
Parameter
- value (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
Returns
- (::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint) — Defines this constraint as being a ListConstraint.
#name
def name() -> ::String
Returns
-
(::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
Parameter
-
value (::String) — The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example,
constraints/compute.disableSerialPortAccess
.
Returns
-
(::String) — The unique name of the constraint. Format of the name should be
constraints/{constraint_name}
For example,
constraints/compute.disableSerialPortAccess
.