@azure/arm-devhub 1.0.0-beta.1

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 (112) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1512 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js +32 -0
  11. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js.map +1 -0
  12. package/dist-esm/samples-dev/gitHubOAuthSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/gitHubOAuthSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/gitHubOAuthSample.js +34 -0
  15. package/dist-esm/samples-dev/gitHubOAuthSample.js.map +1 -0
  16. package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/listGitHubOAuthSample.js +30 -0
  19. package/dist-esm/samples-dev/listGitHubOAuthSample.js.map +1 -0
  20. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/operationsListSample.js +29 -0
  23. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  24. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js +56 -0
  27. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/workflowDeleteSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/workflowDeleteSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/workflowDeleteSample.js +31 -0
  31. package/dist-esm/samples-dev/workflowDeleteSample.js.map +1 -0
  32. package/dist-esm/samples-dev/workflowGetSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/workflowGetSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/workflowGetSample.js +31 -0
  35. package/dist-esm/samples-dev/workflowGetSample.js.map +1 -0
  36. package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/workflowListByResourceGroupSample.js +48 -0
  39. package/dist-esm/samples-dev/workflowListByResourceGroupSample.js.map +1 -0
  40. package/dist-esm/samples-dev/workflowListSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/workflowListSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/workflowListSample.js +43 -0
  43. package/dist-esm/samples-dev/workflowListSample.js.map +1 -0
  44. package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/workflowUpdateTagsSample.js +34 -0
  47. package/dist-esm/samples-dev/workflowUpdateTagsSample.js.map +1 -0
  48. package/dist-esm/src/developerHubServiceClient.d.ts +41 -0
  49. package/dist-esm/src/developerHubServiceClient.d.ts.map +1 -0
  50. package/dist-esm/src/developerHubServiceClient.js +196 -0
  51. package/dist-esm/src/developerHubServiceClient.js.map +1 -0
  52. package/dist-esm/src/index.d.ts +5 -0
  53. package/dist-esm/src/index.d.ts.map +1 -0
  54. package/dist-esm/src/index.js +12 -0
  55. package/dist-esm/src/index.js.map +1 -0
  56. package/dist-esm/src/models/index.d.ts +458 -0
  57. package/dist-esm/src/models/index.d.ts.map +1 -0
  58. package/dist-esm/src/models/index.js +56 -0
  59. package/dist-esm/src/models/index.js.map +1 -0
  60. package/dist-esm/src/models/mappers.d.ts +24 -0
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  62. package/dist-esm/src/models/mappers.js +650 -0
  63. package/dist-esm/src/models/mappers.js.map +1 -0
  64. package/dist-esm/src/models/parameters.d.ts +17 -0
  65. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  66. package/dist-esm/src/models/parameters.js +160 -0
  67. package/dist-esm/src/models/parameters.js.map +1 -0
  68. package/dist-esm/src/operations/index.d.ts +3 -0
  69. package/dist-esm/src/operations/index.d.ts.map +1 -0
  70. package/dist-esm/src/operations/index.js +10 -0
  71. package/dist-esm/src/operations/index.js.map +1 -0
  72. package/dist-esm/src/operations/operations.d.ts +18 -0
  73. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/operations.js +46 -0
  75. package/dist-esm/src/operations/operations.js.map +1 -0
  76. package/dist-esm/src/operations/workflowOperations.d.ts +83 -0
  77. package/dist-esm/src/operations/workflowOperations.d.ts.map +1 -0
  78. package/dist-esm/src/operations/workflowOperations.js +361 -0
  79. package/dist-esm/src/operations/workflowOperations.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  81. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  83. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  85. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/workflowOperations.d.ts +47 -0
  89. package/dist-esm/src/operationsInterfaces/workflowOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/workflowOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/workflowOperations.js.map +1 -0
  92. package/dist-esm/test/devhub_examples.spec.d.ts +4 -0
  93. package/dist-esm/test/devhub_examples.spec.d.ts.map +1 -0
  94. package/dist-esm/test/devhub_examples.spec.js +67 -0
  95. package/dist-esm/test/devhub_examples.spec.js.map +1 -0
  96. package/package.json +120 -0
  97. package/review/arm-devhub.api.md +355 -0
  98. package/rollup.config.js +122 -0
  99. package/src/developerHubServiceClient.ts +270 -0
  100. package/src/index.ts +12 -0
  101. package/src/models/index.ts +518 -0
  102. package/src/models/mappers.ts +699 -0
  103. package/src/models/parameters.ts +186 -0
  104. package/src/operations/index.ts +10 -0
  105. package/src/operations/operations.ts +59 -0
  106. package/src/operations/workflowOperations.ts +449 -0
  107. package/src/operationsInterfaces/index.ts +10 -0
  108. package/src/operationsInterfaces/operations.ts +21 -0
  109. package/src/operationsInterfaces/workflowOperations.ts +92 -0
  110. package/tsconfig.json +33 -0
  111. package/types/arm-devhub.d.ts +609 -0
  112. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,361 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing WorkflowOperations operations. */
