/
models.go
190 lines (154 loc) · 7.44 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
//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 armlocks
// AuthorizationOperationsClientListOptions contains the optional parameters for the AuthorizationOperationsClient.NewListPager
// method.
type AuthorizationOperationsClientListOptions struct {
// placeholder for future optional parameters
}
// ManagementLockListResult - The list of locks.
type ManagementLockListResult struct {
// The URL to use for getting the next set of results.
NextLink *string `json:"nextLink,omitempty"`
// The list of locks.
Value []*ManagementLockObject `json:"value,omitempty"`
}
// ManagementLockObject - The lock information.
type ManagementLockObject struct {
// REQUIRED; The properties of the lock.
Properties *ManagementLockProperties `json:"properties,omitempty"`
// READ-ONLY; The resource ID of the lock.
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The name of the lock.
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The resource type of the lock - Microsoft.Authorization/locks.
Type *string `json:"type,omitempty" azure:"ro"`
}
// ManagementLockOwner - Lock owner properties.
type ManagementLockOwner struct {
// The application ID of the lock owner.
ApplicationID *string `json:"applicationId,omitempty"`
}
// ManagementLockProperties - The lock properties.
type ManagementLockProperties struct {
// REQUIRED; The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized
// users are able to read and modify the resources, but not delete. ReadOnly means
// authorized users can only read from a resource, but they can't modify or delete it.
Level *LockLevel `json:"level,omitempty"`
// Notes about the lock. Maximum of 512 characters.
Notes *string `json:"notes,omitempty"`
// The owners of the lock.
Owners []*ManagementLockOwner `json:"owners,omitempty"`
}
// ManagementLocksClientCreateOrUpdateAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateAtResourceGroupLevel
// method.
type ManagementLocksClientCreateOrUpdateAtResourceGroupLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientCreateOrUpdateAtResourceLevelOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateAtResourceLevel
// method.
type ManagementLocksClientCreateOrUpdateAtResourceLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientCreateOrUpdateAtSubscriptionLevelOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateAtSubscriptionLevel
// method.
type ManagementLocksClientCreateOrUpdateAtSubscriptionLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientCreateOrUpdateByScopeOptions contains the optional parameters for the ManagementLocksClient.CreateOrUpdateByScope
// method.
type ManagementLocksClientCreateOrUpdateByScopeOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientDeleteAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.DeleteAtResourceGroupLevel
// method.
type ManagementLocksClientDeleteAtResourceGroupLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientDeleteAtResourceLevelOptions contains the optional parameters for the ManagementLocksClient.DeleteAtResourceLevel
// method.
type ManagementLocksClientDeleteAtResourceLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientDeleteAtSubscriptionLevelOptions contains the optional parameters for the ManagementLocksClient.DeleteAtSubscriptionLevel
// method.
type ManagementLocksClientDeleteAtSubscriptionLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientDeleteByScopeOptions contains the optional parameters for the ManagementLocksClient.DeleteByScope
// method.
type ManagementLocksClientDeleteByScopeOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientGetAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.GetAtResourceGroupLevel
// method.
type ManagementLocksClientGetAtResourceGroupLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientGetAtResourceLevelOptions contains the optional parameters for the ManagementLocksClient.GetAtResourceLevel
// method.
type ManagementLocksClientGetAtResourceLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientGetAtSubscriptionLevelOptions contains the optional parameters for the ManagementLocksClient.GetAtSubscriptionLevel
// method.
type ManagementLocksClientGetAtSubscriptionLevelOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientGetByScopeOptions contains the optional parameters for the ManagementLocksClient.GetByScope method.
type ManagementLocksClientGetByScopeOptions struct {
// placeholder for future optional parameters
}
// ManagementLocksClientListAtResourceGroupLevelOptions contains the optional parameters for the ManagementLocksClient.NewListAtResourceGroupLevelPager
// method.
type ManagementLocksClientListAtResourceGroupLevelOptions struct {
// The filter to apply on the operation.
Filter *string
}
// ManagementLocksClientListAtResourceLevelOptions contains the optional parameters for the ManagementLocksClient.NewListAtResourceLevelPager
// method.
type ManagementLocksClientListAtResourceLevelOptions struct {
// The filter to apply on the operation.
Filter *string
}
// ManagementLocksClientListAtSubscriptionLevelOptions contains the optional parameters for the ManagementLocksClient.NewListAtSubscriptionLevelPager
// method.
type ManagementLocksClientListAtSubscriptionLevelOptions struct {
// The filter to apply on the operation.
Filter *string
}
// ManagementLocksClientListByScopeOptions contains the optional parameters for the ManagementLocksClient.NewListByScopePager
// method.
type ManagementLocksClientListByScopeOptions struct {
// The filter to apply on the operation.
Filter *string
}
// Operation - Microsoft.Authorization operation
type Operation struct {
// The object that represents the operation.
Display *OperationDisplay `json:"display,omitempty"`
// Operation name: {provider}/{resource}/{operation}
Name *string `json:"name,omitempty"`
}
// OperationDisplay - The object that represents the operation.
type OperationDisplay struct {
// Operation type: Read, write, delete, etc.
Operation *string `json:"operation,omitempty"`
// Service provider: Microsoft.Authorization
Provider *string `json:"provider,omitempty"`
// Resource on which the operation is performed: Profile, endpoint, etc.
Resource *string `json:"resource,omitempty"`
}
// OperationListResult - Result of the request to list Microsoft.Authorization operations. It contains a list of operations
// and a URL link to get the next set of results.
type OperationListResult struct {
// URL to get the next set of operation list results if there are any.
NextLink *string `json:"nextLink,omitempty"`
// List of Microsoft.Authorization operations.
Value []*Operation `json:"value,omitempty"`
}