Skip to content
Draft
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.1.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-03-28)

- 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-account-2021-11. 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
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-2021-11. 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-account-2021-11. 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.1.0-beta.3</version>
<version>1.1.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
136 changes: 113 additions & 23 deletions sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md

Large diffs are not rendered by default.

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-2021-11.</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-account-2021-11.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -39,7 +39,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import com.azure.resourcemanager.mediaservices.implementation.LiveEventsImpl;
import com.azure.resourcemanager.mediaservices.implementation.LiveOutputsImpl;
import com.azure.resourcemanager.mediaservices.implementation.LocationsImpl;
import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationResultsImpl;
import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationStatusesImpl;
import com.azure.resourcemanager.mediaservices.implementation.MediaservicesImpl;
import com.azure.resourcemanager.mediaservices.implementation.OperationResultsImpl;
import com.azure.resourcemanager.mediaservices.implementation.OperationStatusesImpl;
Expand All @@ -50,6 +52,8 @@
import com.azure.resourcemanager.mediaservices.models.LiveEvents;
import com.azure.resourcemanager.mediaservices.models.LiveOutputs;
import com.azure.resourcemanager.mediaservices.models.Locations;
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResults;
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationStatuses;
import com.azure.resourcemanager.mediaservices.models.Mediaservices;
import com.azure.resourcemanager.mediaservices.models.OperationResults;
import com.azure.resourcemanager.mediaservices.models.OperationStatuses;
Expand Down Expand Up @@ -82,6 +86,10 @@ public final class MediaServicesManager {

private Locations locations;

private MediaServiceOperationStatuses mediaServiceOperationStatuses;

private MediaServiceOperationResults mediaServiceOperationResults;

private Assets assets;

private AssetFilters assetFilters;
Expand Down Expand Up @@ -246,7 +254,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
.append("1.1.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -347,6 +355,24 @@ public Locations locations() {
return locations;
}

/** @return Resource collection API of MediaServiceOperationStatuses. */
public MediaServiceOperationStatuses mediaServiceOperationStatuses() {
if (this.mediaServiceOperationStatuses == null) {
this.mediaServiceOperationStatuses =
new MediaServiceOperationStatusesImpl(clientObject.getMediaServiceOperationStatuses(), this);
}
return mediaServiceOperationStatuses;
}

/** @return Resource collection API of MediaServiceOperationResults. */
public MediaServiceOperationResults mediaServiceOperationResults() {
if (this.mediaServiceOperationResults == null) {
this.mediaServiceOperationResults =
new MediaServiceOperationResultsImpl(clientObject.getMediaServiceOperationResults(), this);
}
return mediaServiceOperationResults;
}

/** @return Resource collection API of Assets. */
public Assets assets() {
if (this.assets == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ public interface AzureMediaServices {
*/
String getEndpoint();

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

/**
* Gets The HTTP pipeline to send requests through.
*
Expand Down Expand Up @@ -79,6 +86,20 @@ public interface AzureMediaServices {
*/
LocationsClient getLocations();

/**
* Gets the MediaServiceOperationStatusesClient object to access its operations.
*
* @return the MediaServiceOperationStatusesClient object.
*/
MediaServiceOperationStatusesClient getMediaServiceOperationStatuses();

/**
* Gets the MediaServiceOperationResultsClient object to access its operations.
*
* @return the MediaServiceOperationResultsClient object.
*/
MediaServiceOperationResultsClient getMediaServiceOperationResults();

/**
* Gets the AssetsClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface LocationsClient {
/**
* Checks whether the Media Service resource name is available.
*
* @param locationName The name of the location.
* @param locationName Location name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -30,7 +30,7 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability(
/**
* Checks whether the Media Service resource name is available.
*
* @param locationName The name of the location.
* @param locationName Location name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResultsGetResponse;

/** An instance of this class provides access to all the operations defined in MediaServiceOperationResultsClient. */
public interface MediaServiceOperationResultsClient {
/**
* Get media service operation result.
*
* @param locationName Location name.
* @param operationId Operation Id.
* @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 media service operation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MediaServiceInner get(String locationName, String operationId);

/**
* Get media service operation result.
*
* @param locationName Location name.
* @param operationId Operation Id.
* @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 media service operation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MediaServiceOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceOperationStatusInner;

/** An instance of this class provides access to all the operations defined in MediaServiceOperationStatusesClient. */
public interface MediaServiceOperationStatusesClient {
/**
* Get media service operation status.
*
* @param locationName Location name.
* @param operationId Operation ID.
* @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 media service operation status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MediaServiceOperationStatusInner get(String locationName, String operationId);

/**
* Get media service operation status.
*
* @param locationName Location name.
* @param operationId Operation ID.
* @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 media service operation status along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MediaServiceOperationStatusInner> getWithResponse(
String locationName, String operationId, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mediaservices.fluent.models.EdgePoliciesInner;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
Expand Down Expand Up @@ -70,6 +72,37 @@ public interface MediaservicesClient {
Response<MediaServiceInner> getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context);

/**
* Creates or updates a Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param parameters The request parameters.
* @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 {@link SyncPoller} for polling of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, MediaServiceInner parameters);

/**
* Creates or updates a Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param parameters The request parameters.
* @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 {@link SyncPoller} for polling of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginCreateOrUpdate(
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);

/**
* Creates or updates a Media Services account.
*
Expand All @@ -94,10 +127,10 @@ Response<MediaServiceInner> getByResourceGroupWithResponse(
* @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 a Media Services account along with {@link Response}.
* @return a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MediaServiceInner> createOrUpdateWithResponse(
MediaServiceInner createOrUpdate(
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);

/**
Expand Down Expand Up @@ -126,6 +159,37 @@ Response<MediaServiceInner> createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String accountName, Context context);

/**
* Updates an existing Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param parameters The request parameters.
* @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 {@link SyncPoller} for polling of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginUpdate(
String resourceGroupName, String accountName, MediaServiceUpdate parameters);

/**
* Updates an existing Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param parameters The request parameters.
* @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 {@link SyncPoller} for polling of a Media Services account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginUpdate(
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);

/**
* Updates an existing Media Services account.
*
Expand All @@ -150,10 +214,10 @@ Response<MediaServiceInner> createOrUpdateWithResponse(
* @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 a Media Services account along with {@link Response}.
* @return a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<MediaServiceInner> updateWithResponse(
MediaServiceInner update(
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);

/**
Expand Down Expand Up @@ -186,7 +250,7 @@ Response<Void> syncStorageKeysWithResponse(
String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context);

/**
* List the media edge policies associated with the Media Services account.
* List all the media edge policies associated with the Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
Expand All @@ -200,7 +264,7 @@ Response<Void> syncStorageKeysWithResponse(
EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters);

/**
* List the media edge policies associated with the Media Services account.
* List all the media edge policies associated with the Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
Expand Down
Loading