diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
index f076cb2b8381..dd78406977cf 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2021-02-04)
+- 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).
## 1.0.0-beta.1 (2020-12-16)
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md
index 57c961b0a9bc..b2609498fa35 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md
@@ -4,6 +4,20 @@ 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).
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
## Getting started
### Prerequisites
@@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for Mediaservices Management SDK. This
com.azure.resourcemanager
azure-resourcemanager-mediaservices
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaservicesManager.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaservicesManager.java
index ba915239ce37..24026e889344 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaservicesManager.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaservicesManager.java
@@ -212,17 +212,31 @@ public MediaservicesManager authenticate(TokenCredential credential, AzureProfil
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.mediaservices")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List policies = new ArrayList<>();
- policies
- .add(
- new UserAgentPolicy(
- null,
- "com.azure.resourcemanager.mediaservices",
- "1.0.0-beta.1",
- Configuration.getGlobalConfiguration()));
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
index d0705243f5a8..8fa01620441e 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -21,6 +22,12 @@
public class AccountFilterInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountFilterInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The presentation time range.
*/
@@ -39,6 +46,15 @@ public class AccountFilterInner extends ProxyResource {
@JsonProperty(value = "properties.tracks")
private List tracks;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the presentationTimeRange property: The presentation time range.
*
@@ -105,6 +121,9 @@ public AccountFilterInner withTracks(List tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
index d18060609f8a..312db4541fdf 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -21,6 +22,12 @@
public class AssetFilterInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetFilterInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The presentation time range.
*/
@@ -39,6 +46,15 @@ public class AssetFilterInner extends ProxyResource {
@JsonProperty(value = "properties.tracks")
private List tracks;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the presentationTimeRange property: The presentation time range.
*
@@ -105,6 +121,9 @@ public AssetFilterInner withTracks(List tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
index 225debe57597..1660d8ba7076 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
@@ -9,6 +9,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.AssetStorageEncryptionFormat;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -20,6 +21,12 @@
public class AssetInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The Asset ID.
*/
@@ -68,6 +75,15 @@ public class AssetInner extends ProxyResource {
@JsonProperty(value = "properties.storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY)
private AssetStorageEncryptionFormat storageEncryptionFormat;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the assetId property: The Asset ID.
*
@@ -190,5 +206,8 @@ public AssetStorageEncryptionFormat storageEncryptionFormat() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
index 32d4954f6537..2c1583cf4bdf 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
@@ -9,6 +9,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -21,6 +22,12 @@
public class ContentKeyPolicyInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ContentKeyPolicyInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The legacy Policy ID.
*/
@@ -51,6 +58,15 @@ public class ContentKeyPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.options")
private List options;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the policyId property: The legacy Policy ID.
*
@@ -124,6 +140,9 @@ public ContentKeyPolicyInner withOptions(List options) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (options() != null) {
options().forEach(e -> e.validate());
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
index 5f48711a9d14..bfac62f34868 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.mediaservices.models.JobOutput;
import com.azure.resourcemanager.mediaservices.models.JobState;
import com.azure.resourcemanager.mediaservices.models.Priority;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -27,6 +28,12 @@
public class JobInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(JobInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The UTC date and time when the customer has created the Job, in
* 'YYYY-MM-DDThh:mm:ssZ' format.
@@ -92,6 +99,15 @@ public class JobInner extends ProxyResource {
@JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime endTime;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ'
* format.
@@ -249,6 +265,9 @@ public OffsetDateTime endTime() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (input() != null) {
input().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
index b9de698cfe82..e0d77a91c349 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.mediaservices.models.LiveEventResourceState;
import com.azure.resourcemanager.mediaservices.models.LiveEventTranscription;
import com.azure.resourcemanager.mediaservices.models.StreamOptionsFlag;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -27,6 +28,12 @@
public class LiveEventInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(LiveEventInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* A description for the live event.
*/
@@ -120,6 +127,15 @@ public class LiveEventInner extends Resource {
@JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastModified;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the description property: A description for the live event.
*
@@ -375,6 +391,9 @@ public LiveEventInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (input() != null) {
input().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
index 4c4e87b38633..31692cadded5 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -30,6 +31,12 @@ public class MediaServiceInner extends Resource {
@JsonProperty(value = "identity")
private MediaServiceIdentity identity;
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The Media Services account ID.
*/
@@ -74,6 +81,15 @@ public MediaServiceInner withIdentity(MediaServiceIdentity identity) {
return this;
}
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the mediaServiceId property: The Media Services account ID.
*
@@ -166,6 +182,9 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (storageAccounts() != null) {
storageAccounts().forEach(e -> e.validate());
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java
index 889963f9e44b..934ebac143f3 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.mediaservices.models.CrossSiteAccessPolicies;
import com.azure.resourcemanager.mediaservices.models.StreamingEndpointAccessControl;
import com.azure.resourcemanager.mediaservices.models.StreamingEndpointResourceState;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -23,6 +24,12 @@
public class StreamingEndpointInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StreamingEndpointInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The streaming endpoint description.
*/
@@ -119,6 +126,15 @@ public class StreamingEndpointInner extends Resource {
@JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastModified;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the description property: The streaming endpoint description.
*
@@ -393,6 +409,9 @@ public StreamingEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (accessControl() != null) {
accessControl().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java
index 8ff8841ef760..08c29ccc0bb7 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java
@@ -9,6 +9,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.StreamingLocatorContentKey;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -21,6 +22,12 @@
public class StreamingLocatorInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StreamingLocatorInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Asset Name
*/
@@ -87,6 +94,15 @@ public class StreamingLocatorInner extends ProxyResource {
@JsonProperty(value = "properties.filters")
private List filters;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the assetName property: Asset Name.
*
@@ -292,6 +308,9 @@ public StreamingLocatorInner withFilters(List filters) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (contentKeys() != null) {
contentKeys().forEach(e -> e.validate());
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java
index c08cb610ba66..430345d5c08a 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.mediaservices.models.CommonEncryptionCenc;
import com.azure.resourcemanager.mediaservices.models.EnvelopeEncryption;
import com.azure.resourcemanager.mediaservices.models.NoEncryption;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -22,6 +23,12 @@
public class StreamingPolicyInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StreamingPolicyInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* Creation time of Streaming Policy
*/
@@ -58,6 +65,15 @@ public class StreamingPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.noEncryption")
private NoEncryption noEncryption;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the created property: Creation time of Streaming Policy.
*
@@ -173,6 +189,9 @@ public StreamingPolicyInner withNoEncryption(NoEncryption noEncryption) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (envelopeEncryption() != null) {
envelopeEncryption().validate();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java
index e317807d4d50..1db7204f98ae 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java
@@ -8,6 +8,7 @@
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.azure.resourcemanager.mediaservices.models.TransformOutput;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,6 +25,12 @@
public class TransformInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(TransformInner.class);
+ /*
+ * The system metadata relating to this resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/*
* The UTC date and time when the Transform was created, in
* 'YYYY-MM-DDThh:mm:ssZ' format.
@@ -51,6 +58,15 @@ public class TransformInner extends ProxyResource {
@JsonProperty(value = "properties.outputs")
private List outputs;
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the created property: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
@@ -116,6 +132,9 @@ public TransformInner withOutputs(List outputs) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (systemData() != null) {
+ systemData().validate();
+ }
if (outputs() != null) {
outputs().forEach(e -> e.validate());
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFilterImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFilterImpl.java
index 75a596817fd4..92ef00cc2ca5 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFilterImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFilterImpl.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.util.Collections;
import java.util.List;
@@ -31,6 +32,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public PresentationTimeRange presentationTimeRange() {
return this.innerModel().presentationTimeRange();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFilterImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFilterImpl.java
index a51db25d2aba..62a2eb8ed3b8 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFilterImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFilterImpl.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.util.Collections;
import java.util.List;
@@ -31,6 +32,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public PresentationTimeRange presentationTimeRange() {
return this.innerModel().presentationTimeRange();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java
index c26d583c62d6..9c1dc6b976d4 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java
@@ -4,11 +4,17 @@
package com.azure.resourcemanager.mediaservices.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.AssetInner;
import com.azure.resourcemanager.mediaservices.models.Asset;
+import com.azure.resourcemanager.mediaservices.models.AssetContainerSas;
import com.azure.resourcemanager.mediaservices.models.AssetStorageEncryptionFormat;
+import com.azure.resourcemanager.mediaservices.models.ListContainerSasInput;
+import com.azure.resourcemanager.mediaservices.models.ListStreamingLocatorsResponse;
+import com.azure.resourcemanager.mediaservices.models.StorageEncryptedAssetDecryptionData;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.UUID;
@@ -29,6 +35,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public UUID assetId() {
return this.innerModel().assetId();
}
@@ -159,6 +169,34 @@ public Asset refresh(Context context) {
return this;
}
+ public AssetContainerSas listContainerSas(ListContainerSasInput parameters) {
+ return serviceManager.assets().listContainerSas(resourceGroupName, accountName, assetName, parameters);
+ }
+
+ public Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context) {
+ return serviceManager
+ .assets()
+ .listContainerSasWithResponse(resourceGroupName, accountName, assetName, parameters, context);
+ }
+
+ public StorageEncryptedAssetDecryptionData getEncryptionKey() {
+ return serviceManager.assets().getEncryptionKey(resourceGroupName, accountName, assetName);
+ }
+
+ public Response getEncryptionKeyWithResponse(Context context) {
+ return serviceManager.assets().getEncryptionKeyWithResponse(resourceGroupName, accountName, assetName, context);
+ }
+
+ public ListStreamingLocatorsResponse listStreamingLocators() {
+ return serviceManager.assets().listStreamingLocators(resourceGroupName, accountName, assetName);
+ }
+
+ public Response listStreamingLocatorsWithResponse(Context context) {
+ return serviceManager
+ .assets()
+ .listStreamingLocatorsWithResponse(resourceGroupName, accountName, assetName, context);
+ }
+
public AssetImpl withAlternateId(String alternateId) {
this.innerModel().withAlternateId(alternateId);
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java
index 14678c52aafd..dd14f4ccfc89 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java
@@ -4,11 +4,14 @@
package com.azure.resourcemanager.mediaservices.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.ContentKeyPolicyInner;
import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicy;
import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyProperties;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -32,6 +35,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public UUID policyId() {
return this.innerModel().policyId();
}
@@ -158,6 +165,18 @@ public ContentKeyPolicy refresh(Context context) {
return this;
}
+ public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets() {
+ return serviceManager
+ .contentKeyPolicies()
+ .getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName);
+ }
+
+ public Response getPolicyPropertiesWithSecretsWithResponse(Context context) {
+ return serviceManager
+ .contentKeyPolicies()
+ .getPolicyPropertiesWithSecretsWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context);
+ }
+
public ContentKeyPolicyImpl withDescription(String description) {
this.innerModel().withDescription(description);
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java
index 91b8fa82d316..a706880cdbb3 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.JobInner;
@@ -12,6 +13,7 @@
import com.azure.resourcemanager.mediaservices.models.JobOutput;
import com.azure.resourcemanager.mediaservices.models.JobState;
import com.azure.resourcemanager.mediaservices.models.Priority;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -34,6 +36,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public OffsetDateTime created() {
return this.innerModel().created();
}
@@ -188,6 +194,16 @@ public Job refresh(Context context) {
return this;
}
+ public void cancelJob() {
+ serviceManager.jobs().cancelJob(resourceGroupName, accountName, transformName, jobName);
+ }
+
+ public Response cancelJobWithResponse(Context context) {
+ return serviceManager
+ .jobs()
+ .cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, context);
+ }
+
public JobImpl withDescription(String description) {
this.innerModel().withDescription(description);
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventImpl.java
index 80b5849fb578..8ddc2adf9fd0 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventImpl.java
@@ -10,12 +10,14 @@
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner;
import com.azure.resourcemanager.mediaservices.models.CrossSiteAccessPolicies;
import com.azure.resourcemanager.mediaservices.models.LiveEvent;
+import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput;
import com.azure.resourcemanager.mediaservices.models.LiveEventEncoding;
import com.azure.resourcemanager.mediaservices.models.LiveEventInput;
import com.azure.resourcemanager.mediaservices.models.LiveEventPreview;
import com.azure.resourcemanager.mediaservices.models.LiveEventResourceState;
import com.azure.resourcemanager.mediaservices.models.LiveEventTranscription;
import com.azure.resourcemanager.mediaservices.models.StreamOptionsFlag;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -51,6 +53,10 @@ public Map tags() {
}
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String description() {
return this.innerModel().description();
}
@@ -219,6 +225,38 @@ public LiveEvent refresh(Context context) {
return this;
}
+ public void allocate() {
+ serviceManager.liveEvents().allocate(resourceGroupName, accountName, liveEventName);
+ }
+
+ public void allocate(Context context) {
+ serviceManager.liveEvents().allocate(resourceGroupName, accountName, liveEventName, context);
+ }
+
+ public void start() {
+ serviceManager.liveEvents().start(resourceGroupName, accountName, liveEventName);
+ }
+
+ public void start(Context context) {
+ serviceManager.liveEvents().start(resourceGroupName, accountName, liveEventName, context);
+ }
+
+ public void stop(LiveEventActionInput parameters) {
+ serviceManager.liveEvents().stop(resourceGroupName, accountName, liveEventName, parameters);
+ }
+
+ public void stop(LiveEventActionInput parameters, Context context) {
+ serviceManager.liveEvents().stop(resourceGroupName, accountName, liveEventName, parameters, context);
+ }
+
+ public void reset() {
+ serviceManager.liveEvents().reset(resourceGroupName, accountName, liveEventName);
+ }
+
+ public void reset(Context context) {
+ serviceManager.liveEvents().reset(resourceGroupName, accountName, liveEventName, context);
+ }
+
public LiveEventImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java
index d786bcd15c9c..6d6c3b8b0f61 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java
@@ -4,15 +4,20 @@
package com.azure.resourcemanager.mediaservices.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
import com.azure.resourcemanager.mediaservices.models.AccountEncryption;
+import com.azure.resourcemanager.mediaservices.models.EdgePolicies;
+import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
import com.azure.resourcemanager.mediaservices.models.MediaService;
import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
+import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -52,6 +57,10 @@ public MediaServiceIdentity identity() {
return this.innerModel().identity();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public UUID mediaServiceId() {
return this.innerModel().mediaServiceId();
}
@@ -175,6 +184,26 @@ public MediaService refresh(Context context) {
return this;
}
+ public void syncStorageKeys(SyncStorageKeysInput parameters) {
+ serviceManager.mediaservices().syncStorageKeys(resourceGroupName, accountName, parameters);
+ }
+
+ public Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context) {
+ return serviceManager
+ .mediaservices()
+ .syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, context);
+ }
+
+ public EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters) {
+ return serviceManager.mediaservices().listEdgePolicies(resourceGroupName, accountName, parameters);
+ }
+
+ public Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context) {
+ return serviceManager
+ .mediaservices()
+ .listEdgePoliciesWithResponse(resourceGroupName, accountName, parameters, context);
+ }
+
public MediaServiceImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointImpl.java
index 2794b1a553f0..4c814722d0e6 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointImpl.java
@@ -12,6 +12,8 @@
import com.azure.resourcemanager.mediaservices.models.StreamingEndpoint;
import com.azure.resourcemanager.mediaservices.models.StreamingEndpointAccessControl;
import com.azure.resourcemanager.mediaservices.models.StreamingEndpointResourceState;
+import com.azure.resourcemanager.mediaservices.models.StreamingEntityScaleUnit;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -48,6 +50,10 @@ public Map tags() {
}
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String description() {
return this.innerModel().description();
}
@@ -229,6 +235,32 @@ public StreamingEndpoint refresh(Context context) {
return this;
}
+ public void start() {
+ serviceManager.streamingEndpoints().start(resourceGroupName, accountName, streamingEndpointName);
+ }
+
+ public void start(Context context) {
+ serviceManager.streamingEndpoints().start(resourceGroupName, accountName, streamingEndpointName, context);
+ }
+
+ public void stop() {
+ serviceManager.streamingEndpoints().stop(resourceGroupName, accountName, streamingEndpointName);
+ }
+
+ public void stop(Context context) {
+ serviceManager.streamingEndpoints().stop(resourceGroupName, accountName, streamingEndpointName, context);
+ }
+
+ public void scale(StreamingEntityScaleUnit parameters) {
+ serviceManager.streamingEndpoints().scale(resourceGroupName, accountName, streamingEndpointName, parameters);
+ }
+
+ public void scale(StreamingEntityScaleUnit parameters, Context context) {
+ serviceManager
+ .streamingEndpoints()
+ .scale(resourceGroupName, accountName, streamingEndpointName, parameters, context);
+ }
+
public StreamingEndpointImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java
index c7c69ca9f7b5..14b21610a529 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java
@@ -4,11 +4,15 @@
package com.azure.resourcemanager.mediaservices.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.StreamingLocatorInner;
+import com.azure.resourcemanager.mediaservices.models.ListContentKeysResponse;
+import com.azure.resourcemanager.mediaservices.models.ListPathsResponse;
import com.azure.resourcemanager.mediaservices.models.StreamingLocator;
import com.azure.resourcemanager.mediaservices.models.StreamingLocatorContentKey;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -36,6 +40,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String assetName() {
return this.innerModel().assetName();
}
@@ -153,6 +161,26 @@ public StreamingLocator refresh(Context context) {
return this;
}
+ public ListContentKeysResponse listContentKeys() {
+ return serviceManager.streamingLocators().listContentKeys(resourceGroupName, accountName, streamingLocatorName);
+ }
+
+ public Response listContentKeysWithResponse(Context context) {
+ return serviceManager
+ .streamingLocators()
+ .listContentKeysWithResponse(resourceGroupName, accountName, streamingLocatorName, context);
+ }
+
+ public ListPathsResponse listPaths() {
+ return serviceManager.streamingLocators().listPaths(resourceGroupName, accountName, streamingLocatorName);
+ }
+
+ public Response listPathsWithResponse(Context context) {
+ return serviceManager
+ .streamingLocators()
+ .listPathsWithResponse(resourceGroupName, accountName, streamingLocatorName, context);
+ }
+
public StreamingLocatorImpl withAssetName(String assetName) {
this.innerModel().withAssetName(assetName);
return this;
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPolicyImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPolicyImpl.java
index c039d32fd867..570782b88a46 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPolicyImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPolicyImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.mediaservices.models.EnvelopeEncryption;
import com.azure.resourcemanager.mediaservices.models.NoEncryption;
import com.azure.resourcemanager.mediaservices.models.StreamingPolicy;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import java.time.OffsetDateTime;
public final class StreamingPolicyImpl implements StreamingPolicy, StreamingPolicy.Definition {
@@ -36,6 +37,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public OffsetDateTime created() {
return this.innerModel().created();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformImpl.java
index 4e45704cd28e..2e551ae1746f 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformImpl.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformImpl.java
@@ -7,6 +7,7 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.MediaservicesManager;
import com.azure.resourcemanager.mediaservices.fluent.models.TransformInner;
+import com.azure.resourcemanager.mediaservices.models.SystemData;
import com.azure.resourcemanager.mediaservices.models.Transform;
import com.azure.resourcemanager.mediaservices.models.TransformOutput;
import java.time.OffsetDateTime;
@@ -30,6 +31,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public OffsetDateTime created() {
return this.innerModel().created();
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilter.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilter.java
index 5da931e30225..3729605245f4 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilter.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilter.java
@@ -31,6 +31,13 @@ public interface AccountFilter {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the presentationTimeRange property: The presentation time range.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java
index 8851a548f9ea..d47ec5f63595 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.AssetInner;
import java.time.OffsetDateTime;
@@ -32,6 +33,13 @@ public interface Asset {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the assetId property: The Asset ID.
*
@@ -265,4 +273,69 @@ interface WithStorageAccountName {
* @return the refreshed resource.
*/
Asset refresh(Context context);
+
+ /**
+ * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The
+ * signatures are derived from the storage account keys.
+ *
+ * @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 Asset Storage container SAS URLs.
+ */
+ AssetContainerSas listContainerSas(ListContainerSasInput parameters);
+
+ /**
+ * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The
+ * signatures are derived from the storage account keys.
+ *
+ * @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 Asset Storage container SAS URLs.
+ */
+ Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context);
+
+ /**
+ * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
+ *
+ * @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 Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
+ */
+ StorageEncryptedAssetDecryptionData getEncryptionKey();
+
+ /**
+ * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
+ *
+ * @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 Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
+ */
+ Response getEncryptionKeyWithResponse(Context context);
+
+ /**
+ * Lists Streaming Locators which are associated with this asset.
+ *
+ * @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 Streaming Locators associated with this Asset.
+ */
+ ListStreamingLocatorsResponse listStreamingLocators();
+
+ /**
+ * Lists Streaming Locators which are associated with this asset.
+ *
+ * @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 Streaming Locators associated with this Asset.
+ */
+ Response listStreamingLocatorsWithResponse(Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilter.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilter.java
index f64361a152de..37dd9574bfb8 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilter.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilter.java
@@ -31,6 +31,13 @@ public interface AssetFilter {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the presentationTimeRange property: The presentation time range.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AttributeFilter.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AttributeFilter.java
new file mode 100644
index 000000000000..22efd8c3113b
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AttributeFilter.java
@@ -0,0 +1,40 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for AttributeFilter. */
+public final class AttributeFilter extends ExpandableStringEnum {
+ /** Static value All for AttributeFilter. */
+ public static final AttributeFilter ALL = fromString("All");
+
+ /** Static value Top for AttributeFilter. */
+ public static final AttributeFilter TOP = fromString("Top");
+
+ /** Static value Bottom for AttributeFilter. */
+ public static final AttributeFilter BOTTOM = fromString("Bottom");
+
+ /** Static value ValueEquals for AttributeFilter. */
+ public static final AttributeFilter VALUE_EQUALS = fromString("ValueEquals");
+
+ /**
+ * Creates or finds a AttributeFilter from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AttributeFilter.
+ */
+ @JsonCreator
+ public static AttributeFilter fromString(String name) {
+ return fromString(name, AttributeFilter.class);
+ }
+
+ /** @return known AttributeFilter values. */
+ public static Collection values() {
+ return values(AttributeFilter.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java
new file mode 100644
index 000000000000..e6b5c5dcaecb
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java
@@ -0,0 +1,72 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** A TrackSelection to select audio tracks. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "@odata\\.type",
+ defaultImpl = AudioTrackDescriptor.class)
+@JsonTypeName("#Microsoft.Media.AudioTrackDescriptor")
+@JsonSubTypes({
+ @JsonSubTypes.Type(
+ name = "#Microsoft.Media.SelectAudioTrackByAttribute",
+ value = SelectAudioTrackByAttribute.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.SelectAudioTrackById", value = SelectAudioTrackById.class)
+})
+@JsonFlatten
+@Fluent
+public class AudioTrackDescriptor extends TrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AudioTrackDescriptor.class);
+
+ /*
+ * Optional designation for single channel audio tracks. Can be used to
+ * combine the tracks into stereo or multi-channel audio tracks.
+ */
+ @JsonProperty(value = "channelMapping")
+ private ChannelMapping channelMapping;
+
+ /**
+ * Get the channelMapping property: Optional designation for single channel audio tracks. Can be used to combine the
+ * tracks into stereo or multi-channel audio tracks.
+ *
+ * @return the channelMapping value.
+ */
+ public ChannelMapping channelMapping() {
+ return this.channelMapping;
+ }
+
+ /**
+ * Set the channelMapping property: Optional designation for single channel audio tracks. Can be used to combine the
+ * tracks into stereo or multi-channel audio tracks.
+ *
+ * @param channelMapping the channelMapping value to set.
+ * @return the AudioTrackDescriptor object itself.
+ */
+ public AudioTrackDescriptor withChannelMapping(ChannelMapping channelMapping) {
+ this.channelMapping = channelMapping;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java
new file mode 100644
index 000000000000..378737354dec
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java
@@ -0,0 +1,43 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for BlurType. */
+public final class BlurType extends ExpandableStringEnum {
+ /** Static value Box for BlurType. */
+ public static final BlurType BOX = fromString("Box");
+
+ /** Static value Low for BlurType. */
+ public static final BlurType LOW = fromString("Low");
+
+ /** Static value Med for BlurType. */
+ public static final BlurType MED = fromString("Med");
+
+ /** Static value High for BlurType. */
+ public static final BlurType HIGH = fromString("High");
+
+ /** Static value Black for BlurType. */
+ public static final BlurType BLACK = fromString("Black");
+
+ /**
+ * Creates or finds a BlurType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding BlurType.
+ */
+ @JsonCreator
+ public static BlurType fromString(String name) {
+ return fromString(name, BlurType.class);
+ }
+
+ /** @return known BlurType values. */
+ public static Collection values() {
+ return values(BlurType.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java
new file mode 100644
index 000000000000..be3090d000b5
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java
@@ -0,0 +1,52 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for ChannelMapping. */
+public final class ChannelMapping extends ExpandableStringEnum {
+ /** Static value FrontLeft for ChannelMapping. */
+ public static final ChannelMapping FRONT_LEFT = fromString("FrontLeft");
+
+ /** Static value FrontRight for ChannelMapping. */
+ public static final ChannelMapping FRONT_RIGHT = fromString("FrontRight");
+
+ /** Static value Center for ChannelMapping. */
+ public static final ChannelMapping CENTER = fromString("Center");
+
+ /** Static value LowFrequencyEffects for ChannelMapping. */
+ public static final ChannelMapping LOW_FREQUENCY_EFFECTS = fromString("LowFrequencyEffects");
+
+ /** Static value BackLeft for ChannelMapping. */
+ public static final ChannelMapping BACK_LEFT = fromString("BackLeft");
+
+ /** Static value BackRight for ChannelMapping. */
+ public static final ChannelMapping BACK_RIGHT = fromString("BackRight");
+
+ /** Static value StereoLeft for ChannelMapping. */
+ public static final ChannelMapping STEREO_LEFT = fromString("StereoLeft");
+
+ /** Static value StereoRight for ChannelMapping. */
+ public static final ChannelMapping STEREO_RIGHT = fromString("StereoRight");
+
+ /**
+ * Creates or finds a ChannelMapping from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ChannelMapping.
+ */
+ @JsonCreator
+ public static ChannelMapping fromString(String name) {
+ return fromString(name, ChannelMapping.class);
+ }
+
+ /** @return known ChannelMapping values. */
+ public static Collection values() {
+ return values(ChannelMapping.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java
index cb106ad9391f..6beb89d6a3d5 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.ContentKeyPolicyInner;
import java.time.OffsetDateTime;
@@ -33,6 +34,13 @@ public interface ContentKeyPolicy {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the policyId property: The legacy Policy ID.
*
@@ -197,4 +205,24 @@ interface WithOptions {
* @return the refreshed resource.
*/
ContentKeyPolicy refresh(Context context);
+
+ /**
+ * Get a Content Key Policy including secret values.
+ *
+ * @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 Content Key Policy including secret values.
+ */
+ ContentKeyPolicyProperties getPolicyPropertiesWithSecrets();
+
+ /**
+ * Get a Content Key Policy including secret values.
+ *
+ * @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 a Content Key Policy including secret values.
+ */
+ Response getPolicyPropertiesWithSecretsWithResponse(Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CreatedByType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CreatedByType.java
new file mode 100644
index 000000000000..5a01c957d985
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CreatedByType.java
@@ -0,0 +1,40 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for CreatedByType. */
+public final class CreatedByType extends ExpandableStringEnum {
+ /** Static value User for CreatedByType. */
+ public static final CreatedByType USER = fromString("User");
+
+ /** Static value Application for CreatedByType. */
+ public static final CreatedByType APPLICATION = fromString("Application");
+
+ /** Static value ManagedIdentity for CreatedByType. */
+ public static final CreatedByType MANAGED_IDENTITY = fromString("ManagedIdentity");
+
+ /** Static value Key for CreatedByType. */
+ public static final CreatedByType KEY = fromString("Key");
+
+ /**
+ * Creates or finds a CreatedByType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CreatedByType.
+ */
+ @JsonCreator
+ public static CreatedByType fromString(String name) {
+ return fromString(name, CreatedByType.class);
+ }
+
+ /** @return known CreatedByType values. */
+ public static Collection values() {
+ return values(CreatedByType.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java
index d87ddeea1dd8..b40ed251611d 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EncoderNamedPreset.java
@@ -45,6 +45,21 @@ public final class EncoderNamedPreset extends ExpandableStringEnum {
+ /** Static value Analyze for FaceRedactorMode. */
+ public static final FaceRedactorMode ANALYZE = fromString("Analyze");
+
+ /** Static value Redact for FaceRedactorMode. */
+ public static final FaceRedactorMode REDACT = fromString("Redact");
+
+ /** Static value Combined for FaceRedactorMode. */
+ public static final FaceRedactorMode COMBINED = fromString("Combined");
+
+ /**
+ * Creates or finds a FaceRedactorMode from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding FaceRedactorMode.
+ */
+ @JsonCreator
+ public static FaceRedactorMode fromString(String name) {
+ return fromString(name, FaceRedactorMode.class);
+ }
+
+ /** @return known FaceRedactorMode values. */
+ public static Collection values() {
+ return values(FaceRedactorMode.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java
index 63fa35ff88d0..738bee03bb41 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java
@@ -43,8 +43,8 @@ public class Format {
* {Label} - The label assigned to the codec/layer. {Index} - A unique
* index for thumbnails. Only applicable to thumbnails. {Bitrate} - The
* audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of
- * the audio/video codec. Any unsubstituted macros will be collapsed and
- * removed from the filename.
+ * the audio/video codec. {Resolution} - The video resolution. Any
+ * unsubstituted macros will be collapsed and removed from the filename.
*/
@JsonProperty(value = "filenamePattern", required = true)
private String filenamePattern;
@@ -57,8 +57,8 @@ public class Format {
* characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate
* extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for
* thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the
- * filename.
+ * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will
+ * be collapsed and removed from the filename.
*
* @return the filenamePattern value.
*/
@@ -74,8 +74,8 @@ public String filenamePattern() {
* characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate
* extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for
* thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the
- * filename.
+ * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will
+ * be collapsed and removed from the filename.
*
* @param filenamePattern the filenamePattern value to set.
* @return the Format object itself.
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java
new file mode 100644
index 000000000000..24d79f8fbef1
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java
@@ -0,0 +1,43 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+
+/**
+ * An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks
+ * property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single
+ * track across a set of input files.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.FromAllInputFile")
+@JsonFlatten
+@Immutable
+public class FromAllInputFile extends InputDefinition {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(FromAllInputFile.class);
+
+ /** {@inheritDoc} */
+ @Override
+ public FromAllInputFile withIncludedTracks(List includedTracks) {
+ super.withIncludedTracks(includedTracks);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java
new file mode 100644
index 000000000000..ded085fa54af
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java
@@ -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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+
+/**
+ * An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property.
+ * Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.FromEachInputFile")
+@JsonFlatten
+@Immutable
+public class FromEachInputFile extends InputDefinition {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(FromEachInputFile.class);
+
+ /** {@inheritDoc} */
+ @Override
+ public FromEachInputFile withIncludedTracks(List includedTracks) {
+ super.withIncludedTracks(includedTracks);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Complexity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Complexity.java
new file mode 100644
index 000000000000..f03eddaf1989
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Complexity.java
@@ -0,0 +1,37 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for H265Complexity. */
+public final class H265Complexity extends ExpandableStringEnum {
+ /** Static value Speed for H265Complexity. */
+ public static final H265Complexity SPEED = fromString("Speed");
+
+ /** Static value Balanced for H265Complexity. */
+ public static final H265Complexity BALANCED = fromString("Balanced");
+
+ /** Static value Quality for H265Complexity. */
+ public static final H265Complexity QUALITY = fromString("Quality");
+
+ /**
+ * Creates or finds a H265Complexity from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding H265Complexity.
+ */
+ @JsonCreator
+ public static H265Complexity fromString(String name) {
+ return fromString(name, H265Complexity.class);
+ }
+
+ /** @return known H265Complexity values. */
+ public static Collection values() {
+ return values(H265Complexity.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java
new file mode 100644
index 000000000000..cd1a8f4df371
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java
@@ -0,0 +1,218 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.time.Duration;
+
+/**
+ * Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265
+ * video codec.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.H265Layer")
+@JsonFlatten
+@Fluent
+public class H265Layer extends H265VideoLayer {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(H265Layer.class);
+
+ /*
+ * We currently support Main. Default is Auto.
+ */
+ @JsonProperty(value = "profile")
+ private H265VideoProfile profile;
+
+ /*
+ * We currently support Level up to 6.2. The value can be Auto, or a number
+ * that matches the H.265 profile. If not specified, the default is Auto,
+ * which lets the encoder choose the Level that is appropriate for this
+ * layer.
+ */
+ @JsonProperty(value = "level")
+ private String level;
+
+ /*
+ * The VBV buffer window length. The value should be in ISO 8601 format.
+ * The value should be in the range [0.1-100] seconds. The default is 5
+ * seconds (for example, PT5S).
+ */
+ @JsonProperty(value = "bufferWindow")
+ private Duration bufferWindow;
+
+ /*
+ * The number of reference frames to be used when encoding this layer. If
+ * not specified, the encoder determines an appropriate number based on the
+ * encoder complexity setting.
+ */
+ @JsonProperty(value = "referenceFrames")
+ private Integer referenceFrames;
+
+ /**
+ * Get the profile property: We currently support Main. Default is Auto.
+ *
+ * @return the profile value.
+ */
+ public H265VideoProfile profile() {
+ return this.profile;
+ }
+
+ /**
+ * Set the profile property: We currently support Main. Default is Auto.
+ *
+ * @param profile the profile value to set.
+ * @return the H265Layer object itself.
+ */
+ public H265Layer withProfile(H265VideoProfile profile) {
+ this.profile = profile;
+ return this;
+ }
+
+ /**
+ * Get the level property: We currently support Level up to 6.2. The value can be Auto, or a number that matches the
+ * H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate
+ * for this layer.
+ *
+ * @return the level value.
+ */
+ public String level() {
+ return this.level;
+ }
+
+ /**
+ * Set the level property: We currently support Level up to 6.2. The value can be Auto, or a number that matches the
+ * H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate
+ * for this layer.
+ *
+ * @param level the level value to set.
+ * @return the H265Layer object itself.
+ */
+ public H265Layer withLevel(String level) {
+ this.level = level;
+ return this;
+ }
+
+ /**
+ * Get the bufferWindow property: The VBV buffer window length. The value should be in ISO 8601 format. The value
+ * should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).
+ *
+ * @return the bufferWindow value.
+ */
+ public Duration bufferWindow() {
+ return this.bufferWindow;
+ }
+
+ /**
+ * Set the bufferWindow property: The VBV buffer window length. The value should be in ISO 8601 format. The value
+ * should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).
+ *
+ * @param bufferWindow the bufferWindow value to set.
+ * @return the H265Layer object itself.
+ */
+ public H265Layer withBufferWindow(Duration bufferWindow) {
+ this.bufferWindow = bufferWindow;
+ return this;
+ }
+
+ /**
+ * Get the referenceFrames property: The number of reference frames to be used when encoding this layer. If not
+ * specified, the encoder determines an appropriate number based on the encoder complexity setting.
+ *
+ * @return the referenceFrames value.
+ */
+ public Integer referenceFrames() {
+ return this.referenceFrames;
+ }
+
+ /**
+ * Set the referenceFrames property: The number of reference frames to be used when encoding this layer. If not
+ * specified, the encoder determines an appropriate number based on the encoder complexity setting.
+ *
+ * @param referenceFrames the referenceFrames value to set.
+ * @return the H265Layer object itself.
+ */
+ public H265Layer withReferenceFrames(Integer referenceFrames) {
+ this.referenceFrames = referenceFrames;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withBitrate(int bitrate) {
+ super.withBitrate(bitrate);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withMaxBitrate(Integer maxBitrate) {
+ super.withMaxBitrate(maxBitrate);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withBFrames(Integer bFrames) {
+ super.withBFrames(bFrames);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withFrameRate(String frameRate) {
+ super.withFrameRate(frameRate);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withSlices(Integer slices) {
+ super.withSlices(slices);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withAdaptiveBFrame(Boolean adaptiveBFrame) {
+ super.withAdaptiveBFrame(adaptiveBFrame);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withWidth(String width) {
+ super.withWidth(width);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withHeight(String height) {
+ super.withHeight(height);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Layer withLabel(String label) {
+ super.withLabel(label);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java
new file mode 100644
index 000000000000..ea102774806a
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java
@@ -0,0 +1,157 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.time.Duration;
+import java.util.List;
+
+/** Describes all the properties for encoding a video with the H.265 codec. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.H265Video")
+@JsonFlatten
+@Fluent
+public class H265Video extends Video {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(H265Video.class);
+
+ /*
+ * Specifies whether or not the encoder should insert key frames at scene
+ * changes. If not specified, the default is false. This flag should be set
+ * to true only when the encoder is being configured to produce a single
+ * output video.
+ */
+ @JsonProperty(value = "sceneChangeDetection")
+ private Boolean sceneChangeDetection;
+
+ /*
+ * Tells the encoder how to choose its encoding settings. Quality will
+ * provide for a higher compression ratio but at a higher cost and longer
+ * compute time. Speed will produce a relatively larger file but is faster
+ * and more economical. The default value is Balanced.
+ */
+ @JsonProperty(value = "complexity")
+ private H265Complexity complexity;
+
+ /*
+ * The collection of output H.265 layers to be produced by the encoder.
+ */
+ @JsonProperty(value = "layers")
+ private List layers;
+
+ /**
+ * Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene
+ * changes. If not specified, the default is false. This flag should be set to true only when the encoder is being
+ * configured to produce a single output video.
+ *
+ * @return the sceneChangeDetection value.
+ */
+ public Boolean sceneChangeDetection() {
+ return this.sceneChangeDetection;
+ }
+
+ /**
+ * Set the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene
+ * changes. If not specified, the default is false. This flag should be set to true only when the encoder is being
+ * configured to produce a single output video.
+ *
+ * @param sceneChangeDetection the sceneChangeDetection value to set.
+ * @return the H265Video object itself.
+ */
+ public H265Video withSceneChangeDetection(Boolean sceneChangeDetection) {
+ this.sceneChangeDetection = sceneChangeDetection;
+ return this;
+ }
+
+ /**
+ * Get the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a
+ * higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger
+ * file but is faster and more economical. The default value is Balanced.
+ *
+ * @return the complexity value.
+ */
+ public H265Complexity complexity() {
+ return this.complexity;
+ }
+
+ /**
+ * Set the complexity property: Tells the encoder how to choose its encoding settings. Quality will provide for a
+ * higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger
+ * file but is faster and more economical. The default value is Balanced.
+ *
+ * @param complexity the complexity value to set.
+ * @return the H265Video object itself.
+ */
+ public H265Video withComplexity(H265Complexity complexity) {
+ this.complexity = complexity;
+ return this;
+ }
+
+ /**
+ * Get the layers property: The collection of output H.265 layers to be produced by the encoder.
+ *
+ * @return the layers value.
+ */
+ public List layers() {
+ return this.layers;
+ }
+
+ /**
+ * Set the layers property: The collection of output H.265 layers to be produced by the encoder.
+ *
+ * @param layers the layers value to set.
+ * @return the H265Video object itself.
+ */
+ public H265Video withLayers(List layers) {
+ this.layers = layers;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Video withKeyFrameInterval(Duration keyFrameInterval) {
+ super.withKeyFrameInterval(keyFrameInterval);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Video withStretchMode(StretchMode stretchMode) {
+ super.withStretchMode(stretchMode);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Video withSyncMode(VideoSyncMode syncMode) {
+ super.withSyncMode(syncMode);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265Video withLabel(String label) {
+ super.withLabel(label);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (layers() != null) {
+ layers().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java
new file mode 100644
index 000000000000..2ebabc012d24
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java
@@ -0,0 +1,249 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Describes the settings to be used when encoding the input video into a desired output bitrate layer. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "@odata\\.type",
+ defaultImpl = H265VideoLayer.class)
+@JsonTypeName("#Microsoft.Media.H265VideoLayer")
+@JsonSubTypes({@JsonSubTypes.Type(name = "#Microsoft.Media.H265Layer", value = H265Layer.class)})
+@JsonFlatten
+@Fluent
+public class H265VideoLayer extends Layer {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(H265VideoLayer.class);
+
+ /*
+ * The average bitrate in bits per second at which to encode the input
+ * video when generating this layer. For example: a target bitrate of
+ * 3000Kbps or 3Mbps means this value should be 3000000 This is a required
+ * field.
+ */
+ @JsonProperty(value = "bitrate", required = true)
+ private int bitrate;
+
+ /*
+ * The maximum bitrate (in bits per second), at which the VBV buffer should
+ * be assumed to refill. If not specified, defaults to the same value as
+ * bitrate.
+ */
+ @JsonProperty(value = "maxBitrate")
+ private Integer maxBitrate;
+
+ /*
+ * The number of B-frames to be used when encoding this layer. If not
+ * specified, the encoder chooses an appropriate number based on the video
+ * profile and level.
+ */
+ @JsonProperty(value = "bFrames")
+ private Integer bFrames;
+
+ /*
+ * The frame rate (in frames per second) at which to encode this layer. The
+ * value can be in the form of M/N where M and N are integers (For example,
+ * 30000/1001), or in the form of a number (For example, 30, or 29.97). The
+ * encoder enforces constraints on allowed frame rates based on the profile
+ * and level. If it is not specified, the encoder will use the same frame
+ * rate as the input video.
+ */
+ @JsonProperty(value = "frameRate")
+ private String frameRate;
+
+ /*
+ * The number of slices to be used when encoding this layer. If not
+ * specified, default is zero, which means that encoder will use a single
+ * slice for each frame.
+ */
+ @JsonProperty(value = "slices")
+ private Integer slices;
+
+ /*
+ * Specifies whether or not adaptive B-frames are to be used when encoding
+ * this layer. If not specified, the encoder will turn it on whenever the
+ * video profile permits its use.
+ */
+ @JsonProperty(value = "adaptiveBFrame")
+ private Boolean adaptiveBFrame;
+
+ /**
+ * Get the bitrate property: The average bitrate in bits per second at which to encode the input video when
+ * generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This
+ * is a required field.
+ *
+ * @return the bitrate value.
+ */
+ public int bitrate() {
+ return this.bitrate;
+ }
+
+ /**
+ * Set the bitrate property: The average bitrate in bits per second at which to encode the input video when
+ * generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This
+ * is a required field.
+ *
+ * @param bitrate the bitrate value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withBitrate(int bitrate) {
+ this.bitrate = bitrate;
+ return this;
+ }
+
+ /**
+ * Get the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed
+ * to refill. If not specified, defaults to the same value as bitrate.
+ *
+ * @return the maxBitrate value.
+ */
+ public Integer maxBitrate() {
+ return this.maxBitrate;
+ }
+
+ /**
+ * Set the maxBitrate property: The maximum bitrate (in bits per second), at which the VBV buffer should be assumed
+ * to refill. If not specified, defaults to the same value as bitrate.
+ *
+ * @param maxBitrate the maxBitrate value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withMaxBitrate(Integer maxBitrate) {
+ this.maxBitrate = maxBitrate;
+ return this;
+ }
+
+ /**
+ * Get the bFrames property: The number of B-frames to be used when encoding this layer. If not specified, the
+ * encoder chooses an appropriate number based on the video profile and level.
+ *
+ * @return the bFrames value.
+ */
+ public Integer bFrames() {
+ return this.bFrames;
+ }
+
+ /**
+ * Set the bFrames property: The number of B-frames to be used when encoding this layer. If not specified, the
+ * encoder chooses an appropriate number based on the video profile and level.
+ *
+ * @param bFrames the bFrames value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withBFrames(Integer bFrames) {
+ this.bFrames = bFrames;
+ return this;
+ }
+
+ /**
+ * Get the frameRate property: The frame rate (in frames per second) at which to encode this layer. The value can be
+ * in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example,
+ * 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is
+ * not specified, the encoder will use the same frame rate as the input video.
+ *
+ * @return the frameRate value.
+ */
+ public String frameRate() {
+ return this.frameRate;
+ }
+
+ /**
+ * Set the frameRate property: The frame rate (in frames per second) at which to encode this layer. The value can be
+ * in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example,
+ * 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is
+ * not specified, the encoder will use the same frame rate as the input video.
+ *
+ * @param frameRate the frameRate value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withFrameRate(String frameRate) {
+ this.frameRate = frameRate;
+ return this;
+ }
+
+ /**
+ * Get the slices property: The number of slices to be used when encoding this layer. If not specified, default is
+ * zero, which means that encoder will use a single slice for each frame.
+ *
+ * @return the slices value.
+ */
+ public Integer slices() {
+ return this.slices;
+ }
+
+ /**
+ * Set the slices property: The number of slices to be used when encoding this layer. If not specified, default is
+ * zero, which means that encoder will use a single slice for each frame.
+ *
+ * @param slices the slices value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withSlices(Integer slices) {
+ this.slices = slices;
+ return this;
+ }
+
+ /**
+ * Get the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this
+ * layer. If not specified, the encoder will turn it on whenever the video profile permits its use.
+ *
+ * @return the adaptiveBFrame value.
+ */
+ public Boolean adaptiveBFrame() {
+ return this.adaptiveBFrame;
+ }
+
+ /**
+ * Set the adaptiveBFrame property: Specifies whether or not adaptive B-frames are to be used when encoding this
+ * layer. If not specified, the encoder will turn it on whenever the video profile permits its use.
+ *
+ * @param adaptiveBFrame the adaptiveBFrame value to set.
+ * @return the H265VideoLayer object itself.
+ */
+ public H265VideoLayer withAdaptiveBFrame(Boolean adaptiveBFrame) {
+ this.adaptiveBFrame = adaptiveBFrame;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265VideoLayer withWidth(String width) {
+ super.withWidth(width);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265VideoLayer withHeight(String height) {
+ super.withHeight(height);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public H265VideoLayer withLabel(String label) {
+ super.withLabel(label);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java
new file mode 100644
index 000000000000..6ef201539d44
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java
@@ -0,0 +1,34 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for H265VideoProfile. */
+public final class H265VideoProfile extends ExpandableStringEnum {
+ /** Static value Auto for H265VideoProfile. */
+ public static final H265VideoProfile AUTO = fromString("Auto");
+
+ /** Static value Main for H265VideoProfile. */
+ public static final H265VideoProfile MAIN = fromString("Main");
+
+ /**
+ * Creates or finds a H265VideoProfile from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding H265VideoProfile.
+ */
+ @JsonCreator
+ public static H265VideoProfile fromString(String name) {
+ return fromString(name, H265VideoProfile.class);
+ }
+
+ /** @return known H265VideoProfile values. */
+ public static Collection values() {
+ return values(H265VideoProfile.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java
new file mode 100644
index 000000000000..cc67ec55f3f8
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java
@@ -0,0 +1,75 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+
+/**
+ * Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata.
+ */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "@odata\\.type",
+ defaultImpl = InputDefinition.class)
+@JsonTypeName("InputDefinition")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "#Microsoft.Media.FromAllInputFile", value = FromAllInputFile.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.FromEachInputFile", value = FromEachInputFile.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.InputFile", value = InputFile.class)
+})
+@JsonFlatten
+@Fluent
+public class InputDefinition {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(InputDefinition.class);
+
+ /*
+ * The list of TrackDescriptors which define the metadata and selection of
+ * tracks in the input.
+ */
+ @JsonProperty(value = "includedTracks")
+ private List includedTracks;
+
+ /**
+ * Get the includedTracks property: The list of TrackDescriptors which define the metadata and selection of tracks
+ * in the input.
+ *
+ * @return the includedTracks value.
+ */
+ public List includedTracks() {
+ return this.includedTracks;
+ }
+
+ /**
+ * Set the includedTracks property: The list of TrackDescriptors which define the metadata and selection of tracks
+ * in the input.
+ *
+ * @param includedTracks the includedTracks value to set.
+ * @return the InputDefinition object itself.
+ */
+ public InputDefinition withIncludedTracks(List includedTracks) {
+ this.includedTracks = includedTracks;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (includedTracks() != null) {
+ includedTracks().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java
new file mode 100644
index 000000000000..738ecfd6393e
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java
@@ -0,0 +1,66 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+
+/** An InputDefinition for a single file. TrackSelections are scoped to the file specified. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.InputFile")
+@JsonFlatten
+@Fluent
+public class InputFile extends InputDefinition {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(InputFile.class);
+
+ /*
+ * Name of the file that this input definition applies to.
+ */
+ @JsonProperty(value = "filename")
+ private String filename;
+
+ /**
+ * Get the filename property: Name of the file that this input definition applies to.
+ *
+ * @return the filename value.
+ */
+ public String filename() {
+ return this.filename;
+ }
+
+ /**
+ * Set the filename property: Name of the file that this input definition applies to.
+ *
+ * @param filename the filename value to set.
+ * @return the InputFile object itself.
+ */
+ public InputFile withFilename(String filename) {
+ this.filename = filename;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public InputFile withIncludedTracks(List includedTracks) {
+ super.withIncludedTracks(includedTracks);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java
index f74640052277..6e5590ff692f 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.JobInner;
import java.time.OffsetDateTime;
@@ -33,6 +34,13 @@ public interface Job {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ'
* format.
@@ -315,4 +323,23 @@ interface WithCorrelationData {
* @return the refreshed resource.
*/
Job refresh(Context context);
+
+ /**
+ * Cancel a Job.
+ *
+ * @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.
+ */
+ void cancelJob();
+
+ /**
+ * Cancel a Job.
+ *
+ * @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 response.
+ */
+ Response cancelJobWithResponse(Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java
index eb332af21ff8..b2094712c44b 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java
@@ -21,7 +21,8 @@
@JsonTypeName("JobInput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "#Microsoft.Media.JobInputClip", value = JobInputClip.class),
- @JsonSubTypes.Type(name = "#Microsoft.Media.JobInputs", value = JobInputs.class)
+ @JsonSubTypes.Type(name = "#Microsoft.Media.JobInputs", value = JobInputs.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.JobInputSequence", value = JobInputSequence.class)
})
@JsonFlatten
@Immutable
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java
index d5b60053fac6..4dc34aaa0271 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java
@@ -75,6 +75,13 @@ public JobInputAsset withLabel(String label) {
return this;
}
+ /** {@inheritDoc} */
+ @Override
+ public JobInputAsset withInputDefinitions(List inputDefinitions) {
+ super.withInputDefinitions(inputDefinitions);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java
index 2c3e61477cb3..2802ddc681df 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java
@@ -62,6 +62,13 @@ public class JobInputClip extends JobInput {
@JsonProperty(value = "label")
private String label;
+ /*
+ * Defines a list of InputDefinitions. For each InputDefinition, it defines
+ * a list of track selections and related metadata.
+ */
+ @JsonProperty(value = "inputDefinitions")
+ private List inputDefinitions;
+
/**
* Get the files property: List of files. Required for JobInputHttp. Maximum of 4000 characters each.
*
@@ -152,6 +159,28 @@ public JobInputClip withLabel(String label) {
return this;
}
+ /**
+ * Get the inputDefinitions property: Defines a list of InputDefinitions. For each InputDefinition, it defines a
+ * list of track selections and related metadata.
+ *
+ * @return the inputDefinitions value.
+ */
+ public List inputDefinitions() {
+ return this.inputDefinitions;
+ }
+
+ /**
+ * Set the inputDefinitions property: Defines a list of InputDefinitions. For each InputDefinition, it defines a
+ * list of track selections and related metadata.
+ *
+ * @param inputDefinitions the inputDefinitions value to set.
+ * @return the JobInputClip object itself.
+ */
+ public JobInputClip withInputDefinitions(List inputDefinitions) {
+ this.inputDefinitions = inputDefinitions;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -166,5 +195,8 @@ public void validate() {
if (end() != null) {
end().validate();
}
+ if (inputDefinitions() != null) {
+ inputDefinitions().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java
index 2c5353e3f7bd..0a085e9c9e45 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java
@@ -81,6 +81,13 @@ public JobInputHttp withLabel(String label) {
return this;
}
+ /** {@inheritDoc} */
+ @Override
+ public JobInputHttp withInputDefinitions(List inputDefinitions) {
+ super.withInputDefinitions(inputDefinitions);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java
new file mode 100644
index 000000000000..71d9ce30f7df
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java
@@ -0,0 +1,65 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+
+/**
+ * A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single
+ * input.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.JobInputSequence")
+@JsonFlatten
+@Fluent
+public class JobInputSequence extends JobInput {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(JobInputSequence.class);
+
+ /*
+ * JobInputs that make up the timeline.
+ */
+ @JsonProperty(value = "inputs")
+ private List inputs;
+
+ /**
+ * Get the inputs property: JobInputs that make up the timeline.
+ *
+ * @return the inputs value.
+ */
+ public List inputs() {
+ return this.inputs;
+ }
+
+ /**
+ * Set the inputs property: JobInputs that make up the timeline.
+ *
+ * @param inputs the inputs value to set.
+ * @return the JobInputSequence object itself.
+ */
+ public JobInputSequence withInputs(List inputs) {
+ this.inputs = inputs;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (inputs() != null) {
+ inputs().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java
index e5610bc29575..b0906100916b 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java
@@ -24,6 +24,7 @@
defaultImpl = Layer.class)
@JsonTypeName("Layer")
@JsonSubTypes({
+ @JsonSubTypes.Type(name = "#Microsoft.Media.H265VideoLayer", value = H265VideoLayer.class),
@JsonSubTypes.Type(name = "#Microsoft.Media.VideoLayer", value = VideoLayer.class),
@JsonSubTypes.Type(name = "#Microsoft.Media.JpgLayer", value = JpgLayer.class),
@JsonSubTypes.Type(name = "#Microsoft.Media.PngLayer", value = PngLayer.class)
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java
index c59c18bdb811..7a2f5af9fbb9 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java
@@ -48,6 +48,13 @@ public interface LiveEvent {
*/
Map tags();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the description property: A description for the live event.
*
@@ -549,4 +556,83 @@ interface WithStreamOptions {
* @return the refreshed resource.
*/
LiveEvent refresh(Context context);
+
+ /**
+ * A live event is in StandBy state after allocation completes, and is ready to start.
+ *
+ * @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.
+ */
+ void allocate();
+
+ /**
+ * A live event is in StandBy state after allocation completes, and is ready to start.
+ *
+ * @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.
+ */
+ void allocate(Context context);
+
+ /**
+ * A live event in Stopped or StandBy state will be in Running state after the start operation completes.
+ *
+ * @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.
+ */
+ void start();
+
+ /**
+ * A live event in Stopped or StandBy state will be in Running state after the start operation completes.
+ *
+ * @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.
+ */
+ void start(Context context);
+
+ /**
+ * Stops a running live event.
+ *
+ * @param parameters LiveEvent stop 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.
+ */
+ void stop(LiveEventActionInput parameters);
+
+ /**
+ * Stops a running live event.
+ *
+ * @param parameters LiveEvent stop 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.
+ */
+ void stop(LiveEventActionInput parameters, Context context);
+
+ /**
+ * Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and
+ * will be started again. All assets used by the live outputs and streaming locators created on these assets are
+ * unaffected.
+ *
+ * @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.
+ */
+ void reset();
+
+ /**
+ * Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and
+ * will be started again. All assets used by the live outputs and streaming locators created on these assets are
+ * unaffected.
+ *
+ * @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.
+ */
+ void reset(Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java
index f511b1d990ee..2e6f5119b0ef 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
@@ -55,6 +56,13 @@ public interface MediaService {
*/
MediaServiceIdentity identity();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the mediaServiceId property: The Media Services account ID.
*
@@ -316,4 +324,49 @@ interface WithEncryption {
* @return the refreshed resource.
*/
MediaService refresh(Context context);
+
+ /**
+ * Synchronizes storage account keys for a storage account associated with the Media Service account.
+ *
+ * @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.
+ */
+ void syncStorageKeys(SyncStorageKeysInput parameters);
+
+ /**
+ * Synchronizes storage account keys for a storage account associated with the Media Service account.
+ *
+ * @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 response.
+ */
+ Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context);
+
+ /**
+ * List the media edge policies associated with the Media Services account.
+ *
+ * @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 response.
+ */
+ EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters);
+
+ /**
+ * List the media edge policies associated with the Media Services account.
+ *
+ * @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 response.
+ */
+ Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java
index 9f1da4633930..b4868a6a1bdc 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricSpecification.java
@@ -45,6 +45,12 @@ public final class MetricSpecification {
@JsonProperty(value = "aggregationType", access = JsonProperty.Access.WRITE_ONLY)
private MetricAggregationType aggregationType;
+ /*
+ * The metric lock aggregation type
+ */
+ @JsonProperty(value = "lockAggregationType", access = JsonProperty.Access.WRITE_ONLY)
+ private MetricAggregationType lockAggregationType;
+
/*
* Supported aggregation types.
*/
@@ -102,6 +108,15 @@ public MetricAggregationType aggregationType() {
return this.aggregationType;
}
+ /**
+ * Get the lockAggregationType property: The metric lock aggregation type.
+ *
+ * @return the lockAggregationType value.
+ */
+ public MetricAggregationType lockAggregationType() {
+ return this.lockAggregationType;
+ }
+
/**
* Get the supportedAggregationTypes property: Supported aggregation types.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java
index 9f848cbd70fa..2f7d59a501e4 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java
@@ -32,10 +32,10 @@ public class Overlay {
/*
* The label of the job input which is to be used as an overlay. The Input
- * must specify exactly one file. You can specify an image file in JPG or
- * PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or
- * a video file. See https://aka.ms/mesformats for the complete list of
- * supported audio and video file formats.
+ * must specify exactly one file. You can specify an image file in JPG,
+ * PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A
+ * file), or a video file. See https://aka.ms/mesformats for the complete
+ * list of supported audio and video file formats.
*/
@JsonProperty(value = "inputLabel", required = true)
private String inputLabel;
@@ -86,9 +86,9 @@ public class Overlay {
/**
* Get the inputLabel property: The label of the job input which is to be used as an overlay. The Input must specify
- * exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA
- * or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video
- * file formats.
+ * exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV,
+ * MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio
+ * and video file formats.
*
* @return the inputLabel value.
*/
@@ -98,9 +98,9 @@ public String inputLabel() {
/**
* Set the inputLabel property: The label of the job input which is to be used as an overlay. The Input must specify
- * exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA
- * or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video
- * file formats.
+ * exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV,
+ * MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio
+ * and video file formats.
*
* @param inputLabel the inputLabel value to set.
* @return the Overlay object itself.
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java
new file mode 100644
index 000000000000..c2127ec47990
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java
@@ -0,0 +1,135 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Select audio tracks from the input by specifying an attribute and an attribute filter. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.SelectAudioTrackByAttribute")
+@JsonFlatten
+@Fluent
+public class SelectAudioTrackByAttribute extends AudioTrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SelectAudioTrackByAttribute.class);
+
+ /*
+ * The TrackAttribute to filter the tracks by.
+ */
+ @JsonProperty(value = "attribute", required = true)
+ private TrackAttribute attribute;
+
+ /*
+ * The type of AttributeFilter to apply to the TrackAttribute in order to
+ * select the tracks.
+ */
+ @JsonProperty(value = "filter", required = true)
+ private AttributeFilter filter;
+
+ /*
+ * The value to filter the tracks by. Only used when
+ * AttributeFilter.ValueEquals is specified for the Filter property.
+ */
+ @JsonProperty(value = "filterValue")
+ private String filterValue;
+
+ /**
+ * Get the attribute property: The TrackAttribute to filter the tracks by.
+ *
+ * @return the attribute value.
+ */
+ public TrackAttribute attribute() {
+ return this.attribute;
+ }
+
+ /**
+ * Set the attribute property: The TrackAttribute to filter the tracks by.
+ *
+ * @param attribute the attribute value to set.
+ * @return the SelectAudioTrackByAttribute object itself.
+ */
+ public SelectAudioTrackByAttribute withAttribute(TrackAttribute attribute) {
+ this.attribute = attribute;
+ return this;
+ }
+
+ /**
+ * Get the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the
+ * tracks.
+ *
+ * @return the filter value.
+ */
+ public AttributeFilter filter() {
+ return this.filter;
+ }
+
+ /**
+ * Set the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the
+ * tracks.
+ *
+ * @param filter the filter value to set.
+ * @return the SelectAudioTrackByAttribute object itself.
+ */
+ public SelectAudioTrackByAttribute withFilter(AttributeFilter filter) {
+ this.filter = filter;
+ return this;
+ }
+
+ /**
+ * Get the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is
+ * specified for the Filter property.
+ *
+ * @return the filterValue value.
+ */
+ public String filterValue() {
+ return this.filterValue;
+ }
+
+ /**
+ * Set the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is
+ * specified for the Filter property.
+ *
+ * @param filterValue the filterValue value to set.
+ * @return the SelectAudioTrackByAttribute object itself.
+ */
+ public SelectAudioTrackByAttribute withFilterValue(String filterValue) {
+ this.filterValue = filterValue;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SelectAudioTrackByAttribute withChannelMapping(ChannelMapping channelMapping) {
+ super.withChannelMapping(channelMapping);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (attribute() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property attribute in model SelectAudioTrackByAttribute"));
+ }
+ if (filter() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property filter in model SelectAudioTrackByAttribute"));
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java
new file mode 100644
index 000000000000..1144ed6cc79b
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java
@@ -0,0 +1,65 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Select audio tracks from the input by specifying a track identifier. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.SelectAudioTrackById")
+@JsonFlatten
+@Fluent
+public class SelectAudioTrackById extends AudioTrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SelectAudioTrackById.class);
+
+ /*
+ * Track identifier to select
+ */
+ @JsonProperty(value = "trackId", required = true)
+ private long trackId;
+
+ /**
+ * Get the trackId property: Track identifier to select.
+ *
+ * @return the trackId value.
+ */
+ public long trackId() {
+ return this.trackId;
+ }
+
+ /**
+ * Set the trackId property: Track identifier to select.
+ *
+ * @param trackId the trackId value to set.
+ * @return the SelectAudioTrackById object itself.
+ */
+ public SelectAudioTrackById withTrackId(long trackId) {
+ this.trackId = trackId;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SelectAudioTrackById withChannelMapping(ChannelMapping channelMapping) {
+ super.withChannelMapping(channelMapping);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java
new file mode 100644
index 000000000000..72f677ac2c08
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java
@@ -0,0 +1,133 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Select video tracks from the input by specifying an attribute and an attribute filter. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.SelectVideoTrackByAttribute")
+@JsonFlatten
+@Fluent
+public class SelectVideoTrackByAttribute extends TrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SelectVideoTrackByAttribute.class);
+
+ /*
+ * The TrackAttribute to filter the tracks by.
+ */
+ @JsonProperty(value = "attribute", required = true)
+ private TrackAttribute attribute;
+
+ /*
+ * The type of AttributeFilter to apply to the TrackAttribute in order to
+ * select the tracks.
+ */
+ @JsonProperty(value = "filter", required = true)
+ private AttributeFilter filter;
+
+ /*
+ * The value to filter the tracks by. Only used when
+ * AttributeFilter.ValueEquals is specified for the Filter property. For
+ * TrackAttribute.Bitrate, this should be an integer value in bits per
+ * second (e.g: '1500000'). The TrackAttribute.Language is not supported
+ * for video tracks.
+ */
+ @JsonProperty(value = "filterValue")
+ private String filterValue;
+
+ /**
+ * Get the attribute property: The TrackAttribute to filter the tracks by.
+ *
+ * @return the attribute value.
+ */
+ public TrackAttribute attribute() {
+ return this.attribute;
+ }
+
+ /**
+ * Set the attribute property: The TrackAttribute to filter the tracks by.
+ *
+ * @param attribute the attribute value to set.
+ * @return the SelectVideoTrackByAttribute object itself.
+ */
+ public SelectVideoTrackByAttribute withAttribute(TrackAttribute attribute) {
+ this.attribute = attribute;
+ return this;
+ }
+
+ /**
+ * Get the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the
+ * tracks.
+ *
+ * @return the filter value.
+ */
+ public AttributeFilter filter() {
+ return this.filter;
+ }
+
+ /**
+ * Set the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the
+ * tracks.
+ *
+ * @param filter the filter value to set.
+ * @return the SelectVideoTrackByAttribute object itself.
+ */
+ public SelectVideoTrackByAttribute withFilter(AttributeFilter filter) {
+ this.filter = filter;
+ return this;
+ }
+
+ /**
+ * Get the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is
+ * specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second
+ * (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks.
+ *
+ * @return the filterValue value.
+ */
+ public String filterValue() {
+ return this.filterValue;
+ }
+
+ /**
+ * Set the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is
+ * specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second
+ * (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks.
+ *
+ * @param filterValue the filterValue value to set.
+ * @return the SelectVideoTrackByAttribute object itself.
+ */
+ public SelectVideoTrackByAttribute withFilterValue(String filterValue) {
+ this.filterValue = filterValue;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (attribute() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property attribute in model SelectVideoTrackByAttribute"));
+ }
+ if (filter() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property filter in model SelectVideoTrackByAttribute"));
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java
new file mode 100644
index 000000000000..7a4f452b42a2
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java
@@ -0,0 +1,58 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Select video tracks from the input by specifying a track identifier. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.SelectVideoTrackById")
+@JsonFlatten
+@Fluent
+public class SelectVideoTrackById extends TrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SelectVideoTrackById.class);
+
+ /*
+ * Track identifier to select
+ */
+ @JsonProperty(value = "trackId", required = true)
+ private long trackId;
+
+ /**
+ * Get the trackId property: Track identifier to select.
+ *
+ * @return the trackId value.
+ */
+ public long trackId() {
+ return this.trackId;
+ }
+
+ /**
+ * Set the trackId property: Track identifier to select.
+ *
+ * @param trackId the trackId value to set.
+ * @return the SelectVideoTrackById object itself.
+ */
+ public SelectVideoTrackById withTrackId(long trackId) {
+ this.trackId = trackId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java
index cc7f480522a7..68718919b29d 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java
@@ -48,6 +48,13 @@ public interface StreamingEndpoint {
*/
Map tags();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the description property: The streaming endpoint description.
*
@@ -542,4 +549,61 @@ interface WithCrossSiteAccessPolicies {
* @return the refreshed resource.
*/
StreamingEndpoint refresh(Context context);
+
+ /**
+ * Starts an existing streaming endpoint.
+ *
+ * @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.
+ */
+ void start();
+
+ /**
+ * Starts an existing streaming endpoint.
+ *
+ * @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.
+ */
+ void start(Context context);
+
+ /**
+ * Stops an existing streaming endpoint.
+ *
+ * @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.
+ */
+ void stop();
+
+ /**
+ * Stops an existing streaming endpoint.
+ *
+ * @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.
+ */
+ void stop(Context context);
+
+ /**
+ * Scales an existing streaming endpoint.
+ *
+ * @param parameters Streaming endpoint scale 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.
+ */
+ void scale(StreamingEntityScaleUnit parameters);
+
+ /**
+ * Scales an existing streaming endpoint.
+ *
+ * @param parameters Streaming endpoint scale 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.
+ */
+ void scale(StreamingEntityScaleUnit parameters, Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java
index cea70f300a22..133b76adf553 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.mediaservices.models;
+import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.mediaservices.fluent.models.StreamingLocatorInner;
import java.time.OffsetDateTime;
@@ -33,6 +34,13 @@ public interface StreamingLocator {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the assetName property: Asset Name.
*
@@ -278,4 +286,44 @@ interface WithFilters {
* @return the refreshed resource.
*/
StreamingLocator refresh(Context context);
+
+ /**
+ * List Content Keys used by this Streaming Locator.
+ *
+ * @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 class of response for listContentKeys action.
+ */
+ ListContentKeysResponse listContentKeys();
+
+ /**
+ * List Content Keys used by this Streaming Locator.
+ *
+ * @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 class of response for listContentKeys action.
+ */
+ Response listContentKeysWithResponse(Context context);
+
+ /**
+ * List Paths supported by this Streaming Locator.
+ *
+ * @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 class of response for listPaths action.
+ */
+ ListPathsResponse listPaths();
+
+ /**
+ * List Paths supported by this Streaming Locator.
+ *
+ * @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 class of response for listPaths action.
+ */
+ Response listPathsWithResponse(Context context);
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicy.java
index abad58fbf4b4..d05961788210 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicy.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicy.java
@@ -31,6 +31,13 @@ public interface StreamingPolicy {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the created property: Creation time of Streaming Policy.
*
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SystemData.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SystemData.java
new file mode 100644
index 000000000000..bf2403fd3d89
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SystemData.java
@@ -0,0 +1,181 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Metadata pertaining to creation and last modification of the resource. */
+@Fluent
+public final class SystemData {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SystemData.class);
+
+ /*
+ * The identity that created the resource.
+ */
+ @JsonProperty(value = "createdBy")
+ private String createdBy;
+
+ /*
+ * The type of identity that created the resource.
+ */
+ @JsonProperty(value = "createdByType")
+ private CreatedByType createdByType;
+
+ /*
+ * The timestamp of resource creation (UTC).
+ */
+ @JsonProperty(value = "createdAt")
+ private OffsetDateTime createdAt;
+
+ /*
+ * The identity that last modified the resource.
+ */
+ @JsonProperty(value = "lastModifiedBy")
+ private String lastModifiedBy;
+
+ /*
+ * The type of identity that last modified the resource.
+ */
+ @JsonProperty(value = "lastModifiedByType")
+ private CreatedByType lastModifiedByType;
+
+ /*
+ * The type of identity that last modified the resource.
+ */
+ @JsonProperty(value = "lastModifiedAt")
+ private OffsetDateTime lastModifiedAt;
+
+ /**
+ * Get the createdBy property: The identity that created the resource.
+ *
+ * @return the createdBy value.
+ */
+ public String createdBy() {
+ return this.createdBy;
+ }
+
+ /**
+ * Set the createdBy property: The identity that created the resource.
+ *
+ * @param createdBy the createdBy value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedBy(String createdBy) {
+ this.createdBy = createdBy;
+ return this;
+ }
+
+ /**
+ * Get the createdByType property: The type of identity that created the resource.
+ *
+ * @return the createdByType value.
+ */
+ public CreatedByType createdByType() {
+ return this.createdByType;
+ }
+
+ /**
+ * Set the createdByType property: The type of identity that created the resource.
+ *
+ * @param createdByType the createdByType value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedByType(CreatedByType createdByType) {
+ this.createdByType = createdByType;
+ return this;
+ }
+
+ /**
+ * Get the createdAt property: The timestamp of resource creation (UTC).
+ *
+ * @return the createdAt value.
+ */
+ public OffsetDateTime createdAt() {
+ return this.createdAt;
+ }
+
+ /**
+ * Set the createdAt property: The timestamp of resource creation (UTC).
+ *
+ * @param createdAt the createdAt value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withCreatedAt(OffsetDateTime createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedBy property: The identity that last modified the resource.
+ *
+ * @return the lastModifiedBy value.
+ */
+ public String lastModifiedBy() {
+ return this.lastModifiedBy;
+ }
+
+ /**
+ * Set the lastModifiedBy property: The identity that last modified the resource.
+ *
+ * @param lastModifiedBy the lastModifiedBy value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedBy(String lastModifiedBy) {
+ this.lastModifiedBy = lastModifiedBy;
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedByType property: The type of identity that last modified the resource.
+ *
+ * @return the lastModifiedByType value.
+ */
+ public CreatedByType lastModifiedByType() {
+ return this.lastModifiedByType;
+ }
+
+ /**
+ * Set the lastModifiedByType property: The type of identity that last modified the resource.
+ *
+ * @param lastModifiedByType the lastModifiedByType value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedByType(CreatedByType lastModifiedByType) {
+ this.lastModifiedByType = lastModifiedByType;
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedAt property: The type of identity that last modified the resource.
+ *
+ * @return the lastModifiedAt value.
+ */
+ public OffsetDateTime lastModifiedAt() {
+ return this.lastModifiedAt;
+ }
+
+ /**
+ * Set the lastModifiedAt property: The type of identity that last modified the resource.
+ *
+ * @param lastModifiedAt the lastModifiedAt value to set.
+ * @return the SystemData object itself.
+ */
+ public SystemData withLastModifiedAt(OffsetDateTime lastModifiedAt) {
+ this.lastModifiedAt = lastModifiedAt;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java
new file mode 100644
index 000000000000..20d026abff45
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java
@@ -0,0 +1,34 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for TrackAttribute. */
+public final class TrackAttribute extends ExpandableStringEnum {
+ /** Static value Bitrate for TrackAttribute. */
+ public static final TrackAttribute BITRATE = fromString("Bitrate");
+
+ /** Static value Language for TrackAttribute. */
+ public static final TrackAttribute LANGUAGE = fromString("Language");
+
+ /**
+ * Creates or finds a TrackAttribute from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding TrackAttribute.
+ */
+ @JsonCreator
+ public static TrackAttribute fromString(String name) {
+ return fromString(name, TrackAttribute.class);
+ }
+
+ /** @return known TrackAttribute values. */
+ public static Collection values() {
+ return values(TrackAttribute.class);
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java
new file mode 100644
index 000000000000..2ad4a7a93a8c
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java
@@ -0,0 +1,45 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed
+ * by a Job.
+ */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "@odata\\.type",
+ defaultImpl = TrackDescriptor.class)
+@JsonTypeName("TrackDescriptor")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "#Microsoft.Media.AudioTrackDescriptor", value = AudioTrackDescriptor.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.VideoTrackDescriptor", value = VideoTrackDescriptor.class),
+ @JsonSubTypes.Type(
+ name = "#Microsoft.Media.SelectVideoTrackByAttribute",
+ value = SelectVideoTrackByAttribute.class),
+ @JsonSubTypes.Type(name = "#Microsoft.Media.SelectVideoTrackById", value = SelectVideoTrackById.class)
+})
+@JsonFlatten
+@Immutable
+public class TrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TrackDescriptor.class);
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transform.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transform.java
index 9d1474afd83d..b15d59006190 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transform.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transform.java
@@ -32,6 +32,13 @@ public interface Transform {
*/
String type();
+ /**
+ * Gets the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the created property: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ'
* format.
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java
index a2119fca914e..d782e13d5f17 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java
@@ -22,6 +22,7 @@
defaultImpl = Video.class)
@JsonTypeName("#Microsoft.Media.Video")
@JsonSubTypes({
+ @JsonSubTypes.Type(name = "#Microsoft.Media.H265Video", value = H265Video.class),
@JsonSubTypes.Type(name = "#Microsoft.Media.Image", value = Image.class),
@JsonSubTypes.Type(name = "#Microsoft.Media.H264Video", value = H264Video.class)
})
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java
new file mode 100644
index 000000000000..99caa6d1ebc4
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java
@@ -0,0 +1,31 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** A TrackSelection to select video tracks. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type")
+@JsonTypeName("#Microsoft.Media.VideoTrackDescriptor")
+@JsonFlatten
+@Immutable
+public class VideoTrackDescriptor extends TrackDescriptor {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(VideoTrackDescriptor.class);
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}