Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-mediaservices] [Hub Generated] Review request for Microsoft.Media to add version stable/2020-05-01 #7321

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
18 changes: 17 additions & 1 deletion sdk/mediaservices/azure-resourcemanager-mediaservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for Mediaservices Management SDK. This
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mediaservices</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request

<!-- LINKS -->
[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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpPipelinePolicy> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand All @@ -39,6 +46,15 @@ public class AccountFilterInner extends ProxyResource {
@JsonProperty(value = "properties.tracks")
private List<FilterTrackSelection> 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.
*
Expand Down Expand Up @@ -105,6 +121,9 @@ public AccountFilterInner withTracks(List<FilterTrackSelection> tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand All @@ -39,6 +46,15 @@ public class AssetFilterInner extends ProxyResource {
@JsonProperty(value = "properties.tracks")
private List<FilterTrackSelection> 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.
*
Expand Down Expand Up @@ -105,6 +121,9 @@ public AssetFilterInner withTracks(List<FilterTrackSelection> tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (presentationTimeRange() != null) {
presentationTimeRange().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -190,5 +206,8 @@ public AssetStorageEncryptionFormat storageEncryptionFormat() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand Down Expand Up @@ -51,6 +58,15 @@ public class ContentKeyPolicyInner extends ProxyResource {
@JsonProperty(value = "properties.options")
private List<ContentKeyPolicyOption> 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.
*
Expand Down Expand Up @@ -124,6 +140,9 @@ public ContentKeyPolicyInner withOptions(List<ContentKeyPolicyOption> 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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
*/
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -375,6 +391,9 @@ public LiveEventInner withTags(Map<String, String> tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
if (input() != null) {
input().validate();
}
Expand Down
Loading