/
models.go
352 lines (277 loc) · 12.3 KB
/
models.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// DO NOT EDIT.
package armauthorization
// ErrorAdditionalInfo - The resource management error additional info.
type ErrorAdditionalInfo struct {
// READ-ONLY; The additional info.
Info any `json:"info,omitempty" azure:"ro"`
// READ-ONLY; The additional info type.
Type *string `json:"type,omitempty" azure:"ro"`
}
// ErrorDetail - The error detail.
type ErrorDetail struct {
// READ-ONLY; The error additional info.
AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"`
// READ-ONLY; The error code.
Code *string `json:"code,omitempty" azure:"ro"`
// READ-ONLY; The error details.
Details []*ErrorDetail `json:"details,omitempty" azure:"ro"`
// READ-ONLY; The error message.
Message *string `json:"message,omitempty" azure:"ro"`
// READ-ONLY; The error target.
Target *string `json:"target,omitempty" azure:"ro"`
}
// ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations.
// (This also follows the OData error response format.).
type ErrorResponse struct {
// The error object.
Error *ErrorDetail `json:"error,omitempty"`
}
// GlobalAdministratorClientElevateAccessOptions contains the optional parameters for the GlobalAdministratorClient.ElevateAccess
// method.
type GlobalAdministratorClientElevateAccessOptions struct {
// placeholder for future optional parameters
}
// Permission - Role definition permissions.
type Permission struct {
// Allowed actions.
Actions []*string `json:"actions,omitempty"`
// Denied actions.
NotActions []*string `json:"notActions,omitempty"`
}
// PermissionGetResult - Permissions information.
type PermissionGetResult struct {
// The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
// An array of permissions.
Value []*Permission `json:"value,omitempty"`
}
// PermissionsClientListForResourceGroupOptions contains the optional parameters for the PermissionsClient.NewListForResourceGroupPager
// method.
type PermissionsClientListForResourceGroupOptions struct {
// placeholder for future optional parameters
}
// PermissionsClientListForResourceOptions contains the optional parameters for the PermissionsClient.NewListForResourcePager
// method.
type PermissionsClientListForResourceOptions struct {
// placeholder for future optional parameters
}
// ProviderOperation - Operation
type ProviderOperation struct {
// The operation description.
Description *string `json:"description,omitempty"`
// The operation display name.
DisplayName *string `json:"displayName,omitempty"`
// The operation name.
Name *string `json:"name,omitempty"`
// The operation origin.
Origin *string `json:"origin,omitempty"`
// The operation properties.
Properties any `json:"properties,omitempty"`
}
// ProviderOperationsMetadata - Provider Operations metadata
type ProviderOperationsMetadata struct {
// The provider display name.
DisplayName *string `json:"displayName,omitempty"`
// The provider id.
ID *string `json:"id,omitempty"`
// The provider name.
Name *string `json:"name,omitempty"`
// The provider operations.
Operations []*ProviderOperation `json:"operations,omitempty"`
// The provider resource types
ResourceTypes []*ResourceType `json:"resourceTypes,omitempty"`
// The provider type.
Type *string `json:"type,omitempty"`
}
// ProviderOperationsMetadataClientGetOptions contains the optional parameters for the ProviderOperationsMetadataClient.Get
// method.
type ProviderOperationsMetadataClientGetOptions struct {
// Specifies whether to expand the values.
Expand *string
}
// ProviderOperationsMetadataClientListOptions contains the optional parameters for the ProviderOperationsMetadataClient.NewListPager
// method.
type ProviderOperationsMetadataClientListOptions struct {
// Specifies whether to expand the values.
Expand *string
}
// ProviderOperationsMetadataListResult - Provider operations metadata list
type ProviderOperationsMetadataListResult struct {
// The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
// The list of providers.
Value []*ProviderOperationsMetadata `json:"value,omitempty"`
}
// ResourceType - Resource Type
type ResourceType struct {
// The resource type display name.
DisplayName *string `json:"displayName,omitempty"`
// The resource type name.
Name *string `json:"name,omitempty"`
// The resource type operations.
Operations []*ProviderOperation `json:"operations,omitempty"`
}
// RoleAssignment - Role Assignments
type RoleAssignment struct {
// Role assignment properties.
Properties *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"`
// READ-ONLY; The role assignment ID.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The role assignment name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The role assignment type.
Type *string `json:"type,omitempty" azure:"ro"`
}
// RoleAssignmentCreateParameters - Role assignment create parameters.
type RoleAssignmentCreateParameters struct {
// REQUIRED; Role assignment properties.
Properties *RoleAssignmentProperties `json:"properties,omitempty"`
}
// RoleAssignmentFilter - Role Assignments filter
type RoleAssignmentFilter struct {
// Returns role assignment of the specific principal.
PrincipalID *string `json:"principalId,omitempty"`
}
// RoleAssignmentListResult - Role assignment list operation result.
type RoleAssignmentListResult struct {
// The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
// Role assignment list.
Value []*RoleAssignment `json:"value,omitempty"`
}
// RoleAssignmentProperties - Role assignment properties.
type RoleAssignmentProperties struct {
// REQUIRED; The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user,
// service principal, or security group.
PrincipalID *string `json:"principalId,omitempty"`
// REQUIRED; The role definition ID used in the role assignment.
RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
}
// RoleAssignmentPropertiesWithScope - Role assignment properties with scope.
type RoleAssignmentPropertiesWithScope struct {
// The principal ID.
PrincipalID *string `json:"principalId,omitempty"`
// The role definition ID.
RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
// The role assignment scope.
Scope *string `json:"scope,omitempty"`
}
// RoleAssignmentsClientCreateByIDOptions contains the optional parameters for the RoleAssignmentsClient.CreateByID method.
type RoleAssignmentsClientCreateByIDOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientCreateOptions contains the optional parameters for the RoleAssignmentsClient.Create method.
type RoleAssignmentsClientCreateOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientDeleteByIDOptions contains the optional parameters for the RoleAssignmentsClient.DeleteByID method.
type RoleAssignmentsClientDeleteByIDOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientDeleteOptions contains the optional parameters for the RoleAssignmentsClient.Delete method.
type RoleAssignmentsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientGetByIDOptions contains the optional parameters for the RoleAssignmentsClient.GetByID method.
type RoleAssignmentsClientGetByIDOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientGetOptions contains the optional parameters for the RoleAssignmentsClient.Get method.
type RoleAssignmentsClientGetOptions struct {
// placeholder for future optional parameters
}
// RoleAssignmentsClientListForResourceGroupOptions contains the optional parameters for the RoleAssignmentsClient.NewListForResourceGroupPager
// method.
type RoleAssignmentsClientListForResourceGroupOptions struct {
// The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId
// eq {id} to return all role assignments at, above or below the
// scope for the specified principal.
Filter *string
}
// RoleAssignmentsClientListForResourceOptions contains the optional parameters for the RoleAssignmentsClient.NewListForResourcePager
// method.
type RoleAssignmentsClientListForResourceOptions struct {
// The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId
// eq {id} to return all role assignments at, above or below the
// scope for the specified principal.
Filter *string
}
// RoleAssignmentsClientListForScopeOptions contains the optional parameters for the RoleAssignmentsClient.NewListForScopePager
// method.
type RoleAssignmentsClientListForScopeOptions struct {
// The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId
// eq {id} to return all role assignments at, above or below the
// scope for the specified principal.
Filter *string
}
// RoleAssignmentsClientListOptions contains the optional parameters for the RoleAssignmentsClient.NewListPager method.
type RoleAssignmentsClientListOptions struct {
// The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId
// eq {id} to return all role assignments at, above or below the
// scope for the specified principal.
Filter *string
}
// RoleDefinition - Role definition.
type RoleDefinition struct {
// Role definition properties.
Properties *RoleDefinitionProperties `json:"properties,omitempty"`
// READ-ONLY; The role definition ID.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The role definition name.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The role definition type.
Type *string `json:"type,omitempty" azure:"ro"`
}
// RoleDefinitionFilter - Role Definitions filter
type RoleDefinitionFilter struct {
// Returns role definition with the specific name.
RoleName *string `json:"roleName,omitempty"`
}
// RoleDefinitionListResult - Role definition list operation result.
type RoleDefinitionListResult struct {
// The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
// Role definition list.
Value []*RoleDefinition `json:"value,omitempty"`
}
// RoleDefinitionProperties - Role definition properties.
type RoleDefinitionProperties struct {
// Role definition assignable scopes.
AssignableScopes []*string `json:"assignableScopes,omitempty"`
// The role definition description.
Description *string `json:"description,omitempty"`
// Role definition permissions.
Permissions []*Permission `json:"permissions,omitempty"`
// The role name.
RoleName *string `json:"roleName,omitempty"`
// The role type.
RoleType *string `json:"type,omitempty"`
}
// RoleDefinitionsClientCreateOrUpdateOptions contains the optional parameters for the RoleDefinitionsClient.CreateOrUpdate
// method.
type RoleDefinitionsClientCreateOrUpdateOptions struct {
// placeholder for future optional parameters
}
// RoleDefinitionsClientDeleteOptions contains the optional parameters for the RoleDefinitionsClient.Delete method.
type RoleDefinitionsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// RoleDefinitionsClientGetByIDOptions contains the optional parameters for the RoleDefinitionsClient.GetByID method.
type RoleDefinitionsClientGetByIDOptions struct {
// placeholder for future optional parameters
}
// RoleDefinitionsClientGetOptions contains the optional parameters for the RoleDefinitionsClient.Get method.
type RoleDefinitionsClientGetOptions struct {
// placeholder for future optional parameters
}
// RoleDefinitionsClientListOptions contains the optional parameters for the RoleDefinitionsClient.NewListPager method.
type RoleDefinitionsClientListOptions struct {
// The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well.
Filter *string
}