Cloud Asset V1 API - Class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint (v1.0.1)

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

#boolean_constraint=

def boolean_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::BooleanConstraint
Parameter
Returns

#constraint_default

def constraint_default() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault
Returns

#constraint_default=

def constraint_default=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ConstraintDefault
Parameter
Returns

#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

#list_constraint=

def list_constraint=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::Constraint::ListConstraint
Parameter
Returns

#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.