@azure/arm-devhub 1.0.0-beta.2 → 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 +53 -2
- package/LICENSE +4 -4
- package/README.md +25 -18
- package/{dist-esm/src → dist/browser}/developerHubServiceClient.d.ts +9 -2
- package/dist/browser/developerHubServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/developerHubServiceClient.js +67 -27
- 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-esm/src → dist/browser}/models/index.d.ts +222 -20
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +130 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/mappers.js +219 -22
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +2 -1
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/parameters.js +8 -4
- 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 +50 -80
- 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 -616
- 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 +85 -76
- package/review/{arm-devhub.api.md → arm-devhub-node.api.md} +110 -2
- package/dist/index.js +0 -1562
- 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/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 -63
- 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 -55
- 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 -50
- 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.d.ts.map +0 -1
- package/dist-esm/src/models/index.js +0 -56
- 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 -67
- package/dist-esm/test/devhub_examples.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/developerHubServiceClient.ts +0 -269
- package/src/models/index.ts +0 -515
- package/src/models/mappers.ts +0 -699
- package/src/models/parameters.ts +0 -186
- 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}/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/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,63 @@
|
|
|
1
1
|
# Release History
|
|
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
|
+
|
|
13
|
+
## 1.0.0-beta.3 (2023-05-29)
|
|
14
|
+
|
|
15
|
+
### Features Added
|
|
16
|
+
|
|
17
|
+
- Added Interface ArtifactGenerationProperties
|
|
18
|
+
- Added Interface GeneratePreviewArtifactsOptionalParams
|
|
19
|
+
- Added Type Alias AuthorizationStatus
|
|
20
|
+
- Added Type Alias DockerfileGenerationMode
|
|
21
|
+
- Added Type Alias GeneratePreviewArtifactsResponse
|
|
22
|
+
- Added Type Alias GenerationLanguage
|
|
23
|
+
- Added Type Alias GenerationManifestType
|
|
24
|
+
- Added Type Alias ManifestGenerationMode
|
|
25
|
+
- Added Type Alias WorkflowRunStatus
|
|
26
|
+
- Interface Workflow has a new optional parameter appName
|
|
27
|
+
- Interface Workflow has a new optional parameter builderVersion
|
|
28
|
+
- Interface Workflow has a new optional parameter dockerfileGenerationMode
|
|
29
|
+
- Interface Workflow has a new optional parameter dockerfileOutputDirectory
|
|
30
|
+
- Interface Workflow has a new optional parameter generationLanguage
|
|
31
|
+
- Interface Workflow has a new optional parameter imageName
|
|
32
|
+
- Interface Workflow has a new optional parameter imageTag
|
|
33
|
+
- Interface Workflow has a new optional parameter languageVersion
|
|
34
|
+
- Interface Workflow has a new optional parameter manifestGenerationMode
|
|
35
|
+
- Interface Workflow has a new optional parameter manifestOutputDirectory
|
|
36
|
+
- Interface Workflow has a new optional parameter manifestType
|
|
37
|
+
- Interface Workflow has a new optional parameter namespacePropertiesArtifactGenerationPropertiesNamespace
|
|
38
|
+
- Interface Workflow has a new optional parameter namespacePropertiesGithubWorkflowProfileNamespace
|
|
39
|
+
- Interface Workflow has a new optional parameter port
|
|
40
|
+
- Interface WorkflowRun has a new optional parameter workflowRunStatus
|
|
41
|
+
- Added Enum KnownAuthorizationStatus
|
|
42
|
+
- Added Enum KnownDockerfileGenerationMode
|
|
43
|
+
- Added Enum KnownGenerationLanguage
|
|
44
|
+
- Added Enum KnownGenerationManifestType
|
|
45
|
+
- Added Enum KnownManifestGenerationMode
|
|
46
|
+
- Added Enum KnownWorkflowRunStatus
|
|
47
|
+
|
|
48
|
+
### Breaking Changes
|
|
49
|
+
|
|
50
|
+
- Interface Workflow no longer has parameter namespace
|
|
51
|
+
- Type of parameter authStatus of interface Workflow is changed from ManifestType to AuthorizationStatus
|
|
52
|
+
|
|
2
53
|
|
|
3
54
|
## 1.0.0-beta.2 (2023-01-04)
|
|
4
55
|
|
|
5
|
-
|
|
56
|
+
### Features Added
|
|
6
57
|
|
|
7
58
|
- Interface WorkflowListByResourceGroupNextOptionalParams no longer has parameter managedClusterResource
|
|
8
59
|
|
|
9
60
|
|
|
10
61
|
## 1.0.0-beta.1 (2022-10-18)
|
|
11
62
|
|
|
12
|
-
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 } 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;
|
|
@@ -35,6 +35,13 @@ export declare class DeveloperHubServiceClient extends coreClient.ServiceClient
|
|
|
35
35
|
* @param options The options parameters.
|
|
36
36
|
*/
|
|
37
37
|
listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<ListGitHubOAuthResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Generate preview dockerfile and manifests.
|
|
40
|
+
* @param location The name of Azure region.
|
|
41
|
+
* @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
generatePreviewArtifacts(location: string, parameters: ArtifactGenerationProperties, options?: GeneratePreviewArtifactsOptionalParams): Promise<GeneratePreviewArtifactsResponse>;
|
|
38
45
|
operations: Operations;
|
|
39
46
|
workflowOperations: WorkflowOperations;
|
|
40
47
|
}
|
|
@@ -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
|
}
|
|
@@ -67,7 +74,7 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
67
74
|
this.subscriptionId = subscriptionId;
|
|
68
75
|
// Assigning values to Constant parameters
|
|
69
76
|
this.$host = options.$host || "https://management.azure.com";
|
|
70
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
77
|
+
this.apiVersion = options.apiVersion || "2022-10-11-preview";
|
|
71
78
|
this.operations = new OperationsImpl(this);
|
|
72
79
|
this.workflowOperations = new WorkflowOperationsImpl(this);
|
|
73
80
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
@@ -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);
|
|
@@ -125,6 +130,17 @@ export class DeveloperHubServiceClient extends coreClient.ServiceClient {
|
|
|
125
130
|
listGitHubOAuth(location, options) {
|
|
126
131
|
return this.sendOperationRequest({ location, options }, listGitHubOAuthOperationSpec);
|
|
127
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Generate preview dockerfile and manifests.
|
|
135
|
+
* @param location The name of Azure region.
|
|
136
|
+
* @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
generatePreviewArtifacts(location, parameters, options) {
|
|
140
|
+
return this.sendOperationRequest({ location, parameters, options }, generatePreviewArtifactsOperationSpec);
|
|
141
|
+
}
|
|
142
|
+
operations;
|
|
143
|
+
workflowOperations;
|
|
128
144
|
}
|
|
129
145
|
// Operation Specifications
|
|
130
146
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -190,4 +206,28 @@ const listGitHubOAuthOperationSpec = {
|
|
|
190
206
|
headerParameters: [Parameters.accept],
|
|
191
207
|
serializer
|
|
192
208
|
};
|
|
209
|
+
const generatePreviewArtifactsOperationSpec = {
|
|
210
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/generatePreviewArtifacts",
|
|
211
|
+
httpMethod: "POST",
|
|
212
|
+
responses: {
|
|
213
|
+
200: {
|
|
214
|
+
bodyMapper: {
|
|
215
|
+
type: { name: "Dictionary", value: { type: { name: "String" } } }
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
default: {
|
|
219
|
+
bodyMapper: Mappers.ErrorResponse
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
requestBody: Parameters.parameters1,
|
|
223
|
+
queryParameters: [Parameters.apiVersion],
|
|
224
|
+
urlParameters: [
|
|
225
|
+
Parameters.$host,
|
|
226
|
+
Parameters.subscriptionId,
|
|
227
|
+
Parameters.location
|
|
228
|
+
],
|
|
229
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
230
|
+
mediaType: "json",
|
|
231
|
+
serializer
|
|
232
|
+
};
|
|
193
233
|
//# sourceMappingURL=developerHubServiceClient.js.map
|
|
@@ -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;IA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right (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"]}
|