Skip to content

Commit 935bdf9

Browse files
authored
[DevCenter] azure-developer-devcenter 1.0.0-beta.2 (Azure#33196)
# Description This pull request includes changes to the Azure.Developer.DevCenter SDK that constitue version 1.0.0-beta.2. This SDK version is built around version **2022-11-11-preview** of our Data Plane API. The most notable change from 1.0.0-beta.1 is the use of an endpoint URI to construct clients, rather than tenant ID + dev center name, which was the architecture board's largest point of feedback for us in our initial review. # All SDK Contribution checklist: - [x] **The pull request does not introduce [breaking changes]** - [x] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [x] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).** ## [General Guidelines and Best Practices](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md#developer-guide) - [x] Title of the pull request is clear and informative. - [x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md#building-and-unit-testing) - [x] Pull request includes test coverage for the included changes.
1 parent 7bc87e4 commit 935bdf9

File tree

90 files changed

+35533
-2844
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+35533
-2844
lines changed

sdk/devcenter/azure-developer-devcenter/CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2023-02-07)
44

5-
### Features Added
5+
This release updates the Azure DevCenter library to use the 2022-11-11-preview API.
66

77
### Breaking Changes
88

9+
- `DevBoxClientBuilder`, `DevCenterClientBuilder`, and `EnvironmentsClientBuilder` now accept an endpoint URI on construction rather than tenant ID + dev center name.
10+
11+
### Features Added
12+
13+
- Added upcoming actions APIs to dev boxes.
14+
- `delayUpcomingActionWithResponse`
15+
- `getUpcomingActionWithResponse`
16+
- `listUpcomingActions`
17+
- `skipUpcomingActionWithResponse`
18+
919
### Bugs Fixed
1020

11-
### Other Changes
21+
- Invalid `beginDeleteEnvironmentAction` API removed from `EnvironmentsClient`.
22+
- Unimplemented artifacts APIs removed from `EnvironmentsClient`.
23+
24+
### Dependency Updates
25+
26+
- Upgraded `azure-core` from version `1.34.0` to version `1.36.0`.
27+
- Upgraded `azure-core-http-netty` from version `1.12.7` to version `1.13.0`.
1228

1329
## 1.0.0-beta.1 (2022-11-11)
1430

sdk/devcenter/azure-developer-devcenter/README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Various documentation is available to help you get started
2525
<dependency>
2626
<groupId>com.azure</groupId>
2727
<artifactId>azure-developer-devcenter</artifactId>
28-
<version>1.0.0-beta.1</version>
28+
<version>1.0.0-beta.2</version>
2929
</dependency>
3030
```
3131
[//]: # ({x-version-update-end})
@@ -39,21 +39,18 @@ Various documentation is available to help you get started
3939
## Examples
4040
### Dev Box Scenarios
4141
```java com.azure.developer.devcenter.readme.devboxes
42-
String tenantId = Configuration.getGlobalConfiguration().get("AZURE_TENANT_ID");
43-
String devCenterName = Configuration.getGlobalConfiguration().get("DEVCENTER_NAME");
42+
String endpoint = Configuration.getGlobalConfiguration().get("DEVCENTER_ENDPOINT");
4443

4544
// Build our clients
4645
DevCenterClient devCenterClient =
4746
new DevCenterClientBuilder()
48-
.devCenter(devCenterName)
49-
.tenantId(tenantId)
47+
.endpoint(endpoint)
5048
.credential(new DefaultAzureCredentialBuilder().build())
5149
.buildClient();
5250

5351
DevBoxesClient devBoxClient =
5452
new DevBoxesClientBuilder()
55-
.devCenter(devCenterName)
56-
.tenantId(tenantId)
53+
.endpoint(endpoint)
5754
.credential(new DefaultAzureCredentialBuilder().build())
5855
.buildClient();
5956

@@ -89,8 +86,7 @@ devBoxDeleteResponse.waitForCompletion();
8986
```java com.azure.developer.devcenter.readme.environments
9087
EnvironmentsClient environmentsClient =
9188
new EnvironmentsClientBuilder()
92-
.devCenter(devCenterName)
93-
.tenantId(tenantId)
89+
.endpoint(endpoint)
9490
.credential(new DefaultAzureCredentialBuilder().build())
9591
.buildClient();
9692

@@ -111,14 +107,6 @@ SyncPoller<BinaryData, BinaryData> environmentCreateResponse =
111107
environmentsClient.beginCreateOrUpdateEnvironment("myProject", "me", "TestEnvironment", environmentBody, null);
112108
environmentCreateResponse.waitForCompletion();
113109

114-
115-
// Fetch the deployment artifacts:
116-
PagedIterable<BinaryData> artifactListResponse = environmentsClient.listArtifactsByEnvironment("myProject", "me", "TestEnvironment", null);
117-
for (BinaryData p: artifactListResponse) {
118-
System.out.println(p);
119-
}
120-
121-
122110
// Delete the environment when we're finished:
123111
SyncPoller<BinaryData, Void> environmentDeleteResponse =
124112
environmentsClient.beginDeleteEnvironment("myProject", "me", "TestEnvironment", null);

0 commit comments

Comments
 (0)