Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition (v1.4.1)

Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition.

Custom constraint definition. Defines this as a managed constraint.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action_type

def action_type() -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType

#action_type=

def action_type=(value) -> ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType

#condition

def condition() -> ::String
Returns
  • (::String) — Org policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+") or, resource.management.auto_upgrade == true

    The max length of the condition is 1000 characters.

#condition=

def condition=(value) -> ::String
Parameter
  • value (::String) — Org policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+") or, resource.management.auto_upgrade == true

    The max length of the condition is 1000 characters.

Returns
  • (::String) — Org policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+") or, resource.management.auto_upgrade == true

    The max length of the condition is 1000 characters.

#method_types

def method_types() -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>
Returns

#method_types=

def method_types=(value) -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType>
Parameter
Returns

#parameters

def parameters() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.

#parameters=

def parameters=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.

#resource_types

def resource_types() -> ::Array<::String>
Returns
  • (::Array<::String>) —

    The resource instance type on which this policy applies. Format will be of the form : <service name>/<type> Example:

    • compute.googleapis.com/Instance.

#resource_types=

def resource_types=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) —

    The resource instance type on which this policy applies. Format will be of the form : <service name>/<type> Example:

    • compute.googleapis.com/Instance.
Returns
  • (::Array<::String>) —

    The resource instance type on which this policy applies. Format will be of the form : <service name>/<type> Example:

    • compute.googleapis.com/Instance.