From 87e28e185be670ad35de67220b1bcf52c3b1b086 Mon Sep 17 00:00:00 2001 From: Driele Neves Ribeiro Date: Mon, 29 Apr 2024 16:25:38 -0700 Subject: [PATCH] Dev Center rename to InUnit (#39957) * Rename to * Update merged commit hash --- .../models/DevBoxHardwareProfile.java | 34 +++++++------- .../developer/devcenter/models/OsDisk.java | 34 +++++++------- .../models/StopOnDisconnectConfiguration.java | 46 +++++++++---------- .../developer/devcenter/DevBoxTests.java | 8 ++-- .../devcenter/generated/GetsADevBoxTests.java | 4 +- .../devcenter/generated/GetsAPoolTests.java | 6 +-- .../generated/ListsAvailablePoolsTests.java | 6 +-- ...InTheDevCenterForAParticularUserTests.java | 4 +- ...esInTheProjectForAParticularUserTests.java | 4 +- ...eCallerHasAccessToInTheDevCenterTests.java | 4 +- .../tsp-location.yaml | 2 +- 11 files changed, 76 insertions(+), 76 deletions(-) diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevBoxHardwareProfile.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevBoxHardwareProfile.java index 4f9c7cbe98004..1ecf85855e31a 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevBoxHardwareProfile.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/DevBoxHardwareProfile.java @@ -29,12 +29,6 @@ public final class DevBoxHardwareProfile implements JsonSerializable { - /* - * The size of the OS Disk in gigabytes. - */ - @Generated - private Integer diskSizeGb; - /** * Creates an instance of OsDisk class. */ @@ -30,16 +24,6 @@ public final class OsDisk implements JsonSerializable { private OsDisk() { } - /** - * Get the diskSizeGb property: The size of the OS Disk in gigabytes. - * - * @return the diskSizeGb value. - */ - @Generated - public Integer getDiskSizeGb() { - return this.diskSizeGb; - } - /** * {@inheritDoc} */ @@ -66,7 +50,7 @@ public static OsDisk fromJson(JsonReader jsonReader) throws IOException { String fieldName = reader.getFieldName(); reader.nextToken(); if ("diskSizeGB".equals(fieldName)) { - deserializedOsDisk.diskSizeGb = reader.getNullable(JsonReader::getInt); + deserializedOsDisk.diskSizeInGb = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } @@ -74,4 +58,20 @@ public static OsDisk fromJson(JsonReader jsonReader) throws IOException { return deserializedOsDisk; }); } + + /* + * The size of the OS Disk in gigabytes. + */ + @Generated + private Integer diskSizeInGb; + + /** + * Get the diskSizeInGb property: The size of the OS Disk in gigabytes. + * + * @return the diskSizeInGb value. + */ + @Generated + public Integer getDiskSizeInGb() { + return this.diskSizeInGb; + } } diff --git a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/StopOnDisconnectConfiguration.java b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/StopOnDisconnectConfiguration.java index 1cd2e95050b1e..8e9eba280575f 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/StopOnDisconnectConfiguration.java +++ b/sdk/devcenter/azure-developer-devcenter/src/main/java/com/azure/developer/devcenter/models/StopOnDisconnectConfiguration.java @@ -24,13 +24,6 @@ public final class StopOnDisconnectConfiguration implements JsonSerializable { StopOnDisconnectStatus status = null; - Integer gracePeriodMinutes = null; + Integer gracePeriodInMinutes = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("status".equals(fieldName)) { status = StopOnDisconnectStatus.fromString(reader.getString()); } else if ("gracePeriodMinutes".equals(fieldName)) { - gracePeriodMinutes = reader.getNullable(JsonReader::getInt); + gracePeriodInMinutes = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } } StopOnDisconnectConfiguration deserializedStopOnDisconnectConfiguration = new StopOnDisconnectConfiguration(status); - deserializedStopOnDisconnectConfiguration.gracePeriodMinutes = gracePeriodMinutes; + deserializedStopOnDisconnectConfiguration.gracePeriodInMinutes = gracePeriodInMinutes; return deserializedStopOnDisconnectConfiguration; }); } + + /* + * The specified time in minutes to wait before stopping a Dev Box once disconnect + * is detected. + */ + @Generated + private Integer gracePeriodInMinutes; + + /** + * Get the gracePeriodInMinutes property: The specified time in minutes to wait before stopping a Dev Box once + * disconnect + * is detected. + * + * @return the gracePeriodInMinutes value. + */ + @Generated + public Integer getGracePeriodInMinutes() { + return this.gracePeriodInMinutes; + } } diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/DevBoxTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/DevBoxTests.java index 90a6ed8a48aa8..77f010f3eb73e 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/DevBoxTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/DevBoxTests.java @@ -250,13 +250,13 @@ public void validateDevBox(DevBox devBox) { Assertions.assertNotNull(responseHardwareProfile); Assertions.assertEquals(8, responseHardwareProfile.getVCpus()); Assertions.assertEquals(SkuName.GENERAL_I_8C32GB1024SSD_V2, responseHardwareProfile.getSkuName()); - Assertions.assertEquals(32, responseHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, responseHardwareProfile.getMemoryInGb()); // verify property "storageProfile" DevBoxStorageProfile responseStorageProfile = devBox.getStorageProfile(); Assertions.assertNotNull(responseStorageProfile); OsDisk responseStorageProfileOsDisk = responseStorageProfile.getOsDisk(); Assertions.assertNotNull(responseStorageProfileOsDisk); - Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference responseImageReference = devBox.getImageReference(); Assertions.assertNotNull(responseImageReference); @@ -286,7 +286,7 @@ public void validatePool(DevBoxPool pool) { Assertions.assertNotNull(responseHardwareProfile); Assertions.assertEquals(8, responseHardwareProfile.getVCpus()); Assertions.assertEquals(SkuName.GENERAL_I_8C32GB1024SSD_V2, responseHardwareProfile.getSkuName()); - Assertions.assertEquals(32, responseHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, responseHardwareProfile.getMemoryInGb()); // verify property "hibernateSupport" Assertions.assertEquals(HibernateSupport.DISABLED, pool.getHibernateSupport()); // verify property "storageProfile" @@ -294,7 +294,7 @@ public void validatePool(DevBoxPool pool) { Assertions.assertNotNull(responseStorageProfile); OsDisk responseStorageProfileOsDisk = responseStorageProfile.getOsDisk(); Assertions.assertNotNull(responseStorageProfileOsDisk); - Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference responseImageReference = pool.getImageReference(); Assertions.assertNotNull(responseImageReference); diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsADevBoxTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsADevBoxTests.java index 76c20fe4a955b..3775b365648a6 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsADevBoxTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsADevBoxTests.java @@ -46,13 +46,13 @@ public void testGetsADevBoxTests() { DevBoxHardwareProfile responseHardwareProfile = response.getHardwareProfile(); Assertions.assertNotNull(responseHardwareProfile); Assertions.assertEquals(8, responseHardwareProfile.getVCpus()); - Assertions.assertEquals(32, responseHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, responseHardwareProfile.getMemoryInGb()); // verify property "storageProfile" DevBoxStorageProfile responseStorageProfile = response.getStorageProfile(); Assertions.assertNotNull(responseStorageProfile); OsDisk responseStorageProfileOsDisk = responseStorageProfile.getOsDisk(); Assertions.assertNotNull(responseStorageProfileOsDisk); - Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference responseImageReference = response.getImageReference(); Assertions.assertNotNull(responseImageReference); diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsAPoolTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsAPoolTests.java index 639da3f4a6728..bdd772e9436d5 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsAPoolTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/GetsAPoolTests.java @@ -38,7 +38,7 @@ public void testGetsAPoolTests() { DevBoxHardwareProfile responseHardwareProfile = response.getHardwareProfile(); Assertions.assertNotNull(responseHardwareProfile); Assertions.assertEquals(8, responseHardwareProfile.getVCpus()); - Assertions.assertEquals(32, responseHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, responseHardwareProfile.getMemoryInGb()); // verify property "hibernateSupport" Assertions.assertEquals(HibernateSupport.ENABLED, response.getHibernateSupport()); // verify property "storageProfile" @@ -46,7 +46,7 @@ public void testGetsAPoolTests() { Assertions.assertNotNull(responseStorageProfile); OsDisk responseStorageProfileOsDisk = responseStorageProfile.getOsDisk(); Assertions.assertNotNull(responseStorageProfileOsDisk); - Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, responseStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference responseImageReference = response.getImageReference(); Assertions.assertNotNull(responseImageReference); @@ -57,7 +57,7 @@ public void testGetsAPoolTests() { StopOnDisconnectConfiguration responseStopOnDisconnect = response.getStopOnDisconnect(); Assertions.assertNotNull(responseStopOnDisconnect); Assertions.assertEquals(StopOnDisconnectStatus.ENABLED, responseStopOnDisconnect.getStatus()); - Assertions.assertEquals(60, responseStopOnDisconnect.getGracePeriodMinutes()); + Assertions.assertEquals(60, responseStopOnDisconnect.getGracePeriodInMinutes()); // verify property "healthStatus" Assertions.assertEquals(PoolHealthStatus.HEALTHY, response.getHealthStatus()); } diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsAvailablePoolsTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsAvailablePoolsTests.java index 2080592a0963b..887d58b355838 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsAvailablePoolsTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsAvailablePoolsTests.java @@ -41,7 +41,7 @@ public void testListsAvailablePoolsTests() { DevBoxHardwareProfile firstItemHardwareProfile = firstItem.getHardwareProfile(); Assertions.assertNotNull(firstItemHardwareProfile); Assertions.assertEquals(8, firstItemHardwareProfile.getVCpus()); - Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryInGb()); // verify property "hibernateSupport" Assertions.assertEquals(HibernateSupport.ENABLED, firstItem.getHibernateSupport()); // verify property "storageProfile" @@ -49,7 +49,7 @@ public void testListsAvailablePoolsTests() { Assertions.assertNotNull(firstItemStorageProfile); OsDisk firstItemStorageProfileOsDisk = firstItemStorageProfile.getOsDisk(); Assertions.assertNotNull(firstItemStorageProfileOsDisk); - Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference firstItemImageReference = firstItem.getImageReference(); Assertions.assertNotNull(firstItemImageReference); @@ -60,7 +60,7 @@ public void testListsAvailablePoolsTests() { StopOnDisconnectConfiguration firstItemStopOnDisconnect = firstItem.getStopOnDisconnect(); Assertions.assertNotNull(firstItemStopOnDisconnect); Assertions.assertEquals(StopOnDisconnectStatus.ENABLED, firstItemStopOnDisconnect.getStatus()); - Assertions.assertEquals(60, firstItemStopOnDisconnect.getGracePeriodMinutes()); + Assertions.assertEquals(60, firstItemStopOnDisconnect.getGracePeriodInMinutes()); // verify property "healthStatus" Assertions.assertEquals(PoolHealthStatus.HEALTHY, firstItem.getHealthStatus()); } diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheDevCenterForAParticularUserTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheDevCenterForAParticularUserTests.java index 705ceafebb0bd..2acde0ae2b374 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheDevCenterForAParticularUserTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheDevCenterForAParticularUserTests.java @@ -49,13 +49,13 @@ public void testListsDevBoxesInTheDevCenterForAParticularUserTests() { DevBoxHardwareProfile firstItemHardwareProfile = firstItem.getHardwareProfile(); Assertions.assertNotNull(firstItemHardwareProfile); Assertions.assertEquals(8, firstItemHardwareProfile.getVCpus()); - Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryInGb()); // verify property "storageProfile" DevBoxStorageProfile firstItemStorageProfile = firstItem.getStorageProfile(); Assertions.assertNotNull(firstItemStorageProfile); OsDisk firstItemStorageProfileOsDisk = firstItemStorageProfile.getOsDisk(); Assertions.assertNotNull(firstItemStorageProfileOsDisk); - Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference firstItemImageReference = firstItem.getImageReference(); Assertions.assertNotNull(firstItemImageReference); diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheProjectForAParticularUserTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheProjectForAParticularUserTests.java index a9eefc9e9f6fa..d80ae34c5c42b 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheProjectForAParticularUserTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesInTheProjectForAParticularUserTests.java @@ -49,13 +49,13 @@ public void testListsDevBoxesInTheProjectForAParticularUserTests() { DevBoxHardwareProfile firstItemHardwareProfile = firstItem.getHardwareProfile(); Assertions.assertNotNull(firstItemHardwareProfile); Assertions.assertEquals(8, firstItemHardwareProfile.getVCpus()); - Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryInGb()); // verify property "storageProfile" DevBoxStorageProfile firstItemStorageProfile = firstItem.getStorageProfile(); Assertions.assertNotNull(firstItemStorageProfile); OsDisk firstItemStorageProfileOsDisk = firstItemStorageProfile.getOsDisk(); Assertions.assertNotNull(firstItemStorageProfileOsDisk); - Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference firstItemImageReference = firstItem.getImageReference(); Assertions.assertNotNull(firstItemImageReference); diff --git a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesThatTheCallerHasAccessToInTheDevCenterTests.java b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesThatTheCallerHasAccessToInTheDevCenterTests.java index 9947647239643..3e7557b32d45b 100644 --- a/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesThatTheCallerHasAccessToInTheDevCenterTests.java +++ b/sdk/devcenter/azure-developer-devcenter/src/test/java/com/azure/developer/devcenter/generated/ListsDevBoxesThatTheCallerHasAccessToInTheDevCenterTests.java @@ -49,13 +49,13 @@ public void testListsDevBoxesThatTheCallerHasAccessToInTheDevCenterTests() { DevBoxHardwareProfile firstItemHardwareProfile = firstItem.getHardwareProfile(); Assertions.assertNotNull(firstItemHardwareProfile); Assertions.assertEquals(8, firstItemHardwareProfile.getVCpus()); - Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryGb()); + Assertions.assertEquals(32, firstItemHardwareProfile.getMemoryInGb()); // verify property "storageProfile" DevBoxStorageProfile firstItemStorageProfile = firstItem.getStorageProfile(); Assertions.assertNotNull(firstItemStorageProfile); OsDisk firstItemStorageProfileOsDisk = firstItemStorageProfile.getOsDisk(); Assertions.assertNotNull(firstItemStorageProfileOsDisk); - Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeGb()); + Assertions.assertEquals(1024, firstItemStorageProfileOsDisk.getDiskSizeInGb()); // verify property "imageReference" DevBoxImageReference firstItemImageReference = firstItem.getImageReference(); Assertions.assertNotNull(firstItemImageReference); diff --git a/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml b/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml index 5334d354f19a1..d8e61932c4b9e 100644 --- a/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml +++ b/sdk/devcenter/azure-developer-devcenter/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/devcenter/DevCenter -commit: 202ca606b49642dbd328f0fd7da524c754475659 +commit: 5e976eab0086a3b9e66393597efb2437e75ce808 repo: Azure/azure-rest-api-specs cleanup: true