@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.
Files changed (95) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/LICENSE +4 -4
  3. package/README.md +24 -16
  4. package/dist/browser/api/certificateProfiles/index.js +128 -128
  5. package/dist/browser/api/certificateProfiles/index.js.map +1 -1
  6. package/dist/browser/api/codeSigningAccounts/index.js +82 -78
  7. package/dist/browser/api/codeSigningAccounts/index.js.map +1 -1
  8. package/dist/browser/api/codeSigningContext.js +12 -9
  9. package/dist/browser/api/codeSigningContext.js.map +1 -1
  10. package/dist/browser/api/operations/index.js +5 -6
  11. package/dist/browser/api/operations/index.js.map +1 -1
  12. package/dist/browser/classic/certificateProfiles/index.js +3 -1
  13. package/dist/browser/classic/certificateProfiles/index.js.map +1 -1
  14. package/dist/browser/classic/codeSigningAccounts/index.js +3 -1
  15. package/dist/browser/classic/codeSigningAccounts/index.js.map +1 -1
  16. package/dist/browser/classic/operations/index.js +3 -1
  17. package/dist/browser/classic/operations/index.js.map +1 -1
  18. package/dist/browser/codeSigningClient.js +14 -3
  19. package/dist/browser/codeSigningClient.js.map +1 -1
  20. package/dist/browser/restorePollerHelpers.js +11 -13
  21. package/dist/browser/restorePollerHelpers.js.map +1 -1
  22. package/dist/browser/static-helpers/pagingHelpers.js +31 -50
  23. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  24. package/dist/browser/static-helpers/pollingHelpers.js +14 -11
  25. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  26. package/dist/commonjs/api/certificateProfiles/index.js +128 -128
  27. package/dist/commonjs/api/certificateProfiles/index.js.map +1 -1
  28. package/dist/commonjs/api/codeSigningAccounts/index.js +82 -78
  29. package/dist/commonjs/api/codeSigningAccounts/index.js.map +1 -1
  30. package/dist/commonjs/api/codeSigningContext.js +12 -9
  31. package/dist/commonjs/api/codeSigningContext.js.map +1 -1
  32. package/dist/commonjs/api/operations/index.js +5 -6
  33. package/dist/commonjs/api/operations/index.js.map +1 -1
  34. package/dist/commonjs/classic/certificateProfiles/index.js +3 -1
  35. package/dist/commonjs/classic/certificateProfiles/index.js.map +1 -1
  36. package/dist/commonjs/classic/codeSigningAccounts/index.js +3 -1
  37. package/dist/commonjs/classic/codeSigningAccounts/index.js.map +1 -1
  38. package/dist/commonjs/classic/operations/index.js +3 -1
  39. package/dist/commonjs/classic/operations/index.js.map +1 -1
  40. package/dist/commonjs/codeSigningClient.js +14 -3
  41. package/dist/commonjs/codeSigningClient.js.map +1 -1
  42. package/dist/commonjs/restorePollerHelpers.js +11 -13
  43. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  44. package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
  45. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  46. package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
  47. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  48. package/dist/commonjs/tsdoc-metadata.json +11 -11
  49. package/dist/esm/api/certificateProfiles/index.js +128 -128
  50. package/dist/esm/api/certificateProfiles/index.js.map +1 -1
  51. package/dist/esm/api/codeSigningAccounts/index.js +82 -78
  52. package/dist/esm/api/codeSigningAccounts/index.js.map +1 -1
  53. package/dist/esm/api/codeSigningContext.js +12 -9
  54. package/dist/esm/api/codeSigningContext.js.map +1 -1
  55. package/dist/esm/api/operations/index.js +5 -6
  56. package/dist/esm/api/operations/index.js.map +1 -1
  57. package/dist/esm/classic/certificateProfiles/index.js +3 -1
  58. package/dist/esm/classic/certificateProfiles/index.js.map +1 -1
  59. package/dist/esm/classic/codeSigningAccounts/index.js +3 -1
  60. package/dist/esm/classic/codeSigningAccounts/index.js.map +1 -1
  61. package/dist/esm/classic/operations/index.js +3 -1
  62. package/dist/esm/classic/operations/index.js.map +1 -1
  63. package/dist/esm/codeSigningClient.js +14 -3
  64. package/dist/esm/codeSigningClient.js.map +1 -1
  65. package/dist/esm/restorePollerHelpers.js +11 -13
  66. package/dist/esm/restorePollerHelpers.js.map +1 -1
  67. package/dist/esm/static-helpers/pagingHelpers.js +31 -50
  68. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  69. package/dist/esm/static-helpers/pollingHelpers.js +14 -11
  70. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  71. package/dist/react-native/api/certificateProfiles/index.js +128 -128
  72. package/dist/react-native/api/certificateProfiles/index.js.map +1 -1
  73. package/dist/react-native/api/codeSigningAccounts/index.js +82 -78
  74. package/dist/react-native/api/codeSigningAccounts/index.js.map +1 -1
  75. package/dist/react-native/api/codeSigningContext.js +12 -9
  76. package/dist/react-native/api/codeSigningContext.js.map +1 -1
  77. package/dist/react-native/api/operations/index.js +5 -6
  78. package/dist/react-native/api/operations/index.js.map +1 -1
  79. package/dist/react-native/classic/certificateProfiles/index.js +3 -1
  80. package/dist/react-native/classic/certificateProfiles/index.js.map +1 -1
  81. package/dist/react-native/classic/codeSigningAccounts/index.js +3 -1
  82. package/dist/react-native/classic/codeSigningAccounts/index.js.map +1 -1
  83. package/dist/react-native/classic/operations/index.js +3 -1
  84. package/dist/react-native/classic/operations/index.js.map +1 -1
  85. package/dist/react-native/codeSigningClient.js +14 -3
  86. package/dist/react-native/codeSigningClient.js.map +1 -1
  87. package/dist/react-native/restorePollerHelpers.js +11 -13
  88. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  89. package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
  90. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  91. package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
  92. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  93. package/package.json +45 -47
  94. /package/review/{arm-trustedsigning-models.api.md → arm-trustedsigning-models-node.api.md} +0 -0
  95. /package/review/{arm-trustedsigning.api.md → arm-trustedsigning-node.api.md} +0 -0
