parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (error() != null) {
+ error().validate();
+ }
+ if (parameters() != null) {
+ parameters().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineJobOperationStatusInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineJobOperationStatusInner.java
new file mode 100644
index 0000000000000..4c5eebd62d71e
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineJobOperationStatusInner.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The PipelineJobOperationStatus model. */
+@Immutable
+public final class PipelineJobOperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineJobOperationStatusInner.class);
+
+ /*
+ * The name of the pipeline job operation.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The status of the pipeline job operation.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /*
+ * The error details for the pipeline job operation.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private ManagementError error;
+
+ /**
+ * Get the name property: The name of the pipeline job operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the status property: The status of the pipeline job operation.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the error property: The error details for the pipeline job operation.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineTopologyInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineTopologyInner.java
new file mode 100644
index 0000000000000..92894f49e51b8
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PipelineTopologyInner.java
@@ -0,0 +1,287 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.videoanalyzer.models.Kind;
+import com.azure.resourcemanager.videoanalyzer.models.ParameterDeclaration;
+import com.azure.resourcemanager.videoanalyzer.models.ProcessorNodeBase;
+import com.azure.resourcemanager.videoanalyzer.models.SinkNodeBase;
+import com.azure.resourcemanager.videoanalyzer.models.Sku;
+import com.azure.resourcemanager.videoanalyzer.models.SourceNodeBase;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Pipeline topology describes the processing steps to be applied when processing content for a particular outcome. The
+ * topology should be defined according to the scenario to be achieved and can be reused across many pipeline instances
+ * which share the same processing characteristics. For instance, a pipeline topology which captures content from a RTSP
+ * camera and archives the content can be reused across many different cameras, as long as the same processing is to be
+ * applied across all the cameras. Individual instance properties can be defined through the use of user-defined
+ * parameters, which allow for a topology to be parameterized. This allows individual pipelines refer to different
+ * values, such as individual cameras' RTSP endpoints and credentials. Overall a topology is composed of the following:
+ *
+ * - Parameters: list of user defined parameters that can be references across the topology nodes. - Sources: list of
+ * one or more data sources nodes such as an RTSP source which allows for content to be ingested from cameras. -
+ * Processors: list of nodes which perform data analysis or transformations. - Sinks: list of one or more data sinks
+ * which allow for data to be stored or exported to other destinations.
+ */
+@JsonFlatten
+@Fluent
+public class PipelineTopologyInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PipelineTopologyInner.class);
+
+ /*
+ * Topology kind.
+ */
+ @JsonProperty(value = "kind", required = true)
+ private Kind kind;
+
+ /*
+ * Describes the properties of a SKU.
+ */
+ @JsonProperty(value = "sku", required = true)
+ private Sku sku;
+
+ /*
+ * An optional description of the pipeline topology. It is recommended that
+ * the expected use of the topology to be described here.
+ */
+ @JsonProperty(value = "properties.description")
+ private String description;
+
+ /*
+ * List of the topology parameter declarations. Parameters declared here
+ * can be referenced throughout the topology nodes through the use of
+ * "${PARAMETER_NAME}" string pattern. Parameters can have optional default
+ * values and can later be defined in individual instances of the pipeline.
+ */
+ @JsonProperty(value = "properties.parameters")
+ private List parameters;
+
+ /*
+ * List of the topology source nodes. Source nodes enable external data to
+ * be ingested by the pipeline.
+ */
+ @JsonProperty(value = "properties.sources")
+ private List sources;
+
+ /*
+ * List of the topology processor nodes. Processor nodes enable pipeline
+ * data to be analyzed, processed or transformed.
+ */
+ @JsonProperty(value = "properties.processors")
+ private List processors;
+
+ /*
+ * List of the topology sink nodes. Sink nodes allow pipeline data to be
+ * stored or exported.
+ */
+ @JsonProperty(value = "properties.sinks")
+ private List sinks;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the kind property: Topology kind.
+ *
+ * @return the kind value.
+ */
+ public Kind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Topology kind.
+ *
+ * @param kind the kind value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withKind(Kind kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the sku property: Describes the properties of a SKU.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Describes the properties of a SKU.
+ *
+ * @param sku the sku value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the description property: An optional description of the pipeline topology. It is recommended that the
+ * expected use of the topology to be described here.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: An optional description of the pipeline topology. It is recommended that the
+ * expected use of the topology to be described here.
+ *
+ * @param description the description value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the parameters property: List of the topology parameter declarations. Parameters declared here can be
+ * referenced throughout the topology nodes through the use of "${PARAMETER_NAME}" string pattern. Parameters can
+ * have optional default values and can later be defined in individual instances of the pipeline.
+ *
+ * @return the parameters value.
+ */
+ public List parameters() {
+ return this.parameters;
+ }
+
+ /**
+ * Set the parameters property: List of the topology parameter declarations. Parameters declared here can be
+ * referenced throughout the topology nodes through the use of "${PARAMETER_NAME}" string pattern. Parameters can
+ * have optional default values and can later be defined in individual instances of the pipeline.
+ *
+ * @param parameters the parameters value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withParameters(List parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the sources property: List of the topology source nodes. Source nodes enable external data to be ingested by
+ * the pipeline.
+ *
+ * @return the sources value.
+ */
+ public List sources() {
+ return this.sources;
+ }
+
+ /**
+ * Set the sources property: List of the topology source nodes. Source nodes enable external data to be ingested by
+ * the pipeline.
+ *
+ * @param sources the sources value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withSources(List sources) {
+ this.sources = sources;
+ return this;
+ }
+
+ /**
+ * Get the processors property: List of the topology processor nodes. Processor nodes enable pipeline data to be
+ * analyzed, processed or transformed.
+ *
+ * @return the processors value.
+ */
+ public List processors() {
+ return this.processors;
+ }
+
+ /**
+ * Set the processors property: List of the topology processor nodes. Processor nodes enable pipeline data to be
+ * analyzed, processed or transformed.
+ *
+ * @param processors the processors value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withProcessors(List processors) {
+ this.processors = processors;
+ return this;
+ }
+
+ /**
+ * Get the sinks property: List of the topology sink nodes. Sink nodes allow pipeline data to be stored or exported.
+ *
+ * @return the sinks value.
+ */
+ public List sinks() {
+ return this.sinks;
+ }
+
+ /**
+ * Set the sinks property: List of the topology sink nodes. Sink nodes allow pipeline data to be stored or exported.
+ *
+ * @param sinks the sinks value to set.
+ * @return the PipelineTopologyInner object itself.
+ */
+ public PipelineTopologyInner withSinks(List sinks) {
+ this.sinks = sinks;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (kind() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property kind in model PipelineTopologyInner"));
+ }
+ if (sku() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property sku in model PipelineTopologyInner"));
+ } else {
+ sku().validate();
+ }
+ if (parameters() != null) {
+ parameters().forEach(e -> e.validate());
+ }
+ if (sources() != null) {
+ sources().forEach(e -> e.validate());
+ }
+ if (processors() != null) {
+ processors().forEach(e -> e.validate());
+ }
+ if (sinks() != null) {
+ sinks().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..85961f1ed5668
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.videoanalyzer.models.PrivateEndpoint;
+import com.azure.resourcemanager.videoanalyzer.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.videoanalyzer.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Private Endpoint Connection resource. */
+@JsonFlatten
+@Fluent
+public class PrivateEndpointConnectionInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
+
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "properties.privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "properties.privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionListResultInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionListResultInner.java
new file mode 100644
index 0000000000000..5d0c9ae4b56e7
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateEndpointConnectionListResultInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+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;
+import java.util.List;
+
+/** List of private endpoint connection associated with the specified storage account. */
+@Fluent
+public final class PrivateEndpointConnectionListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionListResultInner.class);
+
+ /*
+ * Array of private endpoint connections
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Array of private endpoint connections.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private endpoint connections.
+ *
+ * @param value the value value to set.
+ * @return the PrivateEndpointConnectionListResultInner object itself.
+ */
+ public PrivateEndpointConnectionListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 0000000000000..4fc2accb1ed1a
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A private link resource. */
+@JsonFlatten
+@Fluent
+public class PrivateLinkResourceInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
+
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "properties.groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "properties.requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource Private link DNS zone name.
+ */
+ @JsonProperty(value = "properties.requiredZoneNames")
+ private List requiredZoneNames;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceListResultInner.java
new file mode 100644
index 0000000000000..40685bdb25109
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/PrivateLinkResourceListResultInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+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;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class PrivateLinkResourceListResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceListResultInner.class);
+
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResultInner object itself.
+ */
+ public PrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerInner.java
index 7c26bb5db0fd0..cb10cdb740f02 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerInner.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerInner.java
@@ -7,10 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.videoanalyzer.models.AccountEncryption;
import com.azure.resourcemanager.videoanalyzer.models.Endpoint;
+import com.azure.resourcemanager.videoanalyzer.models.IotHub;
+import com.azure.resourcemanager.videoanalyzer.models.NetworkAccessControl;
+import com.azure.resourcemanager.videoanalyzer.models.ProvisioningState;
+import com.azure.resourcemanager.videoanalyzer.models.PublicNetworkAccess;
import com.azure.resourcemanager.videoanalyzer.models.StorageAccount;
import com.azure.resourcemanager.videoanalyzer.models.VideoAnalyzerIdentity;
import com.fasterxml.jackson.annotation.JsonIgnore;
@@ -18,21 +21,14 @@
import java.util.List;
import java.util.Map;
-/** A Video Analyzer account. */
+/** The Video Analyzer account. */
@JsonFlatten
@Fluent
public class VideoAnalyzerInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(VideoAnalyzerInner.class);
/*
- * The system data of the Video Analyzer account.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * The set of managed identities associated with the Video Analyzer
- * resource.
+ * The identities associated to the Video Analyzer resource.
*/
@JsonProperty(value = "identity")
private VideoAnalyzerIdentity identity;
@@ -44,7 +40,7 @@ public class VideoAnalyzerInner extends Resource {
private List storageAccounts;
/*
- * The list of endpoints associated with this resource.
+ * The endpoints associated with this resource.
*/
@JsonProperty(value = "properties.endpoints", access = JsonProperty.Access.WRITE_ONLY)
private List endpoints;
@@ -55,17 +51,39 @@ public class VideoAnalyzerInner extends Resource {
@JsonProperty(value = "properties.encryption")
private AccountEncryption encryption;
- /**
- * Get the systemData property: The system data of the Video Analyzer account.
- *
- * @return the systemData value.
+ /*
+ * The IoT Hubs for this resource.
*/
- public SystemData systemData() {
- return this.systemData;
- }
+ @JsonProperty(value = "properties.iotHubs")
+ private List iotHubs;
+
+ /*
+ * Whether or not public network access is allowed for resources under the
+ * Video Analyzer account.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * Network access control for Video Analyzer.
+ */
+ @JsonProperty(value = "properties.networkAccessControl")
+ private NetworkAccessControl networkAccessControl;
+
+ /*
+ * Provisioning state of the Video Analyzer account.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Private Endpoint Connections created under Video Analyzer account.
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
/**
- * Get the identity property: The set of managed identities associated with the Video Analyzer resource.
+ * Get the identity property: The identities associated to the Video Analyzer resource.
*
* @return the identity value.
*/
@@ -74,7 +92,7 @@ public VideoAnalyzerIdentity identity() {
}
/**
- * Set the identity property: The set of managed identities associated with the Video Analyzer resource.
+ * Set the identity property: The identities associated to the Video Analyzer resource.
*
* @param identity the identity value to set.
* @return the VideoAnalyzerInner object itself.
@@ -105,7 +123,7 @@ public VideoAnalyzerInner withStorageAccounts(List storageAccoun
}
/**
- * Get the endpoints property: The list of endpoints associated with this resource.
+ * Get the endpoints property: The endpoints associated with this resource.
*
* @return the endpoints value.
*/
@@ -133,6 +151,86 @@ public VideoAnalyzerInner withEncryption(AccountEncryption encryption) {
return this;
}
+ /**
+ * Get the iotHubs property: The IoT Hubs for this resource.
+ *
+ * @return the iotHubs value.
+ */
+ public List iotHubs() {
+ return this.iotHubs;
+ }
+
+ /**
+ * Set the iotHubs property: The IoT Hubs for this resource.
+ *
+ * @param iotHubs the iotHubs value to set.
+ * @return the VideoAnalyzerInner object itself.
+ */
+ public VideoAnalyzerInner withIotHubs(List iotHubs) {
+ this.iotHubs = iotHubs;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public network access is allowed for resources under the
+ * Video Analyzer account.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public network access is allowed for resources under the
+ * Video Analyzer account.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the VideoAnalyzerInner object itself.
+ */
+ public VideoAnalyzerInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the networkAccessControl property: Network access control for Video Analyzer.
+ *
+ * @return the networkAccessControl value.
+ */
+ public NetworkAccessControl networkAccessControl() {
+ return this.networkAccessControl;
+ }
+
+ /**
+ * Set the networkAccessControl property: Network access control for Video Analyzer.
+ *
+ * @param networkAccessControl the networkAccessControl value to set.
+ * @return the VideoAnalyzerInner object itself.
+ */
+ public VideoAnalyzerInner withNetworkAccessControl(NetworkAccessControl networkAccessControl) {
+ this.networkAccessControl = networkAccessControl;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Video Analyzer account.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private Endpoint Connections created under Video Analyzer account.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/** {@inheritDoc} */
@Override
public VideoAnalyzerInner withLocation(String location) {
@@ -165,5 +263,14 @@ public void validate() {
if (encryption() != null) {
encryption().validate();
}
+ if (iotHubs() != null) {
+ iotHubs().forEach(e -> e.validate());
+ }
+ if (networkAccessControl() != null) {
+ networkAccessControl().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerOperationStatusInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerOperationStatusInner.java
new file mode 100644
index 0000000000000..7f75a724d8e3f
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerOperationStatusInner.java
@@ -0,0 +1,187 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Status of video analyzer operation. */
+@Fluent
+public final class VideoAnalyzerOperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(VideoAnalyzerOperationStatusInner.class);
+
+ /*
+ * Operation identifier.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Operation resource ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Operation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private String startTime;
+
+ /*
+ * Operation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private String endTime;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * The error detail.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the name property: Operation identifier.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation identifier.
+ *
+ * @param name the name value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Operation resource ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Operation resource ID.
+ *
+ * @param id the id value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Operation start time.
+ *
+ * @return the startTime value.
+ */
+ public String startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Operation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withStartTime(String startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Operation end time.
+ *
+ * @return the endTime value.
+ */
+ public String endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Operation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withEndTime(String endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Operation status.
+ *
+ * @param status the status value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the error property: The error detail.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: The error detail.
+ *
+ * @param error the error value to set.
+ * @return the VideoAnalyzerOperationStatusInner object itself.
+ */
+ public VideoAnalyzerOperationStatusInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property name in model VideoAnalyzerOperationStatusInner"));
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerPrivateEndpointConnectionOperationStatusInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerPrivateEndpointConnectionOperationStatusInner.java
new file mode 100644
index 0000000000000..ceebb00e93f0b
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoAnalyzerPrivateEndpointConnectionOperationStatusInner.java
@@ -0,0 +1,190 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Status of private endpoint connection operation. */
+@Fluent
+public final class VideoAnalyzerPrivateEndpointConnectionOperationStatusInner {
+ @JsonIgnore
+ private final ClientLogger logger =
+ new ClientLogger(VideoAnalyzerPrivateEndpointConnectionOperationStatusInner.class);
+
+ /*
+ * Operation identifier.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Operation resource ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Operation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private String startTime;
+
+ /*
+ * Operation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private String endTime;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * The error detail.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the name property: Operation identifier.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation identifier.
+ *
+ * @param name the name value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Operation resource ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Operation resource ID.
+ *
+ * @param id the id value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Operation start time.
+ *
+ * @return the startTime value.
+ */
+ public String startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Operation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withStartTime(String startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Operation end time.
+ *
+ * @return the endTime value.
+ */
+ public String endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Operation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withEndTime(String endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Operation status.
+ *
+ * @param status the status value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the error property: The error detail.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: The error detail.
+ *
+ * @param error the error value to set.
+ * @return the VideoAnalyzerPrivateEndpointConnectionOperationStatusInner object itself.
+ */
+ public VideoAnalyzerPrivateEndpointConnectionOperationStatusInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property name in model"
+ + " VideoAnalyzerPrivateEndpointConnectionOperationStatusInner"));
+ }
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoStreamingTokenInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoContentTokenInner.java
similarity index 62%
rename from sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoStreamingTokenInner.java
rename to sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoContentTokenInner.java
index 65dccf47fd0d3..2fa78d10fb2d8 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoStreamingTokenInner.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoContentTokenInner.java
@@ -10,32 +10,28 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/**
- * Video streaming token grants access to the video streaming URLs which can be used by an compatible HLS or DASH
- * player.
- */
+/** "Video content token grants access to the video content URLs.". */
@Immutable
-public final class VideoStreamingTokenInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VideoStreamingTokenInner.class);
+public final class VideoContentTokenInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(VideoContentTokenInner.class);
/*
- * The streaming token expiration date in ISO8601 format (eg.
+ * The content token expiration date in ISO8601 format (eg.
* 2021-01-01T00:00:00Z).
*/
@JsonProperty(value = "expirationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime expirationDate;
/*
- * The streaming token value to be added to the video streaming URL as the
- * value for a "token" query string parameter. The token is specific to a
+ * The content token value to be added to the video content URL as the
+ * value for the "token" query string parameter. The token is specific to a
* single video.
*/
@JsonProperty(value = "token", access = JsonProperty.Access.WRITE_ONLY)
private String token;
/**
- * Get the expirationDate property: The streaming token expiration date in ISO8601 format (eg.
- * 2021-01-01T00:00:00Z).
+ * Get the expirationDate property: The content token expiration date in ISO8601 format (eg. 2021-01-01T00:00:00Z).
*
* @return the expirationDate value.
*/
@@ -44,8 +40,8 @@ public OffsetDateTime expirationDate() {
}
/**
- * Get the token property: The streaming token value to be added to the video streaming URL as the value for a
- * "token" query string parameter. The token is specific to a single video.
+ * Get the token property: The content token value to be added to the video content URL as the value for the "token"
+ * query string parameter. The token is specific to a single video.
*
* @return the token value.
*/
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoEntityInner.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoEntityInner.java
index f7b6ad736ba49..79c802c54c2f8 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoEntityInner.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/fluent/models/VideoEntityInner.java
@@ -9,25 +9,20 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.videoanalyzer.models.VideoArchival;
+import com.azure.resourcemanager.videoanalyzer.models.VideoContentUrls;
import com.azure.resourcemanager.videoanalyzer.models.VideoFlags;
import com.azure.resourcemanager.videoanalyzer.models.VideoMediaInfo;
-import com.azure.resourcemanager.videoanalyzer.models.VideoStreaming;
import com.azure.resourcemanager.videoanalyzer.models.VideoType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The representation of a single video in a Video Analyzer account. */
+/** The VideoEntity model. */
@JsonFlatten
@Fluent
public class VideoEntityInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(VideoEntityInner.class);
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/*
* Optional video title provided by the user. Value can be up to 256
* characters long.
@@ -43,8 +38,8 @@ public class VideoEntityInner extends ProxyResource {
private String description;
/*
- * Type of the video archive. Different archive formats provide different
- * capabilities.
+ * Video content type. Different content types are suitable for different
+ * applications and scenarios.
*/
@JsonProperty(value = "properties.type", access = JsonProperty.Access.WRITE_ONLY)
private VideoType typePropertiesType;
@@ -57,10 +52,10 @@ public class VideoEntityInner extends ProxyResource {
private VideoFlags flags;
/*
- * Video streaming holds information about video streaming URLs.
+ * Set of URLs to the video content.
*/
- @JsonProperty(value = "properties.streaming", access = JsonProperty.Access.WRITE_ONLY)
- private VideoStreaming streaming;
+ @JsonProperty(value = "properties.contentUrls", access = JsonProperty.Access.WRITE_ONLY)
+ private VideoContentUrls contentUrls;
/*
* Contains information about the video and audio content.
@@ -68,14 +63,18 @@ public class VideoEntityInner extends ProxyResource {
@JsonProperty(value = "properties.mediaInfo", access = JsonProperty.Access.WRITE_ONLY)
private VideoMediaInfo mediaInfo;
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
+ /*
+ * Video archival properties.
*/
- public SystemData systemData() {
- return this.systemData;
- }
+ @JsonProperty(value = "properties.archival")
+ private VideoArchival archival;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
* Get the title property: Optional video title provided by the user. Value can be up to 256 characters long.
@@ -120,8 +119,8 @@ public VideoEntityInner withDescription(String description) {
}
/**
- * Get the typePropertiesType property: Type of the video archive. Different archive formats provide different
- * capabilities.
+ * Get the typePropertiesType property: Video content type. Different content types are suitable for different
+ * applications and scenarios.
*
* @return the typePropertiesType value.
*/
@@ -140,12 +139,12 @@ public VideoFlags flags() {
}
/**
- * Get the streaming property: Video streaming holds information about video streaming URLs.
+ * Get the contentUrls property: Set of URLs to the video content.
*
- * @return the streaming value.
+ * @return the contentUrls value.
*/
- public VideoStreaming streaming() {
- return this.streaming;
+ public VideoContentUrls contentUrls() {
+ return this.contentUrls;
}
/**
@@ -157,6 +156,35 @@ public VideoMediaInfo mediaInfo() {
return this.mediaInfo;
}
+ /**
+ * Get the archival property: Video archival properties.
+ *
+ * @return the archival value.
+ */
+ public VideoArchival archival() {
+ return this.archival;
+ }
+
+ /**
+ * Set the archival property: Video archival properties.
+ *
+ * @param archival the archival value to set.
+ * @return the VideoEntityInner object itself.
+ */
+ public VideoEntityInner withArchival(VideoArchival archival) {
+ this.archival = archival;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Validates the instance.
*
@@ -166,11 +194,14 @@ public void validate() {
if (flags() != null) {
flags().validate();
}
- if (streaming() != null) {
- streaming().validate();
+ if (contentUrls() != null) {
+ contentUrls().validate();
}
if (mediaInfo() != null) {
mediaInfo().validate();
}
+ if (archival() != null) {
+ archival().validate();
+ }
}
}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPoliciesClientImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPoliciesClientImpl.java
index 5e2e4a13ff088..5c6c6e1ed65ed 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPoliciesClientImpl.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPoliciesClientImpl.java
@@ -157,7 +157,7 @@ Mono> listNext(
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -217,7 +217,7 @@ private Mono> listSinglePageAsync(
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -275,7 +275,7 @@ private Mono> listSinglePageAsync(
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -294,7 +294,7 @@ private PagedFlux listAsync(String resourceGroupName, S
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -312,7 +312,7 @@ private PagedFlux listAsync(String resourceGroupName, S
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -333,7 +333,7 @@ private PagedFlux listAsync(
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -349,7 +349,7 @@ public PagedIterable list(String resourceGroupName, Str
}
/**
- * List all existing access policy resources for the specified account.
+ * Retrieves all existing access policy resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -368,15 +368,15 @@ public PagedIterable list(
}
/**
- * Retrieves an existing access policy resource from an account by name.
+ * Retrieves an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to retrieve.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -422,16 +422,16 @@ private Mono> getWithResponseAsync(
}
/**
- * Retrieves an existing access policy resource from an account by name.
+ * Retrieves an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to retrieve.
+ * @param accessPolicyName The Access Policy name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -474,15 +474,15 @@ private Mono> getWithResponseAsync(
}
/**
- * Retrieves an existing access policy resource from an account by name.
+ * Retrieves an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to retrieve.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -499,15 +499,15 @@ private Mono getAsync(
}
/**
- * Retrieves an existing access policy resource from an account by name.
+ * Retrieves an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to retrieve.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessPolicyEntityInner get(String resourceGroupName, String accountName, String accessPolicyName) {
@@ -515,16 +515,16 @@ public AccessPolicyEntityInner get(String resourceGroupName, String accountName,
}
/**
- * Retrieves an existing access policy resource from an account by name.
+ * Retrieves an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to retrieve.
+ * @param accessPolicyName The Access Policy name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -533,16 +533,16 @@ public Response getWithResponse(
}
/**
- * Creates a new access policy resource or updates an existing one.
+ * Creates a new access policy resource or updates an existing one with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to create or update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -594,17 +594,17 @@ private Mono> createOrUpdateWithResponseAsync(
}
/**
- * Creates a new access policy resource or updates an existing one.
+ * Creates a new access policy resource or updates an existing one with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to create or update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -657,16 +657,16 @@ private Mono> createOrUpdateWithResponseAsync(
}
/**
- * Creates a new access policy resource or updates an existing one.
+ * Creates a new access policy resource or updates an existing one with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to create or update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -683,16 +683,16 @@ private Mono createOrUpdateAsync(
}
/**
- * Creates a new access policy resource or updates an existing one.
+ * Creates a new access policy resource or updates an existing one with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to create or update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessPolicyEntityInner createOrUpdate(
@@ -701,17 +701,17 @@ public AccessPolicyEntityInner createOrUpdate(
}
/**
- * Creates a new access policy resource or updates an existing one.
+ * Creates a new access policy resource or updates an existing one with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to create or update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(
@@ -725,11 +725,11 @@ public Response createOrUpdateWithResponse(
}
/**
- * Deletes an existing access policy resource.
+ * Deletes an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to delete.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -779,11 +779,11 @@ private Mono> deleteWithResponseAsync(
}
/**
- * Deletes an existing access policy resource.
+ * Deletes an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to delete.
+ * @param accessPolicyName The Access Policy name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -831,11 +831,11 @@ private Mono> deleteWithResponseAsync(
}
/**
- * Deletes an existing access policy resource.
+ * Deletes an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to delete.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -848,11 +848,11 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
}
/**
- * Deletes an existing access policy resource.
+ * Deletes an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to delete.
+ * @param accessPolicyName The Access Policy name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -863,11 +863,11 @@ public void delete(String resourceGroupName, String accountName, String accessPo
}
/**
- * Deletes an existing access policy resource.
+ * Deletes an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to delete.
+ * @param accessPolicyName The Access Policy name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -881,16 +881,16 @@ public Response deleteWithResponse(
}
/**
- * Updates individual properties of an existing access policy resource.
+ * Updates individual properties of an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -942,17 +942,17 @@ private Mono> updateWithResponseAsync(
}
/**
- * Updates individual properties of an existing access policy resource.
+ * Updates individual properties of an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -1005,16 +1005,16 @@ private Mono> updateWithResponseAsync(
}
/**
- * Updates individual properties of an existing access policy resource.
+ * Updates individual properties of an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1031,16 +1031,16 @@ private Mono updateAsync(
}
/**
- * Updates individual properties of an existing access policy resource.
+ * Updates individual properties of an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessPolicyEntityInner update(
@@ -1049,17 +1049,17 @@ public AccessPolicyEntityInner update(
}
/**
- * Updates individual properties of an existing access policy resource.
+ * Updates individual properties of an existing access policy resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param accessPolicyName The name of the access policy to update.
+ * @param accessPolicyName The Access Policy name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return policy that determines how a video can be accessed.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPolicyEntityImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPolicyEntityImpl.java
index c5abf95ac819e..1347a8b0e8225 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPolicyEntityImpl.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/AccessPolicyEntityImpl.java
@@ -29,10 +29,6 @@ public String type() {
return this.innerModel().type();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public AccessPolicyRole role() {
return this.innerModel().role();
}
@@ -41,6 +37,10 @@ public AuthenticationBase authentication() {
return this.innerModel().authentication();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public AccessPolicyEntityInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModuleEntityImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModuleEntityImpl.java
index 8c1f1c93cc3ad..e1a60d59f2547 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModuleEntityImpl.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModuleEntityImpl.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.videoanalyzer.implementation;
import com.azure.core.http.rest.Response;
-import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.videoanalyzer.fluent.models.EdgeModuleEntityInner;
import com.azure.resourcemanager.videoanalyzer.models.EdgeModuleEntity;
@@ -31,10 +30,6 @@ public String type() {
return this.innerModel().type();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public UUID edgeModuleId() {
return this.innerModel().edgeModuleId();
}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesClientImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesClientImpl.java
index 365236138976e..f0f37d9a3aa30 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesClientImpl.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesClientImpl.java
@@ -77,9 +77,7 @@ Mono> list(
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("accountName") String accountName,
@QueryParam("api-version") String apiVersion,
- @QueryParam("$filter") String filter,
@QueryParam("$top") Integer top,
- @QueryParam("$orderby") String orderby,
@HeaderParam("Accept") String accept,
Context context);
@@ -161,14 +159,12 @@ Mono> listNext(
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param filter Restricts the set of items returned.
* @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
* service returns the number of available items up to but not greater than the specified value n.
- * @param orderby Specifies the key by which the result collection should be ordered.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -176,7 +172,7 @@ Mono> listNext(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby) {
+ String resourceGroupName, String accountName, Integer top) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -207,9 +203,7 @@ private Mono> listSinglePageAsync(
resourceGroupName,
accountName,
this.client.getApiVersion(),
- filter,
top,
- orderby,
accept,
context))
.>map(
@@ -225,14 +219,12 @@ private Mono> listSinglePageAsync(
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param filter Restricts the set of items returned.
* @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
* service returns the number of available items up to but not greater than the specified value n.
- * @param orderby Specifies the key by which the result collection should be ordered.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -241,7 +233,7 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context) {
+ String resourceGroupName, String accountName, Integer top, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -270,9 +262,7 @@ private Mono> listSinglePageAsync(
resourceGroupName,
accountName,
this.client.getApiVersion(),
- filter,
top,
- orderby,
accept,
context)
.map(
@@ -287,29 +277,26 @@ private Mono> listSinglePageAsync(
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param filter Restricts the set of items returned.
* @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
* service returns the number of available items up to but not greater than the specified value n.
- * @param orderby Specifies the key by which the result collection should be ordered.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a collection of EdgeModuleEntity items.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby) {
+ private PagedFlux listAsync(String resourceGroupName, String accountName, Integer top) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, filter, top, orderby),
+ () -> listSinglePageAsync(resourceGroupName, accountName, top),
nextLink -> listNextSinglePageAsync(nextLink));
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -320,23 +307,19 @@ private PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String accountName) {
- final String filter = null;
final Integer top = null;
- final String orderby = null;
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, filter, top, orderby),
+ () -> listSinglePageAsync(resourceGroupName, accountName, top),
nextLink -> listNextSinglePageAsync(nextLink));
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param filter Restricts the set of items returned.
* @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
* service returns the number of available items up to but not greater than the specified value n.
- * @param orderby Specifies the key by which the result collection should be ordered.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -345,14 +328,14 @@ private PagedFlux listAsync(String resourceGroupName, Str
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context) {
+ String resourceGroupName, String accountName, Integer top, Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(resourceGroupName, accountName, filter, top, orderby, context),
+ () -> listSinglePageAsync(resourceGroupName, accountName, top, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
@@ -363,21 +346,17 @@ private PagedFlux listAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String accountName) {
- final String filter = null;
final Integer top = null;
- final String orderby = null;
- return new PagedIterable<>(listAsync(resourceGroupName, accountName, filter, top, orderby));
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, top));
}
/**
- * List all of the existing edge module resources for a given Video Analyzer account.
+ * List all existing edge module resources, along with their JSON representations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param filter Restricts the set of items returned.
* @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
* service returns the number of available items up to but not greater than the specified value n.
- * @param orderby Specifies the key by which the result collection should be ordered.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -386,16 +365,16 @@ public PagedIterable list(String resourceGroupName, Strin
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, accountName, filter, top, orderby, context));
+ String resourceGroupName, String accountName, Integer top, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, top, context));
}
/**
- * Retrieves a specific existing edge module resource in the given Video Analyzer account.
+ * Retrieves an existing edge module resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to retrieve.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -444,11 +423,11 @@ private Mono> getWithResponseAsync(
}
/**
- * Retrieves a specific existing edge module resource in the given Video Analyzer account.
+ * Retrieves an existing edge module resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to retrieve.
+ * @param edgeModuleName The Edge Module name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -495,11 +474,11 @@ private Mono> getWithResponseAsync(
}
/**
- * Retrieves a specific existing edge module resource in the given Video Analyzer account.
+ * Retrieves an existing edge module resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to retrieve.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -519,11 +498,11 @@ private Mono getAsync(String resourceGroupName, String ac
}
/**
- * Retrieves a specific existing edge module resource in the given Video Analyzer account.
+ * Retrieves an existing edge module resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to retrieve.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -535,11 +514,11 @@ public EdgeModuleEntityInner get(String resourceGroupName, String accountName, S
}
/**
- * Retrieves a specific existing edge module resource in the given Video Analyzer account.
+ * Retrieves an existing edge module resource with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to retrieve.
+ * @param edgeModuleName The Edge Module name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -562,7 +541,7 @@ public Response getWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to create or update.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -627,7 +606,7 @@ private Mono> createOrUpdateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to create or update.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -694,7 +673,7 @@ private Mono> createOrUpdateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to create or update.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -725,7 +704,7 @@ private Mono createOrUpdateAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to create or update.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -748,7 +727,7 @@ public EdgeModuleEntityInner createOrUpdate(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to create or update.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -774,7 +753,7 @@ public Response createOrUpdateWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to be deleted.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -829,7 +808,7 @@ private Mono> deleteWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to be deleted.
+ * @param edgeModuleName The Edge Module name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -882,7 +861,7 @@ private Mono> deleteWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to be deleted.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -901,7 +880,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to be deleted.
+ * @param edgeModuleName The Edge Module name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -918,7 +897,7 @@ public void delete(String resourceGroupName, String accountName, String edgeModu
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module to be deleted.
+ * @param edgeModuleName The Edge Module name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -941,7 +920,7 @@ public Response deleteWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module used to create a new provisioning token.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1006,7 +985,7 @@ private Mono> listProvisioningTokenWi
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module used to create a new provisioning token.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1073,7 +1052,7 @@ private Mono> listProvisioningTokenWi
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module used to create a new provisioning token.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1104,7 +1083,7 @@ private Mono listProvisioningTokenAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module used to create a new provisioning token.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1127,7 +1106,7 @@ public EdgeModuleProvisioningTokenInner listProvisioningToken(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The Azure Video Analyzer account name.
- * @param edgeModuleName The name of the edge module used to create a new provisioning token.
+ * @param edgeModuleName The Edge Module name.
* @param parameters The request parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesImpl.java
index 6996efd199ee3..36f3c273d9999 100644
--- a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesImpl.java
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/EdgeModulesImpl.java
@@ -37,9 +37,9 @@ public PagedIterable list(String resourceGroupName, String acc
}
public PagedIterable list(
- String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context) {
+ String resourceGroupName, String accountName, Integer top, Context context) {
PagedIterable inner =
- this.serviceClient().list(resourceGroupName, accountName, filter, top, orderby, context);
+ this.serviceClient().list(resourceGroupName, accountName, top, context);
return Utils.mapPage(inner, inner1 -> new EdgeModuleEntityImpl(inner1, this.manager()));
}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineImpl.java
new file mode 100644
index 0000000000000..e1d8e2f9a30cf
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineImpl.java
@@ -0,0 +1,226 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.videoanalyzer.fluent.models.LivePipelineInner;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipeline;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineState;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineUpdate;
+import com.azure.resourcemanager.videoanalyzer.models.ParameterDefinition;
+import java.util.Collections;
+import java.util.List;
+
+public final class LivePipelineImpl implements LivePipeline, LivePipeline.Definition, LivePipeline.Update {
+ private LivePipelineInner innerObject;
+
+ private final com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String topologyName() {
+ return this.innerModel().topologyName();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public Integer bitrateKbps() {
+ return this.innerModel().bitrateKbps();
+ }
+
+ public LivePipelineState state() {
+ return this.innerModel().state();
+ }
+
+ public List parameters() {
+ List inner = this.innerModel().parameters();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public LivePipelineInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String accountName;
+
+ private String livePipelineName;
+
+ private LivePipelineUpdate updateParameters;
+
+ public LivePipelineImpl withExistingVideoAnalyzer(String resourceGroupName, String accountName) {
+ this.resourceGroupName = resourceGroupName;
+ this.accountName = accountName;
+ return this;
+ }
+
+ public LivePipeline create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .createOrUpdateWithResponse(
+ resourceGroupName, accountName, livePipelineName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public LivePipeline create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .createOrUpdateWithResponse(
+ resourceGroupName, accountName, livePipelineName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ LivePipelineImpl(String name, com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager) {
+ this.innerObject = new LivePipelineInner();
+ this.serviceManager = serviceManager;
+ this.livePipelineName = name;
+ }
+
+ public LivePipelineImpl update() {
+ this.updateParameters = new LivePipelineUpdate();
+ return this;
+ }
+
+ public LivePipeline apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .updateWithResponse(resourceGroupName, accountName, livePipelineName, updateParameters, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public LivePipeline apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .updateWithResponse(resourceGroupName, accountName, livePipelineName, updateParameters, context)
+ .getValue();
+ return this;
+ }
+
+ LivePipelineImpl(
+ LivePipelineInner innerObject, com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = Utils.getValueFromIdByName(innerObject.id(), "videoAnalyzers");
+ this.livePipelineName = Utils.getValueFromIdByName(innerObject.id(), "livePipelines");
+ }
+
+ public LivePipeline refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .getWithResponse(resourceGroupName, accountName, livePipelineName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public LivePipeline refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getLivePipelines()
+ .getWithResponse(resourceGroupName, accountName, livePipelineName, context)
+ .getValue();
+ return this;
+ }
+
+ public void activate() {
+ serviceManager.livePipelines().activate(resourceGroupName, accountName, livePipelineName);
+ }
+
+ public void activate(Context context) {
+ serviceManager.livePipelines().activate(resourceGroupName, accountName, livePipelineName, context);
+ }
+
+ public void deactivate() {
+ serviceManager.livePipelines().deactivate(resourceGroupName, accountName, livePipelineName);
+ }
+
+ public void deactivate(Context context) {
+ serviceManager.livePipelines().deactivate(resourceGroupName, accountName, livePipelineName, context);
+ }
+
+ public LivePipelineImpl withTopologyName(String topologyName) {
+ if (isInCreateMode()) {
+ this.innerModel().withTopologyName(topologyName);
+ return this;
+ } else {
+ this.updateParameters.withTopologyName(topologyName);
+ return this;
+ }
+ }
+
+ public LivePipelineImpl withDescription(String description) {
+ if (isInCreateMode()) {
+ this.innerModel().withDescription(description);
+ return this;
+ } else {
+ this.updateParameters.withDescription(description);
+ return this;
+ }
+ }
+
+ public LivePipelineImpl withBitrateKbps(Integer bitrateKbps) {
+ if (isInCreateMode()) {
+ this.innerModel().withBitrateKbps(bitrateKbps);
+ return this;
+ } else {
+ this.updateParameters.withBitrateKbps(bitrateKbps);
+ return this;
+ }
+ }
+
+ public LivePipelineImpl withParameters(List parameters) {
+ if (isInCreateMode()) {
+ this.innerModel().withParameters(parameters);
+ return this;
+ } else {
+ this.updateParameters.withParameters(parameters);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusImpl.java
new file mode 100644
index 0000000000000..090be21afb2d8
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.implementation;
+
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.videoanalyzer.fluent.models.LivePipelineOperationStatusInner;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineOperationStatus;
+
+public final class LivePipelineOperationStatusImpl implements LivePipelineOperationStatus {
+ private LivePipelineOperationStatusInner innerObject;
+
+ private final com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager;
+
+ LivePipelineOperationStatusImpl(
+ LivePipelineOperationStatusInner innerObject,
+ com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String status() {
+ return this.innerModel().status();
+ }
+
+ public ManagementError error() {
+ return this.innerModel().error();
+ }
+
+ public LivePipelineOperationStatusInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesClientImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesClientImpl.java
new file mode 100644
index 0000000000000..64e18e558b3ee
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesClientImpl.java
@@ -0,0 +1,257 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.videoanalyzer.fluent.LivePipelineOperationStatusesClient;
+import com.azure.resourcemanager.videoanalyzer.fluent.models.LivePipelineOperationStatusInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in LivePipelineOperationStatusesClient. */
+public final class LivePipelineOperationStatusesClientImpl implements LivePipelineOperationStatusesClient {
+ private final ClientLogger logger = new ClientLogger(LivePipelineOperationStatusesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final LivePipelineOperationStatusesService service;
+
+ /** The service client containing this operation class. */
+ private final VideoAnalyzerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of LivePipelineOperationStatusesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LivePipelineOperationStatusesClientImpl(VideoAnalyzerManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ LivePipelineOperationStatusesService.class,
+ client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for VideoAnalyzerManagementClientLivePipelineOperationStatuses to be used
+ * by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "VideoAnalyzerManagem")
+ private interface LivePipelineOperationStatusesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}/operationStatuses/{operationId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the operation status of a live pipeline.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param operationId The operation ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status of a live pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the operation status of a live pipeline.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param operationId The operation ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status of a live pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (operationId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ operationId,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Get the operation status of a live pipeline.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param operationId The operation ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status of a live pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId) {
+ return getWithResponseAsync(resourceGroupName, accountName, livePipelineName, operationId)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the operation status of a live pipeline.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param operationId The operation ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status of a live pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LivePipelineOperationStatusInner get(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId) {
+ return getAsync(resourceGroupName, accountName, livePipelineName, operationId).block();
+ }
+
+ /**
+ * Get the operation status of a live pipeline.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param operationId The operation ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status of a live pipeline.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, livePipelineName, operationId, context).block();
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesImpl.java
new file mode 100644
index 0000000000000..5271d88f755f5
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelineOperationStatusesImpl.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.videoanalyzer.fluent.LivePipelineOperationStatusesClient;
+import com.azure.resourcemanager.videoanalyzer.fluent.models.LivePipelineOperationStatusInner;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineOperationStatus;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineOperationStatuses;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
+public final class LivePipelineOperationStatusesImpl implements LivePipelineOperationStatuses {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LivePipelineOperationStatusesImpl.class);
+
+ private final LivePipelineOperationStatusesClient innerClient;
+
+ private final com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager;
+
+ public LivePipelineOperationStatusesImpl(
+ LivePipelineOperationStatusesClient innerClient,
+ com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public LivePipelineOperationStatus get(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId) {
+ LivePipelineOperationStatusInner inner =
+ this.serviceClient().get(resourceGroupName, accountName, livePipelineName, operationId);
+ if (inner != null) {
+ return new LivePipelineOperationStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String livePipelineName, String operationId, Context context) {
+ Response inner =
+ this
+ .serviceClient()
+ .getWithResponse(resourceGroupName, accountName, livePipelineName, operationId, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new LivePipelineOperationStatusImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ private LivePipelineOperationStatusesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.videoanalyzer.VideoAnalyzerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelinesClientImpl.java b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelinesClientImpl.java
new file mode 100644
index 0000000000000..991f5abca05ca
--- /dev/null
+++ b/sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/LivePipelinesClientImpl.java
@@ -0,0 +1,1726 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.videoanalyzer.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.videoanalyzer.fluent.LivePipelinesClient;
+import com.azure.resourcemanager.videoanalyzer.fluent.models.LivePipelineInner;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineCollection;
+import com.azure.resourcemanager.videoanalyzer.models.LivePipelineUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in LivePipelinesClient. */
+public final class LivePipelinesClientImpl implements LivePipelinesClient {
+ private final ClientLogger logger = new ClientLogger(LivePipelinesClientImpl.class);
+
+ /** The proxy service used to perform REST calls. */
+ private final LivePipelinesService service;
+
+ /** The service client containing this operation class. */
+ private final VideoAnalyzerManagementClientImpl client;
+
+ /**
+ * Initializes an instance of LivePipelinesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LivePipelinesClientImpl(VideoAnalyzerManagementClientImpl client) {
+ this.service =
+ RestProxy.create(LivePipelinesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for VideoAnalyzerManagementClientLivePipelines to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "VideoAnalyzerManagem")
+ private interface LivePipelinesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @QueryParam("api-version") String apiVersion,
+ @QueryParam("$filter") String filter,
+ @QueryParam("$top") Integer top,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LivePipelineInner parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LivePipelineUpdate parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}/activate")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> activate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media"
+ + "/videoAnalyzers/{accountName}/livePipelines/{livePipelineName}/deactivate")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> deactivate(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("accountName") String accountName,
+ @PathParam("livePipelineName") String livePipelineName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param filter Restricts the set of items returned.
+ * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
+ * service returns the number of available items up to but not greater than the specified value n.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String accountName, String filter, Integer top) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ filter,
+ top,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param filter Restricts the set of items returned.
+ * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
+ * service returns the number of available items up to but not greater than the specified value n.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String accountName, String filter, Integer top, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ this.client.getApiVersion(),
+ filter,
+ top,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param filter Restricts the set of items returned.
+ * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
+ * service returns the number of available items up to but not greater than the specified value n.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String accountName, String filter, Integer top) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, accountName, filter, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String accountName) {
+ final String filter = null;
+ final Integer top = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, accountName, filter, top),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param filter Restricts the set of items returned.
+ * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
+ * service returns the number of available items up to but not greater than the specified value n.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String resourceGroupName, String accountName, String filter, Integer top, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, accountName, filter, top, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String accountName) {
+ final String filter = null;
+ final Integer top = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, filter, top));
+ }
+
+ /**
+ * Retrieves a list of live pipelines that have been created, along with their JSON representations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param filter Restricts the set of items returned.
+ * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The
+ * service returns the number of available items up to but not greater than the specified value n.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a collection of LivePipeline items.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String resourceGroupName, String accountName, String filter, Integer top, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, accountName, filter, top, context));
+ }
+
+ /**
+ * Retrieves a specific live pipeline by name. If a live pipeline with that name has been previously created, the
+ * call will return the JSON representation of that instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieves a specific live pipeline by name. If a live pipeline with that name has been previously created, the
+ * call will return the JSON representation of that instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Retrieves a specific live pipeline by name. If a live pipeline with that name has been previously created, the
+ * call will return the JSON representation of that instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String accountName, String livePipelineName) {
+ return getWithResponseAsync(resourceGroupName, accountName, livePipelineName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Retrieves a specific live pipeline by name. If a live pipeline with that name has been previously created, the
+ * call will return the JSON representation of that instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LivePipelineInner get(String resourceGroupName, String accountName, String livePipelineName) {
+ return getAsync(resourceGroupName, accountName, livePipelineName).block();
+ }
+
+ /**
+ * Retrieves a specific live pipeline by name. If a live pipeline with that name has been previously created, the
+ * call will return the JSON representation of that instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, livePipelineName, context).block();
+ }
+
+ /**
+ * Creates a new live pipeline or updates an existing one, with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineInner parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates a new live pipeline or updates an existing one, with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String livePipelineName,
+ LivePipelineInner parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates a new live pipeline or updates an existing one, with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineInner parameters) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, accountName, livePipelineName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Creates a new live pipeline or updates an existing one, with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LivePipelineInner createOrUpdate(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, accountName, livePipelineName, parameters).block();
+ }
+
+ /**
+ * Creates a new live pipeline or updates an existing one, with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String livePipelineName,
+ LivePipelineInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, accountName, livePipelineName, parameters, context)
+ .block();
+ }
+
+ /**
+ * Deletes a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String accountName, String livePipelineName) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, livePipelineName)
+ .flatMap((Response res) -> Mono.empty());
+ }
+
+ /**
+ * Deletes a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String accountName, String livePipelineName) {
+ deleteAsync(resourceGroupName, accountName, livePipelineName).block();
+ }
+
+ /**
+ * Deletes a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, livePipelineName, context).block();
+ }
+
+ /**
+ * Updates an existing live pipeline with the given name. Properties that can be updated include: description,
+ * bitrateKbps, and parameter definitions. Only the description can be updated while the live pipeline is active.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineUpdate parameters) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates an existing live pipeline with the given name. Properties that can be updated include: description,
+ * bitrateKbps, and parameter definitions. Only the description can be updated while the live pipeline is active.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String accountName,
+ String livePipelineName,
+ LivePipelineUpdate parameters,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
+ } else {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ parameters,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates an existing live pipeline with the given name. Properties that can be updated include: description,
+ * bitrateKbps, and parameter definitions. Only the description can be updated while the live pipeline is active.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineUpdate parameters) {
+ return updateWithResponseAsync(resourceGroupName, accountName, livePipelineName, parameters)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Updates an existing live pipeline with the given name. Properties that can be updated include: description,
+ * bitrateKbps, and parameter definitions. Only the description can be updated while the live pipeline is active.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LivePipelineInner update(
+ String resourceGroupName, String accountName, String livePipelineName, LivePipelineUpdate parameters) {
+ return updateAsync(resourceGroupName, accountName, livePipelineName, parameters).block();
+ }
+
+ /**
+ * Updates an existing live pipeline with the given name. Properties that can be updated include: description,
+ * bitrateKbps, and parameter definitions. Only the description can be updated while the live pipeline is active.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param parameters The request parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return live pipeline represents a unique instance of a live topology, used for real-time ingestion, archiving
+ * and publishing of content for a unique RTSP camera.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String livePipelineName,
+ LivePipelineUpdate parameters,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, livePipelineName, parameters, context).block();
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> activateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .activate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> activateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .activate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginActivateAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ Mono>> mono =
+ activateWithResponseAsync(resourceGroupName, accountName, livePipelineName);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginActivateAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ activateWithResponseAsync(resourceGroupName, accountName, livePipelineName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginActivate(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ return beginActivateAsync(resourceGroupName, accountName, livePipelineName).getSyncPoller();
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SyncPoller, Void> beginActivate(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ return beginActivateAsync(resourceGroupName, accountName, livePipelineName, context).getSyncPoller();
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono activateAsync(String resourceGroupName, String accountName, String livePipelineName) {
+ return beginActivateAsync(resourceGroupName, accountName, livePipelineName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono activateAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ return beginActivateAsync(resourceGroupName, accountName, livePipelineName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void activate(String resourceGroupName, String accountName, String livePipelineName) {
+ activateAsync(resourceGroupName, accountName, livePipelineName).block();
+ }
+
+ /**
+ * Activates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void activate(String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ activateAsync(resourceGroupName, accountName, livePipelineName, context).block();
+ }
+
+ /**
+ * Deactivates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deactivateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .deactivate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deactivates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deactivateWithResponseAsync(
+ String resourceGroupName, String accountName, String livePipelineName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (livePipelineName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter livePipelineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .deactivate(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ accountName,
+ livePipelineName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deactivates a live pipeline with the given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The Azure Video Analyzer account name.
+ * @param livePipelineName Live pipeline unique identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PollerFlux, Void> beginDeactivateAsync(
+ String resourceGroupName, String accountName, String livePipelineName) {
+ Mono