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