/
model_policy.go
51 lines (50 loc) · 2.28 KB
/
model_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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Governance Policy Management API
*
* Read and manage OPA Governance policies, policy sets and evaluations
*
* API version: 1.2.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package policymgmt
type Policy struct {
// Harness account ID associated with this policy
AccountId string `json:"account_id"`
// Time the policy was created
Created int64 `json:"created"`
// The commit sha of the commit that last effected the file
GitCommitSha string `json:"git_commit_sha,omitempty"`
// The harness connector used for authenticating on the git provider
GitConnectorRef string `json:"git_connector_ref,omitempty"`
// The default branch, the service pulls in changes from from this branch for policy evaluation
GitDefaultBranch string `json:"git_default_branch,omitempty"`
// The commit sha of the commit that last effected the file in the default branch
GitDefaultBranchCommitSha string `json:"git_default_branch_commit_sha,omitempty"`
// The file id of the file in the default branch, may be empty for bitbucket files
GitDefaultBranchFileId string `json:"git_default_branch_file_id,omitempty"`
// The url of the file in the default branch
GitDefaultBranchFileUrl string `json:"git_default_branch_file_url,omitempty"`
GitDefaultBranchUpdateError *GitErrorResult `json:"git_default_branch_update_error,omitempty"`
// The last time the service successfully pulled in changes from the default branch
GitDefaultBranchUpdated int64 `json:"git_default_branch_updated,omitempty"`
// The file id of the file, may be empty for bitbucket files
GitFileId string `json:"git_file_id,omitempty"`
// The url of the file on the fit provider
GitFileUrl string `json:"git_file_url,omitempty"`
// The path to the file in the git repo
GitPath string `json:"git_path,omitempty"`
// The git repo the policy resides in
GitRepo string `json:"git_repo,omitempty"`
// identifier of the policy
Identifier string `json:"identifier"`
// Name of the policy
Name string `json:"name"`
// Harness organization ID associated with this policy
OrgId string `json:"org_id"`
// Harness project ID associated with this policy
ProjectId string `json:"project_id"`
// Rego that defines the policy
Rego string `json:"rego"`
// Time the policy was last updated
Updated int64 `json:"updated"`
}