Skip to content

Commit

Permalink
CodeGen from PR 16089 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge cf2673bac6a051f1bbd4d78acc8c60d13c7e82b4 into afd16a96232b181f8723fad99bfa658e51590631
  • Loading branch information
SDKAuto committed Sep 21, 2021
1 parent 05cf280 commit 728b2a7
Show file tree
Hide file tree
Showing 172 changed files with 19,775 additions and 944 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2021-09-21)

- Azure Resource Manager Video Analyzer client library for Java. This package contains Microsoft Azure SDK for Video Analyzer Management SDK. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-preview-2021-11. 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.2 (2021-05-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Video Analyzer client library for Java.

This package contains Microsoft Azure SDK for Video Analyzer Management SDK. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-2021-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Video Analyzer Management SDK. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-preview-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-videoanalyzer</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Video Analyzer Management</name>
<description>This package contains Microsoft Azure SDK for Video Analyzer Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-2021-05-01-preview.</description>
<description>This package contains Microsoft Azure SDK for Video Analyzer Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud. Package tag package-preview-2021-11.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,47 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
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.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.videoanalyzer.fluent.VideoAnalyzerManagementClient;
import com.azure.resourcemanager.videoanalyzer.implementation.AccessPoliciesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.EdgeModulesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.LivePipelineOperationStatusesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.LivePipelinesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.LocationsImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.OperationsImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.PipelineJobOperationStatusesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.PipelineJobsImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.PipelineTopologiesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.VideoAnalyzerManagementClientBuilder;
import com.azure.resourcemanager.videoanalyzer.implementation.VideoAnalyzerOperationResultsImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.VideoAnalyzerOperationStatusesImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.VideoAnalyzersImpl;
import com.azure.resourcemanager.videoanalyzer.implementation.VideosImpl;
import com.azure.resourcemanager.videoanalyzer.models.AccessPolicies;
import com.azure.resourcemanager.videoanalyzer.models.EdgeModules;
import com.azure.resourcemanager.videoanalyzer.models.LivePipelineOperationStatuses;
import com.azure.resourcemanager.videoanalyzer.models.LivePipelines;
import com.azure.resourcemanager.videoanalyzer.models.Locations;
import com.azure.resourcemanager.videoanalyzer.models.Operations;
import com.azure.resourcemanager.videoanalyzer.models.PipelineJobOperationStatuses;
import com.azure.resourcemanager.videoanalyzer.models.PipelineJobs;
import com.azure.resourcemanager.videoanalyzer.models.PipelineTopologies;
import com.azure.resourcemanager.videoanalyzer.models.PrivateEndpointConnections;
import com.azure.resourcemanager.videoanalyzer.models.PrivateLinkResources;
import com.azure.resourcemanager.videoanalyzer.models.VideoAnalyzerOperationResults;
import com.azure.resourcemanager.videoanalyzer.models.VideoAnalyzerOperationStatuses;
import com.azure.resourcemanager.videoanalyzer.models.VideoAnalyzers;
import com.azure.resourcemanager.videoanalyzer.models.Videos;
import java.time.Duration;
Expand All @@ -45,13 +63,31 @@
* applications that span the edge and the cloud.
*/
public final class VideoAnalyzerManager {
private EdgeModules edgeModules;

private PipelineTopologies pipelineTopologies;

private LivePipelines livePipelines;

private PipelineJobs pipelineJobs;

private LivePipelineOperationStatuses livePipelineOperationStatuses;

private PipelineJobOperationStatuses pipelineJobOperationStatuses;

private Operations operations;

private VideoAnalyzers videoAnalyzers;

private Locations locations;
private PrivateLinkResources privateLinkResources;

private EdgeModules edgeModules;
private PrivateEndpointConnections privateEndpointConnections;

private VideoAnalyzerOperationStatuses videoAnalyzerOperationStatuses;

private VideoAnalyzerOperationResults videoAnalyzerOperationResults;

private Locations locations;

private Videos videos;

Expand Down Expand Up @@ -100,6 +136,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List<HttpPipelinePolicy> policies = new ArrayList<>();
private final List<String> scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;

Expand Down Expand Up @@ -139,6 +176,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}

/**
* Adds the scope to permission sets.
*
* @param scope the scope.
* @return the configurable object itself.
*/
public Configurable withScope(String scope) {
this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
return this;
}

/**
* Sets the retry policy to the HTTP pipeline.
*
Expand Down Expand Up @@ -181,7 +229,7 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.videoanalyzer")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -195,6 +243,9 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
userAgentBuilder.append(" (auto-generated)");
}

if (scopes.isEmpty()) {
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
Expand All @@ -204,10 +255,7 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies
.add(
new BearerTokenAuthenticationPolicy(
credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
Expand All @@ -220,6 +268,56 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
}
}

/** @return Resource collection API of EdgeModules. */
public EdgeModules edgeModules() {
if (this.edgeModules == null) {
this.edgeModules = new EdgeModulesImpl(clientObject.getEdgeModules(), this);
}
return edgeModules;
}

/** @return Resource collection API of PipelineTopologies. */
public PipelineTopologies pipelineTopologies() {
if (this.pipelineTopologies == null) {
this.pipelineTopologies = new PipelineTopologiesImpl(clientObject.getPipelineTopologies(), this);
}
return pipelineTopologies;
}

/** @return Resource collection API of LivePipelines. */
public LivePipelines livePipelines() {
if (this.livePipelines == null) {
this.livePipelines = new LivePipelinesImpl(clientObject.getLivePipelines(), this);
}
return livePipelines;
}

/** @return Resource collection API of PipelineJobs. */
public PipelineJobs pipelineJobs() {
if (this.pipelineJobs == null) {
this.pipelineJobs = new PipelineJobsImpl(clientObject.getPipelineJobs(), this);
}
return pipelineJobs;
}

/** @return Resource collection API of LivePipelineOperationStatuses. */
public LivePipelineOperationStatuses livePipelineOperationStatuses() {
if (this.livePipelineOperationStatuses == null) {
this.livePipelineOperationStatuses =
new LivePipelineOperationStatusesImpl(clientObject.getLivePipelineOperationStatuses(), this);
}
return livePipelineOperationStatuses;
}

/** @return Resource collection API of PipelineJobOperationStatuses. */
public PipelineJobOperationStatuses pipelineJobOperationStatuses() {
if (this.pipelineJobOperationStatuses == null) {
this.pipelineJobOperationStatuses =
new PipelineJobOperationStatusesImpl(clientObject.getPipelineJobOperationStatuses(), this);
}
return pipelineJobOperationStatuses;
}

/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
Expand All @@ -236,6 +334,41 @@ public VideoAnalyzers videoAnalyzers() {
return videoAnalyzers;
}

/** @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. */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
return privateEndpointConnections;
}

