Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from mediaservices#package-2021-05 (A…
Browse files Browse the repository at this point in the history
…zure#21079)

* [Automation] Generate Fluent Lite from mediaservices#package-2021-05

* Update pom.xml

Co-authored-by: Weidong Xu <[email protected]>
  • Loading branch information
azure-sdk and weidongxu-microsoft authored Apr 30, 2021
1 parent 863709f commit 562beba
Show file tree
Hide file tree
Showing 37 changed files with 1,062 additions and 435 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.1.0-beta.1 (2021-04-30)

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

### Breaking Change

#### `models.Mediaservices` was modified

* `getBySubscriptionWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
* `getBySubscription(java.lang.String)` was removed

### New Feature

* `models.AccessControl` was added

* `models.MediaServiceUpdate` was added

* `models.ActionType` was added

* `models.DefaultAction` was added

* `models.KeyDelivery` was added

#### `models.MediaService` was modified

* `keyDelivery()` was added

#### `models.Operation` was modified

* `actionType()` was added
* `isDataAction()` was added

#### `models.MetricSpecification` was modified

* `supportedTimeGrainTypes()` was added
* `sourceMdmAccount()` was added
* `enableRegionalMdmAccount()` was added
* `sourceMdmNamespace()` was added

#### `models.MediaService$Definition` was modified

* `withKeyDelivery(models.KeyDelivery)` was added

#### `models.MediaService$Update` was modified

* `withKeyDelivery(models.KeyDelivery)` was added

## 1.0.0 (2021-04-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
10 changes: 9 additions & 1 deletion sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<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>
<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 Expand Up @@ -62,6 +62,14 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
.append("1.0.0");
.append("1.1.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
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 @@ -10,6 +10,7 @@
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.KeyDelivery;
import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
Expand Down Expand Up @@ -61,6 +62,12 @@ public class MediaServiceInner extends Resource {
@JsonProperty(value = "properties.encryption")
private AccountEncryption encryption;

/*
* The Key Delivery properties for Media Services account.
*/
@JsonProperty(value = "properties.keyDelivery")
private KeyDelivery keyDelivery;

/**
* Get the identity property: The Managed Identity for the Media Services account.
*
Expand Down Expand Up @@ -159,6 +166,26 @@ public MediaServiceInner withEncryption(AccountEncryption encryption) {
return this;
}

/**
* Get the keyDelivery property: The Key Delivery properties for Media Services account.
*
* @return the keyDelivery value.
*/
public KeyDelivery keyDelivery() {
return this.keyDelivery;
}

/**
* Set the keyDelivery property: The Key Delivery properties for Media Services account.
*
* @param keyDelivery the keyDelivery value to set.
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withKeyDelivery(KeyDelivery keyDelivery) {
this.keyDelivery = keyDelivery;
return this;
}

/** {@inheritDoc} */
@Override
public MediaServiceInner withLocation(String location) {
Expand Down Expand Up @@ -188,5 +215,8 @@ public void validate() {
if (encryption() != null) {
encryption().validate();
}
if (keyDelivery() != null) {
keyDelivery().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.ActionType;
import com.azure.resourcemanager.mediaservices.models.OperationDisplay;
import com.azure.resourcemanager.mediaservices.models.Properties;
import com.fasterxml.jackson.annotation.JsonIgnore;
Expand Down Expand Up @@ -40,6 +41,18 @@ public final class OperationInner {
@JsonProperty(value = "properties")
private Properties properties;

/*
* Whether the operation applies to data-plane.
*/
@JsonProperty(value = "isDataAction")
private Boolean isDataAction;

/*
* Indicates the action type.
*/
@JsonProperty(value = "actionType")
private ActionType actionType;

/**
* Get the name property: The operation name.
*
Expand Down Expand Up @@ -120,6 +133,46 @@ public OperationInner withProperties(Properties properties) {
return this;
}

/**
* Get the isDataAction property: Whether the operation applies to data-plane.
*
* @return the isDataAction value.
*/
public Boolean isDataAction() {
return this.isDataAction;
}

/**
* Set the isDataAction property: Whether the operation applies to data-plane.
*
* @param isDataAction the isDataAction value to set.
* @return the OperationInner object itself.
*/
public OperationInner withIsDataAction(Boolean isDataAction) {
this.isDataAction = isDataAction;
return this;
}

/**
* Get the actionType property: Indicates the action type.
*
* @return the actionType value.
*/
public ActionType actionType() {
return this.actionType;
}

/**
* Set the actionType property: Indicates the action type.
*
* @param actionType the actionType value to set.
* @return the OperationInner object itself.
*/
public OperationInner withActionType(ActionType actionType) {
this.actionType = actionType;
return this;
}

/**
* Validates the instance.
*
Expand Down
Loading

0 comments on commit 562beba

Please sign in to comment.