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
Dev mediaservices microsoft.media 2021 05 01 (#13676)

* Adds base for updating Microsoft.Media from version stable/2020-05-01 to version 2021-05-01

* Updates readme

* Updates API version in new specs and examples

* [AMS] new 2021-05-01 release for Account service in AMS

* add missing example files

* fix the api version and missing example files

* Create a new Update definition to fix the "R2016 - PatchBodyParametersSchema "

* fix respnse

* fix update example

* add the 2016 supression for new tag as well.
  • Loading branch information
SDKAuto committed Apr 29, 2021
1 parent fcef4ce commit 99997c1
Show file tree
Hide file tree
Showing 37 changed files with 1,011 additions and 435 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2021-04-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 (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
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
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.0.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 99997c1

Please sign in to comment.