Skip to content

Commit

Permalink
CodeGen from PR 23674 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0613fcceb61cb23cb813d4f99c5db031d43d1096 into ae5f241249f12e87e94e184ae5430518ac061a51
  • Loading branch information
SDKAuto committed Apr 21, 2023
1 parent 0a3db95 commit 9608def
Show file tree
Hide file tree
Showing 48 changed files with 117 additions and 1,097 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2023-04-21)

- Azure Resource Manager Voice Services client library for Java. This package contains Microsoft Azure SDK for Voice Services Management SDK. Package tag package-2023-01-31. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
10 changes: 5 additions & 5 deletions sdk/voiceservices/azure-resourcemanager-voiceservices/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Azure Resource Manager voiceservices client library for Java
# Azure Resource Manager Voice Services client library for Java

Azure Resource Manager voiceservices client library for Java.
Azure Resource Manager Voice Services client library for Java.

This package contains Microsoft Azure SDK for voiceservices Management SDK. Package tag package-2023-01-31. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Voice Services Management SDK. Package tag package-2023-01-31. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-voiceservices</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -60,7 +60,7 @@ AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
VoiceservicesManager manager = VoiceservicesManager
VoiceServicesManager manager = VoiceServicesManager
.authenticate(credential, profile);
```

Expand Down
54 changes: 27 additions & 27 deletions sdk/voiceservices/azure-resourcemanager-voiceservices/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public final class CommunicationsGatewaysCreateOrUpdateSamples {
/**
* Sample code: CreateCommunicationsGatewayResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void createCommunicationsGatewayResource(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.define("myname")
Expand Down Expand Up @@ -93,10 +93,10 @@ public final class CommunicationsGatewaysDeleteSamples {
/**
* Sample code: DeleteCommunicationsGatewayResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void deleteCommunicationsGatewayResource(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().delete("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -113,10 +113,10 @@ public final class CommunicationsGatewaysGetByResourceGroupSamples {
/**
* Sample code: GetCommunicationsGatewayResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void getCommunicationsGatewayResource(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.communicationsGateways()
.getByResourceGroupWithResponse("testrg", "myname", com.azure.core.util.Context.NONE);
Expand All @@ -135,10 +135,10 @@ public final class CommunicationsGatewaysListSamples {
/**
* Sample code: ListCommunicationsGatewayResourceSub.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResourceSub(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().list(com.azure.core.util.Context.NONE);
}
}
Expand All @@ -155,10 +155,10 @@ public final class CommunicationsGatewaysListByResourceGroupSamples {
/**
* Sample code: ListCommunicationsGatewayResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void listCommunicationsGatewayResource(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.communicationsGateways().listByResourceGroup("testrg", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -177,10 +177,10 @@ public final class CommunicationsGatewaysUpdateSamples {
/**
* Sample code: UpdateCommunicationsGatewayResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void updateCommunicationsGatewayResource(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
CommunicationsGateway resource =
manager
.communicationsGateways()
Expand All @@ -204,17 +204,17 @@ public final class NameAvailabilityCheckLocalSamples {
/**
* Sample code: CheckLocalNameAvailability.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void checkLocalNameAvailability(
com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.nameAvailabilities()
.checkLocalWithResponse(
"useast",
new CheckNameAvailabilityRequest()
.withName("myname")
.withType("Microsoft.VoiceServices/CommunicationsGateway"),
.withType("Microsoft.VoiceServices/CommunicationsGateways"),
com.azure.core.util.Context.NONE);
}
}
Expand All @@ -231,9 +231,9 @@ public final class OperationsListSamples {
/**
* Sample code: OperationsList.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void operationsList(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
Expand All @@ -252,9 +252,9 @@ public final class TestLinesCreateOrUpdateSamples {
/**
* Sample code: CreateTestLineResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void createTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager
.testLines()
.define("myline")
Expand All @@ -278,9 +278,9 @@ public final class TestLinesDeleteSamples {
/**
* Sample code: DeleteTestLineResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void deleteTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().delete("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -297,9 +297,9 @@ public final class TestLinesGetSamples {
/**
* Sample code: GetTestLineResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void getTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().getWithResponse("testrg", "myname", "myline", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -316,9 +316,9 @@ public final class TestLinesListByCommunicationsGatewaySamples {
/**
* Sample code: ListTestLineResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void listTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
manager.testLines().listByCommunicationsGateway("testrg", "myname", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -337,9 +337,9 @@ public final class TestLinesUpdateSamples {
/**
* Sample code: UpdateTestLineResource.
*
* @param manager Entry point to VoiceservicesManager.
* @param manager Entry point to VoiceServicesManager.
*/
public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceservicesManager manager) {
public static void updateTestLineResource(com.azure.resourcemanager.voiceservices.VoiceServicesManager manager) {
TestLine resource =
manager
.testLines()
Expand Down
4 changes: 2 additions & 2 deletions sdk/voiceservices/azure-resourcemanager-voiceservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-voiceservices;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for voiceservices Management</name>
<description>This package contains Microsoft Azure SDK for voiceservices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-01-31.</description>
<name>Microsoft Azure SDK for Voice Services Management</name>
<description>This package contains Microsoft Azure SDK for Voice Services Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-01-31.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to VoiceservicesManager. */
public final class VoiceservicesManager {
/** Entry point to VoiceServicesManager. */
public final class VoiceServicesManager {
private Operations operations;

private CommunicationsGateways communicationsGateways;
Expand All @@ -52,7 +52,7 @@ public final class VoiceservicesManager {

private final MicrosoftVoiceServices clientObject;

private VoiceservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
private VoiceServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
Expand All @@ -65,38 +65,38 @@ private VoiceservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Du
}

/**
* Creates an instance of voiceservices service API entry point.
* Creates an instance of Voice Services service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the voiceservices service API instance.
* @return the Voice Services service API instance.
*/
public static VoiceservicesManager authenticate(TokenCredential credential, AzureProfile profile) {
public static VoiceServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return configure().authenticate(credential, profile);
}

/**
* Creates an instance of voiceservices service API entry point.
* Creates an instance of Voice Services service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the voiceservices service API instance.
* @return the Voice Services service API instance.
*/
public static VoiceservicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
public static VoiceServicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return new VoiceservicesManager(httpPipeline, profile, null);
return new VoiceServicesManager(httpPipeline, profile, null);
}

/**
* Gets a Configurable instance that can be used to create VoiceservicesManager with optional configuration.
* Gets a Configurable instance that can be used to create VoiceServicesManager with optional configuration.
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new VoiceservicesManager.Configurable();
return new VoiceServicesManager.Configurable();
}

/** The Configurable allowing configurations to be set. */
Expand Down Expand Up @@ -199,13 +199,13 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}

/**
* Creates an instance of voiceservices service API entry point.
* Creates an instance of Voice Services service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the voiceservices service API instance.
* @return the Voice Services service API instance.
*/
public VoiceservicesManager authenticate(TokenCredential credential, AzureProfile profile) {
public VoiceServicesManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

Expand Down Expand Up @@ -268,7 +268,7 @@ public VoiceservicesManager authenticate(TokenCredential credential, AzureProfil
.httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
return new VoiceservicesManager(httpPipeline, profile, defaultPollInterval);
return new VoiceServicesManager(httpPipeline, profile, defaultPollInterval);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailabilityResponse {
private CheckNameAvailabilityResponseInner innerObject;

private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;

CheckNameAvailabilityResponseImpl(
CheckNameAvailabilityResponseInner innerObject,
com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
Expand All @@ -36,7 +36,7 @@ public CheckNameAvailabilityResponseInner innerModel() {
return this.innerObject;
}

private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class CommunicationsGatewayImpl
implements CommunicationsGateway, CommunicationsGateway.Definition, CommunicationsGateway.Update {
private CommunicationsGatewayInner innerObject;

private final com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager;
private final com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager;

public String id() {
return this.innerModel().id();
Expand Down Expand Up @@ -145,7 +145,7 @@ public CommunicationsGatewayInner innerModel() {
return this.innerObject;
}

private com.azure.resourcemanager.voiceservices.VoiceservicesManager manager() {
private com.azure.resourcemanager.voiceservices.VoiceServicesManager manager() {
return this.serviceManager;
}

Expand Down Expand Up @@ -179,7 +179,7 @@ public CommunicationsGateway create(Context context) {
}

CommunicationsGatewayImpl(
String name, com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
String name, com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = new CommunicationsGatewayInner();
this.serviceManager = serviceManager;
this.communicationsGatewayName = name;
Expand Down Expand Up @@ -212,7 +212,7 @@ public CommunicationsGateway apply(Context context) {

CommunicationsGatewayImpl(
CommunicationsGatewayInner innerObject,
com.azure.resourcemanager.voiceservices.VoiceservicesManager serviceManager) {
com.azure.resourcemanager.voiceservices.VoiceServicesManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
Expand Down
Loading

0 comments on commit 9608def

Please sign in to comment.