Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-voiceservices] [Hub Generated] Publish private branch 'voiceservices/api-release' #4986

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-24)

- 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