/** @return Resource collection API of VideoAnalyzerOperationStatuses. */
public VideoAnalyzerOperationStatuses videoAnalyzerOperationStatuses() {
if (this.videoAnalyzerOperationStatuses == null) {
this.videoAnalyzerOperationStatuses =
new VideoAnalyzerOperationStatusesImpl(clientObject.getVideoAnalyzerOperationStatuses(), this);
}
return videoAnalyzerOperationStatuses;
}

/** @return Resource collection API of VideoAnalyzerOperationResults. */
public VideoAnalyzerOperationResults videoAnalyzerOperationResults() {
if (this.videoAnalyzerOperationResults == null) {
this.videoAnalyzerOperationResults =
new VideoAnalyzerOperationResultsImpl(clientObject.getVideoAnalyzerOperationResults(), this);
}
return videoAnalyzerOperationResults;
}

/** @return Resource collection API of Locations. */
public Locations locations() {
if (this.locations == null) {
Expand All @@ -244,14 +377,6 @@ public Locations locations() {
return locations;
}

/** @return Resource collection API of EdgeModules. */
public EdgeModules edgeModules() {
if (this.edgeModules == null) {
this.edgeModules = new EdgeModulesImpl(clientObject.getEdgeModules(), this);
}
return edgeModules;
}

/** @return Resource collection API of Videos. */
public Videos videos() {
if (this.videos == null) {
Expand Down
Loading

0 comments on commit 728b2a7

Please sign in to comment.