Skip to content

Commit 0a08942

Browse files
authored
[Automation] Generate Fluent Lite from mediaservices# (Azure#19354)
1 parent 5c81140 commit 0a08942

File tree

87 files changed

+3314
-57
lines changed

Some content is hidden

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

87 files changed

+3314
-57
lines changed

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

Lines changed: 154 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,160 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.2 (2021-02-22)
44

5+
- Azure Resource Manager Mediaservices client library for Java. This package contains Microsoft Azure SDK for Mediaservices Management SDK. This Swagger was generated by the API Framework. Package tag package-2020-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
7+
### New Feature
8+
9+
* `models.InputFile` was added
10+
11+
* `models.FaceRedactorMode` was added
12+
13+
* `models.FromEachInputFile` was added
14+
15+
* `models.TrackDescriptor` was added
16+
17+
* `models.H265Video` was added
18+
19+
* `models.SelectVideoTrackById` was added
20+
21+
* `models.H265Complexity` was added
22+
23+
* `models.JobInputSequence` was added
24+
25+
* `models.SelectAudioTrackById` was added
26+
27+
* `models.AttributeFilter` was added
28+
29+
* `models.FromAllInputFile` was added
30+
31+
* `models.TrackAttribute` was added
32+
33+
* `models.VideoTrackDescriptor` was added
34+
35+
* `models.CreatedByType` was added
36+
37+
* `models.H265Layer` was added
38+
39+
* `models.InputDefinition` was added
40+
41+
* `models.BlurType` was added
42+
43+
* `models.H265VideoLayer` was added
44+
45+
* `models.SystemData` was added
46+
47+
* `models.SelectVideoTrackByAttribute` was added
48+
49+
* `models.ChannelMapping` was added
50+
51+
* `models.SelectAudioTrackByAttribute` was added
52+
53+
* `models.AudioTrackDescriptor` was added
54+
55+
* `models.H265VideoProfile` was added
56+
57+
#### `models.FaceDetectorPreset` was modified
58+
59+
* `withMode(models.FaceRedactorMode)` was added
60+
* `blurType()` was added
61+
* `mode()` was added
62+
* `withBlurType(models.BlurType)` was added
63+
64+
#### `models.MediaService` was modified
65+
66+
* `syncStorageKeysWithResponse(models.SyncStorageKeysInput,com.azure.core.util.Context)` was added
67+
* `listEdgePolicies(models.ListEdgePoliciesInput)` was added
68+
* `syncStorageKeys(models.SyncStorageKeysInput)` was added
69+
* `systemData()` was added
70+
* `listEdgePoliciesWithResponse(models.ListEdgePoliciesInput,com.azure.core.util.Context)` was added
71+
72+
#### `models.AssetFilter` was modified
73+
74+
* `systemData()` was added
75+
76+
#### `models.LiveEvent` was modified
77+
78+
* `allocate()` was added
79+
* `start()` was added
80+
* `stop(models.LiveEventActionInput)` was added
81+
* `reset()` was added
82+
* `allocate(com.azure.core.util.Context)` was added
83+
* `reset(com.azure.core.util.Context)` was added
84+
* `systemData()` was added
85+
* `start(com.azure.core.util.Context)` was added
86+
* `stop(models.LiveEventActionInput,com.azure.core.util.Context)` was added
87+
88+
#### `models.AccountFilter` was modified
89+
90+
* `systemData()` was added
91+
92+
#### `models.Asset` was modified
93+
94+
* `getEncryptionKey()` was added
95+
* `listContainerSas(models.ListContainerSasInput)` was added
96+
* `systemData()` was added
97+
* `listStreamingLocators()` was added
98+
* `listStreamingLocatorsWithResponse(com.azure.core.util.Context)` was added
99+
* `listContainerSasWithResponse(models.ListContainerSasInput,com.azure.core.util.Context)` was added
100+
* `getEncryptionKeyWithResponse(com.azure.core.util.Context)` was added
101+
102+
#### `models.StreamingLocator` was modified
103+
104+
* `listContentKeysWithResponse(com.azure.core.util.Context)` was added
105+
* `systemData()` was added
106+
* `listPaths()` was added
107+
* `listPathsWithResponse(com.azure.core.util.Context)` was added
108+
* `listContentKeys()` was added
109+
110+
#### `models.MetricSpecification` was modified
111+
112+
* `lockAggregationType()` was added
113+
114+
#### `models.StreamingPolicy` was modified
115+
116+
* `systemData()` was added
117+
118+
#### `models.StreamingEndpoint` was modified
119+
120+
* `start()` was added
121+
* `systemData()` was added
122+
* `stop(com.azure.core.util.Context)` was added
123+
* `scale(models.StreamingEntityScaleUnit,com.azure.core.util.Context)` was added
124+
* `scale(models.StreamingEntityScaleUnit)` was added
125+
* `stop()` was added
126+
* `start(com.azure.core.util.Context)` was added
127+
128+
#### `models.ContentKeyPolicy` was modified
129+
130+
* `getPolicyPropertiesWithSecretsWithResponse(com.azure.core.util.Context)` was added
131+
* `systemData()` was added
132+
* `getPolicyPropertiesWithSecrets()` was added
133+
134+
#### `models.JobInputClip` was modified
135+
136+
* `withInputDefinitions(java.util.List)` was added
137+
* `inputDefinitions()` was added
138+
139+
#### `models.JobInputAsset` was modified
140+
141+
* `withInputDefinitions(java.util.List)` was added
142+
* `withInputDefinitions(java.util.List)` was added
143+
144+
#### `models.JobInputHttp` was modified
145+
146+
* `withInputDefinitions(java.util.List)` was added
147+
* `withInputDefinitions(java.util.List)` was added
148+
149+
#### `models.Job` was modified
150+
151+
* `cancelJobWithResponse(com.azure.core.util.Context)` was added
152+
* `cancelJob()` was added
153+
* `systemData()` was added
154+
155+
#### `models.Transform` was modified
156+
157+
* `systemData()` was added
5158

