Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 2.4.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-02-15)

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

### 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-encoding-2022-07. 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-2023-01. 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>2.3.0</version>
<version>2.4.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
363 changes: 234 additions & 129 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-encoding-2022-07.</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-2023-01.</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 @@ -283,7 +283,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
.append("2.3.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 @@ -13,6 +13,9 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventStatusInner;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventStreamEventInner;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventTrackEventInner;
import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput;

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

/**
* Get status of one live event
*
* <p>Gets status telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 status telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventStatusInner> listGetStatus(
String resourceGroupName, String accountName, String liveEventName);

/**
* Get status of one live event
*
* <p>Gets status telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 status telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventStatusInner> listGetStatus(
String resourceGroupName, String accountName, String liveEventName, Context context);

/**
* Get stream events of one live event
*
* <p>Get stream events telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 stream events telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventStreamEventInner> listGetStreamEvents(
String resourceGroupName, String accountName, String liveEventName);

/**
* Get stream events of one live event
*
* <p>Get stream events telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 stream events telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventStreamEventInner> listGetStreamEvents(
String resourceGroupName, String accountName, String liveEventName, Context context);

/**
* Get track events of one live event
*
* <p>Get track ingest heartbeat events telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 track ingest heartbeat events telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventTrackEventInner> listGetTrackIngestHeartbeats(
String resourceGroupName, String accountName, String liveEventName);

/**
* Get track events of one live event
*
* <p>Get track ingest heartbeat events telemetry of a live event.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param liveEventName The name of the live event, maximum length is 32.
* @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 track ingest heartbeat events telemetry of a live event as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LiveEventTrackEventInner> listGetTrackIngestHeartbeats(
String resourceGroupName, String accountName, String liveEventName, Context context);

/**
* Get operation status.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
// 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.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.mediaservices.models.LiveEventHealthStatus;
import com.azure.resourcemanager.mediaservices.models.LiveEventIngestion;
import com.azure.resourcemanager.mediaservices.models.LiveEventState;
import com.azure.resourcemanager.mediaservices.models.LiveEventTrackStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;

/** The live event status. */
@Fluent
public final class LiveEventStatusInner {
/*
* Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.
*/
@JsonProperty(value = "state")
private LiveEventState state;

/*
* Health status of last 20 seconds.
*/
@JsonProperty(value = "healthStatus")
private LiveEventHealthStatus healthStatus;

/*
* List of strings justifying the health status.
*/
@JsonProperty(value = "healthDescriptions")
private List<String> healthDescriptions;

/*
* Last updated UTC time of this status.
*/
@JsonProperty(value = "lastUpdatedTime")
private OffsetDateTime lastUpdatedTime;

/*
* Live event ingestion entry.
*/
@JsonProperty(value = "ingestion")
private LiveEventIngestion ingestion;

/*
* Track entry list.
*/
@JsonProperty(value = "trackStatus")
private List<LiveEventTrackStatus> trackStatus;

/** Creates an instance of LiveEventStatusInner class. */
public LiveEventStatusInner() {
}

/**
* Get the state property: Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for
* more information.
*
* @return the state value.
*/
public LiveEventState state() {
return this.state;
}

/**
* Set the state property: Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for
* more information.
*
* @param state the state value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withState(LiveEventState state) {
this.state = state;
return this;
}

/**
* Get the healthStatus property: Health status of last 20 seconds.
*
* @return the healthStatus value.
*/
public LiveEventHealthStatus healthStatus() {
return this.healthStatus;
}

/**
* Set the healthStatus property: Health status of last 20 seconds.
*
* @param healthStatus the healthStatus value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withHealthStatus(LiveEventHealthStatus healthStatus) {
this.healthStatus = healthStatus;
return this;
}

/**
* Get the healthDescriptions property: List of strings justifying the health status.
*
* @return the healthDescriptions value.
*/
public List<String> healthDescriptions() {
return this.healthDescriptions;
}

/**
* Set the healthDescriptions property: List of strings justifying the health status.
*
* @param healthDescriptions the healthDescriptions value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withHealthDescriptions(List<String> healthDescriptions) {
this.healthDescriptions = healthDescriptions;
return this;
}

/**
* Get the lastUpdatedTime property: Last updated UTC time of this status.
*
* @return the lastUpdatedTime value.
*/
public OffsetDateTime lastUpdatedTime() {
return this.lastUpdatedTime;
}

/**
* Set the lastUpdatedTime property: Last updated UTC time of this status.
*
* @param lastUpdatedTime the lastUpdatedTime value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withLastUpdatedTime(OffsetDateTime lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
return this;
}

/**
* Get the ingestion property: Live event ingestion entry.
*
* @return the ingestion value.
*/
public LiveEventIngestion ingestion() {
return this.ingestion;
}

/**
* Set the ingestion property: Live event ingestion entry.
*
* @param ingestion the ingestion value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withIngestion(LiveEventIngestion ingestion) {
this.ingestion = ingestion;
return this;
}

/**
* Get the trackStatus property: Track entry list.
*
* @return the trackStatus value.
*/
public List<LiveEventTrackStatus> trackStatus() {
return this.trackStatus;
}

/**
* Set the trackStatus property: Track entry list.
*
* @param trackStatus the trackStatus value to set.
* @return the LiveEventStatusInner object itself.
*/
public LiveEventStatusInner withTrackStatus(List<LiveEventTrackStatus> trackStatus) {
this.trackStatus = trackStatus;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (ingestion() != null) {
ingestion().validate();
}
if (trackStatus() != null) {
trackStatus().forEach(e -> e.validate());
}
}
}
Loading