@azure/arm-trustedsigning 1.0.0-beta.2 → 1.0.0-beta.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 +11 -1
- package/LICENSE +4 -4
- package/README.md +24 -16
- package/dist/browser/api/certificateProfiles/index.js +128 -128
- package/dist/browser/api/certificateProfiles/index.js.map +1 -1
- package/dist/browser/api/codeSigningAccounts/index.js +82 -78
- package/dist/browser/api/codeSigningAccounts/index.js.map +1 -1
- package/dist/browser/api/codeSigningContext.js +12 -9
- package/dist/browser/api/codeSigningContext.js.map +1 -1
- package/dist/browser/api/operations/index.js +5 -6
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/classic/certificateProfiles/index.js +3 -1
- package/dist/browser/classic/certificateProfiles/index.js.map +1 -1
- package/dist/browser/classic/codeSigningAccounts/index.js +3 -1
- package/dist/browser/classic/codeSigningAccounts/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/codeSigningClient.js +14 -3
- package/dist/browser/codeSigningClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/api/certificateProfiles/index.js +128 -128
- package/dist/commonjs/api/certificateProfiles/index.js.map +1 -1
- package/dist/commonjs/api/codeSigningAccounts/index.js +82 -78
- package/dist/commonjs/api/codeSigningAccounts/index.js.map +1 -1
- package/dist/commonjs/api/codeSigningContext.js +12 -9
- package/dist/commonjs/api/codeSigningContext.js.map +1 -1
- package/dist/commonjs/api/operations/index.js +5 -6
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/classic/certificateProfiles/index.js +3 -1
- package/dist/commonjs/classic/certificateProfiles/index.js.map +1 -1
- package/dist/commonjs/classic/codeSigningAccounts/index.js +3 -1
- package/dist/commonjs/classic/codeSigningAccounts/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/codeSigningClient.js +14 -3
- package/dist/commonjs/codeSigningClient.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/certificateProfiles/index.js +128 -128
- package/dist/esm/api/certificateProfiles/index.js.map +1 -1
- package/dist/esm/api/codeSigningAccounts/index.js +82 -78
- package/dist/esm/api/codeSigningAccounts/index.js.map +1 -1
- package/dist/esm/api/codeSigningContext.js +12 -9
- package/dist/esm/api/codeSigningContext.js.map +1 -1
- package/dist/esm/api/operations/index.js +5 -6
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/classic/certificateProfiles/index.js +3 -1
- package/dist/esm/classic/certificateProfiles/index.js.map +1 -1
- package/dist/esm/classic/codeSigningAccounts/index.js +3 -1
- package/dist/esm/classic/codeSigningAccounts/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/codeSigningClient.js +14 -3
- package/dist/esm/codeSigningClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/api/certificateProfiles/index.js +128 -128
- package/dist/react-native/api/certificateProfiles/index.js.map +1 -1
- package/dist/react-native/api/codeSigningAccounts/index.js +82 -78
- package/dist/react-native/api/codeSigningAccounts/index.js.map +1 -1
- package/dist/react-native/api/codeSigningContext.js +12 -9
- package/dist/react-native/api/codeSigningContext.js.map +1 -1
- package/dist/react-native/api/operations/index.js +5 -6
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/classic/certificateProfiles/index.js +3 -1
- package/dist/react-native/classic/certificateProfiles/index.js.map +1 -1
- package/dist/react-native/classic/codeSigningAccounts/index.js +3 -1
- package/dist/react-native/classic/codeSigningAccounts/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/codeSigningClient.js +14 -3
- package/dist/react-native/codeSigningClient.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +45 -47
- /package/review/{arm-trustedsigning-models.api.md → arm-trustedsigning-models-node.api.md} +0 -0
- /package/review/{arm-trustedsigning.api.md → arm-trustedsigning-node.api.md} +0 -0
|
@@ -31,10 +31,9 @@ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
|
31
31
|
function _getSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
32
32
|
return context
|
|
33
33
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
34
|
-
.get(
|
|
34
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
35
35
|
}
|
|
36
36
|
async function _getDeserialize(result) {
|
|
37
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
38
37
|
const expectedStatuses = ["200"];
|
|
39
38
|
if (!expectedStatuses.includes(result.status)) {
|
|
40
39
|
throw (0, core_client_1.createRestError)(result);
|
|
@@ -48,25 +47,25 @@ async function _getDeserialize(result) {
|
|
|
48
47
|
systemData: !result.body.systemData
|
|
49
48
|
? undefined
|
|
50
49
|
: {
|
|
51
|
-
createdBy:
|
|
52
|
-
createdByType:
|
|
53
|
-
createdAt:
|
|
54
|
-
? new Date(
|
|
50
|
+
createdBy: result.body.systemData?.["createdBy"],
|
|
51
|
+
createdByType: result.body.systemData?.["createdByType"],
|
|
52
|
+
createdAt: result.body.systemData?.["createdAt"] !== undefined
|
|
53
|
+
? new Date(result.body.systemData?.["createdAt"])
|
|
55
54
|
: undefined,
|
|
56
|
-
lastModifiedBy:
|
|
57
|
-
lastModifiedByType:
|
|
58
|
-
lastModifiedAt:
|
|
59
|
-
? new Date(
|
|
55
|
+
lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
|
|
56
|
+
lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
|
|
57
|
+
lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
|
|
58
|
+
? new Date(result.body.systemData?.["lastModifiedAt"])
|
|
60
59
|
: undefined,
|
|
61
60
|
},
|
|
62
61
|
properties: !result.body.properties
|
|
63
62
|
? undefined
|
|
64
63
|
: {
|
|
65
|
-
accountUri:
|
|
66
|
-
sku: !
|
|
64
|
+
accountUri: result.body.properties?.["accountUri"],
|
|
65
|
+
sku: !result.body.properties?.sku
|
|
67
66
|
? undefined
|
|
68
|
-
: { name:
|
|
69
|
-
provisioningState:
|
|
67
|
+
: { name: result.body.properties?.sku?.["name"] },
|
|
68
|
+
provisioningState: result.body.properties?.["provisioningState"],
|
|
70
69
|
},
|
|
71
70
|
};
|
|
72
71
|
}
|
|
@@ -78,16 +77,18 @@ async function get(context, subscriptionId, resourceGroupName, accountName, opti
|
|
|
78
77
|
function _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
79
78
|
return context
|
|
80
79
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
81
|
-
.put(
|
|
80
|
+
.put({
|
|
81
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
82
|
+
body: {
|
|
82
83
|
tags: !resource.tags ? resource.tags : (0, serializerHelpers_js_1.serializeRecord)(resource.tags),
|
|
83
84
|
location: resource["location"],
|
|
84
85
|
properties: !resource.properties
|
|
85
86
|
? resource.properties
|
|
86
87
|
: (0, models_js_1.codeSigningAccountPropertiesSerializer)(resource.properties),
|
|
87
|
-
}
|
|
88
|
+
},
|
|
89
|
+
});
|
|
88
90
|
}
|
|
89
91
|
async function _createDeserialize(result) {
|
|
90
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
91
92
|
const expectedStatuses = ["200", "201"];
|
|
92
93
|
if (!expectedStatuses.includes(result.status)) {
|
|
93
94
|
throw (0, core_client_1.createRestError)(result);
|
|
@@ -101,33 +102,33 @@ async function _createDeserialize(result) {
|
|
|
101
102
|
systemData: !result.body.systemData
|
|
102
103
|
? undefined
|
|
103
104
|
: {
|
|
104
|
-
createdBy:
|
|
105
|
-
createdByType:
|
|
106
|
-
createdAt:
|
|
107
|
-
? new Date(
|
|
105
|
+
createdBy: result.body.systemData?.["createdBy"],
|
|
106
|
+
createdByType: result.body.systemData?.["createdByType"],
|
|
107
|
+
createdAt: result.body.systemData?.["createdAt"] !== undefined
|
|
108
|
+
? new Date(result.body.systemData?.["createdAt"])
|
|
108
109
|
: undefined,
|
|
109
|
-
lastModifiedBy:
|
|
110
|
-
lastModifiedByType:
|
|
111
|
-
lastModifiedAt:
|
|
112
|
-
? new Date(
|
|
110
|
+
lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
|
|
111
|
+
lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
|
|
112
|
+
lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
|
|
113
|
+
? new Date(result.body.systemData?.["lastModifiedAt"])
|
|
113
114
|
: undefined,
|
|
114
115
|
},
|
|
115
116
|
properties: !result.body.properties
|
|
116
117
|
? undefined
|
|
117
118
|
: {
|
|
118
|
-
accountUri:
|
|
119
|
-
sku: !
|
|
119
|
+
accountUri: result.body.properties?.["accountUri"],
|
|
120
|
+
sku: !result.body.properties?.sku
|
|
120
121
|
? undefined
|
|
121
|
-
: { name:
|
|
122
|
-
provisioningState:
|
|
122
|
+
: { name: result.body.properties?.sku?.["name"] },
|
|
123
|
+
provisioningState: result.body.properties?.["provisioningState"],
|
|
123
124
|
},
|
|
124
125
|
};
|
|
125
126
|
}
|
|
126
127
|
/** Create a trusted Signing Account. */
|
|
127
128
|
function create(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
128
129
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDeserialize, ["200", "201"], {
|
|
129
|
-
updateIntervalInMs: options
|
|
130
|
-
abortSignal: options
|
|
130
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
131
|
+
abortSignal: options?.abortSignal,
|
|
131
132
|
getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options),
|
|
132
133
|
resourceLocationConfig: "azure-async-operation",
|
|
133
134
|
});
|
|
@@ -135,15 +136,17 @@ function create(context, subscriptionId, resourceGroupName, accountName, resourc
|
|
|
135
136
|
function _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
|
|
136
137
|
return context
|
|
137
138
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
138
|
-
.patch(
|
|
139
|
+
.patch({
|
|
140
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
141
|
+
body: {
|
|
139
142
|
tags: !properties.tags ? properties.tags : (0, serializerHelpers_js_1.serializeRecord)(properties.tags),
|
|
140
143
|
properties: !properties.properties
|
|
141
144
|
? properties.properties
|
|
142
145
|
: (0, models_js_1.codeSigningAccountPatchPropertiesSerializer)(properties.properties),
|
|
143
|
-
}
|
|
146
|
+
},
|
|
147
|
+
});
|
|
144
148
|
}
|
|
145
149
|
async function _updateDeserialize(result) {
|
|
146
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
147
150
|
const expectedStatuses = ["200", "202"];
|
|
148
151
|
if (!expectedStatuses.includes(result.status)) {
|
|
149
152
|
throw (0, core_client_1.createRestError)(result);
|
|
@@ -157,33 +160,33 @@ async function _updateDeserialize(result) {
|
|
|
157
160
|
systemData: !result.body.systemData
|
|
158
161
|
? undefined
|
|
159
162
|
: {
|
|
160
|
-
createdBy:
|
|
161
|
-
createdByType:
|
|
162
|
-
createdAt:
|
|
163
|
-
? new Date(
|
|
163
|
+
createdBy: result.body.systemData?.["createdBy"],
|
|
164
|
+
createdByType: result.body.systemData?.["createdByType"],
|
|
165
|
+
createdAt: result.body.systemData?.["createdAt"] !== undefined
|
|
166
|
+
? new Date(result.body.systemData?.["createdAt"])
|
|
164
167
|
: undefined,
|
|
165
|
-
lastModifiedBy:
|
|
166
|
-
lastModifiedByType:
|
|
167
|
-
lastModifiedAt:
|
|
168
|
-
? new Date(
|
|
168
|
+
lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
|
|
169
|
+
lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
|
|
170
|
+
lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
|
|
171
|
+
? new Date(result.body.systemData?.["lastModifiedAt"])
|
|
169
172
|
: undefined,
|
|
170
173
|
},
|
|
171
174
|
properties: !result.body.properties
|
|
172
175
|
? undefined
|
|
173
176
|
: {
|
|
174
|
-
accountUri:
|
|
175
|
-
sku: !
|
|
177
|
+
accountUri: result.body.properties?.["accountUri"],
|
|
178
|
+
sku: !result.body.properties?.sku
|
|
176
179
|
? undefined
|
|
177
|
-
: { name:
|
|
178
|
-
provisioningState:
|
|
180
|
+
: { name: result.body.properties?.sku?.["name"] },
|
|
181
|
+
provisioningState: result.body.properties?.["provisioningState"],
|
|
179
182
|
},
|
|
180
183
|
};
|
|
181
184
|
}
|
|
182
185
|
/** Update a trusted signing account. */
|
|
183
186
|
function update(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
|
|
184
187
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202"], {
|
|
185
|
-
updateIntervalInMs: options
|
|
186
|
-
abortSignal: options
|
|
188
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
189
|
+
abortSignal: options?.abortSignal,
|
|
187
190
|
getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options),
|
|
188
191
|
resourceLocationConfig: "location",
|
|
189
192
|
});
|
|
@@ -191,7 +194,7 @@ function update(context, subscriptionId, resourceGroupName, accountName, propert
|
|
|
191
194
|
function _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
192
195
|
return context
|
|
193
196
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
194
|
-
.delete(
|
|
197
|
+
.delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
195
198
|
}
|
|
196
199
|
async function _$deleteDeserialize(result) {
|
|
197
200
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -208,8 +211,8 @@ async function _$deleteDeserialize(result) {
|
|
|
208
211
|
*/
|
|
209
212
|
function $delete(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
210
213
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
211
|
-
updateIntervalInMs: options
|
|
212
|
-
abortSignal: options
|
|
214
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
215
|
+
abortSignal: options?.abortSignal,
|
|
213
216
|
getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options),
|
|
214
217
|
resourceLocationConfig: "location",
|
|
215
218
|
});
|
|
@@ -219,7 +222,7 @@ function _listByResourceGroupSend(context, subscriptionId, resourceGroupName, op
|
|
|
219
222
|
}) {
|
|
220
223
|
return context
|
|
221
224
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts", subscriptionId, resourceGroupName)
|
|
222
|
-
.get(
|
|
225
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
223
226
|
}
|
|
224
227
|
async function _listByResourceGroupDeserialize(result) {
|
|
225
228
|
const expectedStatuses = ["200"];
|
|
@@ -228,7 +231,6 @@ async function _listByResourceGroupDeserialize(result) {
|
|
|
228
231
|
}
|
|
229
232
|
return {
|
|
230
233
|
value: result.body["value"].map((p) => {
|
|
231
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
232
234
|
return {
|
|
233
235
|
tags: p["tags"],
|
|
234
236
|
location: p["location"],
|
|
@@ -238,23 +240,23 @@ async function _listByResourceGroupDeserialize(result) {
|
|
|
238
240
|
systemData: !p.systemData
|
|
239
241
|
? undefined
|
|
240
242
|
: {
|
|
241
|
-
createdBy:
|
|
242
|
-
createdByType:
|
|
243
|
-
createdAt:
|
|
244
|
-
? new Date(
|
|
243
|
+
createdBy: p.systemData?.["createdBy"],
|
|
244
|
+
createdByType: p.systemData?.["createdByType"],
|
|
245
|
+
createdAt: p.systemData?.["createdAt"] !== undefined
|
|
246
|
+
? new Date(p.systemData?.["createdAt"])
|
|
245
247
|
: undefined,
|
|
246
|
-
lastModifiedBy:
|
|
247
|
-
lastModifiedByType:
|
|
248
|
-
lastModifiedAt:
|
|
249
|
-
? new Date(
|
|
248
|
+
lastModifiedBy: p.systemData?.["lastModifiedBy"],
|
|
249
|
+
lastModifiedByType: p.systemData?.["lastModifiedByType"],
|
|
250
|
+
lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined
|
|
251
|
+
? new Date(p.systemData?.["lastModifiedAt"])
|
|
250
252
|
: undefined,
|
|
251
253
|
},
|
|
252
254
|
properties: !p.properties
|
|
253
255
|
? undefined
|
|
254
256
|
: {
|
|
255
|
-
accountUri:
|
|
256
|
-
sku: !
|
|
257
|
-
provisioningState:
|
|
257
|
+
accountUri: p.properties?.["accountUri"],
|
|
258
|
+
sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.["name"] },
|
|
259
|
+
provisioningState: p.properties?.["provisioningState"],
|
|
258
260
|
},
|
|
259
261
|
};
|
|
260
262
|
}),
|
|
@@ -272,7 +274,7 @@ function _listBySubscriptionSend(context, subscriptionId, options = {
|
|
|
272
274
|
}) {
|
|
273
275
|
return context
|
|
274
276
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts", subscriptionId)
|
|
275
|
-
.get(
|
|
277
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
276
278
|
}
|
|
277
279
|
async function _listBySubscriptionDeserialize(result) {
|
|
278
280
|
const expectedStatuses = ["200"];
|
|
@@ -281,7 +283,6 @@ async function _listBySubscriptionDeserialize(result) {
|
|
|
281
283
|
}
|
|
282
284
|
return {
|
|
283
285
|
value: result.body["value"].map((p) => {
|
|
284
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
285
286
|
return {
|
|
286
287
|
tags: p["tags"],
|
|
287
288
|
location: p["location"],
|
|
@@ -291,23 +292,23 @@ async function _listBySubscriptionDeserialize(result) {
|
|
|
291
292
|
systemData: !p.systemData
|
|
292
293
|
? undefined
|
|
293
294
|
: {
|
|
294
|
-
createdBy:
|
|
295
|
-
createdByType:
|
|
296
|
-
createdAt:
|
|
297
|
-
? new Date(
|
|
295
|
+
createdBy: p.systemData?.["createdBy"],
|
|
296
|
+
createdByType: p.systemData?.["createdByType"],
|
|
297
|
+
createdAt: p.systemData?.["createdAt"] !== undefined
|
|
298
|
+
? new Date(p.systemData?.["createdAt"])
|
|
298
299
|
: undefined,
|
|
299
|
-
lastModifiedBy:
|
|
300
|
-
lastModifiedByType:
|
|
301
|
-
lastModifiedAt:
|
|
302
|
-
? new Date(
|
|
300
|
+
lastModifiedBy: p.systemData?.["lastModifiedBy"],
|
|
301
|
+
lastModifiedByType: p.systemData?.["lastModifiedByType"],
|
|
302
|
+
lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined
|
|
303
|
+
? new Date(p.systemData?.["lastModifiedAt"])
|
|
303
304
|
: undefined,
|
|
304
305
|
},
|
|
305
306
|
properties: !p.properties
|
|
306
307
|
? undefined
|
|
307
308
|
: {
|
|
308
|
-
accountUri:
|
|
309
|
-
sku: !
|
|
310
|
-
provisioningState:
|
|
309
|
+
accountUri: p.properties?.["accountUri"],
|
|
310
|
+
sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.["name"] },
|
|
311
|
+
provisioningState: p.properties?.["provisioningState"],
|
|
311
312
|
},
|
|
312
313
|
};
|
|
313
314
|
}),
|
|
@@ -325,7 +326,10 @@ function _checkNameAvailabilitySend(context, subscriptionId, body, options = {
|
|
|
325
326
|
}) {
|
|
326
327
|
return context
|
|
327
328
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability", subscriptionId)
|
|
328
|
-
.post(
|
|
329
|
+
.post({
|
|
330
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
331
|
+
body: { name: body["name"] },
|
|
332
|
+
});
|
|
329
333
|
}
|
|
330
334
|
async function _checkNameAvailabilityDeserialize(result) {
|
|
331
335
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/codeSigningAccounts/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmClC,4BAeC;AAED,0CAsCC;AAGD,kBASC;AAED,kCAyBC;AAED,gDAwCC;AAGD,wBAeC;AAED,kCAwBC;AAED,gDAwCC;AAGD,wBAeC;AAED,oCAeC;AAED,kDAOC;AAQD,0BAcC;AAED,4DAeC;AAED,0EA2CC;AAGD,kDAeC;AAED,0DAaC;AAED,wEA2CC;AAGD,gDAcC;AAED,gEAiBC;AAED,8EAaC;AAGD,sDAUC;AA7gBD,sDAQgC;AAEhC,yDAKiC;AACjC,6EAAqE;AACrE,4EAG+C;AAC/C,8EAA8E;AAY9E,SAAgB,QAAQ,CACtB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtE,OAAO,OAAO;SACX,IAAI,CACH,sIAAsI,EACtI,cAAc,EACd,iBAAiB,EACjB,WAAW,CACZ;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,eAAe,CAAC,MAA6B;;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CA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0B,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACxF,OAAO,iCAAiC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n codeSigningAccountPropertiesSerializer,\n codeSigningAccountPatchPropertiesSerializer,\n CodeSigningAccount,\n CodeSigningAccountPatch,\n CheckNameAvailability,\n CheckNameAvailabilityResult,\n _CodeSigningAccountListResult,\n} from \"../../models/models.js\";\nimport { CodeSigningContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport { serializeRecord } from \"../../helpers/serializerHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n CodeSigningAccountsGetOptionalParams,\n CodeSigningAccountsCreateOptionalParams,\n CodeSigningAccountsUpdateOptionalParams,\n CodeSigningAccountsDeleteOptionalParams,\n CodeSigningAccountsListByResourceGroupOptionalParams,\n CodeSigningAccountsListBySubscriptionOptionalParams,\n CodeSigningAccountsCheckNameAvailabilityOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _getSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a trusted Signing Account. */\nexport async function get(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsGetOptionalParams = { requestOptions: {} },\n): Promise<CodeSigningAccount> {\n const result = await _getSend(context, subscriptionId, resourceGroupName, accountName, options);\n return _getDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: CodeSigningAccount,\n options: CodeSigningAccountsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any),\n location: resource[\"location\"],\n properties: !resource.properties\n ? resource.properties\n : codeSigningAccountPropertiesSerializer(resource.properties),\n },\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Create a trusted Signing Account. */\nexport function create(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: CodeSigningAccount,\n options: CodeSigningAccountsCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount> {\n return getLongRunningPoller(context, _createDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;\n}\n\nexport function _updateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: CodeSigningAccountPatch,\n options: CodeSigningAccountsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any),\n properties: !properties.properties\n ? properties.properties\n : codeSigningAccountPatchPropertiesSerializer(properties.properties),\n },\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Update a trusted signing account. */\nexport function update(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: CodeSigningAccountPatch,\n options: CodeSigningAccountsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;\n}\n\nexport function _$deleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a trusted signing account. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CodeSigningAccountsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CodeSigningAccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n tags: p[\"tags\"],\n location: p[\"location\"],\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n accountUri: p.properties?.[\"accountUri\"],\n sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.[\"name\"] },\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** Lists trusted signing accounts within a resource group. */\nexport function listByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CodeSigningAccountsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CodeSigningAccount> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: CodeSigningAccountsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CodeSigningAccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n tags: p[\"tags\"],\n location: p[\"location\"],\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n accountUri: p.properties?.[\"accountUri\"],\n sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.[\"name\"] },\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** Lists trusted signing accounts within a subscription. */\nexport function listBySubscription(\n context: Client,\n subscriptionId: string,\n options: CodeSigningAccountsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CodeSigningAccount> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, subscriptionId, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _checkNameAvailabilitySend(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailability,\n options: CodeSigningAccountsCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability\",\n subscriptionId,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: { name: body[\"name\"] },\n });\n}\n\nexport async function _checkNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n nameAvailable: result.body[\"nameAvailable\"],\n reason: result.body[\"reason\"],\n message: result.body[\"message\"],\n };\n}\n\n/** Checks that the trusted signing account name is valid and is not already in use. */\nexport async function checkNameAvailability(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailability,\n options: CodeSigningAccountsCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): Promise<CheckNameAvailabilityResult> {\n const result = await _checkNameAvailabilitySend(context, subscriptionId, body, options);\n return _checkNameAvailabilityDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/codeSigningAccounts/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmClC,4BAeC;AAED,0CAsCC;AAGD,kBASC;AAED,kCAyBC;AAED,gDAwCC;AAGD,wBAeC;AAED,kCAwBC;AAED,gDAwCC;AAGD,wBAeC;AAED,oCAeC;AAED,kDAOC;AAQD,0BAcC;AAED,4DAeC;AAED,0EA2CC;AAGD,kDAeC;AAED,0DAaC;AAED,wEA2CC;AAGD,gDAcC;AAED,gEAiBC;AAED,8EAaC;AAGD,sDAUC;AA7gBD,sDAQgC;AAEhC,yDAKiC;AACjC,6EAAq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C,CAAC;IAED,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;QAC3C,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC7B,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KAChC,CAAC;AACJ,CAAC;AAED,uFAAuF;AAChF,KAAK,UAAU,qBAAqB,CACzC,OAAe,EACf,cAAsB,EACtB,IAA2B,EAC3B,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACxF,OAAO,iCAAiC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n codeSigningAccountPropertiesSerializer,\n codeSigningAccountPatchPropertiesSerializer,\n CodeSigningAccount,\n CodeSigningAccountPatch,\n CheckNameAvailability,\n CheckNameAvailabilityResult,\n _CodeSigningAccountListResult,\n} from \"../../models/models.js\";\nimport { CodeSigningContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport { serializeRecord } from \"../../helpers/serializerHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n CodeSigningAccountsGetOptionalParams,\n CodeSigningAccountsCreateOptionalParams,\n CodeSigningAccountsUpdateOptionalParams,\n CodeSigningAccountsDeleteOptionalParams,\n CodeSigningAccountsListByResourceGroupOptionalParams,\n CodeSigningAccountsListBySubscriptionOptionalParams,\n CodeSigningAccountsCheckNameAvailabilityOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _getSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a trusted Signing Account. */\nexport async function get(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsGetOptionalParams = { requestOptions: {} },\n): Promise<CodeSigningAccount> {\n const result = await _getSend(context, subscriptionId, resourceGroupName, accountName, options);\n return _getDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: CodeSigningAccount,\n options: CodeSigningAccountsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any),\n location: resource[\"location\"],\n properties: !resource.properties\n ? resource.properties\n : codeSigningAccountPropertiesSerializer(resource.properties),\n },\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Create a trusted Signing Account. */\nexport function create(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: CodeSigningAccount,\n options: CodeSigningAccountsCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount> {\n return getLongRunningPoller(context, _createDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;\n}\n\nexport function _updateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: CodeSigningAccountPatch,\n options: CodeSigningAccountsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any),\n properties: !properties.properties\n ? properties.properties\n : codeSigningAccountPatchPropertiesSerializer(properties.properties),\n },\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CodeSigningAccount> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n accountUri: result.body.properties?.[\"accountUri\"],\n sku: !result.body.properties?.sku\n ? undefined\n : { name: result.body.properties?.sku?.[\"name\"] },\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Update a trusted signing account. */\nexport function update(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: CodeSigningAccountPatch,\n options: CodeSigningAccountsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;\n}\n\nexport function _$deleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a trusted signing account. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CodeSigningAccountsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CodeSigningAccountsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CodeSigningAccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n tags: p[\"tags\"],\n location: p[\"location\"],\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n accountUri: p.properties?.[\"accountUri\"],\n sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.[\"name\"] },\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** Lists trusted signing accounts within a resource group. */\nexport function listByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CodeSigningAccountsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CodeSigningAccount> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: CodeSigningAccountsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CodeSigningAccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n tags: p[\"tags\"],\n location: p[\"location\"],\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n accountUri: p.properties?.[\"accountUri\"],\n sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.[\"name\"] },\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** Lists trusted signing accounts within a subscription. */\nexport function listBySubscription(\n context: Client,\n subscriptionId: string,\n options: CodeSigningAccountsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CodeSigningAccount> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, subscriptionId, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _checkNameAvailabilitySend(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailability,\n options: CodeSigningAccountsCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability\",\n subscriptionId,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: { name: body[\"name\"] },\n });\n}\n\nexport async function _checkNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n nameAvailable: result.body[\"nameAvailable\"],\n reason: result.body[\"reason\"],\n message: result.body[\"message\"],\n };\n}\n\n/** Checks that the trusted signing account name is valid and is not already in use. */\nexport async function checkNameAvailability(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailability,\n options: CodeSigningAccountsCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): Promise<CheckNameAvailabilityResult> {\n const result = await _checkNameAvailabilitySend(context, subscriptionId, body, options);\n return _checkNameAvailabilityDeserialize(result);\n}\n"]}
|
|
@@ -3,24 +3,27 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.createCodeSigning = createCodeSigning;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
6
|
const core_client_1 = require("@azure-rest/core-client");
|
|
8
7
|
const logger_js_1 = require("../logger.js");
|
|
9
8
|
/** Code Signing resource provider api. */
|
|
10
9
|
function createCodeSigning(credential, options = {}) {
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const userAgentInfo = `azsdk-js-arm-trustedsigning/1.0.0-beta.2`;
|
|
10
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
|
|
11
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
12
|
+
const userAgentInfo = `azsdk-js-arm-trustedsigning/1.0.0-beta.3`;
|
|
15
13
|
const userAgentPrefix = prefixFromOptions
|
|
16
14
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
17
15
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
17
|
+
...options,
|
|
18
|
+
userAgentOptions: { userAgentPrefix },
|
|
19
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger_js_1.logger.info },
|
|
20
|
+
credentials: {
|
|
21
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
21
24
|
const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
|
|
22
25
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
23
|
-
const apiVersion =
|
|
26
|
+
const apiVersion = options.apiVersion ?? "2024-02-05-preview";
|
|
24
27
|
clientContext.pipeline.addPolicy({
|
|
25
28
|
name: "ClientApiVersionPolicy",
|
|
26
29
|
sendRequest: (req, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeSigningContext.js","sourceRoot":"","sources":["../../../src/api/codeSigningContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAelC,8CAsCC
|
|
1
|
+
{"version":3,"file":"codeSigningContext.js","sourceRoot":"","sources":["../../../src/api/codeSigningContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAelC,8CAsCC;AAlDD,yDAA2E;AAC3E,4CAAsC;AAUtC,0CAA0C;AAC1C,SAAgB,iBAAiB,CAC/B,UAA2B,EAC3B,UAA2C,EAAE;IAE7C,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,0CAA0C,CAAC;IACjE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,kBAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;IAC9D,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { ClientOptions, Client, getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"../logger.js\";\n\nexport interface CodeSigningContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface CodeSigningClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n apiVersion?: string;\n}\n\n/** Code Signing resource provider api. */\nexport function createCodeSigning(\n credential: TokenCredential,\n options: CodeSigningClientOptionalParams = {},\n): CodeSigningContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-trustedsigning/1.0.0-beta.3`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-02-05-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -10,7 +10,7 @@ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
|
10
10
|
function _listSend(context, options = { requestOptions: {} }) {
|
|
11
11
|
return context
|
|
12
12
|
.path("/providers/Microsoft.CodeSigning/operations")
|
|
13
|
-
.get(
|
|
13
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
14
14
|
}
|
|
15
15
|
async function _listDeserialize(result) {
|
|
16
16
|
const expectedStatuses = ["200"];
|
|
@@ -19,17 +19,16 @@ async function _listDeserialize(result) {
|
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
21
|
value: result.body["value"].map((p) => {
|
|
22
|
-
var _a, _b, _c, _d;
|
|
23
22
|
return {
|
|
24
23
|
name: p["name"],
|
|
25
24
|
isDataAction: p["isDataAction"],
|
|
26
25
|
display: !p.display
|
|
27
26
|
? undefined
|
|
28
27
|
: {
|
|
29
|
-
provider:
|
|
30
|
-
resource:
|
|
31
|
-
operation:
|
|
32
|
-
description:
|
|
28
|
+
provider: p.display?.["provider"],
|
|
29
|
+
resource: p.display?.["resource"],
|
|
30
|
+
operation: p.display?.["operation"],
|
|
31
|
+
description: p.display?.["description"],
|
|
33
32
|
},
|
|
34
33
|
origin: p["origin"],
|
|
35
34
|
actionType: p["actionType"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,8BAOC;AAED,4CA2BC;AAGD,oBAWC;AA9DD,yDAKiC;AACjC,4EAG+C;AAG/C,SAAgB,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,8BAOC;AAED,4CA2BC;AAGD,oBAWC;AA9DD,yDAKiC;AACjC,4EAG+C;AAG/C,SAAgB,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;YACzC,OAAO;gBACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gBACf,YAAY,EAAE,CAAC,CAAC,cAAc,CAAC;gBAC/B,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO;oBACjB,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC;wBACE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC;wBACjC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC;wBACjC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;wBACnC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC;qBACxC;gBACL,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC;gBACnB,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;aAC5B,CAAC;QACJ,CAAC,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,2CAA2C;AAC3C,SAAgB,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Operation, _OperationListResult } from \"../../models/models.js\";\nimport { CodeSigningContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { OperationsListOptionalParams } from \"../../models/options.js\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.CodeSigning/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n name: p[\"name\"],\n isDataAction: p[\"isDataAction\"],\n display: !p.display\n ? undefined\n : {\n provider: p.display?.[\"provider\"],\n resource: p.display?.[\"resource\"],\n operation: p.display?.[\"operation\"],\n description: p.display?.[\"description\"],\n },\n origin: p[\"origin\"],\n actionType: p[\"actionType\"],\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|