6159
## 1.0.0-beta.1 (2020-12-16)
7160

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ Azure Resource Manager Mediaservices client library for Java.
44

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

7+
## We'd love to hear your feedback
8+
9+
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.
10+
11+
If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
12+
13+
Thank you in advance for your collaboration. We really appreciate your time!
14+
15+
## Documentation
16+
17+
Various documentation is available to help you get started
18+
19+
- [API reference documentation][docs]
20+
721
## Getting started
822

923
### Prerequisites
@@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for Mediaservices Management SDK. This
1832
<dependency>
1933
<groupId>com.azure.resourcemanager</groupId>
2034
<artifactId>azure-resourcemanager-mediaservices</artifactId>
21-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
2236
</dependency>
2337
```
2438
[//]: # ({x-version-update-end})
@@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
7589
1. Create new Pull Request
7690

7791
<!-- LINKS -->
92+
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
93+
[docs]: https://azure.github.io/azure-sdk-for-java/
7894
[jdk]: https://docs.microsoft.com/java/azure/jdk/
7995
[azure_subscription]: https://azure.microsoft.com/free/
8096
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
4242
</properties>
4343
<dependencies>
44+
<dependency>
45+
<groupId>com.azure</groupId>
46+
<artifactId>azure-core</artifactId>
47+
<version>1.13.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
48+
</dependency>
4449
<dependency>
4550
<groupId>com.azure</groupId>
4651
<artifactId>azure-core-management</artifactId>

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

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,31 @@ public MediaservicesManager authenticate(TokenCredential credential, AzureProfil
212212
Objects.requireNonNull(credential, "'credential' cannot be null.");
213213
Objects.requireNonNull(profile, "'profile' cannot be null.");
214214

215+
StringBuilder userAgentBuilder = new StringBuilder();
216+
userAgentBuilder
217+
.append("azsdk-java")
218+
.append("-")
219+
.append("com.azure.resourcemanager.mediaservices")
220+
.append("/")
221+
.append("1.0.0-beta.2");
222+
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
223+
userAgentBuilder
224+
.append(" (")
225+
.append(Configuration.getGlobalConfiguration().get("java.version"))
226+
.append("; ")
227+
.append(Configuration.getGlobalConfiguration().get("os.name"))
228+
.append("; ")
229+
.append(Configuration.getGlobalConfiguration().get("os.version"))
230+
.append("; auto-generated)");
231+
} else {
232+
userAgentBuilder.append(" (auto-generated)");
233+
}
234+
215235
if (retryPolicy == null) {
216236
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
217237
}
218238
List<HttpPipelinePolicy> policies = new ArrayList<>();
219-
policies
220-
.add(
221-
new UserAgentPolicy(
222-
null,
223-
"com.azure.resourcemanager.mediaservices",
224-
"1.0.0-beta.1",
225-
Configuration.getGlobalConfiguration()));
239+
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
226240
policies.add(new RequestIdPolicy());
227241
HttpPolicyProviders.addBeforeRetryPolicies(policies);
228242
policies.add(retryPolicy);

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
1212
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
1313
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
14+
import com.azure.resourcemanager.mediaservices.models.SystemData;
1415
import com.fasterxml.jackson.annotation.JsonIgnore;
1516
import com.fasterxml.jackson.annotation.JsonProperty;
1617
import java.util.List;
@@ -21,6 +22,12 @@
2122
public class AccountFilterInner extends ProxyResource {
2223
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountFilterInner.class);
2324

25+
/*
26+
* The system metadata relating to this resource.
27+
*/
28+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
29+
private SystemData systemData;
30+
2431
/*
2532
* The presentation time range.
2633
*/
@@ -39,6 +46,15 @@ public class AccountFilterInner extends ProxyResource {
3946
@JsonProperty(value = "properties.tracks")
4047
private List<FilterTrackSelection> tracks;
4148

49+
/**
50+
* Get the systemData property: The system metadata relating to this resource.
51+
*
52+
* @return the systemData value.
53+
*/
54+
public SystemData systemData() {
55+
return this.systemData;
56+
}
57+
4258
/**
4359
* Get the presentationTimeRange property: The presentation time range.
4460
*
@@ -105,6 +121,9 @@ public AccountFilterInner withTracks(List<FilterTrackSelection> tracks) {
105121
* @throws IllegalArgumentException thrown if the instance is not valid.
106122
*/
107123
public void validate() {
124+
if (systemData() != null) {
125+
systemData().validate();
126+
}
108127
if (presentationTimeRange() != null) {
109128
presentationTimeRange().validate();
110129
}

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
1212
import com.azure.resourcemanager.mediaservices.models.FirstQuality;
1313
import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
14+
import com.azure.resourcemanager.mediaservices.models.SystemData;
1415
import com.fasterxml.jackson.annotation.JsonIgnore;
1516
import com.fasterxml.jackson.annotation.JsonProperty;
1617
import java.util.List;
@@ -21,6 +22,12 @@
2122
public class AssetFilterInner extends ProxyResource {
2223
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetFilterInner.class);
2324

25+
/*
26+
* The system metadata relating to this resource.
27+
*/
28+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
29+
private SystemData systemData;
30+
2431
/*
2532
* The presentation time range.
2633
*/
@@ -39,6 +46,15 @@ public class AssetFilterInner extends ProxyResource {
3946
@JsonProperty(value = "properties.tracks")
4047
private List<FilterTrackSelection> tracks;
4148

49+
/**
50+
* Get the systemData property: The system metadata relating to this resource.
51+
*
52+
* @return the systemData value.
53+
*/
54+
public SystemData systemData() {
55+
return this.systemData;
56+
}
57+
4258
/**
4359
* Get the presentationTimeRange property: The presentation time range.
4460
*
@@ -105,6 +121,9 @@ public AssetFilterInner withTracks(List<FilterTrackSelection> tracks) {
105121
* @throws IllegalArgumentException thrown if the instance is not valid.
106122
*/
107123
public void validate() {
124+
if (systemData() != null) {
125+
systemData().validate();
126+
}
108127
if (presentationTimeRange() != null) {
109128
presentationTimeRange().validate();
110129
}

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.core.management.ProxyResource;
1010
import com.azure.core.util.logging.ClientLogger;
1111
import com.azure.resourcemanager.mediaservices.models.AssetStorageEncryptionFormat;
12+
import com.azure.resourcemanager.mediaservices.models.SystemData;
1213
import com.fasterxml.jackson.annotation.JsonIgnore;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
1415
import java.time.OffsetDateTime;
@@ -20,6 +21,12 @@
2021
public class AssetInner extends ProxyResource {
2122
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetInner.class);
2223

24+
/*
25+
* The system metadata relating to this resource.
26+
*/
27+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
28+
private SystemData systemData;
29+
2330
/*
2431
* The Asset ID.
2532
*/
@@ -68,6 +75,15 @@ public class AssetInner extends ProxyResource {
6875
@JsonProperty(value = "properties.storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY)
6976
private AssetStorageEncryptionFormat storageEncryptionFormat;
7077

78+
/**
79+
* Get the systemData property: The system metadata relating to this resource.
80+
*
81+
* @return the systemData value.
82+
*/
83+
public SystemData systemData() {
84+
return this.systemData;
85+
}
86+
7187
/**
7288
* Get the assetId property: The Asset ID.
7389
*
@@ -190,5 +206,8 @@ public AssetStorageEncryptionFormat storageEncryptionFormat() {
190206
* @throws IllegalArgumentException thrown if the instance is not valid.
191207
*/
192208
public void validate() {
209+
if (systemData() != null) {
210+
systemData().validate();
211+
}
193212
}
194213
}

0 commit comments

Comments
 (0)