14
+ export class WorkflowOperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class WorkflowOperations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of workflows associated with the specified subscription.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Gets a list of workflows within a resource group.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param options The options parameters.
74
+ */
75
+ listByResourceGroup(resourceGroupName, options) {
76
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: () => {
85
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
86
+ }
87
+ };
88
+ }
89
+ listByResourceGroupPagingPage(resourceGroupName, options) {
90
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
91
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
92
+ yield yield __await(result.value || []);
93
+ let continuationToken = result.nextLink;
94
+ while (continuationToken) {
95
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
96
+ continuationToken = result.nextLink;
97
+ yield yield __await(result.value || []);
98
+ }
99
+ });
100
+ }
101
+ listByResourceGroupPagingAll(resourceGroupName, options) {
102
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
103
+ var e_2, _a;
104
+ try {
105
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
106
+ const page = _c.value;
107
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
108
+ }
109
+ }
110
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
111
+ finally {
112
+ try {
113
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
114
+ }
115
+ finally { if (e_2) throw e_2.error; }
116
+ }
117
+ });
118
+ }
119
+ /**
120
+ * Gets a list of workflows associated with the specified subscription.
121
+ * @param options The options parameters.
122
+ */
123
+ _list(options) {
124
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
125
+ }
126
+ /**
127
+ * Gets a list of workflows within a resource group.
128
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
129
+ * @param options The options parameters.
130
+ */
131
+ _listByResourceGroup(resourceGroupName, options) {
132
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
133
+ }
134
+ /**
135
+ * Gets a workflow.
136
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
+ * @param workflowName The name of the workflow resource.
138
+ * @param options The options parameters.
139
+ */
140
+ get(resourceGroupName, workflowName, options) {
141
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, getOperationSpec);
142
+ }
143
+ /**
144
+ * Creates or updates a workflow
145
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
+ * @param workflowName The name of the workflow resource.
147
+ * @param parameters Resource representation of a workflow
148
+ * @param options The options parameters.
149
+ */
150
+ createOrUpdate(resourceGroupName, workflowName, parameters, options) {
151
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, createOrUpdateOperationSpec);
152
+ }
153
+ /**
154
+ * Deletes a workflow
155
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
156
+ * @param workflowName The name of the workflow resource.
157
+ * @param options The options parameters.
158
+ */
159
+ delete(resourceGroupName, workflowName, options) {
160
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, deleteOperationSpec);
161
+ }
162
+ /**
163
+ * Updates tags on a workflow.
164
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
165
+ * @param workflowName The name of the workflow resource.
166
+ * @param parameters Parameters supplied to the Update Workflow Tags operation.
167
+ * @param options The options parameters.
168
+ */
169
+ updateTags(resourceGroupName, workflowName, parameters, options) {
170
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, updateTagsOperationSpec);
171
+ }
172
+ /**
173
+ * ListNext
174
+ * @param nextLink The nextLink from the previous successful call to the List method.
175
+ * @param options The options parameters.
176
+ */
177
+ _listNext(nextLink, options) {
178
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
179
+ }
180
+ /**
181
+ * ListByResourceGroupNext
182
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
183
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
184
+ * @param options The options parameters.
185
+ */
186
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
187
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
188
+ }
189
+ }
190
+ // Operation Specifications
191
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
192
+ const listOperationSpec = {
193
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows",
194
+ httpMethod: "GET",
195
+ responses: {
196
+ 200: {
197
+ bodyMapper: Mappers.WorkflowListResult
198
+ },
199
+ default: {
200
+ bodyMapper: Mappers.ErrorResponse
201
+ }
202
+ },
203
+ queryParameters: [Parameters.apiVersion],
204
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
205
+ headerParameters: [Parameters.accept],
206
+ serializer
207
+ };
208
+ const listByResourceGroupOperationSpec = {
209
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows",
210
+ httpMethod: "GET",
211
+ responses: {
212
+ 200: {
213
+ bodyMapper: Mappers.WorkflowListResult
214
+ },
215
+ default: {
216
+ bodyMapper: Mappers.ErrorResponse
217
+ }
218
+ },
219
+ queryParameters: [Parameters.apiVersion, Parameters.managedClusterResource],
220
+ urlParameters: [
221
+ Parameters.$host,
222
+ Parameters.subscriptionId,
223
+ Parameters.resourceGroupName
224
+ ],
225
+ headerParameters: [Parameters.accept],
226
+ serializer
227
+ };
228
+ const getOperationSpec = {
229
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
230
+ httpMethod: "GET",
231
+ responses: {
232
+ 200: {
233
+ bodyMapper: Mappers.Workflow
234
+ },
235
+ default: {
236
+ bodyMapper: Mappers.ErrorResponse
237
+ }
238
+ },
239
+ queryParameters: [Parameters.apiVersion],
240
+ urlParameters: [
241
+ Parameters.$host,
242
+ Parameters.subscriptionId,
243
+ Parameters.resourceGroupName,
244
+ Parameters.workflowName
245
+ ],
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const createOrUpdateOperationSpec = {
250
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
251
+ httpMethod: "PUT",
252
+ responses: {
253
+ 200: {
254
+ bodyMapper: Mappers.Workflow
255
+ },
256
+ 201: {
257
+ bodyMapper: Mappers.Workflow
258
+ },
259
+ default: {
260
+ bodyMapper: Mappers.ErrorResponse
261
+ }
262
+ },
263
+ requestBody: Parameters.parameters1,
264
+ queryParameters: [Parameters.apiVersion],
265
+ urlParameters: [
266
+ Parameters.$host,
267
+ Parameters.subscriptionId,
268
+ Parameters.resourceGroupName,
269
+ Parameters.workflowName
270
+ ],
271
+ headerParameters: [Parameters.accept, Parameters.contentType],
272
+ mediaType: "json",
273
+ serializer
274
+ };
275
+ const deleteOperationSpec = {
276
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
277
+ httpMethod: "DELETE",
278
+ responses: {
279
+ 200: {
280
+ bodyMapper: Mappers.DeleteWorkflowResponse
281
+ },
282
+ 204: {},
283
+ default: {
284
+ bodyMapper: Mappers.ErrorResponse
285
+ }
286
+ },
287
+ queryParameters: [Parameters.apiVersion],
288
+ urlParameters: [
289
+ Parameters.$host,
290
+ Parameters.subscriptionId,
291
+ Parameters.resourceGroupName,
292
+ Parameters.workflowName
293
+ ],
294
+ headerParameters: [Parameters.accept],
295
+ serializer
296
+ };
297
+ const updateTagsOperationSpec = {
298
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
299
+ httpMethod: "PATCH",
300
+ responses: {
301
+ 200: {
302
+ bodyMapper: Mappers.Workflow
303
+ },
304
+ default: {
305
+ bodyMapper: Mappers.ErrorResponse
306
+ }
307
+ },
308
+ requestBody: Parameters.parameters2,
309
+ queryParameters: [Parameters.apiVersion],
310
+ urlParameters: [
311
+ Parameters.$host,
312
+ Parameters.subscriptionId,
313
+ Parameters.resourceGroupName,
314
+ Parameters.workflowName
315
+ ],
316
+ headerParameters: [Parameters.accept, Parameters.contentType],
317
+ mediaType: "json",
318
+ serializer
319
+ };
320
+ const listNextOperationSpec = {
321
+ path: "{nextLink}",
322
+ httpMethod: "GET",
323
+ responses: {
324
+ 200: {
325
+ bodyMapper: Mappers.WorkflowListResult
326
+ },
327
+ default: {
328
+ bodyMapper: Mappers.ErrorResponse
329
+ }
330
+ },
331
+ queryParameters: [Parameters.apiVersion],
332
+ urlParameters: [
333
+ Parameters.$host,
334
+ Parameters.subscriptionId,
335
+ Parameters.nextLink
336
+ ],
337
+ headerParameters: [Parameters.accept],
338
+ serializer
339
+ };
340
+ const listByResourceGroupNextOperationSpec = {
341
+ path: "{nextLink}",
342
+ httpMethod: "GET",
343
+ responses: {
344
+ 200: {
345
+ bodyMapper: Mappers.WorkflowListResult
346
+ },
347
+ default: {
348
+ bodyMapper: Mappers.ErrorResponse
349
+ }
350
+ },
351
+ queryParameters: [Parameters.apiVersion, Parameters.managedClusterResource],
352
+ urlParameters: [
353
+ Parameters.$host,
354
+ Parameters.subscriptionId,
355
+ Parameters.resourceGroupName,
356
+ Parameters.nextLink
357
+ ],
358
+ headerParameters: [Parameters.accept],
359
+ serializer
360
+ };
361
+ //# sourceMappingURL=workflowOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.js","sourceRoot":"","sources":["../../../src/operations/workflowOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAuBnD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,O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pB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./operations";
2
+ export * from "./workflowOperations";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations";
9
+ export * from "./workflowOperations";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models";
2
+ /** Interface representing a Operations. */
3
+ export interface Operations {
4
+ /**
5
+ * Returns list of operations.
6
+ * @param options The options parameters.
7
+ */
8
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
9
+ }
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,47 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workflow, WorkflowListOptionalParams, WorkflowListByResourceGroupOptionalParams, WorkflowGetOptionalParams, WorkflowGetResponse, WorkflowCreateOrUpdateOptionalParams, WorkflowCreateOrUpdateResponse, WorkflowDeleteOptionalParams, WorkflowDeleteResponse, TagsObject, WorkflowUpdateTagsOptionalParams, WorkflowUpdateTagsResponse } from "../models";
3
+ /** Interface representing a WorkflowOperations. */
4
+ export interface WorkflowOperations {
5
+ /**
6
+ * Gets a list of workflows associated with the specified subscription.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: WorkflowListOptionalParams): PagedAsyncIterableIterator<Workflow>;
10
+ /**
11
+ * Gets a list of workflows within a resource group.
12
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13
+ * @param options The options parameters.
14
+ */
15
+ listByResourceGroup(resourceGroupName: string, options?: WorkflowListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workflow>;
16
+ /**
17
+ * Gets a workflow.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param workflowName The name of the workflow resource.
20
+ * @param options The options parameters.
21
+ */
22
+ get(resourceGroupName: string, workflowName: string, options?: WorkflowGetOptionalParams): Promise<WorkflowGetResponse>;
23
+ /**
24
+ * Creates or updates a workflow
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workflowName The name of the workflow resource.
27
+ * @param parameters Resource representation of a workflow
28
+ * @param options The options parameters.
29
+ */
30
+ createOrUpdate(resourceGroupName: string, workflowName: string, parameters: Workflow, options?: WorkflowCreateOrUpdateOptionalParams): Promise<WorkflowCreateOrUpdateResponse>;
31
+ /**
32
+ * Deletes a workflow
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workflowName The name of the workflow resource.
35
+ * @param options The options parameters.
36
+ */
37
+ delete(resourceGroupName: string, workflowName: string, options?: WorkflowDeleteOptionalParams): Promise<WorkflowDeleteResponse>;
38
+ /**
39
+ * Updates tags on a workflow.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param workflowName The name of the workflow resource.
42
+ * @param parameters Parameters supplied to the Update Workflow Tags operation.
43
+ * @param options The options parameters.
44
+ */
45
+ updateTags(resourceGroupName: string, workflowName: string, parameters: TagsObject, options?: WorkflowUpdateTagsOptionalParams): Promise<WorkflowUpdateTagsResponse>;
46
+ }
47
+ //# sourceMappingURL=workflowOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workflowOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,QAAQ,EACR,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,oCAAoC,EACpC,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,UAAU,CACR,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=workflowOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/workflowOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=devhub_examples.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devhub_examples.spec.d.ts","sourceRoot":"","sources":["../../test/devhub_examples.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { DeveloperHubServiceClient } from "../src/developerHubServiceClient";
12
+ const replaceableVariables = {
13
+ AZURE_CLIENT_ID: "azure_client_id",
14
+ AZURE_CLIENT_SECRET: "azure_client_secret",
15
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
16
+ SUBSCRIPTION_ID: "azure_subscription_id"
17
+ };
18
+ const recorderOptions = {
19
+ envSetupForPlayback: replaceableVariables
20
+ };
21
+ export const testPollingOptions = {
22
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
23
+ };
24
+ describe("devhub test", () => {
25
+ let recorder;
26
+ let subscriptionId;
27
+ let client;
28
+ let location;
29
+ let resourceGroup;
30
+ beforeEach(function () {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ recorder = new Recorder(this.currentTest);
33
+ yield recorder.start(recorderOptions);
34
+ subscriptionId = env.SUBSCRIPTION_ID || '';
35
+ // This is an example of how the environment variables are used
36
+ const credential = createTestCredential();
37
+ client = new DeveloperHubServiceClient(credential, subscriptionId, recorder.configureClientOptions({}));
38
+ location = "eastus";
39
+ resourceGroup = "myjstest";
40
+ });
41
+ });
42
+ afterEach(function () {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ yield recorder.stop();
45
+ });
46
+ });
47
+ it("workflow list test", function () {
48
+ var e_1, _a;
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const resArray = new Array();
51
+ try {
52
+ for (var _b = __asyncValues(client.workflowOperations.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
53
+ let item = _c.value;
54
+ resArray.push(item);
55
+ }
56
+ }
57
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
58
+ finally {
59
+ try {
60
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
61
+ }
62
+ finally { if (e_1) throw e_1.error; }
63
+ }
64
+ });
65
+ });
66
+ });
67
+ //# sourceMappingURL=devhub_examples.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devhub_examples.spec.js","sourceRoot":"","sources":["../../test/devhub_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAiC,CAAC;IACtC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAE1B,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,C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