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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 2.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2022-06-14)

- 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-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-mediaservices</artifactId>
<version>2.0.0</version>
<version>2.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
Expand Down Expand Up @@ -135,6 +137,19 @@ public static MediaServicesManager authenticate(TokenCredential credential, Azur
return configure().authenticate(credential, profile);
}

/**
* Creates an instance of MediaServices service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the MediaServices service API instance.
*/
public static MediaServicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return new MediaServicesManager(httpPipeline, profile, null);
}

/**
* Gets a Configurable instance that can be used to create MediaServicesManager with optional configuration.
*
Expand All @@ -153,6 +168,7 @@ public static final class Configurable {
private final List<HttpPipelinePolicy> policies = new ArrayList<>();
private final List<String> scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private RetryOptions retryOptions;
private Duration defaultPollInterval;

private Configurable() {
Expand Down Expand Up @@ -213,6 +229,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}

/**
* Sets the retry options for the HTTP pipeline retry policy.
*
* <p>This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
*/
public Configurable withRetryOptions(RetryOptions retryOptions) {
this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
return this;
}

/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
Expand Down Expand Up @@ -246,7 +275,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
.append("2.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -264,10 +293,15 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
if (retryOptions != null) {
retryPolicy = new RetryPolicy(retryOptions);
} else {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
}
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
Expand Down Expand Up @@ -298,39 +332,59 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
}
}

/** @return Resource collection API of AccountFilters. */
/**
* Gets the resource collection API of AccountFilters. It manages AccountFilter.
*
* @return Resource collection API of AccountFilters.
*/
public AccountFilters accountFilters() {
if (this.accountFilters == null) {
this.accountFilters = new AccountFiltersImpl(clientObject.getAccountFilters(), this);
}
return accountFilters;
}

/** @return Resource collection API of Operations. */
/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/** @return Resource collection API of Mediaservices. */
/**
* Gets the resource collection API of Mediaservices. It manages MediaService.
*
* @return Resource collection API of Mediaservices.
*/
public Mediaservices mediaservices() {
if (this.mediaservices == null) {
this.mediaservices = new MediaservicesImpl(clientObject.getMediaservices(), this);
}
return mediaservices;
}

/** @return Resource collection API of PrivateLinkResources. */
/**
* Gets the resource collection API of PrivateLinkResources.
*
* @return Resource collection API of PrivateLinkResources.
*/
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
return privateLinkResources;
}

/** @return Resource collection API of PrivateEndpointConnections. */
/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
*
* @return Resource collection API of PrivateEndpointConnections.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
Expand All @@ -339,111 +393,167 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}

/** @return Resource collection API of Locations. */
/**
* Gets the resource collection API of Locations.
*
* @return Resource collection API of Locations.
*/
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
}
return locations;
}

/** @return Resource collection API of Assets. */
/**
* Gets the resource collection API of Assets. It manages Asset.
*
* @return Resource collection API of Assets.
*/
public Assets assets() {
if (this.assets == null) {
this.assets = new AssetsImpl(clientObject.getAssets(), this);
}
return assets;
}

/** @return Resource collection API of AssetFilters. */
/**
* Gets the resource collection API of AssetFilters. It manages AssetFilter.
*
* @return Resource collection API of AssetFilters.
*/
public AssetFilters assetFilters() {
if (this.assetFilters == null) {
this.assetFilters = new AssetFiltersImpl(clientObject.getAssetFilters(), this);
}
return assetFilters;
}

/** @return Resource collection API of Tracks. */
/**
* Gets the resource collection API of Tracks. It manages AssetTrack.
*
* @return Resource collection API of Tracks.
*/
public Tracks tracks() {
if (this.tracks == null) {
this.tracks = new TracksImpl(clientObject.getTracks(), this);
}
return tracks;
}

