Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from mediaservices# (#20488)
Browse files Browse the repository at this point in the history
* [Automation] External Change

* [Automation] Generate Fluent Lite from mediaservices#
  • Loading branch information
azure-sdk authored and benbp committed Apr 28, 2021
1 parent 58993c5 commit 604a9d8
Show file tree
Hide file tree
Showing 96 changed files with 475 additions and 613 deletions.
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ com.azure.resourcemanager:azure-resourcemanager-sql;2.3.0;2.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-storage;2.3.0;2.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-trafficmanager;2.3.0;2.4.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-test;2.0.0-beta.1;2.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-mediaservices;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-mediaservices;1.0.0-beta.2;1.0.0
com.azure.resourcemanager:azure-resourcemanager-mysql;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-postgresql;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-hdinsight;1.0.0-beta.1;1.0.0-beta.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,76 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0 (2021-04-09)

- 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).

### Breaking Change

* `MediaservicesManager` was removed

* `models.CreatedByType` was removed

* `MediaservicesManager$Configurable` was removed

* `models.SystemData` was removed

#### `models.MediaService` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.AssetFilter` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.LiveEvent` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.AccountFilter` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.Asset` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.StreamingLocator` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.StreamingPolicy` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.StreamingEndpoint` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.ContentKeyPolicy` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.Job` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

#### `models.Transform` was modified

* `models.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`

### New Feature

* `MediaServicesManager` was added

* `MediaServicesManager$Configurable` was added

#### `models.JpgFormat` was modified

* `withFilenamePattern(java.lang.String)` was added

#### `models.PngFormat` was modified

* `withFilenamePattern(java.lang.String)` was added

## 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-2020-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</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
6 changes: 3 additions & 3 deletions sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mediaservices</artifactId>
<version>1.0.0-beta.3</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-mediaservices;current} -->
<version>1.0.0</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-2020-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");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -245,14 +245,15 @@ public MediaservicesManager authenticate(TokenCredential credential, AzureProfil
.add(
new BearerTokenAuthenticationPolicy(
credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
new HttpPipelineBuilder()
.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 @@ -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
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.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.AccountEncryption;
import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
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 @@ -182,9 +182,6 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
if (systemData() != null) {
systemData().validate();
}
if (storageAccounts() != null) {
storageAccounts().forEach(e -> e.validate());
}
Expand Down
Loading

0 comments on commit 604a9d8

Please sign in to comment.