Skip to content

Commit 7d75c00

Browse files
author
SDKAuto
committed
CodeGen from PR 22614 in Azure/azure-rest-api-specs
Merge 0cdb2068e4a1be5379affeb0fefa494c27167d43 into 62bb0d101c8aee92e4d77ad14b20e4cf14bb181c
1 parent 7748148 commit 7d75c00

File tree

385 files changed

+5065
-11901
lines changed

Some content is hidden

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

385 files changed

+5065
-11901
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-
## 2.4.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-02-15)
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-2023-01. 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-encoding-2022-07. 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-2023-01. 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>2.3.0</version>
35+
<version>2.4.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 234 additions & 129 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-encoding-2022-07.</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-2023-01.</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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
283283
.append("-")
284284
.append("com.azure.resourcemanager.mediaservices")
285285
.append("/")
286-
.append("2.3.0");
286+
.append("1.0.0-beta.1");
287287
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
288288
userAgentBuilder
289289
.append(" (")

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

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner;
1515
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner;
16+
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventStatusInner;
17+
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventStreamEventInner;
18+
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventTrackEventInner;
1619
import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput;
1720

1821
/** An instance of this class provides access to all the operations defined in LiveEventsClient. */
@@ -582,6 +585,111 @@ SyncPoller<PollResult<Void>, Void> beginReset(
582585
@ServiceMethod(returns = ReturnType.SINGLE)
583586
void reset(String resourceGroupName, String accountName, String liveEventName, Context context);
584587

588+
/**
589+
* Get status of one live event
590+
*
591+
* <p>Gets status telemetry of a live event.
592+
*
593+
* @param resourceGroupName The name of the resource group within the Azure subscription.
594+
* @param accountName The Media Services account name.
595+
* @param liveEventName The name of the live event, maximum length is 32.
596+
* @throws IllegalArgumentException thrown if parameters fail the validation.
597+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
598+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
599+
* @return status telemetry of a live event as paginated response with {@link PagedIterable}.
600+
*/
601+
@ServiceMethod(returns = ReturnType.COLLECTION)
602+
PagedIterable<LiveEventStatusInner> listGetStatus(
603+
String resourceGroupName, String accountName, String liveEventName);
604+
605+
/**
606+
* Get status of one live event
607+
*
608+
* <p>Gets status telemetry of a live event.
609+
*
610+
* @param resourceGroupName The name of the resource group within the Azure subscription.
611+
* @param accountName The Media Services account name.
612+
* @param liveEventName The name of the live event, maximum length is 32.
613+
* @param context The context to associate with this operation.
614+
* @throws IllegalArgumentException thrown if parameters fail the validation.
615+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
616+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
617+
* @return status telemetry of a live event as paginated response with {@link PagedIterable}.
618+
*/
619+
@ServiceMethod(returns = ReturnType.COLLECTION)
620+
PagedIterable<LiveEventStatusInner> listGetStatus(
621+
String resourceGroupName, String accountName, String liveEventName, Context context);
622+
623+
/**
624+
* Get stream events of one live event
625+
*
626+
* <p>Get stream events telemetry of a live event.
627+
*
628+
* @param resourceGroupName The name of the resource group within the Azure subscription.
629+
* @param accountName The Media Services account name.
630+
* @param liveEventName The name of the live event, maximum length is 32.
631+
* @throws IllegalArgumentException thrown if parameters fail the validation.
632+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
633+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
634+
* @return stream events telemetry of a live event as paginated response with {@link PagedIterable}.
635+
*/
636+
@ServiceMethod(returns = ReturnType.COLLECTION)
637+
PagedIterable<LiveEventStreamEventInner> listGetStreamEvents(
638+
String resourceGroupName, String accountName, String liveEventName);
639+
640+
/**
641+
* Get stream events of one live event
642+
*
643+
* <p>Get stream events telemetry of a live event.
644+
*
645+
* @param resourceGroupName The name of the resource group within the Azure subscription.
646+
* @param accountName The Media Services account name.
647+
* @param liveEventName The name of the live event, maximum length is 32.
648+
* @param context The context to associate with this operation.
649+
* @throws IllegalArgumentException thrown if parameters fail the validation.
650+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
651+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
652+
* @return stream events telemetry of a live event as paginated response with {@link PagedIterable}.
653+
*/
654+
@ServiceMethod(returns = ReturnType.COLLECTION)
655+
PagedIterable<LiveEventStreamEventInner> listGetStreamEvents(
656+
String resourceGroupName, String accountName, String liveEventName, Context context);
657+
658+
/**
659+
* Get track events of one live event
660+
*
661+
* <p>Get track ingest heartbeat events telemetry of a live event.
662+
*
663+
* @param resourceGroupName The name of the resource group within the Azure subscription.
664+
* @param accountName The Media Services account name.
665+
* @param liveEventName The name of the live event, maximum length is 32.
666+
* @throws IllegalArgumentException thrown if parameters fail the validation.
667+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
668+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
669+
* @return track ingest heartbeat events telemetry of a live event as paginated response with {@link PagedIterable}.
670+
*/
671+
@ServiceMethod(returns = ReturnType.COLLECTION)
672+
PagedIterable<LiveEventTrackEventInner> listGetTrackIngestHeartbeats(
673+
String resourceGroupName, String accountName, String liveEventName);
674+
675+
/**
676+
* Get track events of one live event
677+
*
678+
* <p>Get track ingest heartbeat events telemetry of a live event.
679+
*
680+
* @param resourceGroupName The name of the resource group within the Azure subscription.
681+
* @param accountName The Media Services account name.
682+
* @param liveEventName The name of the live event, maximum length is 32.
683+
* @param context The context to associate with this operation.
684+
* @throws IllegalArgumentException thrown if parameters fail the validation.
685+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
686+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
687+
* @return track ingest heartbeat events telemetry of a live event as paginated response with {@link PagedIterable}.
688+
*/
689+
@ServiceMethod(returns = ReturnType.COLLECTION)
690+
PagedIterable<LiveEventTrackEventInner> listGetTrackIngestHeartbeats(
691+
String resourceGroupName, String accountName, String liveEventName, Context context);
692+
585693
/**
586694
* Get operation status.
587695
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
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.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.resourcemanager.mediaservices.models.LiveEventHealthStatus;
9+
import com.azure.resourcemanager.mediaservices.models.LiveEventIngestion;
10+
import com.azure.resourcemanager.mediaservices.models.LiveEventState;
11+
import com.azure.resourcemanager.mediaservices.models.LiveEventTrackStatus;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import java.time.OffsetDateTime;
14+
import java.util.List;
15+
16+
/** The live event status. */
17+
@Fluent
18+
public final class LiveEventStatusInner {
19+
/*
20+
* Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.
21+
*/
22+
@JsonProperty(value = "state")
23+
private LiveEventState state;
24+
25+
/*
26+
* Health status of last 20 seconds.
27+
*/
28+
@JsonProperty(value = "healthStatus")
29+
private LiveEventHealthStatus healthStatus;
30+
31+
/*
32+
* List of strings justifying the health status.
33+
*/
34+
@JsonProperty(value = "healthDescriptions")
35+
private List<String> healthDescriptions;
36+
37+
/*
38+
* Last updated UTC time of this status.
39+
*/
40+
@JsonProperty(value = "lastUpdatedTime")
41+
private OffsetDateTime lastUpdatedTime;
42+
43+
/*
44+
* Live event ingestion entry.
45+
*/
46+
@JsonProperty(value = "ingestion")
47+
private LiveEventIngestion ingestion;
48+
49+
/*
50+
* Track entry list.
51+
*/
52+
@JsonProperty(value = "trackStatus")
53+
private List<LiveEventTrackStatus> trackStatus;
54+
55+
/** Creates an instance of LiveEventStatusInner class. */
56+
public LiveEventStatusInner() {
57+
}
58+
59+
/**
60+
* Get the state property: Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for
61+
* more information.
62+
*
63+
* @return the state value.
64+
*/
65+
public LiveEventState state() {
66+
return this.state;
67+
}
68+
69+
/**
70+
* Set the state property: Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for
71+
* more information.
72+
*
73+
* @param state the state value to set.
74+
* @return the LiveEventStatusInner object itself.
75+
*/
76+
public LiveEventStatusInner withState(LiveEventState state) {
77+
this.state = state;
78+
return this;
79+
}
80+
81+
/**
82+
* Get the healthStatus property: Health status of last 20 seconds.
83+
*
84+
* @return the healthStatus value.
85+
*/
86+
public LiveEventHealthStatus healthStatus() {
87+
return this.healthStatus;
88+
}
89+
90+
/**
91+
* Set the healthStatus property: Health status of last 20 seconds.
92+
*
93+
* @param healthStatus the healthStatus value to set.
94+
* @return the LiveEventStatusInner object itself.
95+
*/
96+
public LiveEventStatusInner withHealthStatus(LiveEventHealthStatus healthStatus) {
97+
this.healthStatus = healthStatus;
98+
return this;
99+
}
100+
101+
/**
102+
* Get the healthDescriptions property: List of strings justifying the health status.
103+
*
104+
* @return the healthDescriptions value.
105+
*/
106+
public List<String> healthDescriptions() {
107+
return this.healthDescriptions;
108+
}
109+
110+
/**
111+
* Set the healthDescriptions property: List of strings justifying the health status.
112+
*
113+
* @param healthDescriptions the healthDescriptions value to set.
114+
* @return the LiveEventStatusInner object itself.
115+
*/
116+
public LiveEventStatusInner withHealthDescriptions(List<String> healthDescriptions) {
117+
this.healthDescriptions = healthDescriptions;
118+
return this;
119+
}
120+
121+
/**
122+
* Get the lastUpdatedTime property: Last updated UTC time of this status.
123+
*
124+
* @return the lastUpdatedTime value.
125+
*/
126+
public OffsetDateTime lastUpdatedTime() {
127+
return this.lastUpdatedTime;
128+
}
129+
130+
/**
131+
* Set the lastUpdatedTime property: Last updated UTC time of this status.
132+
*
133+
* @param lastUpdatedTime the lastUpdatedTime value to set.
134+
* @return the LiveEventStatusInner object itself.
135+
*/
136+
public LiveEventStatusInner withLastUpdatedTime(OffsetDateTime lastUpdatedTime) {
137+
this.lastUpdatedTime = lastUpdatedTime;
138+
return this;
139+
}
140+
141+
/**
142+
* Get the ingestion property: Live event ingestion entry.
143+
*
144+
* @return the ingestion value.
145+
*/
146+
public LiveEventIngestion ingestion() {
147+
return this.ingestion;
148+
}
149+
150+
/**
151+
* Set the ingestion property: Live event ingestion entry.
152+
*
153+
* @param ingestion the ingestion value to set.
154+
* @return the LiveEventStatusInner object itself.
155+
*/
156+
public LiveEventStatusInner withIngestion(LiveEventIngestion ingestion) {
157+
this.ingestion = ingestion;
158+
return this;
159+
}
160+
161+
/**
162+
* Get the trackStatus property: Track entry list.
163+
*
164+
* @return the trackStatus value.
165+
*/
166+
public List<LiveEventTrackStatus> trackStatus() {
167+
return this.trackStatus;
168+
}
169+
170+
/**
171+
* Set the trackStatus property: Track entry list.
172+
*
173+
* @param trackStatus the trackStatus value to set.
174+
* @return the LiveEventStatusInner object itself.
175+
*/
176+
public LiveEventStatusInner withTrackStatus(List<LiveEventTrackStatus> trackStatus) {
177+
this.trackStatus = trackStatus;
178+
return this;
179+
}
180+
181+
/**
182+
* Validates the instance.
183+
*
184+
* @throws IllegalArgumentException thrown if the instance is not valid.
185+
*/
186+
public void validate() {
187+
if (ingestion() != null) {
188+
ingestion().validate();
189+
}
190+
if (trackStatus() != null) {
191+
trackStatus().forEach(e -> e.validate());
192+
}
193+
}
194+
}

0 commit comments

Comments
 (0)