@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,609 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+
5
+ /** Information on the azure container registry */
6
+ export declare interface Acr {
7
+ /** ACR subscription id */
8
+ acrSubscriptionId?: string;
9
+ /** ACR resource group */
10
+ acrResourceGroup?: string;
11
+ /** ACR registry */
12
+ acrRegistryName?: string;
13
+ /** ACR repository */
14
+ acrRepositoryName?: string;
15
+ }
16
+
17
+ /**
18
+ * Defines values for ActionType. \
19
+ * {@link KnownActionType} can be used interchangeably with ActionType,
20
+ * this enum contains the known values that the service supports.
21
+ * ### Known values supported by the service
22
+ * **Internal**
23
+ */
24
+ export declare type ActionType = string;
25
+
26
+ /**
27
+ * Defines values for CreatedByType. \
28
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
29
+ * this enum contains the known values that the service supports.
30
+ * ### Known values supported by the service
31
+ * **User** \
32
+ * **Application** \
33
+ * **ManagedIdentity** \
34
+ * **Key**
35
+ */
36
+ export declare type CreatedByType = string;
37
+
38
+ /** delete response if content must be provided on delete operation */
39
+ export declare interface DeleteWorkflowResponse {
40
+ /** delete status message */
41
+ status?: string;
42
+ }
43
+
44
+ export declare interface DeploymentProperties {
45
+ /** Determines the type of manifests within the repository. */
46
+ manifestType?: ManifestType;
47
+ kubeManifestLocations?: string[];
48
+ /** Helm chart directory path in repository. */
49
+ helmChartPath?: string;
50
+ /** Helm Values.yaml file location in repository. */
51
+ helmValues?: string;
52
+ /** Manifest override values. */
53
+ overrides?: {
54
+ [propertyName: string]: string;
55
+ };
56
+ }
57
+
58
+ export declare class DeveloperHubServiceClient extends coreClient.ServiceClient {
59
+ $host: string;
60
+ apiVersion: string;
61
+ subscriptionId: string;
62
+ /**
63
+ * Initializes a new instance of the DeveloperHubServiceClient class.
64
+ * @param credentials Subscription credentials which uniquely identify client subscription.
65
+ * @param subscriptionId The ID of the target subscription.
66
+ * @param options The parameter options
67
+ */
68
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DeveloperHubServiceClientOptionalParams);
69
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
70
+ private addCustomApiVersionPolicy;
71
+ /**
72
+ * Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
73
+ * @param location The name of Azure region.
74
+ * @param options The options parameters.
75
+ */
76
+ gitHubOAuth(location: string, options?: GitHubOAuthOptionalParams): Promise<GitHubOAuthOperationResponse>;
77
+ /**
78
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
79
+ * @param location The name of Azure region.
80
+ * @param code The code response from authenticating the GitHub App.
81
+ * @param state The state response from authenticating the GitHub App.
82
+ * @param options The options parameters.
83
+ */
84
+ gitHubOAuthCallback(location: string, code: string, state: string, options?: GitHubOAuthCallbackOptionalParams): Promise<GitHubOAuthCallbackResponse>;
85
+ /**
86
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
87
+ * @param location The name of Azure region.
88
+ * @param options The options parameters.
89
+ */
90
+ listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<ListGitHubOAuthResponse>;
91
+ operations: Operations;
92
+ workflowOperations: WorkflowOperations;
93
+ }
94
+
95
+ /** Optional parameters. */
96
+ export declare interface DeveloperHubServiceClientOptionalParams extends coreClient.ServiceClientOptions {
97
+ /** server parameter */
98
+ $host?: string;
99
+ /** Api Version */
100
+ apiVersion?: string;
101
+ /** Overrides client endpoint. */
102
+ endpoint?: string;
103
+ }
104
+
105
+ /** The resource management error additional info. */
106
+ export declare interface ErrorAdditionalInfo {
107
+ /**
108
+ * The additional info type.
109
+ * NOTE: This property will not be serialized. It can only be populated by the server.
110
+ */
111
+ readonly type?: string;
112
+ /**
113
+ * The additional info.
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
115
+ */
116
+ readonly info?: Record<string, unknown>;
117
+ }
118
+
119
+ /** The error detail. */
120
+ export declare interface ErrorDetail {
121
+ /**
122
+ * The error code.
123
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
+ */
125
+ readonly code?: string;
126
+ /**
127
+ * The error message.
128
+ * NOTE: This property will not be serialized. It can only be populated by the server.
129
+ */
130
+ readonly message?: string;
131
+ /**
132
+ * The error target.
133
+ * NOTE: This property will not be serialized. It can only be populated by the server.
134
+ */
135
+ readonly target?: string;
136
+ /**
137
+ * The error details.
138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
139
+ */
140
+ readonly details?: ErrorDetail[];
141
+ /**
142
+ * The error additional info.
143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
144
+ */
145
+ readonly additionalInfo?: ErrorAdditionalInfo[];
146
+ }
147
+
148
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
149
+ export declare interface ErrorResponse {
150
+ /** The error object. */
151
+ error?: ErrorDetail;
152
+ }
153
+
154
+ /** Optional parameters. */
155
+ export declare interface GitHubOAuthCallbackOptionalParams extends coreClient.OperationOptions {
156
+ }
157
+
158
+ /** Contains response data for the gitHubOAuthCallback operation. */
159
+ export declare type GitHubOAuthCallbackResponse = GitHubOAuthResponse;
160
+
161
+ /** GitHubOAuth request object */
162
+ export declare interface GitHubOAuthCallRequest {
163
+ /** The URL the client will redirect to on successful authentication. If empty, no redirect will occur. */
164
+ redirectUrl?: string;
165
+ }
166
+
167
+ /** URL used to authorize the Developer Hub GitHub App */
168
+ export declare interface GitHubOAuthInfoResponse {
169
+ /** URL for authorizing the Developer Hub GitHub App */
170
+ authURL?: string;
171
+ /** OAuth token used to make calls to GitHub */
172
+ token?: string;
173
+ }
174
+
175
+ /** The response from List GitHubOAuth operation. */
176
+ export declare interface GitHubOAuthListResponse {
177
+ /** Singleton list response containing one GitHubOAuthResponse response */
178
+ value?: GitHubOAuthResponse[];
179
+ }
180
+
181
+ /** Contains response data for the gitHubOAuth operation. */
182
+ export declare type GitHubOAuthOperationResponse = GitHubOAuthInfoResponse;
183
+
184
+ /** Optional parameters. */
185
+ export declare interface GitHubOAuthOptionalParams extends coreClient.OperationOptions {
186
+ /** GitHubOAuth request object */
187
+ parameters?: GitHubOAuthCallRequest;
188
+ }
189
+
190
+ /** Singleton response of GitHubOAuth containing */
191
+ export declare interface GitHubOAuthResponse extends ProxyResource {
192
+ /** user making request */
193
+ username?: string;
194
+ }
195
+
196
+ /** The fields needed for OIDC with GitHub. */
197
+ export declare interface GitHubWorkflowProfileOidcCredentials {
198
+ /** Azure Application Client ID */
199
+ azureClientId?: string;
200
+ /** Azure Directory (tenant) ID */
201
+ azureTenantId?: string;
202
+ }
203
+
204
+ /** Known values of {@link ActionType} that the service accepts. */
205
+ export declare enum KnownActionType {
206
+ /** Internal */
207
+ Internal = "Internal"
208
+ }
209
+
210
+ /** Known values of {@link CreatedByType} that the service accepts. */
211
+ export declare enum KnownCreatedByType {
212
+ /** User */
213
+ User = "User",
214
+ /** Application */
215
+ Application = "Application",
216
+ /** ManagedIdentity */
217
+ ManagedIdentity = "ManagedIdentity",
218
+ /** Key */
219
+ Key = "Key"
220
+ }
221
+
222
+ /** Known values of {@link ManifestType} that the service accepts. */
223
+ export declare enum KnownManifestType {
224
+ /** Repositories using helm */
225
+ Helm = "helm",
226
+ /** Repositories using kubernetes manifests */
227
+ Kube = "kube"
228
+ }
229
+
230
+ /** Known values of {@link Origin} that the service accepts. */
231
+ export declare enum KnownOrigin {
232
+ /** User */
233
+ User = "user",
234
+ /** System */
235
+ System = "system",
236
+ /** UserSystem */
237
+ UserSystem = "user,system"
238
+ }
239
+
240
+ /** Known values of {@link PullRequestStatus} that the service accepts. */
241
+ export declare enum KnownPullRequestStatus {
242
+ /** Pull Request state unknown. */
243
+ Unknown = "unknown",
244
+ /** Pull Request submitted to repository. */
245
+ Submitted = "submitted",
246
+ /** Pull Request merged into repository. */
247
+ Merged = "merged",
248
+ /** Workflow no longer found within repository. */
249
+ Removed = "removed"
250
+ }
251
+
252
+ /** Optional parameters. */
253
+ export declare interface ListGitHubOAuthOptionalParams extends coreClient.OperationOptions {
254
+ }
255
+
256
+ /** Contains response data for the listGitHubOAuth operation. */
257
+ export declare type ListGitHubOAuthResponse = GitHubOAuthListResponse;
258
+
259
+ /**
260
+ * Defines values for ManifestType. \
261
+ * {@link KnownManifestType} can be used interchangeably with ManifestType,
262
+ * this enum contains the known values that the service supports.
263
+ * ### Known values supported by the service
264
+ * **helm**: Repositories using helm \
265
+ * **kube**: Repositories using kubernetes manifests
266
+ */
267
+ export declare type ManifestType = string;
268
+
269
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
270
+ export declare interface Operation {
271
+ /**
272
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
273
+ * NOTE: This property will not be serialized. It can only be populated by the server.
274
+ */
275
+ readonly name?: string;
276
+ /**
277
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
278
+ * NOTE: This property will not be serialized. It can only be populated by the server.
279
+ */
280
+ readonly isDataAction?: boolean;
281
+ /** Localized display information for this particular operation. */
282
+ display?: OperationDisplay;
283
+ /**
284
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
285
+ * NOTE: This property will not be serialized. It can only be populated by the server.
286
+ */
287
+ readonly origin?: Origin;
288
+ /**
289
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
290
+ * NOTE: This property will not be serialized. It can only be populated by the server.
291
+ */
292
+ readonly actionType?: ActionType;
293
+ }
294
+
295
+ /** Localized display information for this particular operation. */
296
+ export declare interface OperationDisplay {
297
+ /**
298
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
299
+ * NOTE: This property will not be serialized. It can only be populated by the server.
300
+ */
301
+ readonly provider?: string;
302
+ /**
303
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
304
+ * NOTE: This property will not be serialized. It can only be populated by the server.
305
+ */
306
+ readonly resource?: string;
307
+ /**
308
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
309
+ * NOTE: This property will not be serialized. It can only be populated by the server.
310
+ */
311
+ readonly operation?: string;
312
+ /**
313
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
314
+ * NOTE: This property will not be serialized. It can only be populated by the server.
315
+ */
316
+ readonly description?: string;
317
+ }
318
+
319
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
320
+ export declare interface OperationListResult {
321
+ /**
322
+ * List of operations supported by the resource provider
323
+ * NOTE: This property will not be serialized. It can only be populated by the server.
324
+ */
325
+ readonly value?: Operation[];
326
+ /**
327
+ * URL to get the next set of operation list results (if there are any).
328
+ * NOTE: This property will not be serialized. It can only be populated by the server.
329
+ */
330
+ readonly nextLink?: string;
331
+ }
332
+
333
+ /** Interface representing a Operations. */
334
+ export declare interface Operations {
335
+ /**
336
+ * Returns list of operations.
337
+ * @param options The options parameters.
338
+ */
339
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
340
+ }
341
+
342
+ /** Optional parameters. */
343
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
344
+ }
345
+
346
+ /** Contains response data for the list operation. */
347
+ export declare type OperationsListResponse = OperationListResult;
348
+
349
+ /**
350
+ * Defines values for Origin. \
351
+ * {@link KnownOrigin} can be used interchangeably with Origin,
352
+ * this enum contains the known values that the service supports.
353
+ * ### Known values supported by the service
354
+ * **user** \
355
+ * **system** \
356
+ * **user,system**
357
+ */
358
+ export declare type Origin = string;
359
+
360
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
361
+ export declare interface ProxyResource extends Resource {
362
+ }
363
+
364
+ /**
365
+ * Defines values for PullRequestStatus. \
366
+ * {@link KnownPullRequestStatus} can be used interchangeably with PullRequestStatus,
367
+ * this enum contains the known values that the service supports.
368
+ * ### Known values supported by the service
369
+ * **unknown**: Pull Request state unknown. \
370
+ * **submitted**: Pull Request submitted to repository. \
371
+ * **merged**: Pull Request merged into repository. \
372
+ * **removed**: Workflow no longer found within repository.
373
+ */
374
+ export declare type PullRequestStatus = string;
375
+
376
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
377
+ export declare interface Resource {
378
+ /**
379
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
380
+ * NOTE: This property will not be serialized. It can only be populated by the server.
381
+ */
382
+ readonly id?: string;
383
+ /**
384
+ * The name of the resource
385
+ * NOTE: This property will not be serialized. It can only be populated by the server.
386
+ */
387
+ readonly name?: string;
388
+ /**
389
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
390
+ * NOTE: This property will not be serialized. It can only be populated by the server.
391
+ */
392
+ readonly type?: string;
393
+ /**
394
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
395
+ * NOTE: This property will not be serialized. It can only be populated by the server.
396
+ */
397
+ readonly systemData?: SystemData;
398
+ }
399
+
400
+ /** Metadata pertaining to creation and last modification of the resource. */
401
+ export declare interface SystemData {
402
+ /** The identity that created the resource. */
403
+ createdBy?: string;
404
+ /** The type of identity that created the resource. */
405
+ createdByType?: CreatedByType;
406
+ /** The timestamp of resource creation (UTC). */
407
+ createdAt?: Date;
408
+ /** The identity that last modified the resource. */
409
+ lastModifiedBy?: string;
410
+ /** The type of identity that last modified the resource. */
411
+ lastModifiedByType?: CreatedByType;
412
+ /** The timestamp of resource last modification (UTC) */
413
+ lastModifiedAt?: Date;
414
+ }
415
+
416
+ /** Resource tags. */
417
+ export declare interface TagsObject {
418
+ /** Dictionary of <string> */
419
+ tags?: {
420
+ [propertyName: string]: string;
421
+ };
422
+ }
423
+
424
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
425
+ export declare interface TrackedResource extends Resource {
426
+ /** Resource tags. */
427
+ tags?: {
428
+ [propertyName: string]: string;
429
+ };
430
+ /** The geo-location where the resource lives */
431
+ location: string;
432
+ }
433
+
434
+ /** Resource representation of a workflow */
435
+ export declare interface Workflow extends TrackedResource {
436
+ /** Repository Owner */
437
+ repositoryOwner?: string;
438
+ /** Repository Name */
439
+ repositoryName?: string;
440
+ /** Repository Branch Name */
441
+ branchName?: string;
442
+ /** Path to the Dockerfile within the repository. */
443
+ dockerfile?: string;
444
+ /** Path to Dockerfile Build Context within the repository. */
445
+ dockerBuildContext?: string;
446
+ deploymentProperties?: DeploymentProperties;
447
+ /** Kubernetes namespace the application is deployed to. */
448
+ namespace?: string;
449
+ /** Information on the azure container registry */
450
+ acr?: Acr;
451
+ /** The fields needed for OIDC with GitHub. */
452
+ oidcCredentials?: GitHubWorkflowProfileOidcCredentials;
453
+ /** The Azure Kubernetes Cluster Resource the application will be deployed to. */
454
+ aksResourceId?: string;
455
+ /**
456
+ * The URL to the Pull Request submitted against the users repository.
457
+ * NOTE: This property will not be serialized. It can only be populated by the server.
458
+ */
459
+ readonly prURL?: string;
460
+ /**
461
+ * The number associated with the submitted pull request.
462
+ * NOTE: This property will not be serialized. It can only be populated by the server.
463
+ */
464
+ readonly pullNumber?: number;
465
+ /**
466
+ * The status of the Pull Request submitted against the users repository.
467
+ * NOTE: This property will not be serialized. It can only be populated by the server.
468
+ */
469
+ readonly prStatus?: PullRequestStatus;
470
+ lastWorkflowRun?: WorkflowRun;
471
+ /** Determines the type of manifests within the repository. */
472
+ authStatus?: ManifestType;
473
+ }
474
+
475
+ /** Optional parameters. */
476
+ export declare interface WorkflowCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
477
+ }
478
+
479
+ /** Contains response data for the createOrUpdate operation. */
480
+ export declare type WorkflowCreateOrUpdateResponse = Workflow;
481
+
482
+ /** Optional parameters. */
483
+ export declare interface WorkflowDeleteOptionalParams extends coreClient.OperationOptions {
484
+ }
485
+
486
+ /** Contains response data for the delete operation. */
487
+ export declare type WorkflowDeleteResponse = DeleteWorkflowResponse;
488
+
489
+ /** Optional parameters. */
490
+ export declare interface WorkflowGetOptionalParams extends coreClient.OperationOptions {
491
+ }
492
+
493
+ /** Contains response data for the get operation. */
494
+ export declare type WorkflowGetResponse = Workflow;
495
+
496
+ /** Optional parameters. */
497
+ export declare interface WorkflowListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
498
+ /** The ManagedCluster resource associated with the workflows. */
499
+ managedClusterResource?: string;
500
+ }
501
+
502
+ /** Contains response data for the listByResourceGroupNext operation. */
503
+ export declare type WorkflowListByResourceGroupNextResponse = WorkflowListResult;
504
+
505
+ /** Optional parameters. */
506
+ export declare interface WorkflowListByResourceGroupOptionalParams extends coreClient.OperationOptions {
507
+ /** The ManagedCluster resource associated with the workflows. */
508
+ managedClusterResource?: string;
509
+ }
510
+
511
+ /** Contains response data for the listByResourceGroup operation. */
512
+ export declare type WorkflowListByResourceGroupResponse = WorkflowListResult;
513
+
514
+ /** Optional parameters. */
515
+ export declare interface WorkflowListNextOptionalParams extends coreClient.OperationOptions {
516
+ }
517
+
518
+ /** Contains response data for the listNext operation. */
519
+ export declare type WorkflowListNextResponse = WorkflowListResult;
520
+
521
+ /** Optional parameters. */
522
+ export declare interface WorkflowListOptionalParams extends coreClient.OperationOptions {
523
+ }
524
+
525
+ /** Contains response data for the list operation. */
526
+ export declare type WorkflowListResponse = WorkflowListResult;
527
+
528
+ /** The response from List Workflows operation. */
529
+ export declare interface WorkflowListResult {
530
+ /** The list of workflows. */
531
+ value?: Workflow[];
532
+ /**
533
+ * The URL to the next set of workflow results.
534
+ * NOTE: This property will not be serialized. It can only be populated by the server.
535
+ */
536
+ readonly nextLink?: string;
537
+ }
538
+
539
+ /** Interface representing a WorkflowOperations. */
540
+ export declare interface WorkflowOperations {
541
+ /**
542
+ * Gets a list of workflows associated with the specified subscription.
543
+ * @param options The options parameters.
544
+ */
545
+ list(options?: WorkflowListOptionalParams): PagedAsyncIterableIterator<Workflow>;
546
+ /**
547
+ * Gets a list of workflows within a resource group.
548
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
549
+ * @param options The options parameters.
550
+ */
551
+ listByResourceGroup(resourceGroupName: string, options?: WorkflowListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workflow>;
552
+ /**
553
+ * Gets a workflow.
554
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
555
+ * @param workflowName The name of the workflow resource.
556
+ * @param options The options parameters.
557
+ */
558
+ get(resourceGroupName: string, workflowName: string, options?: WorkflowGetOptionalParams): Promise<WorkflowGetResponse>;
559
+ /**
560
+ * Creates or updates a workflow
561
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
562
+ * @param workflowName The name of the workflow resource.
563
+ * @param parameters Resource representation of a workflow
564
+ * @param options The options parameters.
565
+ */
566
+ createOrUpdate(resourceGroupName: string, workflowName: string, parameters: Workflow, options?: WorkflowCreateOrUpdateOptionalParams): Promise<WorkflowCreateOrUpdateResponse>;
567
+ /**
568
+ * Deletes a workflow
569
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
570
+ * @param workflowName The name of the workflow resource.
571
+ * @param options The options parameters.
572
+ */
573
+ delete(resourceGroupName: string, workflowName: string, options?: WorkflowDeleteOptionalParams): Promise<WorkflowDeleteResponse>;
574
+ /**
575
+ * Updates tags on a workflow.
576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
577
+ * @param workflowName The name of the workflow resource.
578
+ * @param parameters Parameters supplied to the Update Workflow Tags operation.
579
+ * @param options The options parameters.
580
+ */
581
+ updateTags(resourceGroupName: string, workflowName: string, parameters: TagsObject, options?: WorkflowUpdateTagsOptionalParams): Promise<WorkflowUpdateTagsResponse>;
582
+ }
583
+
584
+ export declare interface WorkflowRun {
585
+ /**
586
+ * Describes if the workflow run succeeded.
587
+ * NOTE: This property will not be serialized. It can only be populated by the server.
588
+ */
589
+ readonly succeeded?: boolean;
590
+ /**
591
+ * URL to the run of the workflow.
592
+ * NOTE: This property will not be serialized. It can only be populated by the server.
593
+ */
594
+ readonly workflowRunURL?: string;
595
+ /**
596
+ * The timestamp of the last workflow run.
597
+ * NOTE: This property will not be serialized. It can only be populated by the server.
598
+ */
599
+ readonly lastRunAt?: Date;
600
+ }
601
+
602
+ /** Optional parameters. */
603
+ export declare interface WorkflowUpdateTagsOptionalParams extends coreClient.OperationOptions {
604
+ }
605
+
606
+ /** Contains response data for the updateTags operation. */
607
+ export declare type WorkflowUpdateTagsResponse = Workflow;
608
+
609
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.32.0"
9
+ }
10
+ ]
11
+ }