...
1 package accesscontrol
2
3
4
5
6
7
8
9 import (
10 "github.com/Azure/go-autorest/autorest"
11 "github.com/gofrs/uuid"
12 )
13
14
15 const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/synapse/2020-08-01-preview/accesscontrol"
16
17
18 type CheckAccessDecision struct {
19
20 AccessDecision *string `json:"accessDecision,omitempty"`
21
22 ActionID *string `json:"actionId,omitempty"`
23 RoleAssignment *RoleAssignmentDetails `json:"roleAssignment,omitempty"`
24 }
25
26
27 type CheckPrincipalAccessRequest struct {
28
29 Subject *SubjectInfo `json:"subject,omitempty"`
30
31 Actions *[]RequiredAction `json:"actions,omitempty"`
32
33 Scope *string `json:"scope,omitempty"`
34 }
35
36
37 type CheckPrincipalAccessResponse struct {
38 autorest.Response `json:"-"`
39
40 AccessDecisions *[]CheckAccessDecision `json:"AccessDecisions,omitempty"`
41 }
42
43
44 type ErrorContract struct {
45
46 Error *ErrorResponse `json:"error,omitempty"`
47 }
48
49
50 type ErrorDetail struct {
51 Code *string `json:"code,omitempty"`
52 Message *string `json:"message,omitempty"`
53 Target *string `json:"target,omitempty"`
54 }
55
56
57 type ErrorResponse struct {
58 Code *string `json:"code,omitempty"`
59 Message *string `json:"message,omitempty"`
60 Target *string `json:"target,omitempty"`
61 Details *[]ErrorDetail `json:"details,omitempty"`
62 }
63
64
65 type ListString struct {
66 autorest.Response `json:"-"`
67 Value *[]string `json:"value,omitempty"`
68 }
69
70
71 type ListSynapseRoleDefinition struct {
72 autorest.Response `json:"-"`
73 Value *[]SynapseRoleDefinition `json:"value,omitempty"`
74 }
75
76
77 type RequiredAction struct {
78
79 ID *string `json:"id,omitempty"`
80
81 IsDataAction *bool `json:"isDataAction,omitempty"`
82 }
83
84
85 type RoleAssignmentDetails struct {
86 autorest.Response `json:"-"`
87
88 ID *string `json:"id,omitempty"`
89
90 RoleDefinitionID *uuid.UUID `json:"roleDefinitionId,omitempty"`
91
92 PrincipalID *uuid.UUID `json:"principalId,omitempty"`
93
94 Scope *string `json:"scope,omitempty"`
95
96 PrincipalType *string `json:"principalType,omitempty"`
97 }
98
99
100 type RoleAssignmentDetailsList struct {
101 autorest.Response `json:"-"`
102
103 Count *int32 `json:"count,omitempty"`
104
105 Value *[]RoleAssignmentDetails `json:"value,omitempty"`
106 }
107
108
109 type RoleAssignmentRequest struct {
110
111 RoleID *uuid.UUID `json:"roleId,omitempty"`
112
113 PrincipalID *uuid.UUID `json:"principalId,omitempty"`
114
115 Scope *string `json:"scope,omitempty"`
116
117 PrincipalType *string `json:"principalType,omitempty"`
118 }
119
120
121 type SubjectInfo struct {
122
123 PrincipalID *uuid.UUID `json:"principalId,omitempty"`
124
125 GroupIds *[]uuid.UUID `json:"groupIds,omitempty"`
126 }
127
128
129 type SynapseRbacPermission struct {
130
131 Actions *[]string `json:"actions,omitempty"`
132
133 NotActions *[]string `json:"notActions,omitempty"`
134
135 DataActions *[]string `json:"dataActions,omitempty"`
136
137 NotDataActions *[]string `json:"notDataActions,omitempty"`
138 }
139
140
141 type SynapseRoleDefinition struct {
142 autorest.Response `json:"-"`
143
144 ID *uuid.UUID `json:"id,omitempty"`
145
146 Name *string `json:"name,omitempty"`
147
148 IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
149
150 Description *string `json:"description,omitempty"`
151
152 Permissions *[]SynapseRbacPermission `json:"permissions,omitempty"`
153
154 Scopes *[]string `json:"scopes,omitempty"`
155
156 AvailabilityStatus *string `json:"availabilityStatus,omitempty"`
157 }
158
View as plain text