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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
package oapicodegen
import (
"time"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BasicAuthScopes = "basicAuth.Scopes"
)
// Defines values for ErrorResponseResponseCode.
const (
BADGATEWAY ErrorResponseResponseCode = "BAD_GATEWAY"
BADREQUEST ErrorResponseResponseCode = "BAD_REQUEST"
CONFLICT ErrorResponseResponseCode = "CONFLICT"
EXPECTATIONFAILED ErrorResponseResponseCode = "EXPECTATION_FAILED"
GATEWAYTIMEOUT ErrorResponseResponseCode = "GATEWAY_TIMEOUT"
GONE ErrorResponseResponseCode = "GONE"
HTTPVERSIONNOTSUPPORTED ErrorResponseResponseCode = "HTTP_VERSION_NOT_SUPPORTED"
INTERNALSERVERERROR ErrorResponseResponseCode = "INTERNAL_SERVER_ERROR"
LENGTHREQUIRED ErrorResponseResponseCode = "LENGTH_REQUIRED"
METHODNOTALLOWED ErrorResponseResponseCode = "METHOD_NOT_ALLOWED"
NETWORKAUTHENTICATIONREQUIRED ErrorResponseResponseCode = "NETWORK_AUTHENTICATION_REQUIRED"
NOTACCEPTABLE ErrorResponseResponseCode = "NOT_ACCEPTABLE"
NOTIMPLEMENTED ErrorResponseResponseCode = "NOT_IMPLEMENTED"
PRECONDITIONFAILED ErrorResponseResponseCode = "PRECONDITION_FAILED"
PRECONDITIONREQUIRED ErrorResponseResponseCode = "PRECONDITION_REQUIRED"
REQUESTEDRANGENOTSATISFIABLE ErrorResponseResponseCode = "REQUESTED_RANGE_NOT_SATISFIABLE"
REQUESTENTITYTOOLARGE ErrorResponseResponseCode = "REQUEST_ENTITY_TOO_LARGE"
REQUESTHEADERFIELDSTOOLARGE ErrorResponseResponseCode = "REQUEST_HEADER_FIELDS_TOO_LARGE"
REQUESTTIMEOUT ErrorResponseResponseCode = "REQUEST_TIMEOUT"
REQUESTURITOOLONG ErrorResponseResponseCode = "REQUEST_URI_TOO_LONG"
SERVICEUNAVAILABLE ErrorResponseResponseCode = "SERVICE_UNAVAILABLE"
TOOMANYREQUESTS ErrorResponseResponseCode = "TOO_MANY_REQUESTS"
UNAUTHORIZED ErrorResponseResponseCode = "UNAUTHORIZED"
UNSUPPORTEDMEDIATYPE ErrorResponseResponseCode = "UNSUPPORTED_MEDIA_TYPE"
)
// Defines values for OPADecisionResponseDecision.
const (
DENY OPADecisionResponseDecision = "DENY"
INDETERMINATE OPADecisionResponseDecision = "INDETERMINATE"
PERMIT OPADecisionResponseDecision = "PERMIT"
)
// ErrorResponse defines model for ErrorResponse.
type ErrorResponse struct {
ErrorDetails *[]string `json:"errorDetails,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
ResponseCode *ErrorResponseResponseCode `json:"responseCode,omitempty"`
}
// ErrorResponseResponseCode defines model for ErrorResponse.ResponseCode.
type ErrorResponseResponseCode string
// HealthCheckReport defines model for HealthCheckReport.
type HealthCheckReport struct {
Code *int32 `json:"code,omitempty"`
Healthy *bool `json:"healthy,omitempty"`
Message *string `json:"message,omitempty"`
Name *string `json:"name,omitempty"`
Url *string `json:"url,omitempty"`
}
// OPADecisionRequest defines model for OPADecisionRequest.
type OPADecisionRequest struct {
CurrentDate *openapi_types.Date `json:"currentDate,omitempty"`
CurrentDateTime *time.Time `json:"currentDateTime,omitempty"`
CurrentTime *time.Time `json:"currentTime,omitempty"`
Input *map[string]interface{} `json:"input,omitempty"`
OnapComponent *string `json:"onapComponent,omitempty"`
OnapInstance *string `json:"onapInstance,omitempty"`
OnapName *string `json:"onapName,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
// TimeOffset Time offset in hours and minutes, e.g., '+02:00' or '-05:00'
TimeOffset *string `json:"timeOffset,omitempty"`
// TimeZone Timezone in IANA format (e.g., 'America/NewYork', 'Europe/Paris', 'UTC')
TimeZone *string `json:"timeZone,omitempty"`
}
// OPADecisionResponse defines model for OPADecisionResponse.
type OPADecisionResponse struct {
Decision *OPADecisionResponseDecision `json:"decision,omitempty"`
PolicyName *string `json:"policyName,omitempty"`
StatusMessage *string `json:"statusMessage,omitempty"`
}
// OPADecisionResponseDecision defines model for OPADecisionResponse.Decision.
type OPADecisionResponseDecision string
// StatisticsReport defines model for StatisticsReport.
type StatisticsReport struct {
Code *int32 `json:"code,omitempty"`
DenyDecisionsCount *int64 `json:"denyDecisionsCount,omitempty"`
DeployFailureCount *int64 `json:"deployFailureCount,omitempty"`
DeploySuccessCount *int64 `json:"deploySuccessCount,omitempty"`
IndeterminantDecisionsCount *int64 `json:"indeterminantDecisionsCount,omitempty"`
PermitDecisionsCount *int64 `json:"permitDecisionsCount,omitempty"`
TotalErrorCount *int64 `json:"totalErrorCount,omitempty"`
TotalPoliciesCount *int64 `json:"totalPoliciesCount,omitempty"`
TotalPolicyTypesCount *int64 `json:"totalPolicyTypesCount,omitempty"`
UndeployFailureCount *int64 `json:"undeployFailureCount,omitempty"`
UndeploySuccessCount *int64 `json:"undeploySuccessCount,omitempty"`
}
// DecisionParams defines parameters for Decision.
type DecisionParams struct {
// XONAPRequestID RequestID for http transaction
XONAPRequestID *openapi_types.UUID `json:"X-ONAP-RequestID,omitempty"`
}
// HealthcheckParams defines parameters for Healthcheck.
type HealthcheckParams struct {
// XONAPRequestID RequestID for http transaction
XONAPRequestID *openapi_types.UUID `json:"X-ONAP-RequestID,omitempty"`
}
// StatisticsParams defines parameters for Statistics.
type StatisticsParams struct {
// XONAPRequestID RequestID for http transaction
XONAPRequestID *openapi_types.UUID `json:"X-ONAP-RequestID,omitempty"`
}
// DecisionJSONRequestBody defines body for Decision for application/json ContentType.
type DecisionJSONRequestBody = OPADecisionRequest
|