github.com/launchdarkly/api-client-go@v5.3.0+incompatible/model_policy.go (about)

     1  /*
     2   * LaunchDarkly REST API
     3   *
     4   * Build custom integrations with the LaunchDarkly REST API
     5   *
     6   * API version: 5.3.0
     7   * Contact: support@launchdarkly.com
     8   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     9   */
    10  
    11  package ldapi
    12  
    13  type Policy struct {
    14  	Resources []string `json:"resources,omitempty"`
    15  	// Targeted resource will be those resources NOT in this list. The \"resources`\" field must be empty to use this field.
    16  	NotResources []string `json:"notResources,omitempty"`
    17  	Actions []string `json:"actions,omitempty"`
    18  	// Targeted actions will be those actions NOT in this list. The \"actions\" field must be empty to use this field.
    19  	NotActions []string `json:"notActions,omitempty"`
    20  	// Effect of the policy - allow or deny.
    21  	Effect string `json:"effect,omitempty"`
    22  }