Cloud Asset V1 API - Class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint (v0.26.1)

Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint.

The definition of a custom constraint.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action_type

def action_type() -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType

#action_type=

def action_type=(value) -> ::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType

#condition

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

#condition=

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

#description

def description() -> ::String
Returns
  • (::String) — Detailed information about this custom policy constraint.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Detailed information about this custom policy constraint.
Returns
  • (::String) — Detailed information about this custom policy constraint.

#display_name

def display_name() -> ::String
Returns
  • (::String) — One line display name for the UI.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — One line display name for the UI.
Returns
  • (::String) — One line display name for the UI.

#method_types

def method_types() -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>
Returns

#method_types=

def method_types=(value) -> ::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Name of the constraint. This is unique within the organization. Format of the name should be

    • organizations/{organization_id}/customConstraints/{custom_constraint_id}

    Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the constraint. This is unique within the organization. Format of the name should be

    • organizations/{organization_id}/customConstraints/{custom_constraint_id}

    Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"

Returns
  • (::String) — Name of the constraint. This is unique within the organization. Format of the name should be

    • organizations/{organization_id}/customConstraints/{custom_constraint_id}

    Example : "organizations/123/customConstraints/custom.createOnlyE2TypeVms"

#resource_types

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

    The Resource Instance type on which this policy applies to. Format will be of the form : "

    • 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 to. Format will be of the form : "

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

    The Resource Instance type on which this policy applies to. Format will be of the form : "

    • compute.googleapis.com/Instance.