@azure/arm-devhub 1.0.0-beta.3 → 1.0.0-beta.4
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 +15 -5
- package/LICENSE +4 -4
- package/README.md +25 -18
- package/{dist-esm/src → dist/browser}/developerHubServiceClient.d.ts +2 -2
- package/dist/browser/developerHubServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/developerHubServiceClient.js +33 -26
- package/dist/browser/developerHubServiceClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +74 -35
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workflowOperations.d.ts +3 -3
- package/dist/browser/operations/workflowOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/workflowOperations.js +48 -92
- package/dist/browser/operations/workflowOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/workflowOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/workflowOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/workflowOperations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/developerHubServiceClient.d.ts +48 -0
- package/dist/commonjs/developerHubServiceClient.d.ts.map +1 -0
- package/dist/commonjs/developerHubServiceClient.js +238 -0
- package/dist/commonjs/developerHubServiceClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/{types/arm-devhub.d.ts → dist/commonjs/models/index.d.ts} +658 -840
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +133 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +25 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +850 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +18 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +167 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +18 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +52 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/workflowOperations.d.ts +83 -0
- package/dist/commonjs/operations/workflowOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/workflowOperations.js +357 -0
- package/dist/commonjs/operations/workflowOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/workflowOperations.d.ts +47 -0
- package/dist/commonjs/operationsInterfaces/workflowOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/workflowOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/workflowOperations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/developerHubServiceClient.d.ts +48 -0
- package/dist/esm/developerHubServiceClient.d.ts.map +1 -0
- package/dist/esm/developerHubServiceClient.js +233 -0
- package/dist/esm/developerHubServiceClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +658 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +130 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +25 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +847 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +18 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +164 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +18 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +47 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/workflowOperations.d.ts +83 -0
- package/dist/esm/operations/workflowOperations.d.ts.map +1 -0
- package/dist/esm/operations/workflowOperations.js +352 -0
- package/dist/esm/operations/workflowOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/workflowOperations.d.ts +47 -0
- package/dist/esm/operationsInterfaces/workflowOperations.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/workflowOperations.js} +2 -3
- package/dist/esm/operationsInterfaces/workflowOperations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/developerHubServiceClient.d.ts +48 -0
- package/dist/react-native/developerHubServiceClient.d.ts.map +1 -0
- package/dist/react-native/developerHubServiceClient.js +233 -0
- package/dist/react-native/developerHubServiceClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +658 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +130 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +25 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +847 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +18 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +164 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +18 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +47 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/workflowOperations.d.ts +83 -0
- package/dist/react-native/operations/workflowOperations.d.ts.map +1 -0
- package/dist/react-native/operations/workflowOperations.js +352 -0
- package/dist/react-native/operations/workflowOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/workflowOperations.d.ts +47 -0
- package/dist/react-native/operationsInterfaces/workflowOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/workflowOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/workflowOperations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +84 -75
- package/dist/index.js +0 -1846
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.d.ts +0 -2
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.js +0 -51
- package/dist-esm/samples-dev/generatePreviewArtifactsSample.js.map +0 -1
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts +0 -2
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js +0 -39
- package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js.map +0 -1
- package/dist-esm/samples-dev/gitHubOAuthSample.d.ts +0 -2
- package/dist-esm/samples-dev/gitHubOAuthSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/gitHubOAuthSample.js +0 -41
- package/dist-esm/samples-dev/gitHubOAuthSample.js.map +0 -1
- package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts +0 -2
- package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/listGitHubOAuthSample.js +0 -37
- package/dist-esm/samples-dev/listGitHubOAuthSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -37
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js +0 -119
- package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowDeleteSample.js +0 -38
- package/dist-esm/samples-dev/workflowDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowGetSample.js +0 -38
- package/dist-esm/samples-dev/workflowGetSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.js +0 -62
- package/dist-esm/samples-dev/workflowListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowListSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowListSample.js +0 -57
- package/dist-esm/samples-dev/workflowListSample.js.map +0 -1
- package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts +0 -2
- package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workflowUpdateTagsSample.js +0 -41
- package/dist-esm/samples-dev/workflowUpdateTagsSample.js.map +0 -1
- package/dist-esm/src/developerHubServiceClient.d.ts.map +0 -1
- package/dist-esm/src/developerHubServiceClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/workflowOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/workflowOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workflowOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/workflowOperations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/devhub_examples.spec.d.ts +0 -4
- package/dist-esm/test/devhub_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/devhub_examples.spec.js +0 -74
- package/dist-esm/test/devhub_examples.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/developerHubServiceClient.ts +0 -314
- package/src/models/index.ts +0 -732
- package/src/models/mappers.ts +0 -878
- package/src/models/parameters.ts +0 -192
- package/src/operations/operations.ts +0 -59
- package/src/operations/workflowOperations.ts +0 -476
- package/src/operationsInterfaces/operations.ts +0 -21
- package/src/operationsInterfaces/workflowOperations.ts +0 -92
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/workflowOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/review/{arm-devhub.api.md → arm-devhub-node.api.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.4 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
3
13
|
## 1.0.0-beta.3 (2023-05-29)
|
|
4
14
|
|
|
5
|
-
|
|
15
|
+
### Features Added
|
|
6
16
|
|
|
7
17
|
- Added Interface ArtifactGenerationProperties
|
|
8
18
|
- Added Interface GeneratePreviewArtifactsOptionalParams
|
|
@@ -35,7 +45,7 @@
|
|
|
35
45
|
- Added Enum KnownManifestGenerationMode
|
|
36
46
|
- Added Enum KnownWorkflowRunStatus
|
|
37
47
|
|
|
38
|
-
|
|
48
|
+
### Breaking Changes
|
|
39
49
|
|
|
40
50
|
- Interface Workflow no longer has parameter namespace
|
|
41
51
|
- Type of parameter authStatus of interface Workflow is changed from ManifestType to AuthorizationStatus
|
|
@@ -43,11 +53,11 @@
|
|
|
43
53
|
|
|
44
54
|
## 1.0.0-beta.2 (2023-01-04)
|
|
45
55
|
|
|
46
|
-
|
|
56
|
+
### Features Added
|
|
47
57
|
|
|
48
58
|
- Interface WorkflowListByResourceGroupNextOptionalParams no longer has parameter managedClusterResource
|
|
49
59
|
|
|
50
60
|
|
|
51
61
|
## 1.0.0-beta.1 (2022-10-18)
|
|
52
62
|
|
|
53
|
-
The package of @azure/arm-devhub is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js
|
|
63
|
+
The package of @azure/arm-devhub is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The AKS Developer Hub Service Client
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devhub/arm-devhub) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-devhub) |
|
|
9
|
-
[API reference documentation](https://
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-devhub?view=azure-node-preview) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
|
@@ -46,26 +46,34 @@ npm install @azure/identity
|
|
|
46
46
|
You will also need to **register a new AAD application and grant access to Azure DeveloperHubService** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
47
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
48
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
49
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
|
+
|
|
53
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
+
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
56
|
|
|
56
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
58
|
const client = new DeveloperHubServiceClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
-
|
|
59
|
-
// For client-side applications running in the browser, use this code instead:
|
|
60
|
-
// const credential = new InteractiveBrowserCredential({
|
|
61
|
-
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
-
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
-
// });
|
|
64
|
-
// const client = new DeveloperHubServiceClient(credential, subscriptionId);
|
|
65
59
|
```
|
|
66
60
|
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
62
|
+
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
|
|
66
|
+
|
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const client = new DeveloperHubServiceClient(credential, subscriptionId);
|
|
73
|
+
```
|
|
67
74
|
|
|
68
75
|
### JavaScript Bundle
|
|
76
|
+
|
|
69
77
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
70
78
|
|
|
71
79
|
## Key concepts
|
|
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
88
|
|
|
81
89
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
82
90
|
|
|
83
|
-
```
|
|
84
|
-
|
|
91
|
+
```ts snippet:SetLogLevel
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
85
94
|
setLogLevel("info");
|
|
86
95
|
```
|
|
87
96
|
|
|
@@ -99,9 +108,7 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
108
|
|
|
100
109
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
110
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
[azure_cli]: https://docs.microsoft.com/cli/azure
|
|
111
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
113
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
114
|
[azure_portal]: https://portal.azure.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, WorkflowOperations } from "./operationsInterfaces";
|
|
4
|
-
import { DeveloperHubServiceClientOptionalParams, GitHubOAuthOptionalParams, GitHubOAuthOperationResponse, GitHubOAuthCallbackOptionalParams, GitHubOAuthCallbackResponse, ListGitHubOAuthOptionalParams, ListGitHubOAuthResponse, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams, GeneratePreviewArtifactsResponse } from "./models";
|
|
3
|
+
import { Operations, WorkflowOperations } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { DeveloperHubServiceClientOptionalParams, GitHubOAuthOptionalParams, GitHubOAuthOperationResponse, GitHubOAuthCallbackOptionalParams, GitHubOAuthCallbackResponse, ListGitHubOAuthOptionalParams, ListGitHubOAuthResponse, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams, GeneratePreviewArtifactsResponse } from "./models/index.js";
|
|
5
5
|
export declare class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
apiVersion: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerHubServiceClient.d.ts","sourceRoot":"","sources":["../../src/developerHubServiceClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGjF,OAAO,EACL,uCAAuC,EACvC,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA6EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;OAIG;IACH,WAAW,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,4BAA4B,CAAC;IAOxC;;;;;;OAMG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;OAIG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;OAKG;IACH,wBAAwB,CACtB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,4BAA4B,EACxC,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, WorkflowOperationsImpl } from "./operations";
|
|
12
|
-
import * as Parameters from "./models/parameters";
|
|
13
|
-
import * as Mappers from "./models/mappers";
|
|
10
|
+
import { OperationsImpl, WorkflowOperationsImpl } from "./operations/index.js";
|
|
11
|
+
import * as Parameters from "./models/parameters.js";
|
|
12
|
+
import * as Mappers from "./models/mappers.js";
|
|
14
13
|
export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
14
|
+
$host;
|
|
15
|
+
apiVersion;
|
|
16
|
+
subscriptionId;
|
|
15
17
|
/**
|
|
16
18
|
* Initializes a new instance of the DeveloperHubServiceClient class.
|
|
17
19
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -19,7 +21,6 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
19
21
|
* @param options The parameter options
|
|
20
22
|
*/
|
|
21
23
|
constructor(credentials, subscriptionId, options) {
|
|
22
|
-
var _a, _b, _c;
|
|
23
24
|
if (credentials === undefined) {
|
|
24
25
|
throw new Error("'credentials' cannot be null");
|
|
25
26
|
}
|
|
@@ -34,16 +35,21 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
34
35
|
requestContentType: "application/json; charset=utf-8",
|
|
35
36
|
credential: credentials
|
|
36
37
|
};
|
|
37
|
-
const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.
|
|
38
|
+
const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.4`;
|
|
38
39
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
39
40
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
40
41
|
: `${packageDetails}`;
|
|
41
|
-
const optionsWithDefaults =
|
|
42
|
+
const optionsWithDefaults = {
|
|
43
|
+
...defaults,
|
|
44
|
+
...options,
|
|
45
|
+
userAgentOptions: {
|
|
42
46
|
userAgentPrefix
|
|
43
|
-
},
|
|
47
|
+
},
|
|
48
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
49
|
+
};
|
|
44
50
|
super(optionsWithDefaults);
|
|
45
51
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
46
|
-
if (
|
|
52
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
47
53
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
48
54
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
49
55
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -57,7 +63,8 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
57
63
|
});
|
|
58
64
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
59
65
|
credential: credentials,
|
|
60
|
-
scopes:
|
|
66
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
67
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
61
68
|
challengeCallbacks: {
|
|
62
69
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
63
70
|
}
|
|
@@ -79,22 +86,20 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
79
86
|
}
|
|
80
87
|
const apiVersionPolicy = {
|
|
81
88
|
name: "CustomApiVersionPolicy",
|
|
82
|
-
sendRequest(request, next) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return next(request);
|
|
97
|
-
});
|
|
89
|
+
async sendRequest(request, next) {
|
|
90
|
+
const param = request.url.split("?");
|
|
91
|
+
if (param.length > 1) {
|
|
92
|
+
const newParams = param[1].split("&").map((item) => {
|
|
93
|
+
if (item.indexOf("api-version") > -1) {
|
|
94
|
+
return "api-version=" + apiVersion;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return item;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
101
|
+
}
|
|
102
|
+
return next(request);
|
|
98
103
|
}
|
|
99
104
|
};
|
|
100
105
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
@@ -134,6 +139,8 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
134
139
|
generatePreviewArtifacts(location, parameters, options) {
|
|
135
140
|
return this.sendOperationRequest({ location, parameters, options }, generatePreviewArtifactsOperationSpec);
|
|
136
141
|
}
|
|
142
|
+
operations;
|
|
143
|
+
workflowOperations;
|
|
137
144
|
}
|
|
138
145
|
// Operation Specifications
|
|
139
146
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerHubServiceClient.js","sourceRoot":"","sources":["../../src/developerHubServiceClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAc/C,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,E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,6FAA6F;IAC/F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,0GAA0G;IAC5G,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;aAClE;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, WorkflowOperationsImpl } from \"./operations/index.js\";\nimport { Operations, WorkflowOperations } from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DeveloperHubServiceClientOptionalParams,\n GitHubOAuthOptionalParams,\n GitHubOAuthOperationResponse,\n GitHubOAuthCallbackOptionalParams,\n GitHubOAuthCallbackResponse,\n ListGitHubOAuthOptionalParams,\n ListGitHubOAuthResponse,\n ArtifactGenerationProperties,\n GeneratePreviewArtifactsOptionalParams,\n GeneratePreviewArtifactsResponse\n} from \"./models/index.js\";\n\nexport class DeveloperHubServiceClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DeveloperHubServiceClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DeveloperHubServiceClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DeveloperHubServiceClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.4`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-10-11-preview\";\n this.operations = new OperationsImpl(this);\n this.workflowOperations = new WorkflowOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n gitHubOAuth(\n location: string,\n options?: GitHubOAuthOptionalParams\n ): Promise<GitHubOAuthOperationResponse> {\n return this.sendOperationRequest(\n { location, options },\n gitHubOAuthOperationSpec\n );\n }\n\n /**\n * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.\n * @param location The name of Azure region.\n * @param code The code response from authenticating the GitHub App.\n * @param state The state response from authenticating the GitHub App.\n * @param options The options parameters.\n */\n gitHubOAuthCallback(\n location: string,\n code: string,\n state: string,\n options?: GitHubOAuthCallbackOptionalParams\n ): Promise<GitHubOAuthCallbackResponse> {\n return this.sendOperationRequest(\n { location, code, state, options },\n gitHubOAuthCallbackOperationSpec\n );\n }\n\n /**\n * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n listGitHubOAuth(\n location: string,\n options?: ListGitHubOAuthOptionalParams\n ): Promise<ListGitHubOAuthResponse> {\n return this.sendOperationRequest(\n { location, options },\n listGitHubOAuthOperationSpec\n );\n }\n\n /**\n * Generate preview dockerfile and manifests.\n * @param location The name of Azure region.\n * @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.\n * @param options The options parameters.\n */\n generatePreviewArtifacts(\n location: string,\n parameters: ArtifactGenerationProperties,\n options?: GeneratePreviewArtifactsOptionalParams\n ): Promise<GeneratePreviewArtifactsResponse> {\n return this.sendOperationRequest(\n { location, parameters, options },\n generatePreviewArtifactsOperationSpec\n );\n }\n\n operations: Operations;\n workflowOperations: WorkflowOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst gitHubOAuthOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubOAuthInfoResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst gitHubOAuthCallbackOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubOAuthResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.code, Parameters.state],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listGitHubOAuthOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubOAuthListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst generatePreviewArtifactsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/generatePreviewArtifacts\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"String\" } } }\n }\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,iCAAiC,CAAC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export { DeveloperHubServiceClient } from "./developerHubServiceClient";
|
|
12
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { DeveloperHubServiceClient } from "./developerHubServiceClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { DeveloperHubServiceClient } from \"./developerHubServiceClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiXH,+DAA+D;AAC/D,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,iBAAiB;IACjB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAcD,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,8BAA8B;IAC9B,kCAAa,CAAA;IACb,8CAA8C;IAC9C,kCAAa,CAAA;AACf,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AAYD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,kCAAkC;IAClC,6CAAmB,CAAA;IACnB,4CAA4C;IAC5C,iDAAuB,CAAA;IACvB,2CAA2C;IAC3C,2CAAiB,CAAA;IACjB,kDAAkD;IAClD,6CAAmB,CAAA;AACrB,CAAC,EATW,sBAAsB,KAAtB,sBAAsB,QASjC;AAcD,0EAA0E;AAC1E,MAAM,CAAN,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CAAkC;IAClC,kDAAmB,CAAA;IACnB,sCAAsC;IACtC,oDAAqB,CAAA;AACvB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAYD,+EAA+E;AAC/E,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,qBAAqB;IACrB,4CAAa,CAAA;IACb,2BAA2B;IAC3B,4CAAa,CAAA;AACf,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface OperationListResult {\n /**\n * List of operations supported by the resource provider\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Operation[];\n /**\n * URL to get the next set of operation list results (if there are any).\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /**\n * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly origin?: Origin;\n /**\n * Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly actionType?: ActionType;\n}\n\n/** Localized display information for this particular operation. */\nexport interface OperationDisplay {\n /**\n * The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provider?: string;\n /**\n * The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly resource?: string;\n /**\n * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly operation?: string;\n /**\n * The short, localized friendly description of the operation; suitable for tool tips and detailed views.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly description?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** GitHubOAuth request object */\nexport interface GitHubOAuthCallRequest {\n /** The URL the client will redirect to on successful authentication. If empty, no redirect will occur. */\n redirectUrl?: string;\n}\n\n/** URL used to authorize the Developer Hub GitHub App */\nexport interface GitHubOAuthInfoResponse {\n /** URL for authorizing the Developer Hub GitHub App */\n authURL?: string;\n /** OAuth token used to make calls to GitHub */\n token?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Azure Resource Manager metadata containing createdBy and modifiedBy information.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** The response from List GitHubOAuth operation. */\nexport interface GitHubOAuthListResponse {\n /** Singleton list response containing one GitHubOAuthResponse response */\n value?: GitHubOAuthResponse[];\n}\n\n/** The response from List Workflows operation. */\nexport interface WorkflowListResult {\n /** The list of workflows. */\n value?: Workflow[];\n /**\n * The URL to the next set of workflow results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\nexport interface DeploymentProperties {\n /** Determines the type of manifests within the repository. */\n manifestType?: ManifestType;\n kubeManifestLocations?: string[];\n /** Helm chart directory path in repository. */\n helmChartPath?: string;\n /** Helm Values.yaml file location in repository. */\n helmValues?: string;\n /** Manifest override values. */\n overrides?: { [propertyName: string]: string };\n}\n\n/** Information on the azure container registry */\nexport interface Acr {\n /** ACR subscription id */\n acrSubscriptionId?: string;\n /** ACR resource group */\n acrResourceGroup?: string;\n /** ACR registry */\n acrRegistryName?: string;\n /** ACR repository */\n acrRepositoryName?: string;\n}\n\n/** The fields needed for OIDC with GitHub. */\nexport interface GitHubWorkflowProfileOidcCredentials {\n /** Azure Application Client ID */\n azureClientId?: string;\n /** Azure Directory (tenant) ID */\n azureTenantId?: string;\n}\n\nexport interface WorkflowRun {\n /**\n * Describes if the workflow run succeeded.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly succeeded?: boolean;\n /**\n * URL to the run of the workflow.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly workflowRunURL?: string;\n /**\n * The timestamp of the last workflow run.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastRunAt?: Date;\n /** Describes the status of the workflow run */\n workflowRunStatus?: WorkflowRunStatus;\n}\n\n/** Properties used for generating artifacts such as Dockerfiles and manifests. */\nexport interface ArtifactGenerationProperties {\n /** The programming language used. */\n generationLanguage?: GenerationLanguage;\n /** The version of the language image used for execution in the generated dockerfile. */\n languageVersion?: string;\n /** The version of the language image used for building the code in the generated dockerfile. */\n builderVersion?: string;\n /** The port the application is exposed on. */\n port?: string;\n /** The name of the app. */\n appName?: string;\n /** The directory to output the generated Dockerfile to. */\n dockerfileOutputDirectory?: string;\n /** The directory to output the generated manifests to. */\n manifestOutputDirectory?: string;\n /** The mode of generation to be used for generating Dockerfiles. */\n dockerfileGenerationMode?: DockerfileGenerationMode;\n /** The mode of generation to be used for generating Manifest. */\n manifestGenerationMode?: ManifestGenerationMode;\n /** Determines the type of manifests to be generated. */\n manifestType?: GenerationManifestType;\n /** The name of the image to be generated. */\n imageName?: string;\n /** The namespace to deploy the application to. */\n namespace?: string;\n /** The tag to apply to the generated image. */\n imageTag?: string;\n}\n\n/** delete response if content must be provided on delete operation */\nexport interface DeleteWorkflowResponse {\n /** delete status message */\n status?: string;\n}\n\n/** Resource tags. */\nexport interface TagsObject {\n /** Dictionary of <string> */\n tags?: { [propertyName: string]: string };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** Singleton response of GitHubOAuth containing */\nexport interface GitHubOAuthResponse extends ProxyResource {\n /** user making request */\n username?: string;\n}\n\n/** Resource representation of a workflow */\nexport interface Workflow extends TrackedResource {\n /** The programming language used. */\n generationLanguage?: GenerationLanguage;\n /** The version of the language image used for execution in the generated dockerfile. */\n languageVersion?: string;\n /** The version of the language image used for building the code in the generated dockerfile. */\n builderVersion?: string;\n /** The port the application is exposed on. */\n port?: string;\n /** The name of the app. */\n appName?: string;\n /** The directory to output the generated Dockerfile to. */\n dockerfileOutputDirectory?: string;\n /** The directory to output the generated manifests to. */\n manifestOutputDirectory?: string;\n /** The mode of generation to be used for generating Dockerfiles. */\n dockerfileGenerationMode?: DockerfileGenerationMode;\n /** The mode of generation to be used for generating Manifest. */\n manifestGenerationMode?: ManifestGenerationMode;\n /** Determines the type of manifests to be generated. */\n manifestType?: GenerationManifestType;\n /** The name of the image to be generated. */\n imageName?: string;\n /** The namespace to deploy the application to. */\n namespacePropertiesArtifactGenerationPropertiesNamespace?: string;\n /** The tag to apply to the generated image. */\n imageTag?: string;\n /** Repository Owner */\n repositoryOwner?: string;\n /** Repository Name */\n repositoryName?: string;\n /** Repository Branch Name */\n branchName?: string;\n /** Path to the Dockerfile within the repository. */\n dockerfile?: string;\n /** Path to Dockerfile Build Context within the repository. */\n dockerBuildContext?: string;\n deploymentProperties?: DeploymentProperties;\n /** Kubernetes namespace the application is deployed to. */\n namespacePropertiesGithubWorkflowProfileNamespace?: string;\n /** Information on the azure container registry */\n acr?: Acr;\n /** The fields needed for OIDC with GitHub. */\n oidcCredentials?: GitHubWorkflowProfileOidcCredentials;\n /** The Azure Kubernetes Cluster Resource the application will be deployed to. */\n aksResourceId?: string;\n /**\n * The URL to the Pull Request submitted against the users repository.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly prURL?: string;\n /**\n * The number associated with the submitted pull request.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly pullNumber?: number;\n /**\n * The status of the Pull Request submitted against the users repository.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly prStatus?: PullRequestStatus;\n lastWorkflowRun?: WorkflowRun;\n /**\n * Determines the authorization status of requests.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly authStatus?: AuthorizationStatus;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** User */\n User = \"user\",\n /** System */\n System = \"system\",\n /** UserSystem */\n UserSystem = \"user,system\"\n}\n\n/**\n * Defines values for Origin. \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\"\n}\n\n/**\n * Defines values for ActionType. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link ManifestType} that the service accepts. */\nexport enum KnownManifestType {\n /** Repositories using helm */\n Helm = \"helm\",\n /** Repositories using kubernetes manifests */\n Kube = \"kube\"\n}\n\n/**\n * Defines values for ManifestType. \\\n * {@link KnownManifestType} can be used interchangeably with ManifestType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **helm**: Repositories using helm \\\n * **kube**: Repositories using kubernetes manifests\n */\nexport type ManifestType = string;\n\n/** Known values of {@link PullRequestStatus} that the service accepts. */\nexport enum KnownPullRequestStatus {\n /** Pull Request state unknown. */\n Unknown = \"unknown\",\n /** Pull Request submitted to repository. */\n Submitted = \"submitted\",\n /** Pull Request merged into repository. */\n Merged = \"merged\",\n /** Workflow no longer found within repository. */\n Removed = \"removed\"\n}\n\n/**\n * Defines values for PullRequestStatus. \\\n * {@link KnownPullRequestStatus} can be used interchangeably with PullRequestStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **unknown**: Pull Request state unknown. \\\n * **submitted**: Pull Request submitted to repository. \\\n * **merged**: Pull Request merged into repository. \\\n * **removed**: Workflow no longer found within repository.\n */\nexport type PullRequestStatus = string;\n\n/** Known values of {@link WorkflowRunStatus} that the service accepts. */\nexport enum KnownWorkflowRunStatus {\n /** Workflow run is queued */\n Queued = \"queued\",\n /** Workflow run is inprogress */\n Inprogress = \"inprogress\",\n /** Workflow run is completed */\n Completed = \"completed\"\n}\n\n/**\n * Defines values for WorkflowRunStatus. \\\n * {@link KnownWorkflowRunStatus} can be used interchangeably with WorkflowRunStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **queued**: Workflow run is queued \\\n * **inprogress**: Workflow run is inprogress \\\n * **completed**: Workflow run is completed\n */\nexport type WorkflowRunStatus = string;\n\n/** Known values of {@link AuthorizationStatus} that the service accepts. */\nexport enum KnownAuthorizationStatus {\n /** Requests authorized successfully */\n Authorized = \"Authorized\",\n /** Requests returned NotFound response */\n NotFound = \"NotFound\",\n /** Requests returned other error response */\n Error = \"Error\"\n}\n\n/**\n * Defines values for AuthorizationStatus. \\\n * {@link KnownAuthorizationStatus} can be used interchangeably with AuthorizationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Authorized**: Requests authorized successfully \\\n * **NotFound**: Requests returned NotFound response \\\n * **Error**: Requests returned other error response\n */\nexport type AuthorizationStatus = string;\n\n/** Known values of {@link GenerationLanguage} that the service accepts. */\nexport enum KnownGenerationLanguage {\n /** clojure language */\n Clojure = \"clojure\",\n /** csharp language */\n Csharp = \"csharp\",\n /** erlang language */\n Erlang = \"erlang\",\n /** go language */\n Go = \"go\",\n /** gomodule language */\n Gomodule = \"gomodule\",\n /** gradle language */\n Gradle = \"gradle\",\n /** java language */\n Java = \"java\",\n /** javascript language */\n Javascript = \"javascript\",\n /** php language */\n Php = \"php\",\n /** python language */\n Python = \"python\",\n /** ruby language */\n Ruby = \"ruby\",\n /** rust language */\n Rust = \"rust\",\n /** swift language */\n Swift = \"swift\"\n}\n\n/**\n * Defines values for GenerationLanguage. \\\n * {@link KnownGenerationLanguage} can be used interchangeably with GenerationLanguage,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **clojure**: clojure language \\\n * **csharp**: csharp language \\\n * **erlang**: erlang language \\\n * **go**: go language \\\n * **gomodule**: gomodule language \\\n * **gradle**: gradle language \\\n * **java**: java language \\\n * **javascript**: javascript language \\\n * **php**: php language \\\n * **python**: python language \\\n * **ruby**: ruby language \\\n * **rust**: rust language \\\n * **swift**: swift language\n */\nexport type GenerationLanguage = string;\n\n/** Known values of {@link DockerfileGenerationMode} that the service accepts. */\nexport enum KnownDockerfileGenerationMode {\n /** Dockerfiles will be generated */\n Enabled = \"enabled\",\n /** Dockerfiles will not be generated */\n Disabled = \"disabled\"\n}\n\n/**\n * Defines values for DockerfileGenerationMode. \\\n * {@link KnownDockerfileGenerationMode} can be used interchangeably with DockerfileGenerationMode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **enabled**: Dockerfiles will be generated \\\n * **disabled**: Dockerfiles will not be generated\n */\nexport type DockerfileGenerationMode = string;\n\n/** Known values of {@link ManifestGenerationMode} that the service accepts. */\nexport enum KnownManifestGenerationMode {\n /** Manifests will be generated */\n Enabled = \"enabled\",\n /** Manifests will not be generated */\n Disabled = \"disabled\"\n}\n\n/**\n * Defines values for ManifestGenerationMode. \\\n * {@link KnownManifestGenerationMode} can be used interchangeably with ManifestGenerationMode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **enabled**: Manifests will be generated \\\n * **disabled**: Manifests will not be generated\n */\nexport type ManifestGenerationMode = string;\n\n/** Known values of {@link GenerationManifestType} that the service accepts. */\nexport enum KnownGenerationManifestType {\n /** Helm manifests */\n Helm = \"helm\",\n /** Kubernetes manifests */\n Kube = \"kube\"\n}\n\n/**\n * Defines values for GenerationManifestType. \\\n * {@link KnownGenerationManifestType} can be used interchangeably with GenerationManifestType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **helm**: Helm manifests \\\n * **kube**: Kubernetes manifests\n */\nexport type GenerationManifestType = string;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface GitHubOAuthOptionalParams extends coreClient.OperationOptions {\n /** GitHubOAuth request object */\n parameters?: GitHubOAuthCallRequest;\n}\n\n/** Contains response data for the gitHubOAuth operation. */\nexport type GitHubOAuthOperationResponse = GitHubOAuthInfoResponse;\n\n/** Optional parameters. */\nexport interface GitHubOAuthCallbackOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the gitHubOAuthCallback operation. */\nexport type GitHubOAuthCallbackResponse = GitHubOAuthResponse;\n\n/** Optional parameters. */\nexport interface ListGitHubOAuthOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listGitHubOAuth operation. */\nexport type ListGitHubOAuthResponse = GitHubOAuthListResponse;\n\n/** Optional parameters. */\nexport interface GeneratePreviewArtifactsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the generatePreviewArtifacts operation. */\nexport type GeneratePreviewArtifactsResponse = {\n [propertyName: string]: string;\n};\n\n/** Optional parameters. */\nexport interface WorkflowListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type WorkflowListResponse = WorkflowListResult;\n\n/** Optional parameters. */\nexport interface WorkflowListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {\n /** The ManagedCluster resource associated with the workflows. */\n managedClusterResource?: string;\n}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type WorkflowListByResourceGroupResponse = WorkflowListResult;\n\n/** Optional parameters. */\nexport interface WorkflowGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type WorkflowGetResponse = Workflow;\n\n/** Optional parameters. */\nexport interface WorkflowCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type WorkflowCreateOrUpdateResponse = Workflow;\n\n/** Optional parameters. */\nexport interface WorkflowDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the delete operation. */\nexport type WorkflowDeleteResponse = DeleteWorkflowResponse;\n\n/** Optional parameters. */\nexport interface WorkflowUpdateTagsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the updateTags operation. */\nexport type WorkflowUpdateTagsResponse = Workflow;\n\n/** Optional parameters. */\nexport interface WorkflowListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type WorkflowListNextResponse = WorkflowListResult;\n\n/** Optional parameters. */\nexport interface WorkflowListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type WorkflowListByResourceGroupNextResponse = WorkflowListResult;\n\n/** Optional parameters. */\nexport interface DeveloperHubServiceClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|