GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition (google_api_org_policy v0.9.1)

View Source

Custom constraint definition. Defines this as a managed constraint.

Attributes

  • actionType (type: String.t, default: nil) - Allow or deny type.
  • condition (type: String.t, default: nil) - 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.
  • methodTypes (type: list(String.t), default: nil) - All the operations being applied for this constraint.
  • parameters (type: %{optional(String.t) => GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.t}, default: nil) - Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.
  • resourceTypes (type: list(String.t), default: nil) - The resource instance type on which this policy applies. Format will be of the form : / Example: * compute.googleapis.com/Instance.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition{
    actionType: String.t() | nil,
    condition: String.t() | nil,
    methodTypes: [String.t()] | nil,
    parameters:
      %{
        optional(String.t()) =>
          GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.t()
      }
      | nil,
    resourceTypes: [String.t()] | nil
  }

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.