Skip to content
Merged
Prev Previous commit
Next Next commit
update service version
  • Loading branch information
ericasp16 committed Jul 11, 2023
commit b417dae56eda7c80b908839e9371b117793ba90e
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
*/
public enum PhoneNumbersServiceVersion implements ServiceVersion {
/**
* Service version {@code 2023-05-01-preview}
* Latest stable service version {@code 2021-03-07}
*/
NumberLookupPreview("2023-05-01-preview");
V2021_03_07("2021-03-07"),

/**
* Number Lookup preview version {@code 2023-05-01-preview}
*/
V2023_05_01_Preview("2023-05-01-preview");

private final String version;

Expand All @@ -37,6 +42,6 @@ public String getVersion() {
*/
public static PhoneNumbersServiceVersion getLatest() {

return NumberLookupPreview;
return V2023_05_01_Preview;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void buildClientWithConfiguration() {
public void buildClientWithServiceVersion() {
// Build client with required settings and mock configuration
PhoneNumbersClient phoneNumberClient = this.setupBuilderWithHttpClientWithCredential(this.clientBuilder)
.serviceVersion(PhoneNumbersServiceVersion.NumberLookupPreview)
.serviceVersion(PhoneNumbersServiceVersion.V2023_05_01_Preview)
.buildClient();

// Validate client created with expected settings
Expand Down Expand Up @@ -227,7 +227,7 @@ public void buildAsyncClientWithServiceVersion() {
// Build client with required settings and mock configuration
PhoneNumbersAsyncClient phoneNumberAsyncClient = this
.setupBuilderWithHttpClientWithCredential(this.clientBuilder)
.serviceVersion(PhoneNumbersServiceVersion.NumberLookupPreview)
.serviceVersion(PhoneNumbersServiceVersion.V2023_05_01_Preview)
.buildAsyncClient();

// Validate client created with expected settings
Expand Down