@@ -8,10 +8,9 @@ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
8
8
  export function _getSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
9
9
  return context
10
10
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
11
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
11
+ .get({ ...operationOptionsToRequestParameters(options) });
12
12
  }
13
13
  export async function _getDeserialize(result) {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
15
14
  const expectedStatuses = ["200"];
16
15
  if (!expectedStatuses.includes(result.status)) {
17
16
  throw createRestError(result);
@@ -25,25 +24,25 @@ export async function _getDeserialize(result) {
25
24
  systemData: !result.body.systemData
26
25
  ? undefined
27
26
  : {
28
- createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
29
- createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
30
- createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
31
- ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
27
+ createdBy: result.body.systemData?.["createdBy"],
28
+ createdByType: result.body.systemData?.["createdByType"],
29
+ createdAt: result.body.systemData?.["createdAt"] !== undefined
30
+ ? new Date(result.body.systemData?.["createdAt"])
32
31
  : undefined,
33
- lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
34
- lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
35
- lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
36
- ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
32
+ lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
33
+ lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
34
+ lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
35
+ ? new Date(result.body.systemData?.["lastModifiedAt"])
37
36
  : undefined,
38
37
  },
39
38
  properties: !result.body.properties
40
39
  ? undefined
41
40
  : {
42
- accountUri: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["accountUri"],
43
- sku: !((_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.sku)
41
+ accountUri: result.body.properties?.["accountUri"],
42
+ sku: !result.body.properties?.sku
44
43
  ? undefined
45
- : { name: (_m = (_l = result.body.properties) === null || _l === void 0 ? void 0 : _l.sku) === null || _m === void 0 ? void 0 : _m["name"] },
46
- provisioningState: (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["provisioningState"],
44
+ : { name: result.body.properties?.sku?.["name"] },
45
+ provisioningState: result.body.properties?.["provisioningState"],
47
46
  },
48
47
  };
49
48
  }
@@ -55,16 +54,18 @@ export async function get(context, subscriptionId, resourceGroupName, accountNam
55
54
  export function _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
56
55
  return context
57
56
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
58
- .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
57
+ .put({
58
+ ...operationOptionsToRequestParameters(options),
59
+ body: {
59
60
  tags: !resource.tags ? resource.tags : serializeRecord(resource.tags),
60
61
  location: resource["location"],
61
62
  properties: !resource.properties
62
63
  ? resource.properties
63
64
  : codeSigningAccountPropertiesSerializer(resource.properties),
64
- } }));
65
+ },
66
+ });
65
67
  }
