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.4 (Unreleased)
## 1.0.0-beta.1 (2021-10-22)

- 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.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
12 changes: 9 additions & 3 deletions sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public final class EdgeModulesListProvisioningTokenSamples {
"testaccount2",
"edgeModule1",
new ListProvisioningTokenInput()
.withExpirationDate(OffsetDateTime.parse("3021-01-23T11:04:49.0526841-08:00")),
.withExpirationDate(OffsetDateTime.parse("2023-01-23T11:04:49.0526841-08:00")),
Context.NONE);
}
}
Expand Down Expand Up @@ -768,7 +768,8 @@ public final class PipelineJobsCreateOrUpdateSamples {
.asList(
new ParameterDefinition()
.withName("timesequences")
.withValue("[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]")))
.withValue("[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"),
new ParameterDefinition().withName("videoSourceName").withValue("camera001")))
.create();
}
}
Expand Down Expand Up @@ -875,6 +876,7 @@ import com.azure.resourcemanager.videoanalyzer.models.SkuName;
import com.azure.resourcemanager.videoanalyzer.models.UnsecuredEndpoint;
import com.azure.resourcemanager.videoanalyzer.models.UsernamePasswordCredentials;
import com.azure.resourcemanager.videoanalyzer.models.VideoCreationProperties;
import com.azure.resourcemanager.videoanalyzer.models.VideoPublishingOptions;
import com.azure.resourcemanager.videoanalyzer.models.VideoSink;
import java.util.Arrays;

Expand Down Expand Up @@ -934,7 +936,11 @@ public final class PipelineTopologiesCreateOrUpdateSamples {
new VideoCreationProperties()
.withTitle("Parking Lot (Camera 1)")
.withDescription("Parking lot south entrance")
.withSegmentLength("PT30S"))))
.withSegmentLength("PT30S"))
.withVideoPublishingOptions(
new VideoPublishingOptions()
.withDisableArchive("false")
.withDisableRtspPublishing("true"))))
.create();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public VideoAnalyzerManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.videoanalyzer")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ public VideoMediaInfo mediaInfo() {
return this.innerProperties() == null ? null : this.innerProperties().mediaInfo();
}

/**
* Set the mediaInfo property: Contains information about the video and audio content.
*
* @param mediaInfo the mediaInfo value to set.
* @return the VideoEntityInner object itself.
*/
public VideoEntityInner withMediaInfo(VideoMediaInfo mediaInfo) {
if (this.innerProperties() == null) {
this.innerProperties = new VideoProperties();
}
this.innerProperties().withMediaInfo(mediaInfo);
return this;
}

/**
* Get the archival property: Video archival properties.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class VideoProperties {
/*
* Contains information about the video and audio content.
*/
@JsonProperty(value = "mediaInfo", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "mediaInfo")
private VideoMediaInfo mediaInfo;

/*
Expand Down Expand Up @@ -145,6 +145,17 @@ public VideoMediaInfo mediaInfo() {
return this.mediaInfo;
}

/**
* Set the mediaInfo property: Contains information about the video and audio content.
*
* @param mediaInfo the mediaInfo value to set.
* @return the VideoProperties object itself.
*/
public VideoProperties withMediaInfo(VideoMediaInfo mediaInfo) {
this.mediaInfo = mediaInfo;
return this;
}