/** @return Resource collection API of OperationStatuses. */
/**
* Gets the resource collection API of OperationStatuses.
*
* @return Resource collection API of OperationStatuses.
*/
public OperationStatuses operationStatuses() {
if (this.operationStatuses == null) {
this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
}
return operationStatuses;
}

/** @return Resource collection API of OperationResults. */
/**
* Gets the resource collection API of OperationResults.
*
* @return Resource collection API of OperationResults.
*/
public OperationResults operationResults() {
if (this.operationResults == null) {
this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
}
return operationResults;
}

/** @return Resource collection API of ContentKeyPolicies. */
/**
* Gets the resource collection API of ContentKeyPolicies. It manages ContentKeyPolicy.
*
* @return Resource collection API of ContentKeyPolicies.
*/
public ContentKeyPolicies contentKeyPolicies() {
if (this.contentKeyPolicies == null) {
this.contentKeyPolicies = new ContentKeyPoliciesImpl(clientObject.getContentKeyPolicies(), this);
}
return contentKeyPolicies;
}

/** @return Resource collection API of Transforms. */
/**
* Gets the resource collection API of Transforms. It manages Transform.
*
* @return Resource collection API of Transforms.
*/
public Transforms transforms() {
if (this.transforms == null) {
this.transforms = new TransformsImpl(clientObject.getTransforms(), this);
}
return transforms;
}

/** @return Resource collection API of Jobs. */
/**
* Gets the resource collection API of Jobs. It manages Job.
*
* @return Resource collection API of Jobs.
*/
public Jobs jobs() {
if (this.jobs == null) {
this.jobs = new JobsImpl(clientObject.getJobs(), this);
}
return jobs;
}

/** @return Resource collection API of StreamingPolicies. */
/**
* Gets the resource collection API of StreamingPolicies. It manages StreamingPolicy.
*
* @return Resource collection API of StreamingPolicies.
*/
public StreamingPolicies streamingPolicies() {
if (this.streamingPolicies == null) {
this.streamingPolicies = new StreamingPoliciesImpl(clientObject.getStreamingPolicies(), this);
}
return streamingPolicies;
}

/** @return Resource collection API of StreamingLocators. */
/**
* Gets the resource collection API of StreamingLocators. It manages StreamingLocator.
*
* @return Resource collection API of StreamingLocators.
*/
public StreamingLocators streamingLocators() {
if (this.streamingLocators == null) {
this.streamingLocators = new StreamingLocatorsImpl(clientObject.getStreamingLocators(), this);
}
return streamingLocators;
}

/** @return Resource collection API of LiveEvents. */
/**
* Gets the resource collection API of LiveEvents. It manages LiveEvent.
*
* @return Resource collection API of LiveEvents.
*/
public LiveEvents liveEvents() {
if (this.liveEvents == null) {
this.liveEvents = new LiveEventsImpl(clientObject.getLiveEvents(), this);
}
return liveEvents;
}

/** @return Resource collection API of LiveOutputs. */
/**
* Gets the resource collection API of LiveOutputs. It manages LiveOutput.
*
* @return Resource collection API of LiveOutputs.
*/
public LiveOutputs liveOutputs() {
if (this.liveOutputs == null) {
this.liveOutputs = new LiveOutputsImpl(clientObject.getLiveOutputs(), this);
}
return liveOutputs;
}

/** @return Resource collection API of StreamingEndpoints. */
/**
* Gets the resource collection API of StreamingEndpoints. It manages StreamingEndpoint.
*
* @return Resource collection API of StreamingEndpoints.
*/
public StreamingEndpoints streamingEndpoints() {
if (this.streamingEndpoints == null) {
this.streamingEndpoints = new StreamingEndpointsImpl(clientObject.getStreamingEndpoints(), this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public List<FilterTrackSelection> tracks() {
}
}

public String resourceGroupName() {
return resourceGroupName;
}

public AccountFilterInner innerModel() {
return this.innerObject;
}
Expand Down
Loading