Skip to content

Commit

Permalink
CodeGen from PR 13676 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b043ed671f95e6b8f6bdd6f3b714608c84f5eabb into e5eaf17e6e6f5635709378bddf09aaa4e3205ae0
  • Loading branch information
SDKAuto committed Mar 29, 2021
1 parent 7a97320 commit 875b6c9
Show file tree
Hide file tree
Showing 107 changed files with 1,408 additions and 1,535 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2021-03-29)

- Azure Resource Manager MediaServices client library for Java. This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-2021-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.2 (2021-02-22)

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

Azure Resource Manager Mediaservices client library for Java.
Azure Resource Manager MediaServices client library for Java.

This package contains Microsoft Azure SDK for Mediaservices Management SDK. This Swagger was generated by the API Framework. Package tag package-2020-05. 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 MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-2021-05. 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-mediaservices</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</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();
MediaservicesManager manager = MediaservicesManager
MediaServicesManager manager = MediaServicesManager
.authenticate(credential, profile);
```

Expand Down
4 changes: 2 additions & 2 deletions sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-mediaservices;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Mediaservices Management</name>
<description>This package contains Microsoft Azure SDK for Mediaservices Management SDK. This Swagger was generated by the API Framework. Package tag package-2020-05. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<name>Microsoft Azure SDK for MediaServices Management</name>
<description>This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-2021-05.</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 @@ -60,8 +60,8 @@
import java.util.List;
import java.util.Objects;

/** Entry point to MediaservicesManager. This Swagger was generated by the API Framework. */
public final class MediaservicesManager {
/** Entry point to MediaServicesManager. This Swagger was generated by the API Framework. */
public final class MediaServicesManager {
private AccountFilters accountFilters;

private Operations operations;
Expand Down Expand Up @@ -96,7 +96,7 @@ public final class MediaservicesManager {

private final AzureMediaServices clientObject;

private MediaservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
private MediaServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
Expand All @@ -109,25 +109,25 @@ private MediaservicesManager(HttpPipeline httpPipeline, AzureProfile profile, Du
}

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

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

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

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

Expand All @@ -218,7 +218,7 @@ public MediaservicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -252,7 +252,7 @@ public MediaservicesManager authenticate(TokenCredential credential, AzureProfil
.httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
return new MediaservicesManager(httpPipeline, profile, defaultPollInterval);
return new MediaServicesManager(httpPipeline, profile, defaultPollInterval);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ public interface AzureMediaServices {
*/
String getEndpoint();

/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
String getApiVersion();

/**
* Gets The HTTP pipeline to send requests through.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.azure.resourcemanager.mediaservices.fluent.models.EdgePoliciesInner;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
import com.azure.resourcemanager.mediaservices.models.MediaServiceUpdate;
import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput;

/** An instance of this class provides access to all the operations defined in MediaservicesClient. */
Expand Down Expand Up @@ -137,7 +138,7 @@ Response<MediaServiceInner> createOrUpdateWithResponse(
* @return a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MediaServiceInner update(String resourceGroupName, String accountName, MediaServiceInner parameters);
MediaServiceInner update(String resourceGroupName, String accountName, MediaServiceUpdate parameters);

/**
* Updates an existing Media Services account.
Expand All @@ -153,7 +154,7 @@ Response<MediaServiceInner> createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MediaServiceInner> updateWithResponse(
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);

/**
* Synchronizes storage account keys for a storage account associated with the Media Service account.
Expand Down Expand Up @@ -235,29 +236,4 @@ Response<EdgePoliciesInner> listEdgePoliciesWithResponse(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<MediaServiceInner> list(Context context);

/**
* Get the details of a Media Services account.
*
* @param accountName The Media Services account name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the details of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MediaServiceInner getBySubscription(String accountName);

/**
* Get the details of a Media Services account.
*
* @param accountName The Media Services account name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the details of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MediaServiceInner> getBySubscriptionWithResponse(String accountName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand Down Expand Up @@ -121,9 +121,6 @@ public AccountFilterInner withTracks(List<FilterTrackSelection> tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand Down Expand Up @@ -121,9 +121,6 @@ public AssetFilterInner withTracks(List<FilterTrackSelection> tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.AssetStorageEncryptionFormat;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -206,8 +206,5 @@ public AssetStorageEncryptionFormat storageEncryptionFormat() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -140,9 +140,6 @@ public ContentKeyPolicyInner withOptions(List<ContentKeyPolicyOption> options) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (options() != null) {
options().forEach(e -> e.validate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.JobInput;
import com.azure.resourcemanager.mediaservices.models.JobOutput;
import com.azure.resourcemanager.mediaservices.models.JobState;
import com.azure.resourcemanager.mediaservices.models.Priority;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -265,9 +265,6 @@ public OffsetDateTime endTime() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (input() != null) {
input().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.CrossSiteAccessPolicies;
import com.azure.resourcemanager.mediaservices.models.LiveEventEncoding;
Expand All @@ -15,7 +16,6 @@
import com.azure.resourcemanager.mediaservices.models.LiveEventResourceState;
import com.azure.resourcemanager.mediaservices.models.LiveEventTranscription;
import com.azure.resourcemanager.mediaservices.models.StreamOptionsFlag;
import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -391,9 +391,6 @@ public LiveEventInner withTags(Map<String, String> tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (input() != null) {
input().validate();
}
Expand Down
Loading

0 comments on commit 875b6c9

Please sign in to comment.