@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +63 -80
  4. package/dist/index.js +1796 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/index.d.ts +534 -0
  9. package/esm/index.d.ts.map +1 -0
  10. package/esm/index.js +13 -0
  11. package/esm/index.js.map +1 -0
  12. package/esm/managementLockClient.d.ts +9 -18
  13. package/esm/managementLockClient.d.ts.map +1 -1
  14. package/esm/managementLockClient.js +12 -28
  15. package/esm/managementLockClient.js.map +1 -1
  16. package/esm/managementLockClientContext.d.ts +10 -16
  17. package/esm/managementLockClientContext.d.ts.map +1 -1
  18. package/esm/managementLockClientContext.js +34 -46
  19. package/esm/managementLockClientContext.js.map +1 -1
  20. package/esm/models/index.d.ts +208 -445
  21. package/esm/models/index.d.ts.map +1 -1
  22. package/esm/models/index.js +9 -2
  23. package/esm/models/index.js.map +1 -1
  24. package/esm/models/mappers.d.ts +7 -9
  25. package/esm/models/mappers.d.ts.map +1 -1
  26. package/esm/models/mappers.js +69 -78
  27. package/esm/models/mappers.js.map +1 -1
  28. package/esm/models/parameters.d.ts +16 -13
  29. package/esm/models/parameters.d.ts.map +1 -1
  30. package/esm/models/parameters.js +78 -54
  31. package/esm/models/parameters.js.map +1 -1
  32. package/esm/operations/authorizationOperations.d.ts +27 -26
  33. package/esm/operations/authorizationOperations.d.ts.map +1 -1
  34. package/esm/operations/authorizationOperations.js +158 -50
  35. package/esm/operations/authorizationOperations.js.map +1 -1
  36. package/esm/operations/index.d.ts.map +1 -1
  37. package/esm/operations/index.js +3 -5
  38. package/esm/operations/index.js.map +1 -1
  39. package/esm/operations/managementLocks.d.ts +203 -393
  40. package/esm/operations/managementLocks.d.ts.map +1 -1
  41. package/esm/operations/managementLocks.js +993 -485
  42. package/esm/operations/managementLocks.js.map +1 -1
  43. package/esm/operationsInterfaces/authorizationOperations.d.ts +18 -0
  44. package/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  45. package/esm/operationsInterfaces/authorizationOperations.js +9 -0
  46. package/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
  47. package/esm/operationsInterfaces/index.d.ts +3 -0
  48. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  49. package/esm/operationsInterfaces/index.js +10 -0
  50. package/esm/operationsInterfaces/index.js.map +1 -0
  51. package/esm/operationsInterfaces/managementLocks.d.ts +198 -0
  52. package/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
  53. package/esm/operationsInterfaces/managementLocks.js +9 -0
  54. package/esm/operationsInterfaces/managementLocks.js.map +1 -0
  55. package/package.json +53 -16
  56. package/review/arm-locks.api.md +313 -0
  57. package/rollup.config.js +181 -30
  58. package/src/index.ts +13 -0
  59. package/src/managementLockClient.ts +23 -36
  60. package/src/managementLockClientContext.ts +47 -45
  61. package/src/models/index.ts +256 -470
  62. package/src/models/mappers.ts +72 -82
  63. package/src/models/parameters.ts +97 -55
  64. package/src/operations/authorizationOperations.ts +155 -70
  65. package/src/operations/index.ts +3 -5
  66. package/src/operations/managementLocks.ts +1165 -869
  67. package/src/operationsInterfaces/authorizationOperations.ts +36 -0
  68. package/src/operationsInterfaces/index.ts +10 -0
  69. package/src/operationsInterfaces/managementLocks.ts +332 -0
  70. package/tsconfig.json +3 -2
  71. package/dist/arm-locks.js +0 -1280
  72. package/dist/arm-locks.js.map +0 -1
  73. package/dist/arm-locks.min.js +0 -1
  74. package/dist/arm-locks.min.js.map +0 -1
  75. package/esm/models/authorizationOperationsMappers.d.ts +0 -2
  76. package/esm/models/authorizationOperationsMappers.d.ts.map +0 -1
  77. package/esm/models/authorizationOperationsMappers.js +0 -9
  78. package/esm/models/authorizationOperationsMappers.js.map +0 -1
  79. package/esm/models/managementLocksMappers.d.ts +0 -2
  80. package/esm/models/managementLocksMappers.d.ts.map +0 -1
  81. package/esm/models/managementLocksMappers.js +0 -9
  82. package/esm/models/managementLocksMappers.js.map +0 -1
  83. package/src/models/authorizationOperationsMappers.ts +0 -14
  84. package/src/models/managementLocksMappers.ts +0 -15