/**
* Get the archival property: Video archival properties.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ public VideoEntityImpl withDescription(String description) {
return this;
}

public VideoEntityImpl withMediaInfo(VideoMediaInfo mediaInfo) {
this.innerModel().withMediaInfo(mediaInfo);
return this;
}

public VideoEntityImpl withArchival(VideoArchival archival) {
this.innerModel().withArchival(archival);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ interface WithParentResource {
* to be created, but also allows for any other optional properties to be specified.
*/
interface WithCreate
extends DefinitionStages.WithTitle, DefinitionStages.WithDescription, DefinitionStages.WithArchival {
extends DefinitionStages.WithTitle,
DefinitionStages.WithDescription,
DefinitionStages.WithMediaInfo,
DefinitionStages.WithArchival {
/**
* Executes the create request.
*
Expand Down Expand Up @@ -162,6 +165,16 @@ interface WithDescription {
*/
WithCreate withDescription(String description);
}
/** The stage of the VideoEntity definition allowing to specify mediaInfo. */
interface WithMediaInfo {
/**
* Specifies the mediaInfo property: Contains information about the video and audio content..
*
* @param mediaInfo Contains information about the video and audio content.
* @return the next definition stage.
*/
WithCreate withMediaInfo(VideoMediaInfo mediaInfo);
}
/** The stage of the VideoEntity definition allowing to specify archival. */
interface WithArchival {
/**
Expand All @@ -181,7 +194,11 @@ interface WithArchival {
VideoEntity.Update update();

/** The template for VideoEntity update. */
interface Update extends UpdateStages.WithTitle, UpdateStages.WithDescription, UpdateStages.WithArchival {
interface Update
extends UpdateStages.WithTitle,
UpdateStages.WithDescription,
UpdateStages.WithMediaInfo,
UpdateStages.WithArchival {
/**
* Executes the update request.
*
Expand Down Expand Up @@ -222,6 +239,16 @@ interface WithDescription {
*/
Update withDescription(String description);
}
/** The stage of the VideoEntity update allowing to specify mediaInfo. */
interface WithMediaInfo {
/**
* Specifies the mediaInfo property: Contains information about the video and audio content..
*
* @param mediaInfo Contains information about the video and audio content.
* @return the next definition stage.
*/
Update withMediaInfo(VideoMediaInfo mediaInfo);
}
/** The stage of the VideoEntity update allowing to specify archival. */
interface WithArchival {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

package com.azure.resourcemanager.videoanalyzer.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Contains information about the video and audio content. */
@Immutable
@Fluent
public final class VideoMediaInfo {
@JsonIgnore private final ClientLogger logger = new ClientLogger(VideoMediaInfo.class);

Expand All @@ -23,7 +23,7 @@ public final class VideoMediaInfo {
* in ISO8601 duration format (i.e. "PT30S" equals 30 seconds) and can vary
* between 30 seconds to 5 minutes, in 30 seconds increments.
*/
@JsonProperty(value = "segmentLength", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "segmentLength")
private String segmentLength;

/**
Expand All @@ -39,6 +39,21 @@ public String segmentLength() {
return this.segmentLength;
}

/**
* Set the segmentLength property: Video segment length indicates the length of individual video files (segments)
* which are persisted to storage. Smaller segments provide lower archive playback latency but generate larger
* volume of storage transactions. Larger segments reduce the amount of storage transactions while increasing the
* archive playback latency. Value must be specified in ISO8601 duration format (i.e. "PT30S" equals 30 seconds) and
* can vary between 30 seconds to 5 minutes, in 30 seconds increments.
*
* @param segmentLength the segmentLength value to set.
* @return the VideoMediaInfo object itself.
*/
public VideoMediaInfo withSegmentLength(String segmentLength) {
this.segmentLength = segmentLength;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void generateTheProvisioningTokenForAnEdgeModuleRegistration(
"testaccount2",
"edgeModule1",
new ListProvisioningTokenInput()
.withExpirationDate(OffsetDateTime.parse("3021-01-23T11:04:49.0526841-08:00")),
.withExpirationDate(OffsetDateTime.parse("2023-01-23T11:04:49.0526841-08:00")),
Context.NONE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public static void createOrUpdateAPipelineJob(
.asList(
new ParameterDefinition()
.withName("timesequences")
.withValue("[[2020-10-05T03:30:00Z, 2020-10-05T04:30:00Z]]")))
.withValue("[[\"2020-10-05T03:30:00Z\", \"2020-10-05T04:30:00Z\"]]"),
new ParameterDefinition().withName("videoSourceName").withValue("camera001")))
.create();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.azure.resourcemanager.videoanalyzer.models.UnsecuredEndpoint;
import com.azure.resourcemanager.videoanalyzer.models.UsernamePasswordCredentials;
import com.azure.resourcemanager.videoanalyzer.models.VideoCreationProperties;
import com.azure.resourcemanager.videoanalyzer.models.VideoPublishingOptions;
import com.azure.resourcemanager.videoanalyzer.models.VideoSink;
import java.util.Arrays;

Expand Down Expand Up @@ -74,7 +75,11 @@ public static void createOrUpdateAPipelineTopologyWithAnRtspSourceAndVideoSink(
new VideoCreationProperties()
.withTitle("Parking Lot (Camera 1)")
.withDescription("Parking lot south entrance")
.withSegmentLength("PT30S"))))
.withSegmentLength("PT30S"))
.withVideoPublishingOptions(
new VideoPublishingOptions()
.withDisableArchive("false")
.withDisableRtspPublishing("true"))))
.create();
}
}