# Path: google/cloud/orgpolicy_v2/types/constraint.py
# class Constraint(proto.Message):
#     class ConstraintDefault(proto.Enum):
#     class ListConstraint(proto.Message):
#     class BooleanConstraint(proto.Message):
#         CONSTRAINT_DEFAULT_UNSPECIFIED = 0
#         ALLOW = 1
#         DENY = 2


import proto  # type: ignore
from google.cloud.orgpolicy_v2.types import constraint
from google.protobuf import timestamp_pb2  # type: ignore
from google.type import expr_pb2  # type: ignore
        page_token (str):
            Page token used to retrieve the next page.
            This is currently unsupported and will be
            ignored. The server may at any point start using
            this field.
    """

    parent = proto.Field(proto.STRING, number=1,)
    page_size = proto.Field(proto.INT32, number=2,)
    page_token = proto.Field(proto.STRING, number=3,)


class ListConstraintsResponse(proto.Message):
    r"""The response returned from the [ListConstraints]
    [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.

    Attributes:
        constraints (Sequence[google.cloud.orgpolicy_v2.types.Constraint]):
            The collection of constraints that are
            available on the targeted resource.
        next_page_token (str):
            Page token used to retrieve the next page.
            This is currently not used.
    """

    @property
    def raw_page(self):
        return self

    constraints = proto.RepeatedField(

# Path: google/cloud/orgpolicy_v2/types/constraint.py
# class Constraint(proto.Message):
#     class ConstraintDefault(proto.Enum):
#     class ListConstraint(proto.Message):
#     class BooleanConstraint(proto.Message):
#         CONSTRAINT_DEFAULT_UNSPECIFIED = 0
#         ALLOW = 1
#         DENY = 2


# Path: google/cloud/orgpolicy_v2/types/orgpolicy.py
import proto  # type: ignore
from google.cloud.orgpolicy_v2.types import constraint
from google.protobuf import timestamp_pb2  # type: ignore
from google.type import expr_pb2  # type: ignore

        page_token (str):
            Page token used to retrieve the next page.
            This is currently unsupported and will be
            ignored. The server may at any point start using
            this field.
    """

    parent = proto.Field(proto.STRING, number=1,)
    page_size = proto.Field(proto.INT32, number=2,)
    page_token = proto.Field(proto.STRING, number=3,)


class ListConstraintsResponse(proto.Message):
    r"""The response returned from the [ListConstraints]
    [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.

    Attributes:
        constraints (Sequence[google.cloud.orgpolicy_v2.types.Constraint]):
            The collection of constraints that are
            available on the targeted resource.
        next_page_token (str):
            Page token used to retrieve the next page.
            This is currently not used.
    """

    @property
    def raw_page(self):
        return self

    constraints = proto.RepeatedField(

        proto.MESSAGE, number=1, message=constraint.Constraint,