@@ -1,91 +1,63 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export const CloudError = CloudErrorMapper;
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: "ManagementLockObject",
14
+ className: "OperationListResult",
36
15
  modelProperties: {
37
- level: {
38
- required: true,
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: "ManagementLockOwner"
23
+ className: "Operation"
58
24
  }
59
25
  }
60
26
  }
61
27
  },
62
- id: {
63
- readOnly: true,
64
- serializedName: "id",
28
+ nextLink: {
29
+ serializedName: "nextLink",
65
30
  type: {
66
31
  name: "String"
67
32
  }
68
- },
69
- type: {
70
- readOnly: true,
71
- serializedName: "type",
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
- name: {
77
- readOnly: true,
78
- serializedName: "name",
49
+ display: {
50
+ serializedName: "display",
79
51
  type: {
80
- name: "String"
52
+ name: "Composite",
53
+ className: "OperationDisplay"
81
54
  }
82
55
  }
83
56
  }
84
57
  }
85
58
  };
86
59
 
87
- export const OperationDisplay: msRest.CompositeMapper = {
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 Operation: msRest.CompositeMapper = {
116
- serializedName: "Operation",
87
+ export const ManagementLockObject: coreClient.CompositeMapper = {
117
88
  type: {
118
89
  name: "Composite",
119
- className: "Operation",
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
- display: {
128
- serializedName: "display",
113
+ level: {
114
+ serializedName: "properties.level",
115
+ required: true,
129
116
  type: {
130
- name: "Composite",
131
- className: "OperationDisplay"
117
+ name: "String"
132
118
  }
133
- }
134
- }
135
- }
136
- };
137
-
138
- export const OperationListResult: msRest.CompositeMapper = {
139
- serializedName: "OperationListResult",
140
- type: {
141
- name: "Composite",
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: "Operation"
133
+ className: "ManagementLockOwner"
152
134
  }
153
135
  }
154
136
  }
155
- },
156
- nextLink: {
157
- serializedName: "nextLink",
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: msRest.CompositeMapper = {
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: {
@@ -1,140 +1,182 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
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 * as msRest from "@azure/ms-rest-js";
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 acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
16
+ export const accept: OperationParameter = {
17
+ parameterPath: "accept",
15
18
  mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
19
+ defaultValue: "application/json",
20
+ isConstant: true,
21
+ serializedName: "Accept",
18
22
  type: {
19
23
  name: "String"
20
24
  }
21
25
  }
22
26
  };
23
- export const apiVersion: msRest.OperationQueryParameter = {
24
- parameterPath: "apiVersion",
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
- export const filter: msRest.OperationQueryParameter = {
34
- parameterPath: [
35
- "options",
36
- "filter"
37
- ],
39
+
40
+ export const apiVersion: OperationQueryParameter = {
41
+ parameterPath: "apiVersion",
38
42
  mapper: {
39
- serializedName: "$filter",
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
- export const lockName: msRest.OperationURLParameter = {
46
- parameterPath: "lockName",
51
+
52
+ export const nextLink: OperationURLParameter = {
53
+ parameterPath: "nextLink",
47
54
  mapper: {
55
+ serializedName: "nextLink",
48
56
  required: true,
49
- serializedName: "lockName",
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
- export const nextPageLink: msRest.OperationURLParameter = {
56
- parameterPath: "nextPageLink",
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
- export const parentResourcePath: msRest.OperationURLParameter = {
67
- parameterPath: "parentResourcePath",
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
- export const resourceGroupName: msRest.OperationURLParameter = {
78
- parameterPath: "resourceGroupName",
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
- export const resourceName: msRest.OperationURLParameter = {
93
- parameterPath: "resourceName",
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
- export const resourceProviderNamespace: msRest.OperationURLParameter = {
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
- export const resourceType: msRest.OperationURLParameter = {
113
- parameterPath: "resourceType",
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
- export const scope: msRest.OperationURLParameter = {
124
- parameterPath: "scope",
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
- export const subscriptionId: msRest.OperationURLParameter = {
134
- parameterPath: "subscriptionId",
175
+
176
+ export const filter: OperationQueryParameter = {
177
+ parameterPath: ["options", "filter"],
135
178
  mapper: {
136
- required: true,
137
- serializedName: "subscriptionId",
179
+ serializedName: "$filter",
138
180
  type: {
139
181
  name: "String"
140
182
  }