66
68
  export async function _createDeserialize(result) {
67
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
68
69
  const expectedStatuses = ["200", "201"];
69
70
  if (!expectedStatuses.includes(result.status)) {
70
71
  throw createRestError(result);
@@ -78,33 +79,33 @@ export async function _createDeserialize(result) {
78
79
  systemData: !result.body.systemData
79
80
  ? undefined
80
81
  : {
81
- createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
82
- createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
83
- createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
84
- ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
82
+ createdBy: result.body.systemData?.["createdBy"],
83
+ createdByType: result.body.systemData?.["createdByType"],
84
+ createdAt: result.body.systemData?.["createdAt"] !== undefined
85
+ ? new Date(result.body.systemData?.["createdAt"])
85
86
  : undefined,
86
- lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
87
- lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
88
- lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
89
- ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
87
+ lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
88
+ lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
89
+ lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
90
+ ? new Date(result.body.systemData?.["lastModifiedAt"])
90
91
  : undefined,
91
92
  },
92
93
  properties: !result.body.properties
93
94
  ? undefined
94
95
  : {
95
- accountUri: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["accountUri"],
96
- sku: !((_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.sku)
96
+ accountUri: result.body.properties?.["accountUri"],
97
+ sku: !result.body.properties?.sku
97
98
  ? undefined
98
- : { name: (_m = (_l = result.body.properties) === null || _l === void 0 ? void 0 : _l.sku) === null || _m === void 0 ? void 0 : _m["name"] },
99
- provisioningState: (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["provisioningState"],
99
+ : { name: result.body.properties?.sku?.["name"] },
100
+ provisioningState: result.body.properties?.["provisioningState"],
100
101
  },
101
102
  };
102
103
  }
103
104
  /** Create a trusted Signing Account. */
104
105
  export function create(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
105
106
  return getLongRunningPoller(context, _createDeserialize, ["200", "201"], {
106
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
107
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
107
+ updateIntervalInMs: options?.updateIntervalInMs,
108
+ abortSignal: options?.abortSignal,
108
109
  getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, accountName, resource, options),
109
110
  resourceLocationConfig: "azure-async-operation",
110
111
  });
@@ -112,15 +113,17 @@ export function create(context, subscriptionId, resourceGroupName, accountName,
112
113
  export function _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
113
114
  return context
114
115
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
115
- .patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
116
+ .patch({
117
+ ...operationOptionsToRequestParameters(options),
118
+ body: {
116
119
  tags: !properties.tags ? properties.tags : serializeRecord(properties.tags),
117
120
  properties: !properties.properties
118
121
  ? properties.properties
119
122
  : codeSigningAccountPatchPropertiesSerializer(properties.properties),
120
- } }));
123
+ },
124
+ });
121
125
  }
