@azure/arm-locks 1.2.0 → 2.0.0-alpha.20211015.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +63 -80
- package/dist/index.js +1796 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/index.d.ts +534 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/managementLockClient.d.ts +9 -18
- package/esm/managementLockClient.d.ts.map +1 -1
- package/esm/managementLockClient.js +12 -28
- package/esm/managementLockClient.js.map +1 -1
- package/esm/managementLockClientContext.d.ts +10 -16
- package/esm/managementLockClientContext.d.ts.map +1 -1
- package/esm/managementLockClientContext.js +34 -46
- package/esm/managementLockClientContext.js.map +1 -1
- package/esm/models/index.d.ts +208 -445
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +9 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +7 -9
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +69 -78
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +16 -13
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +78 -54
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/authorizationOperations.d.ts +27 -26
- package/esm/operations/authorizationOperations.d.ts.map +1 -1
- package/esm/operations/authorizationOperations.js +158 -50
- package/esm/operations/authorizationOperations.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +3 -5
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementLocks.d.ts +203 -393
- package/esm/operations/managementLocks.d.ts.map +1 -1
- package/esm/operations/managementLocks.js +993 -485
- package/esm/operations/managementLocks.js.map +1 -1
- package/esm/operationsInterfaces/authorizationOperations.d.ts +18 -0
- package/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/authorizationOperations.js +9 -0
- package/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +3 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +10 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementLocks.d.ts +198 -0
- package/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementLocks.js +9 -0
- package/esm/operationsInterfaces/managementLocks.js.map +1 -0
- package/package.json +53 -16
- package/review/arm-locks.api.md +313 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/managementLockClient.ts +23 -36
- package/src/managementLockClientContext.ts +47 -45
- package/src/models/index.ts +256 -470
- package/src/models/mappers.ts +72 -82
- package/src/models/parameters.ts +97 -55
- package/src/operations/authorizationOperations.ts +155 -70
- package/src/operations/index.ts +3 -5
- package/src/operations/managementLocks.ts +1165 -869
- package/src/operationsInterfaces/authorizationOperations.ts +36 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/managementLocks.ts +332 -0
- package/tsconfig.json +3 -2
- package/dist/arm-locks.js +0 -1280
- package/dist/arm-locks.js.map +0 -1
- package/dist/arm-locks.min.js +0 -1
- package/dist/arm-locks.min.js.map +0 -1
- package/esm/models/authorizationOperationsMappers.d.ts +0 -2
- package/esm/models/authorizationOperationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationOperationsMappers.js +0 -9
- package/esm/models/authorizationOperationsMappers.js.map +0 -1
- package/esm/models/managementLocksMappers.d.ts +0 -2
- package/esm/models/managementLocksMappers.d.ts.map +0 -1
- package/esm/models/managementLocksMappers.js +0 -9
- package/esm/models/managementLocksMappers.js.map +0 -1
- package/src/models/authorizationOperationsMappers.ts +0 -14
- package/src/models/managementLocksMappers.ts +0 -15
package/src/models/mappers.ts
CHANGED
@@ -1,91 +1,63 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
4
|
*
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import
|
10
|
-
import * as msRest from "@azure/ms-rest-js";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
11
10
|
|
12
|
-
export const
|
13
|
-
export const BaseResource = BaseResourceMapper;
|
14
|
-
|
15
|
-
export const ManagementLockOwner: msRest.CompositeMapper = {
|
16
|
-
serializedName: "ManagementLockOwner",
|
17
|
-
type: {
|
18
|
-
name: "Composite",
|
19
|
-
className: "ManagementLockOwner",
|
20
|
-
modelProperties: {
|
21
|
-
applicationId: {
|
22
|
-
serializedName: "applicationId",
|
23
|
-
type: {
|
24
|
-
name: "String"
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
};
|
30
|
-
|
31
|
-
export const ManagementLockObject: msRest.CompositeMapper = {
|
32
|
-
serializedName: "ManagementLockObject",
|
11
|
+
export const OperationListResult: coreClient.CompositeMapper = {
|
33
12
|
type: {
|
34
13
|
name: "Composite",
|
35
|
-
className: "
|
14
|
+
className: "OperationListResult",
|
36
15
|
modelProperties: {
|
37
|
-
|
38
|
-
|
39
|
-
serializedName: "properties.level",
|
40
|
-
type: {
|
41
|
-
name: "String"
|
42
|
-
}
|
43
|
-
},
|
44
|
-
notes: {
|
45
|
-
serializedName: "properties.notes",
|
46
|
-
type: {
|
47
|
-
name: "String"
|
48
|
-
}
|
49
|
-
},
|
50
|
-
owners: {
|
51
|
-
serializedName: "properties.owners",
|
16
|
+
value: {
|
17
|
+
serializedName: "value",
|
52
18
|
type: {
|
53
19
|
name: "Sequence",
|
54
20
|
element: {
|
55
21
|
type: {
|
56
22
|
name: "Composite",
|
57
|
-
className: "
|
23
|
+
className: "Operation"
|
58
24
|
}
|
59
25
|
}
|
60
26
|
}
|
61
27
|
},
|
62
|
-
|
63
|
-
|
64
|
-
serializedName: "id",
|
28
|
+
nextLink: {
|
29
|
+
serializedName: "nextLink",
|
65
30
|
type: {
|
66
31
|
name: "String"
|
67
32
|
}
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
export const Operation: coreClient.CompositeMapper = {
|
39
|
+
type: {
|
40
|
+
name: "Composite",
|
41
|
+
className: "Operation",
|
42
|
+
modelProperties: {
|
43
|
+
name: {
|
44
|
+
serializedName: "name",
|
72
45
|
type: {
|
73
46
|
name: "String"
|
74
47
|
}
|
75
48
|
},
|
76
|
-
|
77
|
-
|
78
|
-
serializedName: "name",
|
49
|
+
display: {
|
50
|
+
serializedName: "display",
|
79
51
|
type: {
|
80
|
-
name: "
|
52
|
+
name: "Composite",
|
53
|
+
className: "OperationDisplay"
|
81
54
|
}
|
82
55
|
}
|
83
56
|
}
|
84
57
|
}
|
85
58
|
};
|
86
59
|
|
87
|
-
export const OperationDisplay:
|
88
|
-
serializedName: "Operation_display",
|
60
|
+
export const OperationDisplay: coreClient.CompositeMapper = {
|
89
61
|
type: {
|
90
62
|
name: "Composite",
|
91
63
|
className: "OperationDisplay",
|
@@ -112,49 +84,68 @@ export const OperationDisplay: msRest.CompositeMapper = {
|
|
112
84
|
}
|
113
85
|
};
|
114
86
|
|
115
|
-
export const
|
116
|
-
serializedName: "Operation",
|
87
|
+
export const ManagementLockObject: coreClient.CompositeMapper = {
|
117
88
|
type: {
|
118
89
|
name: "Composite",
|
119
|
-
className: "
|
90
|
+
className: "ManagementLockObject",
|
120
91
|
modelProperties: {
|
92
|
+
id: {
|
93
|
+
serializedName: "id",
|
94
|
+
readOnly: true,
|
95
|
+
type: {
|
96
|
+
name: "String"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
type: {
|
100
|
+
serializedName: "type",
|
101
|
+
readOnly: true,
|
102
|
+
type: {
|
103
|
+
name: "String"
|
104
|
+
}
|
105
|
+
},
|
121
106
|
name: {
|
122
107
|
serializedName: "name",
|
108
|
+
readOnly: true,
|
123
109
|
type: {
|
124
110
|
name: "String"
|
125
111
|
}
|
126
112
|
},
|
127
|
-
|
128
|
-
serializedName: "
|
113
|
+
level: {
|
114
|
+
serializedName: "properties.level",
|
115
|
+
required: true,
|
129
116
|
type: {
|
130
|
-
name: "
|
131
|
-
className: "OperationDisplay"
|
117
|
+
name: "String"
|
132
118
|
}
|
133
|
-
}
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
className: "OperationListResult",
|
143
|
-
modelProperties: {
|
144
|
-
value: {
|
145
|
-
serializedName: "",
|
119
|
+
},
|
120
|
+
notes: {
|
121
|
+
serializedName: "properties.notes",
|
122
|
+
type: {
|
123
|
+
name: "String"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
owners: {
|
127
|
+
serializedName: "properties.owners",
|
146
128
|
type: {
|
147
129
|
name: "Sequence",
|
148
130
|
element: {
|
149
131
|
type: {
|
150
132
|
name: "Composite",
|
151
|
-
className: "
|
133
|
+
className: "ManagementLockOwner"
|
152
134
|
}
|
153
135
|
}
|
154
136
|
}
|
155
|
-
}
|
156
|
-
|
157
|
-
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
};
|
141
|
+
|
142
|
+
export const ManagementLockOwner: coreClient.CompositeMapper = {
|
143
|
+
type: {
|
144
|
+
name: "Composite",
|
145
|
+
className: "ManagementLockOwner",
|
146
|
+
modelProperties: {
|
147
|
+
applicationId: {
|
148
|
+
serializedName: "applicationId",
|
158
149
|
type: {
|
159
150
|
name: "String"
|
160
151
|
}
|
@@ -163,14 +154,13 @@ export const OperationListResult: msRest.CompositeMapper = {
|
|
163
154
|
}
|
164
155
|
};
|
165
156
|
|
166
|
-
export const ManagementLockListResult:
|
167
|
-
serializedName: "ManagementLockListResult",
|
157
|
+
export const ManagementLockListResult: coreClient.CompositeMapper = {
|
168
158
|
type: {
|
169
159
|
name: "Composite",
|
170
160
|
className: "ManagementLockListResult",
|
171
161
|
modelProperties: {
|
172
162
|
value: {
|
173
|
-
serializedName: "",
|
163
|
+
serializedName: "value",
|
174
164
|
type: {
|
175
165
|
name: "Sequence",
|
176
166
|
element: {
|
package/src/models/parameters.ts
CHANGED
@@ -1,140 +1,182 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
|
11
|
-
import
|
9
|
+
import {
|
10
|
+
OperationParameter,
|
11
|
+
OperationURLParameter,
|
12
|
+
OperationQueryParameter
|
13
|
+
} from "@azure/core-client";
|
14
|
+
import { ManagementLockObject as ManagementLockObjectMapper } from "../models/mappers";
|
12
15
|
|
13
|
-
export const
|
14
|
-
parameterPath: "
|
16
|
+
export const accept: OperationParameter = {
|
17
|
+
parameterPath: "accept",
|
15
18
|
mapper: {
|
16
|
-
|
17
|
-
|
19
|
+
defaultValue: "application/json",
|
20
|
+
isConstant: true,
|
21
|
+
serializedName: "Accept",
|
18
22
|
type: {
|
19
23
|
name: "String"
|
20
24
|
}
|
21
25
|
}
|
22
26
|
};
|
23
|
-
|
24
|
-
|
27
|
+
|
28
|
+
export const $host: OperationURLParameter = {
|
29
|
+
parameterPath: "$host",
|
25
30
|
mapper: {
|
31
|
+
serializedName: "$host",
|
26
32
|
required: true,
|
27
|
-
serializedName: "api-version",
|
28
33
|
type: {
|
29
34
|
name: "String"
|
30
35
|
}
|
31
|
-
}
|
36
|
+
},
|
37
|
+
skipEncoding: true
|
32
38
|
};
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"filter"
|
37
|
-
],
|
39
|
+
|
40
|
+
export const apiVersion: OperationQueryParameter = {
|
41
|
+
parameterPath: "apiVersion",
|
38
42
|
mapper: {
|
39
|
-
|
43
|
+
defaultValue: "2016-09-01",
|
44
|
+
isConstant: true,
|
45
|
+
serializedName: "api-version",
|
40
46
|
type: {
|
41
47
|
name: "String"
|
42
48
|
}
|
43
49
|
}
|
44
50
|
};
|
45
|
-
|
46
|
-
|
51
|
+
|
52
|
+
export const nextLink: OperationURLParameter = {
|
53
|
+
parameterPath: "nextLink",
|
47
54
|
mapper: {
|
55
|
+
serializedName: "nextLink",
|
48
56
|
required: true,
|
49
|
-
|
57
|
+
type: {
|
58
|
+
name: "String"
|
59
|
+
}
|
60
|
+
},
|
61
|
+
skipEncoding: true
|
62
|
+
};
|
63
|
+
|
64
|
+
export const contentType: OperationParameter = {
|
65
|
+
parameterPath: ["options", "contentType"],
|
66
|
+
mapper: {
|
67
|
+
defaultValue: "application/json",
|
68
|
+
isConstant: true,
|
69
|
+
serializedName: "Content-Type",
|
50
70
|
type: {
|
51
71
|
name: "String"
|
52
72
|
}
|
53
73
|
}
|
54
74
|
};
|
55
|
-
|
56
|
-
|
75
|
+
|
76
|
+
export const parameters: OperationParameter = {
|
77
|
+
parameterPath: "parameters",
|
78
|
+
mapper: ManagementLockObjectMapper
|
79
|
+
};
|
80
|
+
|
81
|
+
export const resourceGroupName: OperationURLParameter = {
|
82
|
+
parameterPath: "resourceGroupName",
|
57
83
|
mapper: {
|
84
|
+
constraints: {
|
85
|
+
Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
|
86
|
+
MaxLength: 90,
|
87
|
+
MinLength: 1
|
88
|
+
},
|
89
|
+
serializedName: "resourceGroupName",
|
58
90
|
required: true,
|
59
|
-
serializedName: "nextLink",
|
60
91
|
type: {
|
61
92
|
name: "String"
|
62
93
|
}
|
63
|
-
}
|
64
|
-
skipEncoding: true
|
94
|
+
}
|
65
95
|
};
|
66
|
-
|
67
|
-
|
96
|
+
|
97
|
+
export const lockName: OperationURLParameter = {
|
98
|
+
parameterPath: "lockName",
|
68
99
|
mapper: {
|
100
|
+
serializedName: "lockName",
|
69
101
|
required: true,
|
70
|
-
serializedName: "parentResourcePath",
|
71
102
|
type: {
|
72
103
|
name: "String"
|
73
104
|
}
|
74
|
-
}
|
75
|
-
skipEncoding: true
|
105
|
+
}
|
76
106
|
};
|
77
|
-
|
78
|
-
|
107
|
+
|
108
|
+
export const subscriptionId: OperationURLParameter = {
|
109
|
+
parameterPath: "subscriptionId",
|
79
110
|
mapper: {
|
111
|
+
serializedName: "subscriptionId",
|
80
112
|
required: true,
|
81
|
-
serializedName: "resourceGroupName",
|
82
|
-
constraints: {
|
83
|
-
MaxLength: 90,
|
84
|
-
MinLength: 1,
|
85
|
-
Pattern: /^[-\w\._\(\)]+$/
|
86
|
-
},
|
87
113
|
type: {
|
88
114
|
name: "String"
|
89
115
|
}
|
90
116
|
}
|
91
117
|
};
|
92
|
-
|
93
|
-
|
118
|
+
|
119
|
+
export const scope: OperationURLParameter = {
|
120
|
+
parameterPath: "scope",
|
94
121
|
mapper: {
|
122
|
+
serializedName: "scope",
|
95
123
|
required: true,
|
96
|
-
serializedName: "resourceName",
|
97
124
|
type: {
|
98
125
|
name: "String"
|
99
126
|
}
|
100
127
|
}
|
101
128
|
};
|
102
|
-
|
129
|
+
|
130
|
+
export const resourceProviderNamespace: OperationURLParameter = {
|
103
131
|
parameterPath: "resourceProviderNamespace",
|
104
132
|
mapper: {
|
105
|
-
required: true,
|
106
133
|
serializedName: "resourceProviderNamespace",
|
134
|
+
required: true,
|
107
135
|
type: {
|
108
136
|
name: "String"
|
109
137
|
}
|
110
138
|
}
|
111
139
|
};
|
112
|
-
|
113
|
-
|
140
|
+
|
141
|
+
export const parentResourcePath: OperationURLParameter = {
|
142
|
+
parameterPath: "parentResourcePath",
|
114
143
|
mapper: {
|
144
|
+
serializedName: "parentResourcePath",
|
115
145
|
required: true,
|
146
|
+
type: {
|
147
|
+
name: "String"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
skipEncoding: true
|
151
|
+
};
|
152
|
+
|
153
|
+
export const resourceType: OperationURLParameter = {
|
154
|
+
parameterPath: "resourceType",
|
155
|
+
mapper: {
|
116
156
|
serializedName: "resourceType",
|
157
|
+
required: true,
|
117
158
|
type: {
|
118
159
|
name: "String"
|
119
160
|
}
|
120
161
|
},
|
121
162
|
skipEncoding: true
|
122
163
|
};
|
123
|
-
|
124
|
-
|
164
|
+
|
165
|
+
export const resourceName: OperationURLParameter = {
|
166
|
+
parameterPath: "resourceName",
|
125
167
|
mapper: {
|
168
|
+
serializedName: "resourceName",
|
126
169
|
required: true,
|
127
|
-
serializedName: "scope",
|
128
170
|
type: {
|
129
171
|
name: "String"
|
130
172
|
}
|
131
173
|
}
|
132
174
|
};
|
133
|
-
|
134
|
-
|
175
|
+
|
176
|
+
export const filter: OperationQueryParameter = {
|
177
|
+
parameterPath: ["options", "filter"],
|
135
178
|
mapper: {
|
136
|
-
|
137
|
-
serializedName: "subscriptionId",
|
179
|
+
serializedName: "$filter",
|
138
180
|
type: {
|
139
181
|
name: "String"
|
140
182
|
}
|