/
policy.go
35 lines (26 loc) · 1.03 KB
/
policy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* ORY Hydra - Cloud Native OAuth 2.0 and OpenID Connect Server
*
* Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. Keep in mind that this document reflects the latest branch, always. Support for versioned documentation is coming in the future.
*
* OpenAPI spec version: Latest
* Contact: hi@ory.am
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
package swagger
type Policy struct {
// Actions impacted by the policy.
Actions []string `json:"actions,omitempty"`
// Conditions under which the policy is active.
Conditions map[string]PolicyConditions `json:"conditions,omitempty"`
// Description of the policy.
Description string `json:"description,omitempty"`
// Effect of the policy
Effect string `json:"effect,omitempty"`
// ID of the policy.
Id string `json:"id,omitempty"`
// Resources impacted by the policy.
Resources []string `json:"resources,omitempty"`
// Subjects impacted by the policy.
Subjects []string `json:"subjects,omitempty"`
}