Skip to content

Commit 69d66d9

Browse files
author
SDKAuto
committed
CodeGen from PR 18435 in Azure/azure-rest-api-specs
Merge 8c68ad16a14d1f89a5ec278eb1e00b4767ad1ed0 into 3026119ab41bbce77275cfa3a1afbabf43af5aea
1 parent f88366d commit 69d66d9

File tree

74 files changed

+2486
-598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2486
-598
lines changed

sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-28)
4+
5+
- 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).
46

57
### Features Added
68

sdk/mediaservices/azure-resourcemanager-mediaservices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager MediaServices client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-mediaservices</artifactId>
35-
<version>1.1.0-beta.3</version>
35+
<version>1.1.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md

Lines changed: 113 additions & 23 deletions
Large diffs are not rendered by default.

sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for MediaServices Management</name>
16-
<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>
16+
<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>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>
@@ -39,7 +39,6 @@
3939
<properties>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
<jacoco.skip>true</jacoco.skip>
42-
<revapi.skip>true</revapi.skip>
4342
</properties>
4443
<dependencies>
4544
<dependency>

sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
import com.azure.resourcemanager.mediaservices.implementation.LiveEventsImpl;
3232
import com.azure.resourcemanager.mediaservices.implementation.LiveOutputsImpl;
3333
import com.azure.resourcemanager.mediaservices.implementation.LocationsImpl;
34+
import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationResultsImpl;
35+
import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationStatusesImpl;
3436
import com.azure.resourcemanager.mediaservices.implementation.MediaservicesImpl;
3537
import com.azure.resourcemanager.mediaservices.implementation.OperationResultsImpl;
3638
import com.azure.resourcemanager.mediaservices.implementation.OperationStatusesImpl;
@@ -50,6 +52,8 @@
5052
import com.azure.resourcemanager.mediaservices.models.LiveEvents;
5153
import com.azure.resourcemanager.mediaservices.models.LiveOutputs;
5254
import com.azure.resourcemanager.mediaservices.models.Locations;
55+
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResults;
56+
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationStatuses;
5357
import com.azure.resourcemanager.mediaservices.models.Mediaservices;
5458
import com.azure.resourcemanager.mediaservices.models.OperationResults;
5559
import com.azure.resourcemanager.mediaservices.models.OperationStatuses;
@@ -82,6 +86,10 @@ public final class MediaServicesManager {
8286

8387
private Locations locations;
8488

89+
private MediaServiceOperationStatuses mediaServiceOperationStatuses;
90+
91+
private MediaServiceOperationResults mediaServiceOperationResults;
92+
8593
private Assets assets;
8694

8795
private AssetFilters assetFilters;
@@ -246,7 +254,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
246254
.append("-")
247255
.append("com.azure.resourcemanager.mediaservices")
248256
.append("/")
249-
.append("1.1.0-beta.3");
257+
.append("1.0.0-beta.1");
250258
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
251259
userAgentBuilder
252260
.append(" (")
@@ -347,6 +355,24 @@ public Locations locations() {
347355
return locations;
348356
}
349357

358+
/** @return Resource collection API of MediaServiceOperationStatuses. */
359+
public MediaServiceOperationStatuses mediaServiceOperationStatuses() {
360+
if (this.mediaServiceOperationStatuses == null) {
361+
this.mediaServiceOperationStatuses =
362+
new MediaServiceOperationStatusesImpl(clientObject.getMediaServiceOperationStatuses(), this);
363+
}
364+
return mediaServiceOperationStatuses;
365+
}
366+
367+
/** @return Resource collection API of MediaServiceOperationResults. */
368+
public MediaServiceOperationResults mediaServiceOperationResults() {
369+
if (this.mediaServiceOperationResults == null) {
370+
this.mediaServiceOperationResults =
371+
new MediaServiceOperationResultsImpl(clientObject.getMediaServiceOperationResults(), this);
372+
}
373+
return mediaServiceOperationResults;
374+
}
375+
350376
/** @return Resource collection API of Assets. */
351377
public Assets assets() {
352378
if (this.assets == null) {

sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AzureMediaServices.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ public interface AzureMediaServices {
2323
*/
2424
String getEndpoint();
2525

26+
/**
27+
* Gets Api Version.
28+
*
29+
* @return the apiVersion value.
30+
*/
31+
String getApiVersion();
32+
2633
/**
2734
* Gets The HTTP pipeline to send requests through.
2835
*
@@ -79,6 +86,20 @@ public interface AzureMediaServices {
7986
*/
8087
LocationsClient getLocations();
8188

89+
/**
90+
* Gets the MediaServiceOperationStatusesClient object to access its operations.
91+
*
92+
* @return the MediaServiceOperationStatusesClient object.
93+
*/
94+
MediaServiceOperationStatusesClient getMediaServiceOperationStatuses();
95+
96+
/**
97+
* Gets the MediaServiceOperationResultsClient object to access its operations.
98+
*
99+
* @return the MediaServiceOperationResultsClient object.
100+
*/
101+
MediaServiceOperationResultsClient getMediaServiceOperationResults();
102+
82103
/**
83104
* Gets the AssetsClient object to access its operations.
84105
*

sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface LocationsClient {
1616
/**
1717
* Checks whether the Media Service resource name is available.
1818
*
19-
* @param locationName The name of the location.
19+
* @param locationName Location name.
2020
* @param parameters The request parameters.
2121
* @throws IllegalArgumentException thrown if parameters fail the validation.
2222
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -30,7 +30,7 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability(
3030
/**
3131
* Checks whether the Media Service resource name is available.
3232
*
33-
* @param locationName The name of the location.
33+
* @param locationName Location name.
3434
* @param parameters The request parameters.
3535
* @param context The context to associate with this operation.
3636
* @throws IllegalArgumentException thrown if parameters fail the validation.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.mediaservices.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.util.Context;
10+
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
11+
import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResultsGetResponse;
12+
13+
/** An instance of this class provides access to all the operations defined in MediaServiceOperationResultsClient. */
14+
public interface MediaServiceOperationResultsClient {
15+
/**
16+
* Get media service operation result.
17+
*
18+
* @param locationName Location name.
19+
* @param operationId Operation Id.
20+
* @throws IllegalArgumentException thrown if parameters fail the validation.
21+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
22+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23+
* @return media service operation result.
24+
*/
25+
@ServiceMethod(returns = ReturnType.SINGLE)
26+
MediaServiceInner get(String locationName, String operationId);
27+
28+
/**
29+
* Get media service operation result.
30+
*
31+
* @param locationName Location name.
32+
* @param operationId Operation Id.
33+
* @param context The context to associate with this operation.
34+
* @throws IllegalArgumentException thrown if parameters fail the validation.
35+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
36+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37+
* @return media service operation result.
38+
*/
39+
@ServiceMethod(returns = ReturnType.SINGLE)
40+
MediaServiceOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context);
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.mediaservices.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceOperationStatusInner;
12+
13+
/** An instance of this class provides access to all the operations defined in MediaServiceOperationStatusesClient. */
14+
public interface MediaServiceOperationStatusesClient {
15+
/**
16+
* Get media service operation status.
17+
*
18+
* @param locationName Location name.
19+
* @param operationId Operation ID.
20+
* @throws IllegalArgumentException thrown if parameters fail the validation.
21+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
22+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
23+
* @return media service operation status.
24+
*/
25+
@ServiceMethod(returns = ReturnType.SINGLE)
26+
MediaServiceOperationStatusInner get(String locationName, String operationId);
27+
28+
/**
29+
* Get media service operation status.
30+
*
31+
* @param locationName Location name.
32+
* @param operationId Operation ID.
33+
* @param context The context to associate with this operation.
34+
* @throws IllegalArgumentException thrown if parameters fail the validation.
35+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
36+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37+
* @return media service operation status along with {@link Response}.
38+
*/
39+
@ServiceMethod(returns = ReturnType.SINGLE)
40+
Response<MediaServiceOperationStatusInner> getWithResponse(
41+
String locationName, String operationId, Context context);
42+
}

sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
import com.azure.core.annotation.ServiceMethod;
99
import com.azure.core.http.rest.PagedIterable;
1010
import com.azure.core.http.rest.Response;
11+
import com.azure.core.management.polling.PollResult;
1112
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
1214
import com.azure.resourcemanager.mediaservices.fluent.models.EdgePoliciesInner;
1315
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
1416
import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
@@ -70,6 +72,37 @@ public interface MediaservicesClient {
7072
Response<MediaServiceInner> getByResourceGroupWithResponse(
7173
String resourceGroupName, String accountName, Context context);
7274

75+
/**
76+
* Creates or updates a Media Services account.
77+
*
78+
* @param resourceGroupName The name of the resource group within the Azure subscription.
79+
* @param accountName The Media Services account name.
80+
* @param parameters The request parameters.
81+
* @throws IllegalArgumentException thrown if parameters fail the validation.
82+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
83+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84+
* @return the {@link SyncPoller} for polling of a Media Services account.
85+
*/
86+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
87+
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginCreateOrUpdate(
88+
String resourceGroupName, String accountName, MediaServiceInner parameters);
89+
90+
/**
91+
* Creates or updates a Media Services account.
92+
*
93+
* @param resourceGroupName The name of the resource group within the Azure subscription.
94+
* @param accountName The Media Services account name.
95+
* @param parameters The request parameters.
96+
* @param context The context to associate with this operation.
97+
* @throws IllegalArgumentException thrown if parameters fail the validation.
98+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
99+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
100+
* @return the {@link SyncPoller} for polling of a Media Services account.
101+
*/
102+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
103+
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginCreateOrUpdate(
104+
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);
105+
73106
/**
74107
* Creates or updates a Media Services account.
75108
*
@@ -94,10 +127,10 @@ Response<MediaServiceInner> getByResourceGroupWithResponse(
94127
* @throws IllegalArgumentException thrown if parameters fail the validation.
95128
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
96129
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
97-
* @return a Media Services account along with {@link Response}.
130+
* @return a Media Services account.
98131
*/
99132
@ServiceMethod(returns = ReturnType.SINGLE)
100-
Response<MediaServiceInner> createOrUpdateWithResponse(
133+
MediaServiceInner createOrUpdate(
101134
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);
102135

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

162+
/**
163+
* Updates an existing Media Services account.
164+
*
165+
* @param resourceGroupName The name of the resource group within the Azure subscription.
166+
* @param accountName The Media Services account name.
167+
* @param parameters The request parameters.
168+
* @throws IllegalArgumentException thrown if parameters fail the validation.
169+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
170+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
171+
* @return the {@link SyncPoller} for polling of a Media Services account.
172+
*/
173+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
174+
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginUpdate(
175+
String resourceGroupName, String accountName, MediaServiceUpdate parameters);
176+
177+
/**
178+
* Updates an existing Media Services account.
179+
*
180+
* @param resourceGroupName The name of the resource group within the Azure subscription.
181+
* @param accountName The Media Services account name.
182+
* @param parameters The request parameters.
183+
* @param context The context to associate with this operation.
184+
* @throws IllegalArgumentException thrown if parameters fail the validation.
185+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
186+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
187+
* @return the {@link SyncPoller} for polling of a Media Services account.
188+
*/
189+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
190+
SyncPoller<PollResult<MediaServiceInner>, MediaServiceInner> beginUpdate(
191+
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);
192+
129193
/**
130194
* Updates an existing Media Services account.
131195
*
@@ -150,10 +214,10 @@ Response<MediaServiceInner> createOrUpdateWithResponse(
150214
* @throws IllegalArgumentException thrown if parameters fail the validation.
151215
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
152216
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
153-
* @return a Media Services account along with {@link Response}.
217+
* @return a Media Services account.
154218
*/
155219
@ServiceMethod(returns = ReturnType.SINGLE)
156-
Response<MediaServiceInner> updateWithResponse(
220+
MediaServiceInner update(
157221
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);
158222

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

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

202266
/**
203-
* List the media edge policies associated with the Media Services account.
267+
* List all the media edge policies associated with the Media Services account.
204268
*
205269
* @param resourceGroupName The name of the resource group within the Azure subscription.
206270
* @param accountName The Media Services account name.

0 commit comments

Comments
 (0)