diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/pom.xml b/sdk/search/mgmt-resource-manager/v2020_08_01/pom.xml
new file mode 100644
index 0000000000000..724bb3c65d0d2
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/pom.xml
@@ -0,0 +1,135 @@
+
+
+ 4.0.0
+ com.microsoft.azure.search.v2020_08_01
+
+ com.microsoft.azure
+ azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
+
+ azure-mgmt-search
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for Search Management
+ This package contains Microsoft Search Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+ 1.6.5
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ */
+ ]]>
+
+
+
+
+
+
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyKind.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyKind.java
new file mode 100644
index 0000000000000..ace343ea45a14
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyKind.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for AdminKeyKind.
+ */
+public enum AdminKeyKind {
+ /** Enum value primary. */
+ PRIMARY("primary"),
+
+ /** Enum value secondary. */
+ SECONDARY("secondary");
+
+ /** The actual serialized value for a AdminKeyKind instance. */
+ private String value;
+
+ AdminKeyKind(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a AdminKeyKind instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed AdminKeyKind object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static AdminKeyKind fromString(String value) {
+ AdminKeyKind[] items = AdminKeyKind.values();
+ for (AdminKeyKind item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyResult.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyResult.java
new file mode 100644
index 0000000000000..97cbf2346b851
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeyResult.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.AdminKeyResultInner;
+
+/**
+ * Type representing AdminKeyResult.
+ */
+public interface AdminKeyResult extends HasInner, HasManager {
+ /**
+ * @return the primaryKey value.
+ */
+ String primaryKey();
+
+ /**
+ * @return the secondaryKey value.
+ */
+ String secondaryKey();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeys.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeys.java
new file mode 100644
index 0000000000000..56d9d1cbb44e6
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AdminKeys.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.AdminKeysInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing AdminKeys.
+ */
+public interface AdminKeys extends HasInner {
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String searchServiceName);
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AsyncOperationResult.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AsyncOperationResult.java
new file mode 100644
index 0000000000000..6afd59fdfc909
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AsyncOperationResult.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The details of a long running asynchronous shared private link resource
+ * operation.
+ */
+public class AsyncOperationResult {
+ /**
+ * The current status of the long running asynchronous shared private link
+ * resource operation. Possible values include: 'Running', 'Succeeded',
+ * 'Failed'.
+ */
+ @JsonProperty(value = "status")
+ private SharedPrivateLinkResourceAsyncOperationResult status;
+
+ /**
+ * Get the current status of the long running asynchronous shared private link resource operation. Possible values include: 'Running', 'Succeeded', 'Failed'.
+ *
+ * @return the status value
+ */
+ public SharedPrivateLinkResourceAsyncOperationResult status() {
+ return this.status;
+ }
+
+ /**
+ * Set the current status of the long running asynchronous shared private link resource operation. Possible values include: 'Running', 'Succeeded', 'Failed'.
+ *
+ * @param status the status value to set
+ * @return the AsyncOperationResult object itself.
+ */
+ public AsyncOperationResult withStatus(SharedPrivateLinkResourceAsyncOperationResult status) {
+ this.status = status;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AzureEntityResource.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AzureEntityResource.java
new file mode 100644
index 0000000000000..ff1e359d8f5dd
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/AzureEntityResource.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * The resource model definition for an Azure Resource Manager resource with an
+ * etag.
+ */
+public class AzureEntityResource extends ProxyResource {
+ /**
+ * Resource Etag.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get resource Etag.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityInput.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityInput.java
new file mode 100644
index 0000000000000..51ebcc514432e
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityInput.java
@@ -0,0 +1,81 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input of check name availability API.
+ */
+public class CheckNameAvailabilityInput {
+ /**
+ * The search service name to validate. Search service names must only
+ * contain lowercase letters, digits or dashes, cannot use dash as the
+ * first two or last one characters, cannot contain consecutive dashes, and
+ * must be between 2 and 60 characters in length.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * The type of the resource whose name is to be validated. This value must
+ * always be 'searchServices'.
+ */
+ @JsonProperty(value = "type", required = true)
+ private String type;
+
+ /**
+ * Creates an instance of CheckNameAvailabilityInput class.
+ * @param name the search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
+ */
+ public CheckNameAvailabilityInput() {
+ type = "searchServices";
+ }
+
+ /**
+ * Get the search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
+ *
+ * @param name the name value to set
+ * @return the CheckNameAvailabilityInput object itself.
+ */
+ public CheckNameAvailabilityInput withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type of the resource whose name is to be validated. This value must always be 'searchServices'.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type of the resource whose name is to be validated. This value must always be 'searchServices'.
+ *
+ * @param type the type value to set
+ * @return the CheckNameAvailabilityInput object itself.
+ */
+ public CheckNameAvailabilityInput withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityOutput.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityOutput.java
new file mode 100644
index 0000000000000..78520102f7b8a
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/CheckNameAvailabilityOutput.java
@@ -0,0 +1,35 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.CheckNameAvailabilityOutputInner;
+
+/**
+ * Type representing CheckNameAvailabilityOutput.
+ */
+public interface CheckNameAvailabilityOutput extends HasInner, HasManager {
+ /**
+ * @return the isNameAvailable value.
+ */
+ Boolean isNameAvailable();
+
+ /**
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * @return the reason value.
+ */
+ UnavailableNameReason reason();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/HostingMode.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/HostingMode.java
new file mode 100644
index 0000000000000..da81e93f54a08
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/HostingMode.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for HostingMode.
+ */
+public enum HostingMode {
+ /** Enum value default. */
+ DEFAULT("default"),
+
+ /** Enum value highDensity. */
+ HIGH_DENSITY("highDensity");
+
+ /** The actual serialized value for a HostingMode instance. */
+ private String value;
+
+ HostingMode(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a HostingMode instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed HostingMode object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static HostingMode fromString(String value) {
+ HostingMode[] items = HostingMode.values();
+ for (HostingMode item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Identity.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Identity.java
new file mode 100644
index 0000000000000..6db2f27c277e9
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Identity.java
@@ -0,0 +1,73 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Identity for the resource.
+ */
+public class Identity {
+ /**
+ * The principal ID of resource identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /**
+ * The tenant ID of resource.
+ */
+ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
+ private String tenantId;
+
+ /**
+ * The identity type. Possible values include: 'None', 'SystemAssigned'.
+ */
+ @JsonProperty(value = "type", required = true)
+ private IdentityType type;
+
+ /**
+ * Get the principal ID of resource identity.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the tenant ID of resource.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Get the identity type. Possible values include: 'None', 'SystemAssigned'.
+ *
+ * @return the type value
+ */
+ public IdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the identity type. Possible values include: 'None', 'SystemAssigned'.
+ *
+ * @param type the type value to set
+ * @return the Identity object itself.
+ */
+ public Identity withType(IdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IdentityType.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IdentityType.java
new file mode 100644
index 0000000000000..9d33ed588ae73
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IdentityType.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for IdentityType.
+ */
+public enum IdentityType {
+ /** Enum value None. */
+ NONE("None"),
+
+ /** Enum value SystemAssigned. */
+ SYSTEM_ASSIGNED("SystemAssigned");
+
+ /** The actual serialized value for a IdentityType instance. */
+ private String value;
+
+ IdentityType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a IdentityType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed IdentityType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static IdentityType fromString(String value) {
+ IdentityType[] items = IdentityType.values();
+ for (IdentityType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IpRule.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IpRule.java
new file mode 100644
index 0000000000000..7fa7e63e0fd83
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/IpRule.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The IP restriction rule of the Azure Cognitive Search service.
+ */
+public class IpRule {
+ /**
+ * Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP
+ * range in CIDR format (eg., 123.1.2.3/24) to be allowed.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /**
+ * Get value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.
+ *
+ * @return the value value
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.
+ *
+ * @param value the value value to set
+ * @return the IpRule object itself.
+ */
+ public IpRule withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/NetworkRuleSet.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/NetworkRuleSet.java
new file mode 100644
index 0000000000000..bc6cf09e01485
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/NetworkRuleSet.java
@@ -0,0 +1,51 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Network specific rules that determine how the Azure Cognitive Search service
+ * may be reached.
+ */
+public class NetworkRuleSet {
+ /**
+ * A list of IP restriction rules that defines the inbound network(s) with
+ * allowing access to the search service endpoint. At the meantime, all
+ * other public IP networks are blocked by the firewall. These restriction
+ * rules are applied only when the 'publicNetworkAccess' of the search
+ * service is 'enabled'; otherwise, traffic over public interface is not
+ * allowed even with any public IP rules, and private endpoint connections
+ * would be the exclusive access method.
+ */
+ @JsonProperty(value = "ipRules")
+ private List ipRules;
+
+ /**
+ * Get a list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
+ *
+ * @return the ipRules value
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set a list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.
+ *
+ * @param ipRules the ipRules value to set
+ * @return the NetworkRuleSet object itself.
+ */
+ public NetworkRuleSet withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operation.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operation.java
new file mode 100644
index 0000000000000..149e746b6a1a6
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operation.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.OperationInner;
+
+/**
+ * Type representing Operation.
+ */
+public interface Operation extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/OperationDisplay.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/OperationDisplay.java
new file mode 100644
index 0000000000000..0b9f2c0f4b320
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/OperationDisplay.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The object that describes the operation.
+ */
+public class OperationDisplay {
+ /**
+ * The friendly name of the resource provider.
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /**
+ * The operation type: read, write, delete, listKeys/action, etc.
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /**
+ * The resource type on which the operation is performed.
+ */
+ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
+ private String resource;
+
+ /**
+ * The friendly name of the operation.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /**
+ * Get the friendly name of the resource provider.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get the operation type: read, write, delete, listKeys/action, etc.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the resource type on which the operation is performed.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get the friendly name of the operation.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operations.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operations.java
new file mode 100644
index 0000000000000..770280863f23d
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Search provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnection.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnection.java
new file mode 100644
index 0000000000000..68cfca12c5d0d
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnection.java
@@ -0,0 +1,80 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateEndpointConnectionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import java.util.UUID;
+
+/**
+ * Type representing PrivateEndpointConnection.
+ */
+public interface PrivateEndpointConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ PrivateEndpointConnectionProperties properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithProperties, UpdateStages.WithSearchManagementRequestOptions {
+ }
+
+ /**
+ * Grouping of PrivateEndpointConnection update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the privateendpointconnection update allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service
+ * @return the next update stage
+ */
+ Update withProperties(PrivateEndpointConnectionProperties properties);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify SearchManagementRequestOptions.
+ */
+ interface WithSearchManagementRequestOptions {
+ /**
+ * Specifies searchManagementRequestOptions.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @return the next update stage
+ */
+ Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
+ }
+
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionProperties.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..a7e5328c3779e
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the properties of an existing Private Endpoint connection to the
+ * Azure Cognitive Search service.
+ */
+public class PrivateEndpointConnectionProperties {
+ /**
+ * The private endpoint resource from Microsoft.Network provider.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpointConnectionPropertiesPrivateEndpoint privateEndpoint;
+
+ /**
+ * Describes the current state of an existing Private Link Service
+ * connection to the Azure Private Endpoint.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /**
+ * Get the private endpoint resource from Microsoft.Network provider.
+ *
+ * @return the privateEndpoint value
+ */
+ public PrivateEndpointConnectionPropertiesPrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the private endpoint resource from Microsoft.Network provider.
+ *
+ * @param privateEndpoint the privateEndpoint value to set
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpointConnectionPropertiesPrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get describes the current state of an existing Private Link Service connection to the Azure Private Endpoint.
+ *
+ * @return the privateLinkServiceConnectionState value
+ */
+ public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set describes the current state of an existing Private Link Service connection to the Azure Private Endpoint.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateEndpoint.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateEndpoint.java
new file mode 100644
index 0000000000000..795ce85881e8e
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateEndpoint.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The private endpoint resource from Microsoft.Network provider.
+ */
+public class PrivateEndpointConnectionPropertiesPrivateEndpoint {
+ /**
+ * The resource id of the private endpoint resource from Microsoft.Network
+ * provider.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Get the resource id of the private endpoint resource from Microsoft.Network provider.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the resource id of the private endpoint resource from Microsoft.Network provider.
+ *
+ * @param id the id value to set
+ * @return the PrivateEndpointConnectionPropertiesPrivateEndpoint object itself.
+ */
+ public PrivateEndpointConnectionPropertiesPrivateEndpoint withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.java
new file mode 100644
index 0000000000000..80fa034525d51
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.java
@@ -0,0 +1,98 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the current state of an existing Private Link Service connection
+ * to the Azure Private Endpoint.
+ */
+public class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState {
+ /**
+ * Status of the the private link service connection. Can be Pending,
+ * Approved, Rejected, or Disconnected. Possible values include: 'Pending',
+ * 'Approved', 'Rejected', 'Disconnected'.
+ */
+ @JsonProperty(value = "status")
+ private PrivateLinkServiceConnectionStatus status;
+
+ /**
+ * The description for the private link service connection state.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * A description of any extra actions that may be required.
+ */
+ @JsonProperty(value = "actionsRequired")
+ private String actionsRequired;
+
+ /**
+ * Get status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @return the status value
+ */
+ public PrivateLinkServiceConnectionStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @param status the status value to set
+ * @return the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withStatus(PrivateLinkServiceConnectionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the description for the private link service connection state.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description for the private link service connection state.
+ *
+ * @param description the description value to set
+ * @return the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get a description of any extra actions that may be required.
+ *
+ * @return the actionsRequired value
+ */
+ public String actionsRequired() {
+ return this.actionsRequired;
+ }
+
+ /**
+ * Set a description of any extra actions that may be required.
+ *
+ * @param actionsRequired the actionsRequired value to set
+ * @return the PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState object itself.
+ */
+ public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
+ this.actionsRequired = actionsRequired;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnections.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnections.java
new file mode 100644
index 0000000000000..7a33513715c45
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateEndpointConnections.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateEndpointConnectionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateEndpointConnections.
+ */
+public interface PrivateEndpointConnections extends HasInner {
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName);
+
+ /**
+ * Gets a list of all private endpoint connections in the given service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServiceAsync(final String resourceGroupName, final String searchServiceName);
+
+ /**
+ * Disconnects the private endpoint connection and deletes it from the search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResource.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResource.java
new file mode 100644
index 0000000000000..a1e1db7d3b641
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResource.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateLinkResourceInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+
+/**
+ * Type representing PrivateLinkResource.
+ */
+public interface PrivateLinkResource extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ PrivateLinkResourceProperties properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResourceProperties.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..11dc19224b1c0
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResourceProperties.java
@@ -0,0 +1,81 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the properties of a supported private link resource for the Azure
+ * Cognitive Search service. For a given API version, this represents the
+ * 'supported' groupIds when creating a shared private link resource.
+ */
+public class PrivateLinkResourceProperties {
+ /**
+ * The group ID of the private link resource.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /**
+ * The list of required members of the private link resource.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /**
+ * The list of required DNS zone names of the private link resource.
+ */
+ @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredZoneNames;
+
+ /**
+ * The list of resources that are onboarded to private link service, that
+ * are supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "shareablePrivateLinkResourceTypes", access = JsonProperty.Access.WRITE_ONLY)
+ private List shareablePrivateLinkResourceTypes;
+
+ /**
+ * Get the group ID of the private link resource.
+ *
+ * @return the groupId value
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the list of required members of the private link resource.
+ *
+ * @return the requiredMembers value
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the list of required DNS zone names of the private link resource.
+ *
+ * @return the requiredZoneNames value
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Get the list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search.
+ *
+ * @return the shareablePrivateLinkResourceTypes value
+ */
+ public List shareablePrivateLinkResourceTypes() {
+ return this.shareablePrivateLinkResourceTypes;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResources.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResources.java
new file mode 100644
index 0000000000000..e52a26e8801eb
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkResources.java
@@ -0,0 +1,29 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateLinkResourcesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateLinkResources.
+ */
+public interface PrivateLinkResources extends HasInner {
+ /**
+ * Gets a list of all supported private link resource types for the given service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listSupportedAsync(String resourceGroupName, String searchServiceName);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkServiceConnectionStatus.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkServiceConnectionStatus.java
new file mode 100644
index 0000000000000..1317979875947
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PrivateLinkServiceConnectionStatus.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for PrivateLinkServiceConnectionStatus.
+ */
+public enum PrivateLinkServiceConnectionStatus {
+ /** Enum value Pending. */
+ PENDING("Pending"),
+
+ /** Enum value Approved. */
+ APPROVED("Approved"),
+
+ /** Enum value Rejected. */
+ REJECTED("Rejected"),
+
+ /** Enum value Disconnected. */
+ DISCONNECTED("Disconnected");
+
+ /** The actual serialized value for a PrivateLinkServiceConnectionStatus instance. */
+ private String value;
+
+ PrivateLinkServiceConnectionStatus(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a PrivateLinkServiceConnectionStatus instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed PrivateLinkServiceConnectionStatus object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static PrivateLinkServiceConnectionStatus fromString(String value) {
+ PrivateLinkServiceConnectionStatus[] items = PrivateLinkServiceConnectionStatus.values();
+ for (PrivateLinkServiceConnectionStatus item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ProvisioningState.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ProvisioningState.java
new file mode 100644
index 0000000000000..e17572f1664fd
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ProvisioningState.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for ProvisioningState.
+ */
+public enum ProvisioningState {
+ /** Enum value succeeded. */
+ SUCCEEDED("succeeded"),
+
+ /** Enum value provisioning. */
+ PROVISIONING("provisioning"),
+
+ /** Enum value failed. */
+ FAILED("failed");
+
+ /** The actual serialized value for a ProvisioningState instance. */
+ private String value;
+
+ ProvisioningState(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ProvisioningState instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ProvisioningState object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ProvisioningState fromString(String value) {
+ ProvisioningState[] items = ProvisioningState.values();
+ for (ProvisioningState item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PublicNetworkAccess.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PublicNetworkAccess.java
new file mode 100644
index 0000000000000..dddee6a0877d7
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/PublicNetworkAccess.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for PublicNetworkAccess.
+ */
+public enum PublicNetworkAccess {
+ /** Enum value enabled. */
+ ENABLED("enabled"),
+
+ /** Enum value disabled. */
+ DISABLED("disabled");
+
+ /** The actual serialized value for a PublicNetworkAccess instance. */
+ private String value;
+
+ PublicNetworkAccess(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a PublicNetworkAccess instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed PublicNetworkAccess object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static PublicNetworkAccess fromString(String value) {
+ PublicNetworkAccess[] items = PublicNetworkAccess.values();
+ for (PublicNetworkAccess item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKey.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKey.java
new file mode 100644
index 0000000000000..658b8b5448c2b
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKey.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.QueryKeyInner;
+
+/**
+ * Type representing QueryKey.
+ */
+public interface QueryKey extends HasInner, HasManager {
+ /**
+ * @return the key value.
+ */
+ String keyVal();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKeys.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKeys.java
new file mode 100644
index 0000000000000..6912f7bfc76dd
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/QueryKeys.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.QueryKeysInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing QueryKeys.
+ */
+public interface QueryKeys extends HasInner {
+ /**
+ * Generates a new query key for the specified search service. You can create up to 50 query keys per service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param name The name of the new query API key.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable createAsync(String resourceGroupName, String searchServiceName, String name);
+
+ /**
+ * Returns the list of query API keys for the given Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listBySearchServiceAsync(final String resourceGroupName, final String searchServiceName);
+
+ /**
+ * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param key The query key to be deleted. Query keys are identified by value, not by name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String searchServiceName, String key);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchManagementRequestOptions.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchManagementRequestOptions.java
new file mode 100644
index 0000000000000..6778987cac5bc
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchManagementRequestOptions.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.UUID;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Additional parameters for a set of operations.
+ */
+public class SearchManagementRequestOptions {
+ /**
+ * A client-generated GUID value that identifies this request. If
+ * specified, this will be included in response information as a way to
+ * track the request.
+ */
+ @JsonProperty(value = "")
+ private UUID clientRequestId;
+
+ /**
+ * Get a client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request.
+ *
+ * @return the clientRequestId value
+ */
+ public UUID clientRequestId() {
+ return this.clientRequestId;
+ }
+
+ /**
+ * Set a client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request.
+ *
+ * @param clientRequestId the clientRequestId value to set
+ * @return the SearchManagementRequestOptions object itself.
+ */
+ public SearchManagementRequestOptions withClientRequestId(UUID clientRequestId) {
+ this.clientRequestId = clientRequestId;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchService.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchService.java
new file mode 100644
index 0000000000000..90e2accb2ead2
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchService.java
@@ -0,0 +1,324 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
+import com.microsoft.azure.arm.resources.models.HasResourceGroup;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import java.util.UUID;
+import java.util.List;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateEndpointConnectionInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SharedPrivateLinkResourceInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchServiceInner;
+
+/**
+ * Type representing SearchService.
+ */
+public interface SearchService extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+ /**
+ * @return the hostingMode value.
+ */
+ HostingMode hostingMode();
+
+ /**
+ * @return the identity value.
+ */
+ Identity identity();
+
+ /**
+ * @return the networkRuleSet value.
+ */
+ NetworkRuleSet networkRuleSet();
+
+ /**
+ * @return the partitionCount value.
+ */
+ Integer partitionCount();
+
+ /**
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the publicNetworkAccess value.
+ */
+ PublicNetworkAccess publicNetworkAccess();
+
+ /**
+ * @return the replicaCount value.
+ */
+ Integer replicaCount();
+
+ /**
+ * @return the sharedPrivateLinkResources value.
+ */
+ List sharedPrivateLinkResources();
+
+ /**
+ * @return the sku value.
+ */
+ Sku sku();
+
+ /**
+ * @return the status value.
+ */
+ SearchServiceStatus status();
+
+ /**
+ * @return the statusDetails value.
+ */
+ String statusDetails();
+
+ /**
+ * The entirety of the SearchService definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSearchManagementRequestOptions, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of SearchService definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a SearchService definition.
+ */
+ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
+ }
+
+ /**
+ * The stage of the SearchService definition allowing to specify the resource group.
+ */
+ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify SearchManagementRequestOptions.
+ */
+ interface WithSearchManagementRequestOptions {
+ /**
+ * Specifies searchManagementRequestOptions.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @return the next definition stage
+*/
+ WithCreate withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify HostingMode.
+ */
+ interface WithHostingMode {
+ /**
+ * Specifies hostingMode.
+ * @param hostingMode Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'default', 'highDensity'
+ * @return the next definition stage
+ */
+ WithCreate withHostingMode(HostingMode hostingMode);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify Identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies identity.
+ * @param identity The identity of the resource
+ * @return the next definition stage
+ */
+ WithCreate withIdentity(Identity identity);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet Network specific rules that determine how the Azure Cognitive Search service may be reached
+ * @return the next definition stage
+ */
+ WithCreate withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify PartitionCount.
+ */
+ interface WithPartitionCount {
+ /**
+ * Specifies partitionCount.
+ * @param partitionCount The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3
+ * @return the next definition stage
+ */
+ WithCreate withPartitionCount(Integer partitionCount);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify PublicNetworkAccess.
+ */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies publicNetworkAccess.
+ * @param publicNetworkAccess This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. Possible values include: 'enabled', 'disabled'
+ * @return the next definition stage
+ */
+ WithCreate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify ReplicaCount.
+ */
+ interface WithReplicaCount {
+ /**
+ * Specifies replicaCount.
+ * @param replicaCount The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU
+ * @return the next definition stage
+ */
+ WithCreate withReplicaCount(Integer replicaCount);
+ }
+
+ /**
+ * The stage of the searchservice definition allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service
+ * @return the next definition stage
+ */
+ WithCreate withSku(Sku sku);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithHostingMode, DefinitionStages.WithIdentity, DefinitionStages.WithNetworkRuleSet, DefinitionStages.WithPartitionCount, DefinitionStages.WithPublicNetworkAccess, DefinitionStages.WithReplicaCount, DefinitionStages.WithSku {
+ }
+ }
+ /**
+ * The template for a SearchService update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithSearchManagementRequestOptions, UpdateStages.WithHostingMode, UpdateStages.WithIdentity, UpdateStages.WithNetworkRuleSet, UpdateStages.WithPartitionCount, UpdateStages.WithPublicNetworkAccess, UpdateStages.WithReplicaCount, UpdateStages.WithSku {
+ }
+
+ /**
+ * Grouping of SearchService update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the searchservice update allowing to specify SearchManagementRequestOptions.
+ */
+ interface WithSearchManagementRequestOptions {
+ /**
+ * Specifies searchManagementRequestOptions.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @return the next update stage
+ */
+ Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify HostingMode.
+ */
+ interface WithHostingMode {
+ /**
+ * Specifies hostingMode.
+ * @param hostingMode Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'default', 'highDensity'
+ * @return the next update stage
+ */
+ Update withHostingMode(HostingMode hostingMode);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify Identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies identity.
+ * @param identity The identity of the resource
+ * @return the next update stage
+ */
+ Update withIdentity(Identity identity);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify NetworkRuleSet.
+ */
+ interface WithNetworkRuleSet {
+ /**
+ * Specifies networkRuleSet.
+ * @param networkRuleSet Network specific rules that determine how the Azure Cognitive Search service may be reached
+ * @return the next update stage
+ */
+ Update withNetworkRuleSet(NetworkRuleSet networkRuleSet);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify PartitionCount.
+ */
+ interface WithPartitionCount {
+ /**
+ * Specifies partitionCount.
+ * @param partitionCount The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3
+ * @return the next update stage
+ */
+ Update withPartitionCount(Integer partitionCount);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify PublicNetworkAccess.
+ */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies publicNetworkAccess.
+ * @param publicNetworkAccess This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. Possible values include: 'enabled', 'disabled'
+ * @return the next update stage
+ */
+ Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify ReplicaCount.
+ */
+ interface WithReplicaCount {
+ /**
+ * Specifies replicaCount.
+ * @param replicaCount The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU
+ * @return the next update stage
+ */
+ Update withReplicaCount(Integer replicaCount);
+ }
+
+ /**
+ * The stage of the searchservice update allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service
+ * @return the next update stage
+ */
+ Update withSku(Sku sku);
+ }
+
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceStatus.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceStatus.java
new file mode 100644
index 0000000000000..46c55730f6596
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceStatus.java
@@ -0,0 +1,65 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for SearchServiceStatus.
+ */
+public enum SearchServiceStatus {
+ /** Enum value running. */
+ RUNNING("running"),
+
+ /** Enum value provisioning. */
+ PROVISIONING("provisioning"),
+
+ /** Enum value deleting. */
+ DELETING("deleting"),
+
+ /** Enum value degraded. */
+ DEGRADED("degraded"),
+
+ /** Enum value disabled. */
+ DISABLED("disabled"),
+
+ /** Enum value error. */
+ ERROR("error");
+
+ /** The actual serialized value for a SearchServiceStatus instance. */
+ private String value;
+
+ SearchServiceStatus(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a SearchServiceStatus instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed SearchServiceStatus object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static SearchServiceStatus fromString(String value) {
+ SearchServiceStatus[] items = SearchServiceStatus.values();
+ for (SearchServiceStatus item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceUpdate.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceUpdate.java
new file mode 100644
index 0000000000000..c60aa27da3666
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SearchServiceUpdate.java
@@ -0,0 +1,378 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.List;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.PrivateEndpointConnectionInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SharedPrivateLinkResourceInner;
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * The parameters used to update an Azure Cognitive Search service.
+ */
+@JsonFlatten
+public class SearchServiceUpdate extends ProxyResource {
+ /**
+ * The number of replicas in the search service. If specified, it must be a
+ * value between 1 and 12 inclusive for standard SKUs or between 1 and 3
+ * inclusive for basic SKU.
+ */
+ @JsonProperty(value = "properties.replicaCount")
+ private Integer replicaCount;
+
+ /**
+ * The number of partitions in the search service; if specified, it can be
+ * 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard
+ * SKUs. For 'standard3' services with hostingMode set to 'highDensity',
+ * the allowed values are between 1 and 3.
+ */
+ @JsonProperty(value = "properties.partitionCount")
+ private Integer partitionCount;
+
+ /**
+ * Applicable only for the standard3 SKU. You can set this property to
+ * enable up to 3 high density partitions that allow up to 1000 indexes,
+ * which is much higher than the maximum indexes allowed for any other SKU.
+ * For the standard3 SKU, the value is either 'default' or 'highDensity'.
+ * For all other SKUs, this value must be 'default'. Possible values
+ * include: 'default', 'highDensity'.
+ */
+ @JsonProperty(value = "properties.hostingMode")
+ private HostingMode hostingMode;
+
+ /**
+ * This value can be set to 'enabled' to avoid breaking changes on existing
+ * customer resources and templates. If set to 'disabled', traffic over
+ * public interface is not allowed, and private endpoint connections would
+ * be the exclusive access method. Possible values include: 'enabled',
+ * 'disabled'.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /**
+ * The status of the search service. Possible values include: 'running':
+ * The search service is running and no provisioning operations are
+ * underway. 'provisioning': The search service is being provisioned or
+ * scaled up or down. 'deleting': The search service is being deleted.
+ * 'degraded': The search service is degraded. This can occur when the
+ * underlying search units are not healthy. The search service is most
+ * likely operational, but performance might be slow and some requests
+ * might be dropped. 'disabled': The search service is disabled. In this
+ * state, the service will reject all API requests. 'error': The search
+ * service is in an error state. If your service is in the degraded,
+ * disabled, or error states, it means the Azure Cognitive Search team is
+ * actively investigating the underlying issue. Dedicated services in these
+ * states are still chargeable based on the number of search units
+ * provisioned. Possible values include: 'running', 'provisioning',
+ * 'deleting', 'degraded', 'disabled', 'error'.
+ */
+ @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
+ private SearchServiceStatus status;
+
+ /**
+ * The details of the search service status.
+ */
+ @JsonProperty(value = "properties.statusDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private String statusDetails;
+
+ /**
+ * The state of the last provisioning operation performed on the search
+ * service. Provisioning is an intermediate state that occurs while service
+ * capacity is being established. After capacity is set up,
+ * provisioningState changes to either 'succeeded' or 'failed'. Client
+ * applications can poll provisioning status (the recommended polling
+ * interval is from 30 seconds to one minute) by using the Get Search
+ * Service operation to see when an operation is completed. If you are
+ * using the free service, this value tends to come back as 'succeeded'
+ * directly in the call to Create search service. This is because the free
+ * service uses capacity that is already set up. Possible values include:
+ * 'succeeded', 'provisioning', 'failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * Network specific rules that determine how the Azure Cognitive Search
+ * service may be reached.
+ */
+ @JsonProperty(value = "properties.networkRuleSet")
+ private NetworkRuleSet networkRuleSet;
+
+ /**
+ * The list of private endpoint connections to the Azure Cognitive Search
+ * service.
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /**
+ * The list of shared private link resources managed by the Azure Cognitive
+ * Search service.
+ */
+ @JsonProperty(value = "properties.sharedPrivateLinkResources", access = JsonProperty.Access.WRITE_ONLY)
+ private List sharedPrivateLinkResources;
+
+ /**
+ * The SKU of the Search Service, which determines price tier and capacity
+ * limits. This property is required when creating a new Search Service.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /**
+ * The geographic location of the resource. This must be one of the
+ * supported and registered Azure Geo Regions (for example, West US, East
+ * US, Southeast Asia, and so forth). This property is required when
+ * creating a new resource.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * Tags to help categorize the resource in the Azure portal.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
+ /**
+ * Get the number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU.
+ *
+ * @return the replicaCount value
+ */
+ public Integer replicaCount() {
+ return this.replicaCount;
+ }
+
+ /**
+ * Set the number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU.
+ *
+ * @param replicaCount the replicaCount value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withReplicaCount(Integer replicaCount) {
+ this.replicaCount = replicaCount;
+ return this;
+ }
+
+ /**
+ * Get the number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3.
+ *
+ * @return the partitionCount value
+ */
+ public Integer partitionCount() {
+ return this.partitionCount;
+ }
+
+ /**
+ * Set the number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3.
+ *
+ * @param partitionCount the partitionCount value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withPartitionCount(Integer partitionCount) {
+ this.partitionCount = partitionCount;
+ return this;
+ }
+
+ /**
+ * Get applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'default', 'highDensity'.
+ *
+ * @return the hostingMode value
+ */
+ public HostingMode hostingMode() {
+ return this.hostingMode;
+ }
+
+ /**
+ * Set applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'default', 'highDensity'.
+ *
+ * @param hostingMode the hostingMode value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withHostingMode(HostingMode hostingMode) {
+ this.hostingMode = hostingMode;
+ return this;
+ }
+
+ /**
+ * Get this value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. Possible values include: 'enabled', 'disabled'.
+ *
+ * @return the publicNetworkAccess value
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set this value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. Possible values include: 'enabled', 'disabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. Possible values include: 'running', 'provisioning', 'deleting', 'degraded', 'disabled', 'error'.
+ *
+ * @return the status value
+ */
+ public SearchServiceStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the details of the search service status.
+ *
+ * @return the statusDetails value
+ */
+ public String statusDetails() {
+ return this.statusDetails;
+ }
+
+ /**
+ * Get the state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. Possible values include: 'succeeded', 'provisioning', 'failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get network specific rules that determine how the Azure Cognitive Search service may be reached.
+ *
+ * @return the networkRuleSet value
+ */
+ public NetworkRuleSet networkRuleSet() {
+ return this.networkRuleSet;
+ }
+
+ /**
+ * Set network specific rules that determine how the Azure Cognitive Search service may be reached.
+ *
+ * @param networkRuleSet the networkRuleSet value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withNetworkRuleSet(NetworkRuleSet networkRuleSet) {
+ this.networkRuleSet = networkRuleSet;
+ return this;
+ }
+
+ /**
+ * Get the list of private endpoint connections to the Azure Cognitive Search service.
+ *
+ * @return the privateEndpointConnections value
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Get the list of shared private link resources managed by the Azure Cognitive Search service.
+ *
+ * @return the sharedPrivateLinkResources value
+ */
+ public List sharedPrivateLinkResources() {
+ return this.sharedPrivateLinkResources;
+ }
+
+ /**
+ * Get the SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.
+ *
+ * @return the sku value
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.
+ *
+ * @param sku the sku value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource.
+ *
+ * @param location the location value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get tags to help categorize the resource in the Azure portal.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set tags to help categorize the resource in the Azure portal.
+ *
+ * @param tags the tags value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the identity of the resource.
+ *
+ * @return the identity value
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity of the resource.
+ *
+ * @param identity the identity value to set
+ * @return the SearchServiceUpdate object itself.
+ */
+ public SearchServiceUpdate withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Services.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Services.java
new file mode 100644
index 0000000000000..0e289259ffbbd
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Services.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
+import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
+import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
+import rx.Observable;
+import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
+import com.microsoft.azure.arm.collection.SupportsListing;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.ServicesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Services.
+ */
+public interface Services extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
+ /**
+ * Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net).
+ *
+ * @param name The search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String name);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceProperties.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..f6c48d62c10ba
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceProperties.java
@@ -0,0 +1,66 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the properties of a resource type that has been onboarded to
+ * private link service, supported by Azure Cognitive Search.
+ */
+public class ShareablePrivateLinkResourceProperties {
+ /**
+ * The resource provider type for the resource that has been onboarded to
+ * private link service, supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * The resource provider group id for the resource that has been onboarded
+ * to private link service, supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /**
+ * The description of the resource type that has been onboarded to private
+ * link service, supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /**
+ * Get the resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search.
+ *
+ * @return the groupId value
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceType.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceType.java
new file mode 100644
index 0000000000000..0f79e9a37b80d
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/ShareablePrivateLinkResourceType.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes an resource type that has been onboarded to private link service,
+ * supported by Azure Cognitive Search.
+ */
+public class ShareablePrivateLinkResourceType {
+ /**
+ * The name of the resource type that has been onboarded to private link
+ * service, supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /**
+ * Describes the properties of a resource type that has been onboarded to
+ * private link service, supported by Azure Cognitive Search.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ShareablePrivateLinkResourceProperties properties;
+
+ /**
+ * Get the name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search.
+ *
+ * @return the properties value
+ */
+ public ShareablePrivateLinkResourceProperties properties() {
+ return this.properties;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResource.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResource.java
new file mode 100644
index 0000000000000..7b56413905070
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResource.java
@@ -0,0 +1,142 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SharedPrivateLinkResourceInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SearchManager;
+import java.util.UUID;
+
+/**
+ * Type representing SharedPrivateLinkResource.
+ */
+public interface SharedPrivateLinkResource extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ SharedPrivateLinkResourceProperties properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the SharedPrivateLinkResource definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSearchService, DefinitionStages.WithProperties, DefinitionStages.WithSearchManagementRequestOptions, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of SharedPrivateLinkResource definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a SharedPrivateLinkResource definition.
+ */
+ interface Blank extends WithSearchService {
+ }
+
+ /**
+ * The stage of the sharedprivatelinkresource definition allowing to specify SearchService.
+ */
+ interface WithSearchService {
+ /**
+ * Specifies resourceGroupName, searchServiceName.
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group
+ * @return the next definition stage
+ */
+ WithProperties withExistingSearchService(String resourceGroupName, String searchServiceName);
+ }
+
+ /**
+ * The stage of the sharedprivatelinkresource definition allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service
+ * @return the next definition stage
+ */
+ WithSearchManagementRequestOptions withProperties(SharedPrivateLinkResourceProperties properties);
+ }
+
+ /**
+ * The stage of the sharedprivatelinkresource definition allowing to specify SearchManagementRequestOptions.
+ */
+ interface WithSearchManagementRequestOptions {
+ /**
+ * Specifies searchManagementRequestOptions.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @return the next definition stage
+ */
+ WithCreate withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable {
+ }
+ }
+ /**
+ * The template for a SharedPrivateLinkResource update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithProperties, UpdateStages.WithSearchManagementRequestOptions {
+ }
+
+ /**
+ * Grouping of SharedPrivateLinkResource update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the sharedprivatelinkresource update allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service
+ * @return the next update stage
+ */
+ Update withProperties(SharedPrivateLinkResourceProperties properties);
+ }
+
+ /**
+ * The stage of the sharedprivatelinkresource update allowing to specify SearchManagementRequestOptions.
+ */
+ interface WithSearchManagementRequestOptions {
+ /**
+ * Specifies searchManagementRequestOptions.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @return the next update stage
+ */
+ Update withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions);
+ }
+
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceAsyncOperationResult.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceAsyncOperationResult.java
new file mode 100644
index 0000000000000..8c59f2acca0bc
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceAsyncOperationResult.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for SharedPrivateLinkResourceAsyncOperationResult.
+ */
+public final class SharedPrivateLinkResourceAsyncOperationResult extends ExpandableStringEnum {
+ /** Static value Running for SharedPrivateLinkResourceAsyncOperationResult. */
+ public static final SharedPrivateLinkResourceAsyncOperationResult RUNNING = fromString("Running");
+
+ /** Static value Succeeded for SharedPrivateLinkResourceAsyncOperationResult. */
+ public static final SharedPrivateLinkResourceAsyncOperationResult SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for SharedPrivateLinkResourceAsyncOperationResult. */
+ public static final SharedPrivateLinkResourceAsyncOperationResult FAILED = fromString("Failed");
+
+ /**
+ * Creates or finds a SharedPrivateLinkResourceAsyncOperationResult from its string representation.
+ * @param name a name to look for
+ * @return the corresponding SharedPrivateLinkResourceAsyncOperationResult
+ */
+ @JsonCreator
+ public static SharedPrivateLinkResourceAsyncOperationResult fromString(String name) {
+ return fromString(name, SharedPrivateLinkResourceAsyncOperationResult.class);
+ }
+
+ /**
+ * @return known SharedPrivateLinkResourceAsyncOperationResult values
+ */
+ public static Collection values() {
+ return values(SharedPrivateLinkResourceAsyncOperationResult.class);
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProperties.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..4daed4a0403e6
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProperties.java
@@ -0,0 +1,183 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes the properties of an existing Shared Private Link Resource managed
+ * by the Azure Cognitive Search service.
+ */
+public class SharedPrivateLinkResourceProperties {
+ /**
+ * The resource id of the resource the shared private link resource is for.
+ */
+ @JsonProperty(value = "privateLinkResourceId")
+ private String privateLinkResourceId;
+
+ /**
+ * The group id from the provider of resource the shared private link
+ * resource is for.
+ */
+ @JsonProperty(value = "groupId")
+ private String groupId;
+
+ /**
+ * The request message for requesting approval of the shared private link
+ * resource.
+ */
+ @JsonProperty(value = "requestMessage")
+ private String requestMessage;
+
+ /**
+ * Optional. Can be used to specify the Azure Resource Manager location of
+ * the resource to which a shared private link is to be created. This is
+ * only required for those resources whose DNS configuration are regional
+ * (such as Azure Kubernetes Service).
+ */
+ @JsonProperty(value = "resourceRegion")
+ private String resourceRegion;
+
+ /**
+ * Status of the shared private link resource. Can be Pending, Approved,
+ * Rejected or Disconnected. Possible values include: 'Pending',
+ * 'Approved', 'Rejected', 'Disconnected'.
+ */
+ @JsonProperty(value = "status")
+ private SharedPrivateLinkResourceStatus status;
+
+ /**
+ * The provisioning state of the shared private link resource. Can be
+ * Updating, Deleting, Failed, Succeeded or Incomplete. Possible values
+ * include: 'Updating', 'Deleting', 'Failed', 'Succeeded', 'Incomplete'.
+ */
+ @JsonProperty(value = "provisioningState")
+ private SharedPrivateLinkResourceProvisioningState provisioningState;
+
+ /**
+ * Get the resource id of the resource the shared private link resource is for.
+ *
+ * @return the privateLinkResourceId value
+ */
+ public String privateLinkResourceId() {
+ return this.privateLinkResourceId;
+ }
+
+ /**
+ * Set the resource id of the resource the shared private link resource is for.
+ *
+ * @param privateLinkResourceId the privateLinkResourceId value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withPrivateLinkResourceId(String privateLinkResourceId) {
+ this.privateLinkResourceId = privateLinkResourceId;
+ return this;
+ }
+
+ /**
+ * Get the group id from the provider of resource the shared private link resource is for.
+ *
+ * @return the groupId value
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Set the group id from the provider of resource the shared private link resource is for.
+ *
+ * @param groupId the groupId value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
+ /**
+ * Get the request message for requesting approval of the shared private link resource.
+ *
+ * @return the requestMessage value
+ */
+ public String requestMessage() {
+ return this.requestMessage;
+ }
+
+ /**
+ * Set the request message for requesting approval of the shared private link resource.
+ *
+ * @param requestMessage the requestMessage value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withRequestMessage(String requestMessage) {
+ this.requestMessage = requestMessage;
+ return this;
+ }
+
+ /**
+ * Get optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).
+ *
+ * @return the resourceRegion value
+ */
+ public String resourceRegion() {
+ return this.resourceRegion;
+ }
+
+ /**
+ * Set optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).
+ *
+ * @param resourceRegion the resourceRegion value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withResourceRegion(String resourceRegion) {
+ this.resourceRegion = resourceRegion;
+ return this;
+ }
+
+ /**
+ * Get status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @return the status value
+ */
+ public SharedPrivateLinkResourceStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @param status the status value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withStatus(SharedPrivateLinkResourceStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded', 'Incomplete'.
+ *
+ * @return the provisioningState value
+ */
+ public SharedPrivateLinkResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded', 'Incomplete'.
+ *
+ * @param provisioningState the provisioningState value to set
+ * @return the SharedPrivateLinkResourceProperties object itself.
+ */
+ public SharedPrivateLinkResourceProperties withProvisioningState(SharedPrivateLinkResourceProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProvisioningState.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProvisioningState.java
new file mode 100644
index 0000000000000..11deefed7bf64
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceProvisioningState.java
@@ -0,0 +1,62 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for SharedPrivateLinkResourceProvisioningState.
+ */
+public enum SharedPrivateLinkResourceProvisioningState {
+ /** Enum value Updating. */
+ UPDATING("Updating"),
+
+ /** Enum value Deleting. */
+ DELETING("Deleting"),
+
+ /** Enum value Failed. */
+ FAILED("Failed"),
+
+ /** Enum value Succeeded. */
+ SUCCEEDED("Succeeded"),
+
+ /** Enum value Incomplete. */
+ INCOMPLETE("Incomplete");
+
+ /** The actual serialized value for a SharedPrivateLinkResourceProvisioningState instance. */
+ private String value;
+
+ SharedPrivateLinkResourceProvisioningState(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a SharedPrivateLinkResourceProvisioningState instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed SharedPrivateLinkResourceProvisioningState object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static SharedPrivateLinkResourceProvisioningState fromString(String value) {
+ SharedPrivateLinkResourceProvisioningState[] items = SharedPrivateLinkResourceProvisioningState.values();
+ for (SharedPrivateLinkResourceProvisioningState item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceStatus.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceStatus.java
new file mode 100644
index 0000000000000..730da0b8c96c3
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResourceStatus.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for SharedPrivateLinkResourceStatus.
+ */
+public enum SharedPrivateLinkResourceStatus {
+ /** Enum value Pending. */
+ PENDING("Pending"),
+
+ /** Enum value Approved. */
+ APPROVED("Approved"),
+
+ /** Enum value Rejected. */
+ REJECTED("Rejected"),
+
+ /** Enum value Disconnected. */
+ DISCONNECTED("Disconnected");
+
+ /** The actual serialized value for a SharedPrivateLinkResourceStatus instance. */
+ private String value;
+
+ SharedPrivateLinkResourceStatus(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a SharedPrivateLinkResourceStatus instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed SharedPrivateLinkResourceStatus object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static SharedPrivateLinkResourceStatus fromString(String value) {
+ SharedPrivateLinkResourceStatus[] items = SharedPrivateLinkResourceStatus.values();
+ for (SharedPrivateLinkResourceStatus item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResources.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResources.java
new file mode 100644
index 0000000000000..321d07751939d
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SharedPrivateLinkResources.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.implementation.SharedPrivateLinkResourcesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing SharedPrivateLinkResources.
+ */
+public interface SharedPrivateLinkResources extends SupportsCreating, HasInner {
+ /**
+ * Gets the details of the shared private link resource managed by the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String searchServiceName, String sharedPrivateLinkResourceName);
+
+ /**
+ * Gets a list of all shared private link resources managed by the given service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServiceAsync(final String resourceGroupName, final String searchServiceName);
+
+ /**
+ * Initiates the deletion of the shared private link resource from the search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String searchServiceName, String sharedPrivateLinkResourceName);
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Sku.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Sku.java
new file mode 100644
index 0000000000000..9367247a3ddb1
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/Sku.java
@@ -0,0 +1,54 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines the SKU of an Azure Cognitive Search Service, which determines price
+ * tier and capacity limits.
+ */
+public class Sku {
+ /**
+ * The SKU of the search service. Valid values include: 'free': Shared
+ * service. 'basic': Dedicated service with up to 3 replicas. 'standard':
+ * Dedicated service with up to 12 partitions and 12 replicas. 'standard2':
+ * Similar to standard, but with more capacity per search unit.
+ * 'standard3': The largest Standard offering with up to 12 partitions and
+ * 12 replicas (or up to 3 partitions with more indexes if you also set the
+ * hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports
+ * 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports
+ * 2TB per partition, up to 12 partitions.'. Possible values include:
+ * 'free', 'basic', 'standard', 'standard2', 'standard3',
+ * 'storage_optimized_l1', 'storage_optimized_l2'.
+ */
+ @JsonProperty(value = "name")
+ private SkuName name;
+
+ /**
+ * Get the SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. Possible values include: 'free', 'basic', 'standard', 'standard2', 'standard3', 'storage_optimized_l1', 'storage_optimized_l2'.
+ *
+ * @return the name value
+ */
+ public SkuName name() {
+ return this.name;
+ }
+
+ /**
+ * Set the SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. Possible values include: 'free', 'basic', 'standard', 'standard2', 'standard3', 'storage_optimized_l1', 'storage_optimized_l2'.
+ *
+ * @param name the name value to set
+ * @return the Sku object itself.
+ */
+ public Sku withName(SkuName name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SkuName.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SkuName.java
new file mode 100644
index 0000000000000..5402bc92faf90
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/SkuName.java
@@ -0,0 +1,68 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for SkuName.
+ */
+public enum SkuName {
+ /** Enum value free. */
+ FREE("free"),
+
+ /** Enum value basic. */
+ BASIC("basic"),
+
+ /** Enum value standard. */
+ STANDARD("standard"),
+
+ /** Enum value standard2. */
+ STANDARD2("standard2"),
+
+ /** Enum value standard3. */
+ STANDARD3("standard3"),
+
+ /** Enum value storage_optimized_l1. */
+ STORAGE_OPTIMIZED_L1("storage_optimized_l1"),
+
+ /** Enum value storage_optimized_l2. */
+ STORAGE_OPTIMIZED_L2("storage_optimized_l2");
+
+ /** The actual serialized value for a SkuName instance. */
+ private String value;
+
+ SkuName(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a SkuName instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed SkuName object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static SkuName fromString(String value) {
+ SkuName[] items = SkuName.values();
+ for (SkuName item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/UnavailableNameReason.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/UnavailableNameReason.java
new file mode 100644
index 0000000000000..c4d78be19e2ee
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/UnavailableNameReason.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for UnavailableNameReason.
+ */
+public final class UnavailableNameReason extends ExpandableStringEnum {
+ /** Static value Invalid for UnavailableNameReason. */
+ public static final UnavailableNameReason INVALID = fromString("Invalid");
+
+ /** Static value AlreadyExists for UnavailableNameReason. */
+ public static final UnavailableNameReason ALREADY_EXISTS = fromString("AlreadyExists");
+
+ /**
+ * Creates or finds a UnavailableNameReason from its string representation.
+ * @param name a name to look for
+ * @return the corresponding UnavailableNameReason
+ */
+ @JsonCreator
+ public static UnavailableNameReason fromString(String name) {
+ return fromString(name, UnavailableNameReason.class);
+ }
+
+ /**
+ * @return known UnavailableNameReason values
+ */
+ public static Collection values() {
+ return values(UnavailableNameReason.class);
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultImpl.java
new file mode 100644
index 0000000000000..03ade791d9234
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultImpl.java
@@ -0,0 +1,36 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.AdminKeyResult;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+
+class AdminKeyResultImpl extends WrapperImpl implements AdminKeyResult {
+ private final SearchManager manager;
+ AdminKeyResultImpl(AdminKeyResultInner inner, SearchManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String primaryKey() {
+ return this.inner().primaryKey();
+ }
+
+ @Override
+ public String secondaryKey() {
+ return this.inner().secondaryKey();
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultInner.java
new file mode 100644
index 0000000000000..f596dc4badecf
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeyResultInner.java
@@ -0,0 +1,48 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Response containing the primary and secondary admin API keys for a given
+ * Azure Cognitive Search service.
+ */
+public class AdminKeyResultInner {
+ /**
+ * The primary admin API key of the search service.
+ */
+ @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryKey;
+
+ /**
+ * The secondary admin API key of the search service.
+ */
+ @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryKey;
+
+ /**
+ * Get the primary admin API key of the search service.
+ *
+ * @return the primaryKey value
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Get the secondary admin API key of the search service.
+ *
+ * @return the secondaryKey value
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysImpl.java
new file mode 100644
index 0000000000000..cdcb222c3960a
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysImpl.java
@@ -0,0 +1,55 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * abc
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.search.v2020_08_01.AdminKeys;
+import rx.functions.Func1;
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.AdminKeyResult;
+import com.microsoft.azure.management.search.v2020_08_01.AdminKeyKind;
+
+class AdminKeysImpl extends WrapperImpl implements AdminKeys {
+ private final SearchManager manager;
+
+ AdminKeysImpl(SearchManager manager) {
+ super(manager.inner().adminKeys());
+ this.manager = manager;
+ }
+
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable getAsync(String resourceGroupName, String searchServiceName) {
+ AdminKeysInner client = this.inner();
+ return client.getAsync(resourceGroupName, searchServiceName)
+ .map(new Func1() {
+ @Override
+ public AdminKeyResult call(AdminKeyResultInner inner) {
+ return new AdminKeyResultImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind) {
+ AdminKeysInner client = this.inner();
+ return client.regenerateAsync(resourceGroupName, searchServiceName, keyKind)
+ .map(new Func1() {
+ @Override
+ public AdminKeyResult call(AdminKeyResultInner inner) {
+ return new AdminKeyResultImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysInner.java
new file mode 100644
index 0000000000000..199cf6d07d565
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/AdminKeysInner.java
@@ -0,0 +1,434 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.management.search.v2020_08_01.AdminKeyKind;
+import com.microsoft.azure.management.search.v2020_08_01.SearchManagementRequestOptions;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import java.util.UUID;
+import okhttp3.ResponseBody;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.POST;
+import retrofit2.http.Query;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in AdminKeys.
+ */
+public class AdminKeysInner {
+ /** The Retrofit service to perform REST calls. */
+ private AdminKeysService service;
+ /** The service client containing this operation class. */
+ private SearchManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AdminKeysInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AdminKeysInner(Retrofit retrofit, SearchManagementClientImpl client) {
+ this.service = retrofit.create(AdminKeysService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AdminKeys to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface AdminKeysService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.AdminKeys get" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys")
+ Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.AdminKeys regenerate" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}")
+ Observable> regenerate(@Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Path("keyKind") AdminKeyKind keyKind, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AdminKeyResultInner object if successful.
+ */
+ public AdminKeyResultInner get(String resourceGroupName, String searchServiceName) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName).toBlocking().single().body();
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAsync(String resourceGroupName, String searchServiceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, searchServiceName), serviceCallback);
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable getAsync(String resourceGroupName, String searchServiceName) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName).map(new Func1, AdminKeyResultInner>() {
+ @Override
+ public AdminKeyResultInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String searchServiceName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ final SearchManagementRequestOptions searchManagementRequestOptions = null;
+ UUID clientRequestId = null;
+ return service.get(resourceGroupName, searchServiceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AdminKeyResultInner object if successful.
+ */
+ public AdminKeyResultInner get(String resourceGroupName, String searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).toBlocking().single().body();
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAsync(String resourceGroupName, String searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions), serviceCallback);
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable getAsync(String resourceGroupName, String searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).map(new Func1, AdminKeyResultInner>() {
+ @Override
+ public AdminKeyResultInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(searchManagementRequestOptions);
+ UUID clientRequestId = null;
+ if (searchManagementRequestOptions != null) {
+ clientRequestId = searchManagementRequestOptions.clientRequestId();
+ }
+ return service.get(resourceGroupName, searchServiceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AdminKeyResultInner object if successful.
+ */
+ public AdminKeyResultInner regenerate(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind) {
+ return regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind).toBlocking().single().body();
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind), serviceCallback);
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind) {
+ return regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind).map(new Func1, AdminKeyResultInner>() {
+ @Override
+ public AdminKeyResultInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable> regenerateWithServiceResponseAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (keyKind == null) {
+ throw new IllegalArgumentException("Parameter keyKind is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ final SearchManagementRequestOptions searchManagementRequestOptions = null;
+ UUID clientRequestId = null;
+ return service.regenerate(resourceGroupName, searchServiceName, keyKind, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = regenerateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AdminKeyResultInner object if successful.
+ */
+ public AdminKeyResultInner regenerate(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind, searchManagementRequestOptions).toBlocking().single().body();
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind, searchManagementRequestOptions), serviceCallback);
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable regenerateAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return regenerateWithServiceResponseAsync(resourceGroupName, searchServiceName, keyKind, searchManagementRequestOptions).map(new Func1, AdminKeyResultInner>() {
+ @Override
+ public AdminKeyResultInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. Possible values include: 'primary', 'secondary'
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdminKeyResultInner object
+ */
+ public Observable> regenerateWithServiceResponseAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (keyKind == null) {
+ throw new IllegalArgumentException("Parameter keyKind is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(searchManagementRequestOptions);
+ UUID clientRequestId = null;
+ if (searchManagementRequestOptions != null) {
+ clientRequestId = searchManagementRequestOptions.clientRequestId();
+ }
+ return service.regenerate(resourceGroupName, searchServiceName, keyKind, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = regenerateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse regenerateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputImpl.java
new file mode 100644
index 0000000000000..dfed93f7368fb
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputImpl.java
@@ -0,0 +1,42 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.CheckNameAvailabilityOutput;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.search.v2020_08_01.UnavailableNameReason;
+
+class CheckNameAvailabilityOutputImpl extends WrapperImpl implements CheckNameAvailabilityOutput {
+ private final SearchManager manager;
+ CheckNameAvailabilityOutputImpl(CheckNameAvailabilityOutputInner inner, SearchManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Boolean isNameAvailable() {
+ return this.inner().isNameAvailable();
+ }
+
+ @Override
+ public String message() {
+ return this.inner().message();
+ }
+
+ @Override
+ public UnavailableNameReason reason() {
+ return this.inner().reason();
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputInner.java
new file mode 100644
index 0000000000000..14e2cd61eeba2
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/CheckNameAvailabilityOutputInner.java
@@ -0,0 +1,69 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.UnavailableNameReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output of check name availability API.
+ */
+public class CheckNameAvailabilityOutputInner {
+ /**
+ * A value indicating whether the name is available.
+ */
+ @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isNameAvailable;
+
+ /**
+ * The reason why the name is not available. 'Invalid' indicates the name
+ * provided does not match the naming requirements (incorrect length,
+ * unsupported characters, etc.). 'AlreadyExists' indicates that the name
+ * is already in use and is therefore unavailable. Possible values include:
+ * 'Invalid', 'AlreadyExists'.
+ */
+ @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
+ private UnavailableNameReason reason;
+
+ /**
+ * A message that explains why the name is invalid and provides resource
+ * naming requirements. Available only if 'Invalid' is returned in the
+ * 'reason' property.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Get a value indicating whether the name is available.
+ *
+ * @return the isNameAvailable value
+ */
+ public Boolean isNameAvailable() {
+ return this.isNameAvailable;
+ }
+
+ /**
+ * Get the reason why the name is not available. 'Invalid' indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). 'AlreadyExists' indicates that the name is already in use and is therefore unavailable. Possible values include: 'Invalid', 'AlreadyExists'.
+ *
+ * @return the reason value
+ */
+ public UnavailableNameReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get a message that explains why the name is invalid and provides resource naming requirements. Available only if 'Invalid' is returned in the 'reason' property.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/IdParsingUtils.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/IdParsingUtils.java
new file mode 100644
index 0000000000000..2e7e17693b05a
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/IdParsingUtils.java
@@ -0,0 +1,57 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+import java.util.Arrays;
+import java.util.Iterator;
+
+class IdParsingUtils {
+ public static String getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterable iterable = Arrays.asList(id.split("/"));
+ Iterator itr = iterable.iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && part.trim() != "") {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ public static String getValueFromIdByPosition(String id, int pos) {
+ if (id == null) {
+ return null;
+ }
+ Iterable iterable = Arrays.asList(id.split("/"));
+ Iterator itr = iterable.iterator();
+ int index = 0;
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && part.trim() != "") {
+ if (index == pos) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ index++;
+ }
+ return null;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationImpl.java
new file mode 100644
index 0000000000000..1ef3e06ae03dc
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationImpl.java
@@ -0,0 +1,37 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.Operation;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.search.v2020_08_01.OperationDisplay;
+
+class OperationImpl extends WrapperImpl implements Operation {
+ private final SearchManager manager;
+ OperationImpl(OperationInner inner, SearchManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public OperationDisplay display() {
+ return this.inner().display();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationInner.java
new file mode 100644
index 0000000000000..168781615836a
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationInner.java
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Describes a REST API operation.
+ */
+public class OperationInner {
+ /**
+ * The name of the operation. This name is of the form
+ * {provider}/{resource}/{operation}.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /**
+ * The object that describes the operation.
+ */
+ @JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
+ private OperationDisplay display;
+
+ /**
+ * Get the name of the operation. This name is of the form {provider}/{resource}/{operation}.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the object that describes the operation.
+ *
+ * @return the display value
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsImpl.java
new file mode 100644
index 0000000000000..ce6a6e3218697
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsImpl.java
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * abc
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.search.v2020_08_01.Operations;
+import rx.functions.Func1;
+import rx.Observable;
+import java.util.List;
+import com.microsoft.azure.management.search.v2020_08_01.Operation;
+
+class OperationsImpl extends WrapperImpl implements Operations {
+ private final SearchManager manager;
+
+ OperationsImpl(SearchManager manager) {
+ super(manager.inner().operations());
+ this.manager = manager;
+ }
+
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable listAsync() {
+ OperationsInner client = this.inner();
+ return client.listAsync()
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(List innerList) {
+ return Observable.from(innerList);
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Operation call(OperationInner inner) {
+ return new OperationImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsInner.java
new file mode 100644
index 0000000000000..a0246dd08e52e
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/OperationsInner.java
@@ -0,0 +1,134 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.CloudException;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Query;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Operations.
+ */
+public class OperationsInner {
+ /** The Retrofit service to perform REST calls. */
+ private OperationsService service;
+ /** The service client containing this operation class. */
+ private SearchManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public OperationsInner(Retrofit retrofit, SearchManagementClientImpl client) {
+ this.service = retrofit.create(OperationsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Operations to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface OperationsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.Operations list" })
+ @GET("providers/Microsoft.Search/operations")
+ Observable> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Search provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the List<OperationInner> object if successful.
+ */
+ public List list() {
+ return listWithServiceResponseAsync().toBlocking().single().body();
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Search provider.
+ *
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listAsync(final ServiceCallback> serviceCallback) {
+ return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback);
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Search provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the List<OperationInner> object
+ */
+ public Observable> listAsync() {
+ return listWithServiceResponseAsync().map(new Func1>, List>() {
+ @Override
+ public List call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Lists all of the available REST API operations of the Microsoft.Search provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the List<OperationInner> object
+ */
+ public Observable>> listWithServiceResponseAsync() {
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listDelegate(response);
+ List items = null;
+ if (result.body() != null) {
+ items = result.body().items();
+ }
+ ServiceResponse> clientResponse = new ServiceResponse>(items, result.response());
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl.java
new file mode 100644
index 0000000000000..fab6f6b9599f2
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl.java
@@ -0,0 +1,75 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.Page;
+import java.util.List;
+
+/**
+ * An instance of this class defines a page of Azure resources and a link to
+ * get the next page of resources, if any.
+ *
+ * @param type of Azure resource
+ */
+public class PageImpl implements Page {
+ /**
+ * The link to the next page.
+ */
+ @JsonProperty("")
+ private String nextPageLink;
+
+ /**
+ * The list of items.
+ */
+ @JsonProperty("value")
+ private List items;
+
+ /**
+ * Gets the link to the next page.
+ *
+ * @return the link to the next page.
+ */
+ @Override
+ public String nextPageLink() {
+ return this.nextPageLink;
+ }
+
+ /**
+ * Gets the list of items.
+ *
+ * @return the list of items in {@link List}.
+ */
+ @Override
+ public List items() {
+ return items;
+ }
+
+ /**
+ * Sets the link to the next page.
+ *
+ * @param nextPageLink the link to the next page.
+ * @return this Page object itself.
+ */
+ public PageImpl setNextPageLink(String nextPageLink) {
+ this.nextPageLink = nextPageLink;
+ return this;
+ }
+
+ /**
+ * Sets the list of items.
+ *
+ * @param items the list of items in {@link List}.
+ * @return this Page object itself.
+ */
+ public PageImpl setItems(List items) {
+ this.items = items;
+ return this;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl1.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl1.java
new file mode 100644
index 0000000000000..f8a64707c811e
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PageImpl1.java
@@ -0,0 +1,75 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.Page;
+import java.util.List;
+
+/**
+ * An instance of this class defines a page of Azure resources and a link to
+ * get the next page of resources, if any.
+ *
+ * @param type of Azure resource
+ */
+public class PageImpl1 implements Page {
+ /**
+ * The link to the next page.
+ */
+ @JsonProperty("nextLink")
+ private String nextPageLink;
+
+ /**
+ * The list of items.
+ */
+ @JsonProperty("value")
+ private List items;
+
+ /**
+ * Gets the link to the next page.
+ *
+ * @return the link to the next page.
+ */
+ @Override
+ public String nextPageLink() {
+ return this.nextPageLink;
+ }
+
+ /**
+ * Gets the list of items.
+ *
+ * @return the list of items in {@link List}.
+ */
+ @Override
+ public List items() {
+ return items;
+ }
+
+ /**
+ * Sets the link to the next page.
+ *
+ * @param nextPageLink the link to the next page.
+ * @return this Page object itself.
+ */
+ public PageImpl1 setNextPageLink(String nextPageLink) {
+ this.nextPageLink = nextPageLink;
+ return this;
+ }
+
+ /**
+ * Sets the list of items.
+ *
+ * @param items the list of items in {@link List}.
+ * @return this Page object itself.
+ */
+ public PageImpl1 setItems(List items) {
+ this.items = items;
+ return this;
+ }
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionImpl.java
new file mode 100644
index 0000000000000..2a734727701bb
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionImpl.java
@@ -0,0 +1,124 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnection;
+import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
+import rx.Observable;
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnectionProperties;
+import com.microsoft.azure.management.search.v2020_08_01.SearchManagementRequestOptions;
+import java.util.UUID;
+import rx.functions.Func1;
+
+class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl implements PrivateEndpointConnection, PrivateEndpointConnection.Update {
+ private final SearchManager manager;
+ private String resourceGroupName;
+ private String searchServiceName;
+ private String privateEndpointConnectionName;
+ private PrivateEndpointConnectionProperties uproperties;
+ private SearchManagementRequestOptions usearchManagementRequestOptions;
+
+ PrivateEndpointConnectionImpl(String name, SearchManager manager) {
+ super(name, new PrivateEndpointConnectionInner());
+ this.manager = manager;
+ // Set resource name
+ this.privateEndpointConnectionName = name;
+ //
+ this.uproperties = new PrivateEndpointConnectionProperties();
+ this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
+ }
+
+ PrivateEndpointConnectionImpl(PrivateEndpointConnectionInner inner, SearchManager manager) {
+ super(inner.name(), inner);
+ this.manager = manager;
+ // Set resource name
+ this.privateEndpointConnectionName = inner.name();
+ // set resource ancestor and positional variables
+ this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
+ this.searchServiceName = IdParsingUtils.getValueFromIdByName(inner.id(), "searchServices");
+ this.privateEndpointConnectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "privateEndpointConnections");
+ //
+ this.uproperties = new PrivateEndpointConnectionProperties();
+ this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
+ }
+
+ @Override
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ PrivateEndpointConnectionsInner client = this.manager().inner().privateEndpointConnections();
+ return null; // NOP createResourceAsync implementation as create is not supported
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ PrivateEndpointConnectionsInner client = this.manager().inner().privateEndpointConnections();
+ return client.updateAsync(this.resourceGroupName, this.searchServiceName, this.privateEndpointConnectionName, this.uproperties, this.usearchManagementRequestOptions)
+ .map(new Func1() {
+ @Override
+ public PrivateEndpointConnectionInner call(PrivateEndpointConnectionInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ PrivateEndpointConnectionsInner client = this.manager().inner().privateEndpointConnections();
+ return client.getAsync(this.resourceGroupName, this.searchServiceName, this.privateEndpointConnectionName);
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+ private void resetCreateUpdateParameters() {
+ this.uproperties = new PrivateEndpointConnectionProperties();
+ this.usearchManagementRequestOptions = new SearchManagementRequestOptions();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public PrivateEndpointConnectionProperties properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+ @Override
+ public PrivateEndpointConnectionImpl withProperties(PrivateEndpointConnectionProperties properties) {
+ this.uproperties = properties;
+ return this;
+ }
+
+ @Override
+ public PrivateEndpointConnectionImpl withSearchManagementRequestOptions(SearchManagementRequestOptions searchManagementRequestOptions) {
+ this.usearchManagementRequestOptions = searchManagementRequestOptions;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..8a21e2d992b0b
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionInner.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnectionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Describes an existing Private Endpoint connection to the Azure Cognitive
+ * Search service.
+ */
+public class PrivateEndpointConnectionInner extends ProxyResource {
+ /**
+ * Describes the properties of an existing Private Endpoint connection to
+ * the Azure Cognitive Search service.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties properties;
+
+ /**
+ * Get describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ *
+ * @return the properties value
+ */
+ public PrivateEndpointConnectionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ *
+ * @param properties the properties value to set
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsImpl.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsImpl.java
new file mode 100644
index 0000000000000..e3bf5281d2c1f
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsImpl.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ *
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections;
+import rx.Completable;
+import rx.Observable;
+import rx.functions.Func1;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnection;
+
+class PrivateEndpointConnectionsImpl extends WrapperImpl implements PrivateEndpointConnections {
+ private final SearchManager manager;
+
+ PrivateEndpointConnectionsImpl(SearchManager manager) {
+ super(manager.inner().privateEndpointConnections());
+ this.manager = manager;
+ }
+
+ public SearchManager manager() {
+ return this.manager;
+ }
+
+ private PrivateEndpointConnectionImpl wrapModel(PrivateEndpointConnectionInner inner) {
+ return new PrivateEndpointConnectionImpl(inner, manager());
+ }
+
+ @Override
+ public Observable listByServiceAsync(final String resourceGroupName, final String searchServiceName) {
+ PrivateEndpointConnectionsInner client = this.inner();
+ return client.listByServiceAsync(resourceGroupName, searchServiceName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public PrivateEndpointConnection call(PrivateEndpointConnectionInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public Observable getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionsInner client = this.inner();
+ return client.getAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName)
+ .flatMap(new Func1>() {
+ @Override
+ public Observable call(PrivateEndpointConnectionInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((PrivateEndpointConnection)wrapModel(inner));
+ }
+ }
+ });
+ }
+
+ @Override
+ public Completable deleteAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionsInner client = this.inner();
+ return client.deleteAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName).toCompletable();
+ }
+
+}
diff --git a/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsInner.java b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsInner.java
new file mode 100644
index 0000000000000..3f60c1a43a9b4
--- /dev/null
+++ b/sdk/search/mgmt-resource-manager/v2020_08_01/src/main/java/com/microsoft/azure/management/search/v2020_08_01/implementation/PrivateEndpointConnectionsInner.java
@@ -0,0 +1,1148 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.search.v2020_08_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnectionProperties;
+import com.microsoft.azure.management.search.v2020_08_01.SearchManagementRequestOptions;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import java.util.List;
+import java.util.UUID;
+import okhttp3.ResponseBody;
+import retrofit2.http.Body;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.HTTP;
+import retrofit2.http.Path;
+import retrofit2.http.PUT;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in PrivateEndpointConnections.
+ */
+public class PrivateEndpointConnectionsInner {
+ /** The Retrofit service to perform REST calls. */
+ private PrivateEndpointConnectionsService service;
+ /** The service client containing this operation class. */
+ private SearchManagementClientImpl client;
+
+ /**
+ * Initializes an instance of PrivateEndpointConnectionsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public PrivateEndpointConnectionsInner(Retrofit retrofit, SearchManagementClientImpl client) {
+ this.service = retrofit.create(PrivateEndpointConnectionsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for PrivateEndpointConnections to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface PrivateEndpointConnectionsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections update" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Body PrivateEndpointConnectionInner privateEndpointConnection, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections get" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections delete" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", method = "DELETE", hasBody = true)
+ Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections listByService" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections")
+ Observable> listByService(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("searchServiceName") String searchServiceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.search.v2020_08_01.PrivateEndpointConnections listByServiceNext" })
+ @GET
+ Observable> listByServiceNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("x-ms-client-request-id") UUID clientRequestId, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateEndpointConnectionInner object if successful.
+ */
+ public PrivateEndpointConnectionInner update(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ return updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName).toBlocking().single().body();
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture updateAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName), serviceCallback);
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable updateAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ return updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName).map(new Func1, PrivateEndpointConnectionInner>() {
+ @Override
+ public PrivateEndpointConnectionInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable> updateWithServiceResponseAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (privateEndpointConnectionName == null) {
+ throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ final PrivateEndpointConnectionProperties properties = null;
+ final SearchManagementRequestOptions searchManagementRequestOptions = null;
+ UUID clientRequestId = null;
+ PrivateEndpointConnectionInner privateEndpointConnection = new PrivateEndpointConnectionInner();
+ privateEndpointConnection.withProperties(null);
+ return service.update(resourceGroupName, searchServiceName, privateEndpointConnectionName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, privateEndpointConnection, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = updateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateEndpointConnectionInner object if successful.
+ */
+ public PrivateEndpointConnectionInner update(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, PrivateEndpointConnectionProperties properties, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, properties, searchManagementRequestOptions).toBlocking().single().body();
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture updateAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, PrivateEndpointConnectionProperties properties, SearchManagementRequestOptions searchManagementRequestOptions, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, properties, searchManagementRequestOptions), serviceCallback);
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable updateAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, PrivateEndpointConnectionProperties properties, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return updateWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, properties, searchManagementRequestOptions).map(new Func1, PrivateEndpointConnectionInner>() {
+ @Override
+ public PrivateEndpointConnectionInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Updates a Private Endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param properties Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable> updateWithServiceResponseAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, PrivateEndpointConnectionProperties properties, SearchManagementRequestOptions searchManagementRequestOptions) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (privateEndpointConnectionName == null) {
+ throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(properties);
+ Validator.validate(searchManagementRequestOptions);
+ UUID clientRequestId = null;
+ if (searchManagementRequestOptions != null) {
+ clientRequestId = searchManagementRequestOptions.clientRequestId();
+ }
+ PrivateEndpointConnectionInner privateEndpointConnection = new PrivateEndpointConnectionInner();
+ privateEndpointConnection.withProperties(properties);
+ return service.update(resourceGroupName, searchServiceName, privateEndpointConnectionName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, privateEndpointConnection, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = updateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse updateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateEndpointConnectionInner object if successful.
+ */
+ public PrivateEndpointConnectionInner get(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName).toBlocking().single().body();
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName), serviceCallback);
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName).map(new Func1, PrivateEndpointConnectionInner>() {
+ @Override
+ public PrivateEndpointConnectionInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (privateEndpointConnectionName == null) {
+ throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ final SearchManagementRequestOptions searchManagementRequestOptions = null;
+ UUID clientRequestId = null;
+ return service.get(resourceGroupName, searchServiceName, privateEndpointConnectionName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateEndpointConnectionInner object if successful.
+ */
+ public PrivateEndpointConnectionInner get(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, searchManagementRequestOptions).toBlocking().single().body();
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, searchManagementRequestOptions), serviceCallback);
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable getAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ return getWithServiceResponseAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, searchManagementRequestOptions).map(new Func1, PrivateEndpointConnectionInner>() {
+ @Override
+ public PrivateEndpointConnectionInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets the details of the private endpoint connection to the search service in the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the specified resource group.
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
+ * @param searchManagementRequestOptions Additional parameters for the operation
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateEndpointConnectionInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String searchServiceName, String privateEndpointConnectionName, SearchManagementRequestOptions searchManagementRequestOptions) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (searchServiceName == null) {
+ throw new IllegalArgumentException("Parameter searchServiceName is required and cannot be null.");
+ }
+ if (privateEndpointConnectionName == null) {
+ throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(searchManagementRequestOptions);
+ UUID clientRequestId = null;
+ if (searchManagementRequestOptions != null) {
+ clientRequestId = searchManagementRequestOptions.clientRequestId();
+ }
+ return service.get(resourceGroupName, searchServiceName, privateEndpointConnectionName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), clientRequestId, this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response