Interface Policy

  • All Superinterfaces:
    ModelEntity, ResourceEntity, Serializable
    All Known Implementing Classes:
    SenlinPolicy

    public interface Policy
    extends ResourceEntity
    This interface describes the getter-methods (and thus components) of a Policy. All getters map to the possible return values of GET /v1/policies/​{policy_id}​
    Author:
    lion
    • Method Detail

      • getDomain

        String getDomain()
        Returns the domain of the policy
        Returns:
        the domain of the policy
      • getProject

        String getProject()
        Returns the project of the policy
        Returns:
        the project of the policy
      • getUser

        String getUser()
        Returns the user of the policy
        Returns:
        the user of the policy
      • getData

        Map<String,​Object> getData()
        Returns the data of the policy
        Returns:
        the data of the policy
      • getSpec

        Map<String,​Object> getSpec()
        Returns the spec of the policy
        Returns:
        the spec of the policy
      • getType

        String getType()
        Returns the type of the policy
        Returns:
        the type of the policy
      • getCreatedAt

        Date getCreatedAt()
        Returns the created at time of the policy
        Returns:
        the created at time of the policy
      • getUpdatedAt

        Date getUpdatedAt()
        Returns the updated at time of the policy
        Returns:
        the updated at time of the policy