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

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2022-01-13)

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

### 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-videoanalyzer</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
23 changes: 23 additions & 0 deletions sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,27 @@
<version>1.5.1</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.14.6</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.addedToInterface</code>
</item>
<item>
<regex>true</regex>
<code>.*</code>
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
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.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand Down Expand Up @@ -61,6 +62,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
* Entry point to VideoAnalyzerManager. Azure Video Analyzer provides a platform for you to build intelligent video
Expand Down Expand Up @@ -237,7 +239,7 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.videoanalyzer")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -260,11 +262,24 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void deleteById(String id) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'accessPolicies'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, accessPolicyName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, accessPolicyName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'edgeModules'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, edgeModuleName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, edgeModuleName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,8 @@ private PollerFlux<PollResult<Void>, Void> beginActivateAsync(
activateWithResponseAsync(resourceGroupName, accountName, livePipelineName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1523,7 +1524,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeactivateAsync(
deactivateWithResponseAsync(resourceGroupName, accountName, livePipelineName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'livePipelines'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, livePipelineName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, livePipelineName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,8 @@ private PollerFlux<PollResult<Void>, Void> beginCancelAsync(
cancelWithResponseAsync(resourceGroupName, accountName, pipelineJobName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'pipelineJobs'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, pipelineJobName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, pipelineJobName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void deleteById(String id) {
.format(
"The resource ID '%s' is not valid. Missing path segment 'pipelineTopologies'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, pipelineTopologyName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, pipelineTopologyName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void deleteById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.",
id)));
}
this.deleteWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, name, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ private PollerFlux<PollResult<VideoAnalyzerInner>, VideoAnalyzerInner> beginCrea
return this
.client
.<VideoAnalyzerInner, VideoAnalyzerInner>getLroResult(
mono, this.client.getHttpPipeline(), VideoAnalyzerInner.class, VideoAnalyzerInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
VideoAnalyzerInner.class,
VideoAnalyzerInner.class,
this.client.getContext());
}

/**
Expand Down Expand Up @@ -963,7 +967,11 @@ private PollerFlux<PollResult<VideoAnalyzerInner>, VideoAnalyzerInner> beginUpda
return this
.client
.<VideoAnalyzerInner, VideoAnalyzerInner>getLroResult(
mono, this.client.getHttpPipeline(), VideoAnalyzerInner.class, VideoAnalyzerInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
VideoAnalyzerInner.class,
VideoAnalyzerInner.class,
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void deleteById(String id) {
String
.format("The resource ID '%s' is not valid. Missing path segment 'videoAnalyzers'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'videos'.", id)));
}
this.deleteWithResponse(resourceGroupName, accountName, videoName, Context.NONE).getValue();
this.deleteWithResponse(resourceGroupName, accountName, videoName, Context.NONE);
}

public Response<Void> deleteByIdWithResponse(String id, Context context) {
Expand Down