@azure/arm-devhub 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/LICENSE +1 -1
- package/dist/index.js +375 -41
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.d.ts +2 -0
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.js +51 -0
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.js.map +1 -0
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js +10 -3
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js.map +1 -1
- package/dist-esm/samples-dev/gitHubOAuthSample.js +10 -3
- package/dist-esm/samples-dev/gitHubOAuthSample.js.map +1 -1
- package/dist-esm/samples-dev/listGitHubOAuthSample.js +10 -3
- package/dist-esm/samples-dev/listGitHubOAuthSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js +67 -4
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowDeleteSample.js +11 -4
- package/dist-esm/samples-dev/workflowDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowGetSample.js +11 -4
- package/dist-esm/samples-dev/workflowGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.js +23 -9
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowListSample.js +22 -8
- package/dist-esm/samples-dev/workflowListSample.js.map +1 -1
- package/dist-esm/samples-dev/workflowUpdateTagsSample.js +11 -4
- package/dist-esm/samples-dev/workflowUpdateTagsSample.js.map +1 -1
- package/dist-esm/src/developerHubServiceClient.d.ts +8 -1
- package/dist-esm/src/developerHubServiceClient.d.ts.map +1 -1
- package/dist-esm/src/developerHubServiceClient.js +38 -8
- package/dist-esm/src/developerHubServiceClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +222 -22
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +74 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +160 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +8 -4
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/workflowOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowOperations.js +63 -28
- package/dist-esm/src/operations/workflowOperations.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/devhub_examples.spec.js +12 -5
- package/dist-esm/test/devhub_examples.spec.js.map +1 -1
- package/package.json +12 -11
- package/review/arm-devhub.api.md +113 -3
- package/src/developerHubServiceClient.ts +52 -8
- package/src/index.ts +1 -0
- package/src/models/index.ts +221 -7
- package/src/models/mappers.ts +180 -1
- package/src/models/parameters.ts +9 -3
- package/src/operations/workflowOperations.ts +47 -20
- package/src/pagingHelper.ts +39 -0
- package/types/arm-devhub.d.ts +236 -5
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1 +1 @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Ae,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YACxG,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;QAC7B,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,oBAAoB,EAAE;;;YACvB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAA5D,cAA4D;oBAA5D,WAA4D;;wBAAxE,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for DeveloperHubServiceClient.",
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.3",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.7.0",
|
|
13
13
|
"@azure/core-auth": "^1.3.0",
|
|
14
14
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
15
|
"tslib": "^2.2.0"
|
|
@@ -27,27 +27,27 @@
|
|
|
27
27
|
"types": "./types/arm-devhub.d.ts",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.31.1",
|
|
30
|
-
"@rollup/plugin-commonjs": "^
|
|
31
|
-
"@rollup/plugin-json": "^
|
|
32
|
-
"@rollup/plugin-multi-entry": "^
|
|
30
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
31
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
32
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
33
33
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
34
|
-
"mkdirp": "^1.
|
|
34
|
+
"mkdirp": "^2.1.2",
|
|
35
35
|
"rollup": "^2.66.1",
|
|
36
36
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
|
-
"typescript": "~
|
|
37
|
+
"typescript": "~5.0.0",
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
40
|
+
"dotenv": "^16.0.0",
|
|
40
41
|
"@azure/identity": "^2.0.1",
|
|
41
|
-
"@azure-tools/test-recorder": "^
|
|
42
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
42
43
|
"@azure-tools/test-credential": "^1.0.0",
|
|
43
44
|
"mocha": "^7.1.1",
|
|
44
45
|
"@types/chai": "^4.2.8",
|
|
45
|
-
"@types/node": "^14.0.0",
|
|
46
46
|
"chai": "^4.2.0",
|
|
47
47
|
"cross-env": "^7.0.2",
|
|
48
|
+
"@types/node": "^14.0.0",
|
|
48
49
|
"@azure/dev-tool": "^1.0.0"
|
|
49
50
|
},
|
|
50
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devhub/arm-devhub",
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|
|
53
53
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"autoPublish": true,
|
|
112
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devhub/arm-devhub",
|
|
112
113
|
"//sampleConfiguration": {
|
|
113
114
|
"productName": "",
|
|
114
115
|
"productSlugs": [
|
|
@@ -117,4 +118,4 @@
|
|
|
117
118
|
"disableDocsMs": true,
|
|
118
119
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-devhub?view=azure-node-preview"
|
|
119
120
|
}
|
|
120
|
-
}
|
|
121
|
+
}
|
package/review/arm-devhub.api.md
CHANGED
|
@@ -19,6 +19,26 @@ export interface Acr {
|
|
|
19
19
|
// @public
|
|
20
20
|
export type ActionType = string;
|
|
21
21
|
|
|
22
|
+
// @public
|
|
23
|
+
export interface ArtifactGenerationProperties {
|
|
24
|
+
appName?: string;
|
|
25
|
+
builderVersion?: string;
|
|
26
|
+
dockerfileGenerationMode?: DockerfileGenerationMode;
|
|
27
|
+
dockerfileOutputDirectory?: string;
|
|
28
|
+
generationLanguage?: GenerationLanguage;
|
|
29
|
+
imageName?: string;
|
|
30
|
+
imageTag?: string;
|
|
31
|
+
languageVersion?: string;
|
|
32
|
+
manifestGenerationMode?: ManifestGenerationMode;
|
|
33
|
+
manifestOutputDirectory?: string;
|
|
34
|
+
manifestType?: GenerationManifestType;
|
|
35
|
+
namespace?: string;
|
|
36
|
+
port?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public
|
|
40
|
+
export type AuthorizationStatus = string;
|
|
41
|
+
|
|
22
42
|
// @public
|
|
23
43
|
export type CreatedByType = string;
|
|
24
44
|
|
|
@@ -46,6 +66,7 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
46
66
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DeveloperHubServiceClientOptionalParams);
|
|
47
67
|
// (undocumented)
|
|
48
68
|
apiVersion: string;
|
|
69
|
+
generatePreviewArtifacts(location: string, parameters: ArtifactGenerationProperties, options?: GeneratePreviewArtifactsOptionalParams): Promise<GeneratePreviewArtifactsResponse>;
|
|
49
70
|
gitHubOAuth(location: string, options?: GitHubOAuthOptionalParams): Promise<GitHubOAuthOperationResponse>;
|
|
50
71
|
gitHubOAuthCallback(location: string, code: string, state: string, options?: GitHubOAuthCallbackOptionalParams): Promise<GitHubOAuthCallbackResponse>;
|
|
51
72
|
listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<ListGitHubOAuthResponse>;
|
|
@@ -64,6 +85,9 @@ export interface DeveloperHubServiceClientOptionalParams extends coreClient.Serv
|
|
|
64
85
|
endpoint?: string;
|
|
65
86
|
}
|
|
66
87
|
|
|
88
|
+
// @public
|
|
89
|
+
export type DockerfileGenerationMode = string;
|
|
90
|
+
|
|
67
91
|
// @public
|
|
68
92
|
export interface ErrorAdditionalInfo {
|
|
69
93
|
readonly info?: Record<string, unknown>;
|
|
@@ -84,6 +108,24 @@ export interface ErrorResponse {
|
|
|
84
108
|
error?: ErrorDetail;
|
|
85
109
|
}
|
|
86
110
|
|
|
111
|
+
// @public
|
|
112
|
+
export interface GeneratePreviewArtifactsOptionalParams extends coreClient.OperationOptions {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// @public
|
|
116
|
+
export type GeneratePreviewArtifactsResponse = {
|
|
117
|
+
[propertyName: string]: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export type GenerationLanguage = string;
|
|
122
|
+
|
|
123
|
+
// @public
|
|
124
|
+
export type GenerationManifestType = string;
|
|
125
|
+
|
|
126
|
+
// @public
|
|
127
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
128
|
+
|
|
87
129
|
// @public
|
|
88
130
|
export interface GitHubOAuthCallbackOptionalParams extends coreClient.OperationOptions {
|
|
89
131
|
}
|
|
@@ -131,6 +173,13 @@ export enum KnownActionType {
|
|
|
131
173
|
Internal = "Internal"
|
|
132
174
|
}
|
|
133
175
|
|
|
176
|
+
// @public
|
|
177
|
+
export enum KnownAuthorizationStatus {
|
|
178
|
+
Authorized = "Authorized",
|
|
179
|
+
Error = "Error",
|
|
180
|
+
NotFound = "NotFound"
|
|
181
|
+
}
|
|
182
|
+
|
|
134
183
|
// @public
|
|
135
184
|
export enum KnownCreatedByType {
|
|
136
185
|
Application = "Application",
|
|
@@ -139,6 +188,41 @@ export enum KnownCreatedByType {
|
|
|
139
188
|
User = "User"
|
|
140
189
|
}
|
|
141
190
|
|
|
191
|
+
// @public
|
|
192
|
+
export enum KnownDockerfileGenerationMode {
|
|
193
|
+
Disabled = "disabled",
|
|
194
|
+
Enabled = "enabled"
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// @public
|
|
198
|
+
export enum KnownGenerationLanguage {
|
|
199
|
+
Clojure = "clojure",
|
|
200
|
+
Csharp = "csharp",
|
|
201
|
+
Erlang = "erlang",
|
|
202
|
+
Go = "go",
|
|
203
|
+
Gomodule = "gomodule",
|
|
204
|
+
Gradle = "gradle",
|
|
205
|
+
Java = "java",
|
|
206
|
+
Javascript = "javascript",
|
|
207
|
+
Php = "php",
|
|
208
|
+
Python = "python",
|
|
209
|
+
Ruby = "ruby",
|
|
210
|
+
Rust = "rust",
|
|
211
|
+
Swift = "swift"
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// @public
|
|
215
|
+
export enum KnownGenerationManifestType {
|
|
216
|
+
Helm = "helm",
|
|
217
|
+
Kube = "kube"
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// @public
|
|
221
|
+
export enum KnownManifestGenerationMode {
|
|
222
|
+
Disabled = "disabled",
|
|
223
|
+
Enabled = "enabled"
|
|
224
|
+
}
|
|
225
|
+
|
|
142
226
|
// @public
|
|
143
227
|
export enum KnownManifestType {
|
|
144
228
|
Helm = "helm",
|
|
@@ -160,6 +244,13 @@ export enum KnownPullRequestStatus {
|
|
|
160
244
|
Unknown = "unknown"
|
|
161
245
|
}
|
|
162
246
|
|
|
247
|
+
// @public
|
|
248
|
+
export enum KnownWorkflowRunStatus {
|
|
249
|
+
Completed = "completed",
|
|
250
|
+
Inprogress = "inprogress",
|
|
251
|
+
Queued = "queued"
|
|
252
|
+
}
|
|
253
|
+
|
|
163
254
|
// @public
|
|
164
255
|
export interface ListGitHubOAuthOptionalParams extends coreClient.OperationOptions {
|
|
165
256
|
}
|
|
@@ -167,6 +258,9 @@ export interface ListGitHubOAuthOptionalParams extends coreClient.OperationOptio
|
|
|
167
258
|
// @public
|
|
168
259
|
export type ListGitHubOAuthResponse = GitHubOAuthListResponse;
|
|
169
260
|
|
|
261
|
+
// @public
|
|
262
|
+
export type ManifestGenerationMode = string;
|
|
263
|
+
|
|
170
264
|
// @public
|
|
171
265
|
export type ManifestType = string;
|
|
172
266
|
|
|
@@ -252,16 +346,29 @@ export interface TrackedResource extends Resource {
|
|
|
252
346
|
export interface Workflow extends TrackedResource {
|
|
253
347
|
acr?: Acr;
|
|
254
348
|
aksResourceId?: string;
|
|
255
|
-
|
|
349
|
+
appName?: string;
|
|
350
|
+
readonly authStatus?: AuthorizationStatus;
|
|
256
351
|
branchName?: string;
|
|
352
|
+
builderVersion?: string;
|
|
257
353
|
// (undocumented)
|
|
258
354
|
deploymentProperties?: DeploymentProperties;
|
|
259
355
|
dockerBuildContext?: string;
|
|
260
356
|
dockerfile?: string;
|
|
357
|
+
dockerfileGenerationMode?: DockerfileGenerationMode;
|
|
358
|
+
dockerfileOutputDirectory?: string;
|
|
359
|
+
generationLanguage?: GenerationLanguage;
|
|
360
|
+
imageName?: string;
|
|
361
|
+
imageTag?: string;
|
|
362
|
+
languageVersion?: string;
|
|
261
363
|
// (undocumented)
|
|
262
364
|
lastWorkflowRun?: WorkflowRun;
|
|
263
|
-
|
|
365
|
+
manifestGenerationMode?: ManifestGenerationMode;
|
|
366
|
+
manifestOutputDirectory?: string;
|
|
367
|
+
manifestType?: GenerationManifestType;
|
|
368
|
+
namespacePropertiesArtifactGenerationPropertiesNamespace?: string;
|
|
369
|
+
namespacePropertiesGithubWorkflowProfileNamespace?: string;
|
|
264
370
|
oidcCredentials?: GitHubWorkflowProfileOidcCredentials;
|
|
371
|
+
port?: string;
|
|
265
372
|
readonly prStatus?: PullRequestStatus;
|
|
266
373
|
readonly prURL?: string;
|
|
267
374
|
readonly pullNumber?: number;
|
|
@@ -292,7 +399,6 @@ export type WorkflowGetResponse = Workflow;
|
|
|
292
399
|
|
|
293
400
|
// @public
|
|
294
401
|
export interface WorkflowListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
295
|
-
managedClusterResource?: string;
|
|
296
402
|
}
|
|
297
403
|
|
|
298
404
|
// @public
|
|
@@ -340,9 +446,13 @@ export interface WorkflowOperations {
|
|
|
340
446
|
export interface WorkflowRun {
|
|
341
447
|
readonly lastRunAt?: Date;
|
|
342
448
|
readonly succeeded?: boolean;
|
|
449
|
+
workflowRunStatus?: WorkflowRunStatus;
|
|
343
450
|
readonly workflowRunURL?: string;
|
|
344
451
|
}
|
|
345
452
|
|
|
453
|
+
// @public
|
|
454
|
+
export type WorkflowRunStatus = string;
|
|
455
|
+
|
|
346
456
|
// @public
|
|
347
457
|
export interface WorkflowUpdateTagsOptionalParams extends coreClient.OperationOptions {
|
|
348
458
|
}
|
|
@@ -25,7 +25,10 @@ import {
|
|
|
25
25
|
GitHubOAuthCallbackOptionalParams,
|
|
26
26
|
GitHubOAuthCallbackResponse,
|
|
27
27
|
ListGitHubOAuthOptionalParams,
|
|
28
|
-
ListGitHubOAuthResponse
|
|
28
|
+
ListGitHubOAuthResponse,
|
|
29
|
+
ArtifactGenerationProperties,
|
|
30
|
+
GeneratePreviewArtifactsOptionalParams,
|
|
31
|
+
GeneratePreviewArtifactsResponse
|
|
29
32
|
} from "./models";
|
|
30
33
|
|
|
31
34
|
export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
@@ -60,22 +63,19 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
60
63
|
credential: credentials
|
|
61
64
|
};
|
|
62
65
|
|
|
63
|
-
const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.
|
|
66
|
+
const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.3`;
|
|
64
67
|
const userAgentPrefix =
|
|
65
68
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
66
69
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
67
70
|
: `${packageDetails}`;
|
|
68
71
|
|
|
69
|
-
if (!options.credentialScopes) {
|
|
70
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
71
|
-
}
|
|
72
72
|
const optionsWithDefaults = {
|
|
73
73
|
...defaults,
|
|
74
74
|
...options,
|
|
75
75
|
userAgentOptions: {
|
|
76
76
|
userAgentPrefix
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
endpoint:
|
|
79
79
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
80
80
|
};
|
|
81
81
|
super(optionsWithDefaults);
|
|
@@ -101,7 +101,9 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
101
101
|
this.pipeline.addPolicy(
|
|
102
102
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
103
103
|
credential: credentials,
|
|
104
|
-
scopes:
|
|
104
|
+
scopes:
|
|
105
|
+
optionsWithDefaults.credentialScopes ??
|
|
106
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
105
107
|
challengeCallbacks: {
|
|
106
108
|
authorizeRequestOnChallenge:
|
|
107
109
|
coreClient.authorizeRequestOnClaimChallenge
|
|
@@ -114,7 +116,7 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
114
116
|
|
|
115
117
|
// Assigning values to Constant parameters
|
|
116
118
|
this.$host = options.$host || "https://management.azure.com";
|
|
117
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
119
|
+
this.apiVersion = options.apiVersion || "2022-10-11-preview";
|
|
118
120
|
this.operations = new OperationsImpl(this);
|
|
119
121
|
this.workflowOperations = new WorkflowOperationsImpl(this);
|
|
120
122
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
@@ -197,6 +199,23 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
197
199
|
);
|
|
198
200
|
}
|
|
199
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Generate preview dockerfile and manifests.
|
|
204
|
+
* @param location The name of Azure region.
|
|
205
|
+
* @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
generatePreviewArtifacts(
|
|
209
|
+
location: string,
|
|
210
|
+
parameters: ArtifactGenerationProperties,
|
|
211
|
+
options?: GeneratePreviewArtifactsOptionalParams
|
|
212
|
+
): Promise<GeneratePreviewArtifactsResponse> {
|
|
213
|
+
return this.sendOperationRequest(
|
|
214
|
+
{ location, parameters, options },
|
|
215
|
+
generatePreviewArtifactsOperationSpec
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
200
219
|
operations: Operations;
|
|
201
220
|
workflowOperations: WorkflowOperations;
|
|
202
221
|
}
|
|
@@ -268,3 +287,28 @@ const listGitHubOAuthOperationSpec: coreClient.OperationSpec = {
|
|
|
268
287
|
headerParameters: [Parameters.accept],
|
|
269
288
|
serializer
|
|
270
289
|
};
|
|
290
|
+
const generatePreviewArtifactsOperationSpec: coreClient.OperationSpec = {
|
|
291
|
+
path:
|
|
292
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/generatePreviewArtifacts",
|
|
293
|
+
httpMethod: "POST",
|
|
294
|
+
responses: {
|
|
295
|
+
200: {
|
|
296
|
+
bodyMapper: {
|
|
297
|
+
type: { name: "Dictionary", value: { type: { name: "String" } } }
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.ErrorResponse
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
requestBody: Parameters.parameters1,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.location
|
|
310
|
+
],
|
|
311
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
312
|
+
mediaType: "json",
|
|
313
|
+
serializer
|
|
314
|
+
};
|
package/src/index.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -240,6 +240,38 @@ export interface WorkflowRun {
|
|
|
240
240
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
241
241
|
*/
|
|
242
242
|
readonly lastRunAt?: Date;
|
|
243
|
+
/** Describes the status of the workflow run */
|
|
244
|
+
workflowRunStatus?: WorkflowRunStatus;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** Properties used for generating artifacts such as Dockerfiles and manifests. */
|
|
248
|
+
export interface ArtifactGenerationProperties {
|
|
249
|
+
/** The programming language used. */
|
|
250
|
+
generationLanguage?: GenerationLanguage;
|
|
251
|
+
/** The version of the language image used for execution in the generated dockerfile. */
|
|
252
|
+
languageVersion?: string;
|
|
253
|
+
/** The version of the language image used for building the code in the generated dockerfile. */
|
|
254
|
+
builderVersion?: string;
|
|
255
|
+
/** The port the application is exposed on. */
|
|
256
|
+
port?: string;
|
|
257
|
+
/** The name of the app. */
|
|
258
|
+
appName?: string;
|
|
259
|
+
/** The directory to output the generated Dockerfile to. */
|
|
260
|
+
dockerfileOutputDirectory?: string;
|
|
261
|
+
/** The directory to output the generated manifests to. */
|
|
262
|
+
manifestOutputDirectory?: string;
|
|
263
|
+
/** The mode of generation to be used for generating Dockerfiles. */
|
|
264
|
+
dockerfileGenerationMode?: DockerfileGenerationMode;
|
|
265
|
+
/** The mode of generation to be used for generating Manifest. */
|
|
266
|
+
manifestGenerationMode?: ManifestGenerationMode;
|
|
267
|
+
/** Determines the type of manifests to be generated. */
|
|
268
|
+
manifestType?: GenerationManifestType;
|
|
269
|
+
/** The name of the image to be generated. */
|
|
270
|
+
imageName?: string;
|
|
271
|
+
/** The namespace to deploy the application to. */
|
|
272
|
+
namespace?: string;
|
|
273
|
+
/** The tag to apply to the generated image. */
|
|
274
|
+
imageTag?: string;
|
|
243
275
|
}
|
|
244
276
|
|
|
245
277
|
/** delete response if content must be provided on delete operation */
|
|
@@ -273,6 +305,32 @@ export interface GitHubOAuthResponse extends ProxyResource {
|
|
|
273
305
|
|
|
274
306
|
/** Resource representation of a workflow */
|
|
275
307
|
export interface Workflow extends TrackedResource {
|
|
308
|
+
/** The programming language used. */
|
|
309
|
+
generationLanguage?: GenerationLanguage;
|
|
310
|
+
/** The version of the language image used for execution in the generated dockerfile. */
|
|
311
|
+
languageVersion?: string;
|
|
312
|
+
/** The version of the language image used for building the code in the generated dockerfile. */
|
|
313
|
+
builderVersion?: string;
|
|
314
|
+
/** The port the application is exposed on. */
|
|
315
|
+
port?: string;
|
|
316
|
+
/** The name of the app. */
|
|
317
|
+
appName?: string;
|
|
318
|
+
/** The directory to output the generated Dockerfile to. */
|
|
319
|
+
dockerfileOutputDirectory?: string;
|
|
320
|
+
/** The directory to output the generated manifests to. */
|
|
321
|
+
manifestOutputDirectory?: string;
|
|
322
|
+
/** The mode of generation to be used for generating Dockerfiles. */
|
|
323
|
+
dockerfileGenerationMode?: DockerfileGenerationMode;
|
|
324
|
+
/** The mode of generation to be used for generating Manifest. */
|
|
325
|
+
manifestGenerationMode?: ManifestGenerationMode;
|
|
326
|
+
/** Determines the type of manifests to be generated. */
|
|
327
|
+
manifestType?: GenerationManifestType;
|
|
328
|
+
/** The name of the image to be generated. */
|
|
329
|
+
imageName?: string;
|
|
330
|
+
/** The namespace to deploy the application to. */
|
|
331
|
+
namespacePropertiesArtifactGenerationPropertiesNamespace?: string;
|
|
332
|
+
/** The tag to apply to the generated image. */
|
|
333
|
+
imageTag?: string;
|
|
276
334
|
/** Repository Owner */
|
|
277
335
|
repositoryOwner?: string;
|
|
278
336
|
/** Repository Name */
|
|
@@ -285,7 +343,7 @@ export interface Workflow extends TrackedResource {
|
|
|
285
343
|
dockerBuildContext?: string;
|
|
286
344
|
deploymentProperties?: DeploymentProperties;
|
|
287
345
|
/** Kubernetes namespace the application is deployed to. */
|
|
288
|
-
|
|
346
|
+
namespacePropertiesGithubWorkflowProfileNamespace?: string;
|
|
289
347
|
/** Information on the azure container registry */
|
|
290
348
|
acr?: Acr;
|
|
291
349
|
/** The fields needed for OIDC with GitHub. */
|
|
@@ -308,8 +366,11 @@ export interface Workflow extends TrackedResource {
|
|
|
308
366
|
*/
|
|
309
367
|
readonly prStatus?: PullRequestStatus;
|
|
310
368
|
lastWorkflowRun?: WorkflowRun;
|
|
311
|
-
/**
|
|
312
|
-
|
|
369
|
+
/**
|
|
370
|
+
* Determines the authorization status of requests.
|
|
371
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
372
|
+
*/
|
|
373
|
+
readonly authStatus?: AuthorizationStatus;
|
|
313
374
|
}
|
|
314
375
|
|
|
315
376
|
/** Known values of {@link Origin} that the service accepts. */
|
|
@@ -414,6 +475,153 @@ export enum KnownPullRequestStatus {
|
|
|
414
475
|
*/
|
|
415
476
|
export type PullRequestStatus = string;
|
|
416
477
|
|
|
478
|
+
/** Known values of {@link WorkflowRunStatus} that the service accepts. */
|
|
479
|
+
export enum KnownWorkflowRunStatus {
|
|
480
|
+
/** Workflow run is queued */
|
|
481
|
+
Queued = "queued",
|
|
482
|
+
/** Workflow run is inprogress */
|
|
483
|
+
Inprogress = "inprogress",
|
|
484
|
+
/** Workflow run is completed */
|
|
485
|
+
Completed = "completed"
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Defines values for WorkflowRunStatus. \
|
|
490
|
+
* {@link KnownWorkflowRunStatus} can be used interchangeably with WorkflowRunStatus,
|
|
491
|
+
* this enum contains the known values that the service supports.
|
|
492
|
+
* ### Known values supported by the service
|
|
493
|
+
* **queued**: Workflow run is queued \
|
|
494
|
+
* **inprogress**: Workflow run is inprogress \
|
|
495
|
+
* **completed**: Workflow run is completed
|
|
496
|
+
*/
|
|
497
|
+
export type WorkflowRunStatus = string;
|
|
498
|
+
|
|
499
|
+
/** Known values of {@link AuthorizationStatus} that the service accepts. */
|
|
500
|
+
export enum KnownAuthorizationStatus {
|
|
501
|
+
/** Requests authorized successfully */
|
|
502
|
+
Authorized = "Authorized",
|
|
503
|
+
/** Requests returned NotFound response */
|
|
504
|
+
NotFound = "NotFound",
|
|
505
|
+
/** Requests returned other error response */
|
|
506
|
+
Error = "Error"
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Defines values for AuthorizationStatus. \
|
|
511
|
+
* {@link KnownAuthorizationStatus} can be used interchangeably with AuthorizationStatus,
|
|
512
|
+
* this enum contains the known values that the service supports.
|
|
513
|
+
* ### Known values supported by the service
|
|
514
|
+
* **Authorized**: Requests authorized successfully \
|
|
515
|
+
* **NotFound**: Requests returned NotFound response \
|
|
516
|
+
* **Error**: Requests returned other error response
|
|
517
|
+
*/
|
|
518
|
+
export type AuthorizationStatus = string;
|
|
519
|
+
|
|
520
|
+
/** Known values of {@link GenerationLanguage} that the service accepts. */
|
|
521
|
+
export enum KnownGenerationLanguage {
|
|
522
|
+
/** clojure language */
|
|
523
|
+
Clojure = "clojure",
|
|
524
|
+
/** csharp language */
|
|
525
|
+
Csharp = "csharp",
|
|
526
|
+
/** erlang language */
|
|
527
|
+
Erlang = "erlang",
|
|
528
|
+
/** go language */
|
|
529
|
+
Go = "go",
|
|
530
|
+
/** gomodule language */
|
|
531
|
+
Gomodule = "gomodule",
|
|
532
|
+
/** gradle language */
|
|
533
|
+
Gradle = "gradle",
|
|
534
|
+
/** java language */
|
|
535
|
+
Java = "java",
|
|
536
|
+
/** javascript language */
|
|
537
|
+
Javascript = "javascript",
|
|
538
|
+
/** php language */
|
|
539
|
+
Php = "php",
|
|
540
|
+
/** python language */
|
|
541
|
+
Python = "python",
|
|
542
|
+
/** ruby language */
|
|
543
|
+
Ruby = "ruby",
|
|
544
|
+
/** rust language */
|
|
545
|
+
Rust = "rust",
|
|
546
|
+
/** swift language */
|
|
547
|
+
Swift = "swift"
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Defines values for GenerationLanguage. \
|
|
552
|
+
* {@link KnownGenerationLanguage} can be used interchangeably with GenerationLanguage,
|
|
553
|
+
* this enum contains the known values that the service supports.
|
|
554
|
+
* ### Known values supported by the service
|
|
555
|
+
* **clojure**: clojure language \
|
|
556
|
+
* **csharp**: csharp language \
|
|
557
|
+
* **erlang**: erlang language \
|
|
558
|
+
* **go**: go language \
|
|
559
|
+
* **gomodule**: gomodule language \
|
|
560
|
+
* **gradle**: gradle language \
|
|
561
|
+
* **java**: java language \
|
|
562
|
+
* **javascript**: javascript language \
|
|
563
|
+
* **php**: php language \
|
|
564
|
+
* **python**: python language \
|
|
565
|
+
* **ruby**: ruby language \
|
|
566
|
+
* **rust**: rust language \
|
|
567
|
+
* **swift**: swift language
|
|
568
|
+
*/
|
|
569
|
+
export type GenerationLanguage = string;
|
|
570
|
+
|
|
571
|
+
/** Known values of {@link DockerfileGenerationMode} that the service accepts. */
|
|
572
|
+
export enum KnownDockerfileGenerationMode {
|
|
573
|
+
/** Dockerfiles will be generated */
|
|
574
|
+
Enabled = "enabled",
|
|
575
|
+
/** Dockerfiles will not be generated */
|
|
576
|
+
Disabled = "disabled"
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Defines values for DockerfileGenerationMode. \
|
|
581
|
+
* {@link KnownDockerfileGenerationMode} can be used interchangeably with DockerfileGenerationMode,
|
|
582
|
+
* this enum contains the known values that the service supports.
|
|
583
|
+
* ### Known values supported by the service
|
|
584
|
+
* **enabled**: Dockerfiles will be generated \
|
|
585
|
+
* **disabled**: Dockerfiles will not be generated
|
|
586
|
+
*/
|
|
587
|
+
export type DockerfileGenerationMode = string;
|
|
588
|
+
|
|
589
|
+
/** Known values of {@link ManifestGenerationMode} that the service accepts. */
|
|
590
|
+
export enum KnownManifestGenerationMode {
|
|
591
|
+
/** Manifests will be generated */
|
|
592
|
+
Enabled = "enabled",
|
|
593
|
+
/** Manifests will not be generated */
|
|
594
|
+
Disabled = "disabled"
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Defines values for ManifestGenerationMode. \
|
|
599
|
+
* {@link KnownManifestGenerationMode} can be used interchangeably with ManifestGenerationMode,
|
|
600
|
+
* this enum contains the known values that the service supports.
|
|
601
|
+
* ### Known values supported by the service
|
|
602
|
+
* **enabled**: Manifests will be generated \
|
|
603
|
+
* **disabled**: Manifests will not be generated
|
|
604
|
+
*/
|
|
605
|
+
export type ManifestGenerationMode = string;
|
|
606
|
+
|
|
607
|
+
/** Known values of {@link GenerationManifestType} that the service accepts. */
|
|
608
|
+
export enum KnownGenerationManifestType {
|
|
609
|
+
/** Helm manifests */
|
|
610
|
+
Helm = "helm",
|
|
611
|
+
/** Kubernetes manifests */
|
|
612
|
+
Kube = "kube"
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Defines values for GenerationManifestType. \
|
|
617
|
+
* {@link KnownGenerationManifestType} can be used interchangeably with GenerationManifestType,
|
|
618
|
+
* this enum contains the known values that the service supports.
|
|
619
|
+
* ### Known values supported by the service
|
|
620
|
+
* **helm**: Helm manifests \
|
|
621
|
+
* **kube**: Kubernetes manifests
|
|
622
|
+
*/
|
|
623
|
+
export type GenerationManifestType = string;
|
|
624
|
+
|
|
417
625
|
/** Optional parameters. */
|
|
418
626
|
export interface OperationsListOptionalParams
|
|
419
627
|
extends coreClient.OperationOptions {}
|
|
@@ -444,6 +652,15 @@ export interface ListGitHubOAuthOptionalParams
|
|
|
444
652
|
/** Contains response data for the listGitHubOAuth operation. */
|
|
445
653
|
export type ListGitHubOAuthResponse = GitHubOAuthListResponse;
|
|
446
654
|
|
|
655
|
+
/** Optional parameters. */
|
|
656
|
+
export interface GeneratePreviewArtifactsOptionalParams
|
|
657
|
+
extends coreClient.OperationOptions {}
|
|
658
|
+
|
|
659
|
+
/** Contains response data for the generatePreviewArtifacts operation. */
|
|
660
|
+
export type GeneratePreviewArtifactsResponse = {
|
|
661
|
+
[propertyName: string]: string;
|
|
662
|
+
};
|
|
663
|
+
|
|
447
664
|
/** Optional parameters. */
|
|
448
665
|
export interface WorkflowListOptionalParams
|
|
449
666
|
extends coreClient.OperationOptions {}
|
|
@@ -498,10 +715,7 @@ export type WorkflowListNextResponse = WorkflowListResult;
|
|
|
498
715
|
|
|
499
716
|
/** Optional parameters. */
|
|
500
717
|
export interface WorkflowListByResourceGroupNextOptionalParams
|
|
501
|
-
extends coreClient.OperationOptions {
|
|
502
|
-
/** The ManagedCluster resource associated with the workflows. */
|
|
503
|
-
managedClusterResource?: string;
|
|
504
|
-
}
|
|
718
|
+
extends coreClient.OperationOptions {}
|
|
505
719
|
|
|
506
720
|
/** Contains response data for the listByResourceGroupNext operation. */
|
|
507
721
|
export type WorkflowListByResourceGroupNextResponse = WorkflowListResult;
|