122
126
  export async function _updateDeserialize(result) {
123
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
124
127
  const expectedStatuses = ["200", "202"];
125
128
  if (!expectedStatuses.includes(result.status)) {
126
129
  throw createRestError(result);
@@ -134,33 +137,33 @@ export async function _updateDeserialize(result) {
134
137
  systemData: !result.body.systemData
135
138
  ? undefined
136
139
  : {
137
- createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
138
- createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
139
- createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
140
- ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
140
+ createdBy: result.body.systemData?.["createdBy"],
141
+ createdByType: result.body.systemData?.["createdByType"],
142
+ createdAt: result.body.systemData?.["createdAt"] !== undefined
143
+ ? new Date(result.body.systemData?.["createdAt"])
141
144
  : undefined,
142
- lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
143
- lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
144
- lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
145
- ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
145
+ lastModifiedBy: result.body.systemData?.["lastModifiedBy"],
146
+ lastModifiedByType: result.body.systemData?.["lastModifiedByType"],
147
+ lastModifiedAt: result.body.systemData?.["lastModifiedAt"] !== undefined
148
+ ? new Date(result.body.systemData?.["lastModifiedAt"])
146
149
  : undefined,
147
150
  },
148
151
  properties: !result.body.properties
149
152
  ? undefined
150
153
  : {
151
- accountUri: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["accountUri"],
152
- sku: !((_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.sku)
154
+ accountUri: result.body.properties?.["accountUri"],
155
+ sku: !result.body.properties?.sku
153
156
  ? undefined
154
- : { name: (_m = (_l = result.body.properties) === null || _l === void 0 ? void 0 : _l.sku) === null || _m === void 0 ? void 0 : _m["name"] },
155
- provisioningState: (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["provisioningState"],
157
+ : { name: result.body.properties?.sku?.["name"] },
158
+ provisioningState: result.body.properties?.["provisioningState"],
156
159
  },
157
160
  };
158
161
  }
159
162
  /** Update a trusted signing account. */
160
163
  export function update(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
161
164
  return getLongRunningPoller(context, _updateDeserialize, ["200", "202"], {
162
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
163
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
165
+ updateIntervalInMs: options?.updateIntervalInMs,
166
+ abortSignal: options?.abortSignal,
164
167
  getInitialResponse: () => _updateSend(context, subscriptionId, resourceGroupName, accountName, properties, options),
165
168
  resourceLocationConfig: "location",
166
169
  });
@@ -168,7 +171,7 @@ export function update(context, subscriptionId, resourceGroupName, accountName,
168
171
  export function _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
169
172
  return context
170
173
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}", subscriptionId, resourceGroupName, accountName)
171
- .delete(Object.assign({}, operationOptionsToRequestParameters(options)));
174
+ .delete({ ...operationOptionsToRequestParameters(options) });
172
175
  }
173
176
  export async function _$deleteDeserialize(result) {
174
177
  const expectedStatuses = ["202", "204", "200"];
@@ -185,8 +188,8 @@ export async function _$deleteDeserialize(result) {
185
188
  */
186
189
  export function $delete(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
187
190
  return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
188
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
189
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
191
+ updateIntervalInMs: options?.updateIntervalInMs,
192
+ abortSignal: options?.abortSignal,
190
193
  getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, accountName, options),
191
194
  resourceLocationConfig: "location",
192
195
  });
@@ -196,7 +199,7 @@ export function _listByResourceGroupSend(context, subscriptionId, resourceGroupN
196
199
  }) {
197
200
  return context
198
201
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts", subscriptionId, resourceGroupName)
199
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
202
+ .get({ ...operationOptionsToRequestParameters(options) });
200
203
  }
201
204
  export async function _listByResourceGroupDeserialize(result) {
202
205
  const expectedStatuses = ["200"];
@@ -205,7 +208,6 @@ export async function _listByResourceGroupDeserialize(result) {
205
208
  }
206
209
  return {
207
210
  value: result.body["value"].map((p) => {
208
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
209
211
  return {
210
212
  tags: p["tags"],
211
213
  location: p["location"],
@@ -215,23 +217,23 @@ export async function _listByResourceGroupDeserialize(result) {
215
217
  systemData: !p.systemData
216
218
  ? undefined
217
219
  : {
218
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
219
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
220
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
221
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
220
+ createdBy: p.systemData?.["createdBy"],
221
+ createdByType: p.systemData?.["createdByType"],
222
+ createdAt: p.systemData?.["createdAt"] !== undefined
223
+ ? new Date(p.systemData?.["createdAt"])
222
224
  : undefined,
223
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
224
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
225
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
226
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
225
+ lastModifiedBy: p.systemData?.["lastModifiedBy"],
226
+ lastModifiedByType: p.systemData?.["lastModifiedByType"],
227
+ lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined
228
+ ? new Date(p.systemData?.["lastModifiedAt"])
227
229
  : undefined,
228
230
  },
229
231
  properties: !p.properties
230
232
  ? undefined
231
233
  : {
232
- accountUri: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["accountUri"],
233
- sku: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.sku) ? undefined : { name: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.sku) === null || _m === void 0 ? void 0 : _m["name"] },
234
- provisioningState: (_o = p.properties) === null || _o === void 0 ? void 0 : _o["provisioningState"],
234
+ accountUri: p.properties?.["accountUri"],
235
+ sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.["name"] },
236
+ provisioningState: p.properties?.["provisioningState"],
235
237
  },
236
238
  };
237
239
  }),
@@ -249,7 +251,7 @@ export function _listBySubscriptionSend(context, subscriptionId, options = {
249
251
  }) {
250
252
  return context
251
253
  .path("/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/codeSigningAccounts", subscriptionId)
252
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
254
+ .get({ ...operationOptionsToRequestParameters(options) });
253
255
  }
254
256
  export async function _listBySubscriptionDeserialize(result) {
255
257
  const expectedStatuses = ["200"];
@@ -258,7 +260,6 @@ export async function _listBySubscriptionDeserialize(result) {
258
260
  }
259
261
  return {
260
262
  value: result.body["value"].map((p) => {
261
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
262
263
  return {
263
264
  tags: p["tags"],
264
265
  location: p["location"],
@@ -268,23 +269,23 @@ export async function _listBySubscriptionDeserialize(result) {
268
269
  systemData: !p.systemData
269
270
  ? undefined
270
271
  : {
271
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
272
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
273
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
274
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
272
+ createdBy: p.systemData?.["createdBy"],
273
+ createdByType: p.systemData?.["createdByType"],
274
+ createdAt: p.systemData?.["createdAt"] !== undefined
275
+ ? new Date(p.systemData?.["createdAt"])
275
276
  : undefined,
276
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
277
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
278
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
279
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
277
+ lastModifiedBy: p.systemData?.["lastModifiedBy"],
278
+ lastModifiedByType: p.systemData?.["lastModifiedByType"],
279
+ lastModifiedAt: p.systemData?.["lastModifiedAt"] !== undefined
280
+ ? new Date(p.systemData?.["lastModifiedAt"])
280
281
  : undefined,
281
282
  },
282
283
  properties: !p.properties
283
284
  ? undefined
284
285
  : {
285
- accountUri: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["accountUri"],
286
- sku: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.sku) ? undefined : { name: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.sku) === null || _m === void 0 ? void 0 : _m["name"] },
287
- provisioningState: (_o = p.properties) === null || _o === void 0 ? void 0 : _o["provisioningState"],
286
+ accountUri: p.properties?.["accountUri"],
287
+ sku: !p.properties?.sku ? undefined : { name: p.properties?.sku?.["name"] },
288
+ provisioningState: p.properties?.["provisioningState"],
288
289
  },
289
290
  };
290
291
  }),
@@ -302,7 +303,10 @@ export function _checkNameAvailabilitySend(context, subscriptionId, body, option
302
303
  }) {
303
304
  return context
304
305
  .path("/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability", subscriptionId)
305
- .post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: { name: body["name"] } }));
306
+ .post({
307
+ ...operationOptionsToRequestParameters(options),
308
+ body: { name: body["name"] },
309
+ });
306
310
  }
307
311
  export async function _checkNameAvailabilityDeserialize(result) {
308
312
  const expectedStatuses = ["200"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/codeSigningAccounts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sCAAsC,EACtC,2CAA2C,GAM5C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAY9E,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACjC,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAA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,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;AAElC,OAAO,EACL,sCAAsC,EACtC,2CAA2C,GAM5C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAY9E,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB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,CAAC;QAC7B,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KAChC,CAAC;AACJ,CAAC;AAED,uFAAuF;AACvF,MAAM,CAAC,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"]}
@@ -1,23 +1,26 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { __rest } from "tslib";
4
3
  import { getClient } from "@azure-rest/core-client";
5
4
  import { logger } from "../logger.js";
6
5
  /** Code Signing resource provider api. */
7
6
  export function createCodeSigning(credential, options = {}) {
8
- var _a, _b, _c, _d, _e, _f, _g, _h;
9
- const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : `https://management.azure.com`;
10
- const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
11
- const userAgentInfo = `azsdk-js-arm-trustedsigning/1.0.0-beta.2`;
7
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
8
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
9
+ const userAgentInfo = `azsdk-js-arm-trustedsigning/1.0.0-beta.3`;
12
10
  const userAgentPrefix = prefixFromOptions
13
11
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
14
12
  : `azsdk-js-api ${userAgentInfo}`;
15
- const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
16
- scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
17
- } }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
13
+ const { apiVersion: _, ...updatedOptions } = {
14
+ ...options,
15
+ userAgentOptions: { userAgentPrefix },
16
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
17
+ credentials: {
18
+ scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
19
+ },
20
+ };
18
21
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
19
22
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
20
- const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-02-05-preview";
23
+ const apiVersion = options.apiVersion ?? "2024-02-05-preview";
21
24
  clientContext.pipeline.addPolicy({
22
25
  name: "ClientApiVersionPolicy",
23
26
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"codeSigningContext.js","sourceRoot":"","sources":["../../../src/api/codeSigningContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,0CAA0C;AAC1C,MAAM,UAAU,iBAAiB,CAC/B,UAA2B,EAC3B,UAA2C,EAAE;;IAE7C,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAE1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,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,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,EAPK,EAAE,UAAU,EAAE,CAAC,OAOpB,EAPyB,cAAc,cAAlC,cAAoC,CAOzC,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,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,MAAA,OAAO,CAAC,UAAU,mCAAI,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.2`;\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"]}
1
+ {"version":3,"file":"codeSigningContext.js","sourceRoot":"","sources":["../../../src/api/codeSigningContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC,0CAA0C;AAC1C,MAAM,UAAU,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;Q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,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"]}
@@ -5,7 +5,7 @@ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"
5
5
  export function _listSend(context, options = { requestOptions: {} }) {
6
6
  return context
7
7
  .path("/providers/Microsoft.CodeSigning/operations")
8
- .get(Object.assign({}, operationOptionsToRequestParameters(options)));
8
+ .get({ ...operationOptionsToRequestParameters(options) });
9
9
  }
10
10
  export async function _listDeserialize(result) {
11
11
  const expectedStatuses = ["200"];
@@ -14,17 +14,16 @@ export async function _listDeserialize(result) {
14
14
  }
15
15
  return {
16
16
  value: result.body["value"].map((p) => {
17
- var _a, _b, _c, _d;
18
17
  return {
19
18
  name: p["name"],
20
19
  isDataAction: p["isDataAction"],
21
20
  display: !p.display
22
21
  ? undefined
23
22
  : {
24
- provider: (_a = p.display) === null || _a === void 0 ? void 0 : _a["provider"],
25
- resource: (_b = p.display) === null || _b === void 0 ? void 0 : _b["resource"],
26
- operation: (_c = p.display) === null || _c === void 0 ? void 0 : _c["operation"],
27
- description: (_d = p.display) === null || _d === void 0 ? void 0 : _d["description"],
23
+ provider: p.display?.["provider"],
24
+ resource: p.display?.["resource"],
25
+ operation: p.display?.["operation"],
26
+ description: p.display?.["description"],
28
27
  },
29
28
  origin: p["origin"],
30
29
  actionType: p["actionType"],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAG/C,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC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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"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAG/C,M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,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,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"]}
@@ -11,6 +11,8 @@ export function getCertificateProfiles(context, subscriptionId) {
11
11
  };
12
12
  }
13
13
  export function getCertificateProfilesOperations(context, subscriptionId) {
14
- return Object.assign({}, getCertificateProfiles(context, subscriptionId));
14
+ return {
15
+ ...getCertificateProfiles(context, subscriptionId),
16
+ };
15
17
  }
16
18
  //# sourceMappingURL=index.js.map