net.bytebuddy
byte-buddy
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/AgriFoodManager.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/AgriFoodManager.java
index c367847fb042..32992985d553 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/AgriFoodManager.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/AgriFoodManager.java
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -25,20 +25,28 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.agrifood.fluent.AgriFoodManagementClient;
import com.azure.resourcemanager.agrifood.implementation.AgriFoodManagementClientBuilder;
+import com.azure.resourcemanager.agrifood.implementation.CheckNameAvailabilitiesImpl;
+import com.azure.resourcemanager.agrifood.implementation.DataConnectorsImpl;
+import com.azure.resourcemanager.agrifood.implementation.DataManagerForAgricultureExtensionsImpl;
+import com.azure.resourcemanager.agrifood.implementation.DataManagerForAgricultureResourcesImpl;
import com.azure.resourcemanager.agrifood.implementation.ExtensionsImpl;
-import com.azure.resourcemanager.agrifood.implementation.FarmBeatsExtensionsImpl;
-import com.azure.resourcemanager.agrifood.implementation.FarmBeatsModelsImpl;
-import com.azure.resourcemanager.agrifood.implementation.LocationsImpl;
+import com.azure.resourcemanager.agrifood.implementation.OperationResultsImpl;
import com.azure.resourcemanager.agrifood.implementation.OperationsImpl;
import com.azure.resourcemanager.agrifood.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.agrifood.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.agrifood.implementation.SolutionsDiscoverabilitiesImpl;
+import com.azure.resourcemanager.agrifood.implementation.SolutionsImpl;
+import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilities;
+import com.azure.resourcemanager.agrifood.models.DataConnectors;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureExtensions;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureResources;
import com.azure.resourcemanager.agrifood.models.Extensions;
-import com.azure.resourcemanager.agrifood.models.FarmBeatsExtensions;
-import com.azure.resourcemanager.agrifood.models.FarmBeatsModels;
-import com.azure.resourcemanager.agrifood.models.Locations;
+import com.azure.resourcemanager.agrifood.models.OperationResults;
import com.azure.resourcemanager.agrifood.models.Operations;
import com.azure.resourcemanager.agrifood.models.PrivateEndpointConnections;
import com.azure.resourcemanager.agrifood.models.PrivateLinkResources;
+import com.azure.resourcemanager.agrifood.models.Solutions;
+import com.azure.resourcemanager.agrifood.models.SolutionsDiscoverabilities;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -46,15 +54,22 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to AgriFoodManager. APIs documentation for Azure AgFoodPlatform Resource Provider Service. */
+/**
+ * Entry point to AgriFoodManager.
+ * APIs documentation for Microsoft Azure Data Manager for Agriculture Service.
+ */
public final class AgriFoodManager {
- private Extensions extensions;
+ private CheckNameAvailabilities checkNameAvailabilities;
- private FarmBeatsExtensions farmBeatsExtensions;
+ private DataConnectors dataConnectors;
- private FarmBeatsModels farmBeatsModels;
+ private DataManagerForAgricultureExtensions dataManagerForAgricultureExtensions;
- private Locations locations;
+ private DataManagerForAgricultureResources dataManagerForAgricultureResources;
+
+ private OperationResults operationResults;
+
+ private Extensions extensions;
private Operations operations;
@@ -62,23 +77,25 @@ public final class AgriFoodManager {
private PrivateLinkResources privateLinkResources;
+ private Solutions solutions;
+
+ private SolutionsDiscoverabilities solutionsDiscoverabilities;
+
private final AgriFoodManagementClient clientObject;
private AgriFoodManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new AgriFoodManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new AgriFoodManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
* Creates an instance of AgriFood service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the AgriFood service API instance.
@@ -91,7 +108,7 @@ public static AgriFoodManager authenticate(TokenCredential credential, AzureProf
/**
* Creates an instance of AgriFood service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the AgriFood service API instance.
@@ -104,14 +121,16 @@ public static AgriFoodManager authenticate(HttpPipeline httpPipeline, AzureProfi
/**
* Gets a Configurable instance that can be used to create AgriFoodManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new AgriFoodManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -183,8 +202,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -201,8 +220,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -222,15 +241,13 @@ public AgriFoodManager authenticate(TokenCredential credential, AzureProfile pro
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
+ userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.agrifood")
.append("/")
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
+ userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
@@ -255,86 +272,103 @@ public AgriFoodManager authenticate(TokenCredential credential, AzureProfile pro
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
return new AgriFoodManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
- * Gets the resource collection API of Extensions.
- *
- * @return Resource collection API of Extensions.
+ * Gets the resource collection API of CheckNameAvailabilities.
+ *
+ * @return Resource collection API of CheckNameAvailabilities.
*/
- public Extensions extensions() {
- if (this.extensions == null) {
- this.extensions = new ExtensionsImpl(clientObject.getExtensions(), this);
+ public CheckNameAvailabilities checkNameAvailabilities() {
+ if (this.checkNameAvailabilities == null) {
+ this.checkNameAvailabilities
+ = new CheckNameAvailabilitiesImpl(clientObject.getCheckNameAvailabilities(), this);
}
- return extensions;
+ return checkNameAvailabilities;
+ }
+
+ /**
+ * Gets the resource collection API of DataConnectors. It manages DataConnector.
+ *
+ * @return Resource collection API of DataConnectors.
+ */
+ public DataConnectors dataConnectors() {
+ if (this.dataConnectors == null) {
+ this.dataConnectors = new DataConnectorsImpl(clientObject.getDataConnectors(), this);
+ }
+ return dataConnectors;
}
/**
- * Gets the resource collection API of FarmBeatsExtensions.
- *
- * @return Resource collection API of FarmBeatsExtensions.
+ * Gets the resource collection API of DataManagerForAgricultureExtensions.
+ *
+ * @return Resource collection API of DataManagerForAgricultureExtensions.
*/
- public FarmBeatsExtensions farmBeatsExtensions() {
- if (this.farmBeatsExtensions == null) {
- this.farmBeatsExtensions = new FarmBeatsExtensionsImpl(clientObject.getFarmBeatsExtensions(), this);
+ public DataManagerForAgricultureExtensions dataManagerForAgricultureExtensions() {
+ if (this.dataManagerForAgricultureExtensions == null) {
+ this.dataManagerForAgricultureExtensions = new DataManagerForAgricultureExtensionsImpl(
+ clientObject.getDataManagerForAgricultureExtensions(), this);
}
- return farmBeatsExtensions;
+ return dataManagerForAgricultureExtensions;
}
/**
- * Gets the resource collection API of FarmBeatsModels. It manages FarmBeats.
- *
- * @return Resource collection API of FarmBeatsModels.
+ * Gets the resource collection API of DataManagerForAgricultureResources. It manages DataManagerForAgriculture.
+ *
+ * @return Resource collection API of DataManagerForAgricultureResources.
*/
- public FarmBeatsModels farmBeatsModels() {
- if (this.farmBeatsModels == null) {
- this.farmBeatsModels = new FarmBeatsModelsImpl(clientObject.getFarmBeatsModels(), this);
+ public DataManagerForAgricultureResources dataManagerForAgricultureResources() {
+ if (this.dataManagerForAgricultureResources == null) {
+ this.dataManagerForAgricultureResources = new DataManagerForAgricultureResourcesImpl(
+ clientObject.getDataManagerForAgricultureResources(), this);
}
- return farmBeatsModels;
+ return dataManagerForAgricultureResources;
}
/**
- * Gets the resource collection API of Locations.
- *
- * @return Resource collection API of Locations.
+ * Gets the resource collection API of OperationResults.
+ *
+ * @return Resource collection API of OperationResults.
*/
- public Locations locations() {
- if (this.locations == null) {
- this.locations = new LocationsImpl(clientObject.getLocations(), this);
+ public OperationResults operationResults() {
+ if (this.operationResults == null) {
+ this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
}
- return locations;
+ return operationResults;
+ }
+
+ /**
+ * Gets the resource collection API of Extensions. It manages Extension.
+ *
+ * @return Resource collection API of Extensions.
+ */
+ public Extensions extensions() {
+ if (this.extensions == null) {
+ this.extensions = new ExtensionsImpl(clientObject.getExtensions(), this);
+ }
+ return extensions;
}
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -346,20 +380,20 @@ public Operations operations() {
/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
+ *
* @return Resource collection API of PrivateEndpointConnections.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
return privateEndpointConnections;
}
/**
* Gets the resource collection API of PrivateLinkResources.
- *
+ *
* @return Resource collection API of PrivateLinkResources.
*/
public PrivateLinkResources privateLinkResources() {
@@ -370,8 +404,35 @@ public PrivateLinkResources privateLinkResources() {
}
/**
- * @return Wrapped service client AgriFoodManagementClient providing direct access to the underlying auto-generated
- * API implementation, based on Azure REST API.
+ * Gets the resource collection API of Solutions. It manages Solution.
+ *
+ * @return Resource collection API of Solutions.
+ */
+ public Solutions solutions() {
+ if (this.solutions == null) {
+ this.solutions = new SolutionsImpl(clientObject.getSolutions(), this);
+ }
+ return solutions;
+ }
+
+ /**
+ * Gets the resource collection API of SolutionsDiscoverabilities.
+ *
+ * @return Resource collection API of SolutionsDiscoverabilities.
+ */
+ public SolutionsDiscoverabilities solutionsDiscoverabilities() {
+ if (this.solutionsDiscoverabilities == null) {
+ this.solutionsDiscoverabilities
+ = new SolutionsDiscoverabilitiesImpl(clientObject.getSolutionsDiscoverabilities(), this);
+ }
+ return solutionsDiscoverabilities;
+ }
+
+ /**
+ * Gets wrapped service client AgriFoodManagementClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AgriFoodManagementClient.
*/
public AgriFoodManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/AgriFoodManagementClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/AgriFoodManagementClient.java
index 00b52b1d45c5..2e798b0da974 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/AgriFoodManagementClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/AgriFoodManagementClient.java
@@ -7,89 +7,119 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AgriFoodManagementClient class. */
+/**
+ * The interface for AgriFoodManagementClient class.
+ */
public interface AgriFoodManagementClient {
/**
- * Gets The ID of the target subscription.
- *
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
- * Gets the ExtensionsClient object to access its operations.
- *
- * @return the ExtensionsClient object.
+ * Gets the CheckNameAvailabilitiesClient object to access its operations.
+ *
+ * @return the CheckNameAvailabilitiesClient object.
*/
- ExtensionsClient getExtensions();
+ CheckNameAvailabilitiesClient getCheckNameAvailabilities();
+
+ /**
+ * Gets the DataConnectorsClient object to access its operations.
+ *
+ * @return the DataConnectorsClient object.
+ */
+ DataConnectorsClient getDataConnectors();
+
+ /**
+ * Gets the DataManagerForAgricultureExtensionsClient object to access its operations.
+ *
+ * @return the DataManagerForAgricultureExtensionsClient object.
+ */
+ DataManagerForAgricultureExtensionsClient getDataManagerForAgricultureExtensions();
/**
- * Gets the FarmBeatsExtensionsClient object to access its operations.
- *
- * @return the FarmBeatsExtensionsClient object.
+ * Gets the DataManagerForAgricultureResourcesClient object to access its operations.
+ *
+ * @return the DataManagerForAgricultureResourcesClient object.
*/
- FarmBeatsExtensionsClient getFarmBeatsExtensions();
+ DataManagerForAgricultureResourcesClient getDataManagerForAgricultureResources();
/**
- * Gets the FarmBeatsModelsClient object to access its operations.
- *
- * @return the FarmBeatsModelsClient object.
+ * Gets the OperationResultsClient object to access its operations.
+ *
+ * @return the OperationResultsClient object.
*/
- FarmBeatsModelsClient getFarmBeatsModels();
+ OperationResultsClient getOperationResults();
/**
- * Gets the LocationsClient object to access its operations.
- *
- * @return the LocationsClient object.
+ * Gets the ExtensionsClient object to access its operations.
+ *
+ * @return the ExtensionsClient object.
*/
- LocationsClient getLocations();
+ ExtensionsClient getExtensions();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the SolutionsClient object to access its operations.
+ *
+ * @return the SolutionsClient object.
+ */
+ SolutionsClient getSolutions();
+
+ /**
+ * Gets the SolutionsDiscoverabilitiesClient object to access its operations.
+ *
+ * @return the SolutionsDiscoverabilitiesClient object.
+ */
+ SolutionsDiscoverabilitiesClient getSolutionsDiscoverabilities();
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/LocationsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/CheckNameAvailabilitiesClient.java
similarity index 75%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/LocationsClient.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/CheckNameAvailabilitiesClient.java
index a86bbfbb430e..4317b6d25020 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/LocationsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/CheckNameAvailabilitiesClient.java
@@ -11,31 +11,33 @@
import com.azure.resourcemanager.agrifood.fluent.models.CheckNameAvailabilityResponseInner;
import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilityRequest;
-/** An instance of this class provides access to all the operations defined in LocationsClient. */
-public interface LocationsClient {
+/**
+ * An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient.
+ */
+public interface CheckNameAvailabilitiesClient {
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the check availability result.
+ * @return the check availability result along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest body);
+ Response
+ checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest nameAvailabilityRequest, Context context);
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
- * @param context The context to associate with this operation.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the check availability result along with {@link Response}.
+ * @return the check availability result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityRequest body, Context context);
+ CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest nameAvailabilityRequest);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataConnectorsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataConnectorsClient.java
new file mode 100644
index 000000000000..67b26af62d28
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataConnectorsClient.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.agrifood.fluent.models.DataConnectorInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in DataConnectorsClient.
+ */
+public interface DataConnectorsClient {
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, Context context);
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectorInner get(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName);
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, DataConnectorInner body,
+ Context context);
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataConnectorInner createOrUpdate(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, DataConnectorInner body);
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, Context context);
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName, String dataConnectorName);
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName);
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ Integer maxPageSize, String skipToken, Context context);
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsExtensionsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureExtensionsClient.java
similarity index 53%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsExtensionsClient.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureExtensionsClient.java
index 7e94f2f52d11..c0cdbc5eb3ba 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsExtensionsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureExtensionsClient.java
@@ -9,66 +9,66 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.agrifood.fluent.models.FarmBeatsExtensionInner;
+import com.azure.resourcemanager.agrifood.fluent.models.DataManagerForAgricultureExtensionInner;
import java.util.List;
-/** An instance of this class provides access to all the operations defined in FarmBeatsExtensionsClient. */
-public interface FarmBeatsExtensionsClient {
+/**
+ * An instance of this class provides access to all the operations defined in DataManagerForAgricultureExtensionsClient.
+ */
+public interface DataManagerForAgricultureExtensionsClient {
/**
- * Get list of farmBeats extension.
- *
+ * Get list of Data Manager For Agriculture extension.
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of farmBeats extension as paginated response with {@link PagedIterable}.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
- * Get list of farmBeats extension.
- *
- * @param farmBeatsExtensionIds FarmBeatsExtension ids.
- * @param farmBeatsExtensionNames FarmBeats extension names.
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
* @param extensionCategories Extension categories.
* @param publisherIds Publisher ids.
- * @param maxPageSize Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of farmBeats extension as paginated response with {@link PagedIterable}.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- List farmBeatsExtensionIds,
- List farmBeatsExtensionNames,
- List extensionCategories,
- List publisherIds,
- Integer maxPageSize,
- Context context);
+ PagedIterable list(List farmBeatsExtensionIds,
+ List farmBeatsExtensionNames, List extensionCategories, List publisherIds,
+ Integer maxPageSize, Context context);
/**
- * Get farmBeats extension.
- *
- * @param farmBeatsExtensionId farmBeatsExtensionId to be queried.
+ * Get Data Manager For Agriculture extension.
+ *
+ * @param dataManagerForAgricultureExtensionId dataManagerForAgricultureExtensionId to be queried.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats extension.
+ * @return data Manager For Agriculture extension along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FarmBeatsExtensionInner get(String farmBeatsExtensionId);
+ Response getWithResponse(String dataManagerForAgricultureExtensionId,
+ Context context);
/**
- * Get farmBeats extension.
- *
- * @param farmBeatsExtensionId farmBeatsExtensionId to be queried.
- * @param context The context to associate with this operation.
+ * Get Data Manager For Agriculture extension.
+ *
+ * @param dataManagerForAgricultureExtensionId dataManagerForAgricultureExtensionId to be queried.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats extension along with {@link Response}.
+ * @return data Manager For Agriculture extension.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String farmBeatsExtensionId, Context context);
+ DataManagerForAgricultureExtensionInner get(String dataManagerForAgricultureExtensionId);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsModelsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureResourcesClient.java
similarity index 56%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsModelsClient.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureResourcesClient.java
index beee985eef68..d42b90ee1176 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/FarmBeatsModelsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/DataManagerForAgricultureResourcesClient.java
@@ -11,241 +11,219 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.agrifood.fluent.models.ArmAsyncOperationInner;
-import com.azure.resourcemanager.agrifood.fluent.models.FarmBeatsInner;
-import com.azure.resourcemanager.agrifood.models.FarmBeatsUpdateRequestModel;
+import com.azure.resourcemanager.agrifood.fluent.models.DataManagerForAgricultureInner;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureUpdateRequestModel;
-/** An instance of this class provides access to all the operations defined in FarmBeatsModelsClient. */
-public interface FarmBeatsModelsClient {
+/**
+ * An instance of this class provides access to all the operations defined in DataManagerForAgricultureResourcesClient.
+ */
+public interface DataManagerForAgricultureResourcesClient {
/**
- * Get FarmBeats resource.
- *
+ * Get DataManagerForAgriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats resource.
+ * @return dataManagerForAgriculture resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FarmBeatsInner getByResourceGroup(String resourceGroupName, String farmBeatsResourceName);
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Context context);
/**
- * Get FarmBeats resource.
- *
+ * Get DataManagerForAgriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param context The context to associate with this operation.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats resource along with {@link Response}.
+ * @return dataManagerForAgriculture resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String farmBeatsResourceName, Context context);
+ DataManagerForAgricultureInner getByResourceGroup(String resourceGroupName,
+ String dataManagerForAgricultureResourceName);
/**
- * Create or update FarmBeats resource.
- *
+ * Create or update Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body FarmBeats resource create or update request object.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Data Manager For Agriculture resource create or update request object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats ARM Resource.
+ * @return data Manager For Agriculture ARM Resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FarmBeatsInner createOrUpdate(String resourceGroupName, String farmBeatsResourceName, FarmBeatsInner body);
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, DataManagerForAgricultureInner request, Context context);
/**
- * Create or update FarmBeats resource.
- *
+ * Create or update Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body FarmBeats resource create or update request object.
- * @param context The context to associate with this operation.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Data Manager For Agriculture resource create or update request object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats ARM Resource along with {@link Response}.
+ * @return data Manager For Agriculture ARM Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String farmBeatsResourceName, FarmBeatsInner body, Context context);
+ DataManagerForAgricultureInner createOrUpdate(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, DataManagerForAgricultureInner request);
/**
- * Update a FarmBeats resource.
- *
+ * Update a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body Request object.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Request object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of farmBeats ARM Resource.
+ * @return the {@link SyncPoller} for polling of data Manager For Agriculture ARM Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FarmBeatsInner> beginUpdate(
- String resourceGroupName, String farmBeatsResourceName, FarmBeatsUpdateRequestModel body);
+ SyncPoller, DataManagerForAgricultureInner> beginUpdate(
+ String resourceGroupName, String dataManagerForAgricultureResourceName,
+ DataManagerForAgricultureUpdateRequestModel request);
/**
- * Update a FarmBeats resource.
- *
+ * Update a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body Request object.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Request object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of farmBeats ARM Resource.
+ * @return the {@link SyncPoller} for polling of data Manager For Agriculture ARM Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, FarmBeatsInner> beginUpdate(
- String resourceGroupName, String farmBeatsResourceName, FarmBeatsUpdateRequestModel body, Context context);
+ SyncPoller, DataManagerForAgricultureInner> beginUpdate(
+ String resourceGroupName, String dataManagerForAgricultureResourceName,
+ DataManagerForAgricultureUpdateRequestModel request, Context context);
/**
- * Update a FarmBeats resource.
- *
+ * Update a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body Request object.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Request object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats ARM Resource.
+ * @return data Manager For Agriculture ARM Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FarmBeatsInner update(String resourceGroupName, String farmBeatsResourceName, FarmBeatsUpdateRequestModel body);
+ DataManagerForAgricultureInner update(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ DataManagerForAgricultureUpdateRequestModel request);
/**
- * Update a FarmBeats resource.
- *
+ * Update a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param body Request object.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param request Request object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return farmBeats ARM Resource.
+ * @return data Manager For Agriculture ARM Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FarmBeatsInner update(
- String resourceGroupName, String farmBeatsResourceName, FarmBeatsUpdateRequestModel body, Context context);
+ DataManagerForAgricultureInner update(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ DataManagerForAgricultureUpdateRequestModel request, Context context);
/**
- * Delete a FarmBeats resource.
- *
+ * Delete a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String farmBeatsResourceName);
+ Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ Context context);
/**
- * Delete a FarmBeats resource.
- *
+ * Delete a Data Manager For Agriculture resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param context The context to associate with this operation.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String farmBeatsResourceName, Context context);
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName);
/**
- * Lists the FarmBeats instances for a subscription.
- *
+ * Lists the DataManagerForAgriculture instances for a subscription.
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged response contains list of requested objects and a URL link to get the next set of results as
- * paginated response with {@link PagedIterable}.
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
- * Lists the FarmBeats instances for a subscription.
- *
- * @param maxPageSize Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
+ * Lists the DataManagerForAgriculture instances for a subscription.
+ *
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
* @param skipToken Skip token for getting next set of results.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged response contains list of requested objects and a URL link to get the next set of results as
- * paginated response with {@link PagedIterable}.
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer maxPageSize, String skipToken, Context context);
+ PagedIterable list(Integer maxPageSize, String skipToken, Context context);
/**
- * Lists the FarmBeats instances for a resource group.
- *
+ * Lists the DataManagerForAgriculture instances for a resource group.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged response contains list of requested objects and a URL link to get the next set of results as
- * paginated response with {@link PagedIterable}.
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Lists the FarmBeats instances for a resource group.
- *
+ * Lists the DataManagerForAgriculture instances for a resource group.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param maxPageSize Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
* @param skipToken Continuation token for getting next set of results.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return paged response contains list of requested objects and a URL link to get the next set of results as
- * paginated response with {@link PagedIterable}.
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName, Integer maxPageSize, String skipToken, Context context);
-
- /**
- * Get operationResults for a FarmBeats resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param operationResultsId The operation results id.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationResults for a FarmBeats resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArmAsyncOperationInner getOperationResult(
- String resourceGroupName, String farmBeatsResourceName, String operationResultsId);
-
- /**
- * Get operationResults for a FarmBeats resource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param operationResultsId The operation results id.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationResults for a FarmBeats resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getOperationResultWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String operationResultsId, Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer maxPageSize,
+ String skipToken, Context context);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/ExtensionsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/ExtensionsClient.java
index 98635606463e..2b9ad1d1ad14 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/ExtensionsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/ExtensionsClient.java
@@ -10,30 +10,21 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.agrifood.fluent.models.ExtensionInner;
+import com.azure.resourcemanager.agrifood.models.ExtensionInstallationRequest;
import java.util.List;
-/** An instance of this class provides access to all the operations defined in ExtensionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ExtensionsClient.
+ */
public interface ExtensionsClient {
/**
- * Install extension.
- *
+ * Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new
+ * version then the obsolete entries will be auto deleted from Additional Api Properties.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param extensionId Id of extension resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return extension resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner create(String resourceGroupName, String farmBeatsResourceName, String extensionId);
-
- /**
- * Install extension.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
+ * @param requestBody Extension resource request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -41,28 +32,31 @@ public interface ExtensionsClient {
* @return extension resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String extensionId, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String extensionId, ExtensionInstallationRequest requestBody,
+ Context context);
/**
- * Get installed extension details by extension id.
- *
+ * Install or Update extension. Additional Api Properties are merged patch and if the extension is updated to a new
+ * version then the obsolete entries will be auto deleted from Additional Api Properties.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return installed extension details by extension id.
+ * @return extension resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner get(String resourceGroupName, String farmBeatsResourceName, String extensionId);
+ ExtensionInner createOrUpdate(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String extensionId);
/**
* Get installed extension details by extension id.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -71,89 +65,75 @@ Response createWithResponse(
* @return installed extension details by extension id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String extensionId, Context context);
+ Response getWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String extensionId, Context context);
/**
- * Upgrade to latest extension.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param extensionId Id of extension resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return extension resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ExtensionInner update(String resourceGroupName, String farmBeatsResourceName, String extensionId);
-
- /**
- * Upgrade to latest extension.
- *
+ * Get installed extension details by extension id.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return extension resource along with {@link Response}.
+ * @return installed extension details by extension id.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String extensionId, Context context);
+ ExtensionInner get(String resourceGroupName, String dataManagerForAgricultureResourceName, String extensionId);
/**
* Uninstall extension.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String farmBeatsResourceName, String extensionId);
+ Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String extensionId, Context context);
/**
* Uninstall extension.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionId Id of extension resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String extensionId, Context context);
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName, String extensionId);
/**
* Get installed extensions details.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return installed extensions details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFarmBeats(String resourceGroupName, String farmBeatsResourceName);
+ PagedIterable listByDataManagerForAgriculture(String resourceGroupName,
+ String dataManagerForAgricultureResourceName);
/**
* Get installed extensions details.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param extensionIds Installed extension ids.
* @param extensionCategories Installed extension categories.
- * @param maxPageSize Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
* @param skipToken Skip token for getting next set of results.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -162,12 +142,7 @@ Response deleteWithResponse(
* @return installed extensions details as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByFarmBeats(
- String resourceGroupName,
- String farmBeatsResourceName,
- List extensionIds,
- List extensionCategories,
- Integer maxPageSize,
- String skipToken,
- Context context);
+ PagedIterable listByDataManagerForAgriculture(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, List extensionIds, List extensionCategories,
+ Integer maxPageSize, String skipToken, Context context);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationResultsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationResultsClient.java
new file mode 100644
index 000000000000..8251f61a5a69
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationResultsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.agrifood.fluent.models.ArmAsyncOperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationResultsClient.
+ */
+public interface OperationResultsClient {
+ /**
+ * Get operationResults for a Data Manager For Agriculture resource.
+ *
+ * @param locations Location.
+ * @param operationResultsId operationResultsId for a specific location.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return operationResults for a Data Manager For Agriculture resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String locations, String operationResultsId, Context context);
+
+ /**
+ * Get operationResults for a Data Manager For Agriculture resource.
+ *
+ * @param locations Location.
+ * @param operationResultsId operationResultsId for a specific location.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return operationResults for a Data Manager For Agriculture resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmAsyncOperationInner get(String locations, String operationResultsId);
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationsClient.java
index c7be5f99dad2..b4cd6b5789e8 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.agrifood.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateEndpointConnectionsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateEndpointConnectionsClient.java
index f1d874c24109..79115146fe70 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateEndpointConnectionsClient.java
@@ -6,91 +6,96 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.agrifood.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.agrifood.fluent.models.PrivateEndpointConnectionListResultInner;
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
+ */
public interface PrivateEndpointConnectionsClient {
/**
* Approves or Rejects a Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
- * @param body Request object.
+ * @param request Request object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource.
+ * @return the private endpoint connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String farmBeatsResourceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner body);
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner request, Context context);
/**
* Approves or Rejects a Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
- * @param body Request object.
- * @param context The context to associate with this operation.
+ * @param request Request object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 400.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Private Endpoint Connection resource along with {@link Response}.
+ * @return the private endpoint connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String farmBeatsResourceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner body,
- Context context);
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner request);
/**
* Get Private endpoint connection object.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private endpoint connection object.
+ * @return private endpoint connection object along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName);
+ Response getWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String privateEndpointConnectionName, Context context);
/**
* Get Private endpoint connection object.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private endpoint connection object along with {@link Response}.
+ * @return private endpoint connection object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName, Context context);
+ PrivateEndpointConnectionInner get(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String privateEndpointConnectionName);
/**
* Delete Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -98,14 +103,14 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName);
+ SyncPoller, Void> beginDelete(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String privateEndpointConnectionName);
/**
* Delete Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -114,27 +119,28 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String privateEndpointConnectionName, Context context);
/**
* Delete Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName);
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String privateEndpointConnectionName);
/**
* Delete Private endpoint connection request.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param privateEndpointConnectionName Private endpoint connection name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -142,35 +148,35 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName, String farmBeatsResourceName, String privateEndpointConnectionName, Context context);
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String privateEndpointConnectionName, Context context);
/**
* Get list of Private endpoint connections.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Private endpoint connections as paginated response with {@link PagedIterable}.
+ * @return list of Private endpoint connections along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResource(
- String resourceGroupName, String farmBeatsResourceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByResourceWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Context context);
/**
* Get list of Private endpoint connections.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param context The context to associate with this operation.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Private endpoint connections as paginated response with {@link PagedIterable}.
+ * @return list of Private endpoint connections.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResource(
- String resourceGroupName, String farmBeatsResourceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionListResultInner listByResource(String resourceGroupName,
+ String dataManagerForAgricultureResourceName);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateLinkResourcesClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateLinkResourcesClient.java
index 246da2a55dee..31e2c366c2ab 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/PrivateLinkResourcesClient.java
@@ -6,68 +6,76 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.agrifood.fluent.models.PrivateLinkResourceInner;
+import com.azure.resourcemanager.agrifood.fluent.models.PrivateLinkResourceListResultInner;
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
+ */
public interface PrivateLinkResourcesClient {
/**
* Get list of Private link resources.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Private link resources as paginated response with {@link PagedIterable}.
+ * @return list of Private link resources along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResource(String resourceGroupName, String farmBeatsResourceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByResourceWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Context context);
/**
* Get list of Private link resources.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
- * @param context The context to associate with this operation.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Private link resources as paginated response with {@link PagedIterable}.
+ * @return list of Private link resources.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResource(
- String resourceGroupName, String farmBeatsResourceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceListResultInner listByResource(String resourceGroupName,
+ String dataManagerForAgricultureResourceName);
/**
* Get Private link resource object.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param subResourceName Sub resource name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private link resource object.
+ * @return private link resource object along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String farmBeatsResourceName, String subResourceName);
+ Response getWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String subResourceName, Context context);
/**
* Get Private link resource object.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param farmBeatsResourceName FarmBeats resource name.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
* @param subResourceName Sub resource name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private link resource object along with {@link Response}.
+ * @return private link resource object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String farmBeatsResourceName, String subResourceName, Context context);
+ PrivateLinkResourceInner get(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String subResourceName);
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsClient.java
new file mode 100644
index 000000000000..14580400797a
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsClient.java
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.agrifood.fluent.models.SolutionInner;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in SolutionsClient.
+ */
+public interface SolutionsClient {
+ /**
+ * Install Or Update Solution.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @param requestBody Solution resource request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return solution resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String solutionId, SolutionInner requestBody, Context context);
+
+ /**
+ * Install Or Update Solution.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return solution resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SolutionInner createOrUpdate(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String solutionId);
+
+ /**
+ * Get installed Solution details by Solution id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return installed Solution details by Solution id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String solutionId, Context context);
+
+ /**
+ * Get installed Solution details by Solution id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return installed Solution details by Solution id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SolutionInner get(String resourceGroupName, String dataManagerForAgricultureResourceName, String solutionId);
+
+ /**
+ * Uninstall Solution.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String solutionId, Context context);
+
+ /**
+ * Uninstall Solution.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionId SolutionId for Data Manager For Agriculture Resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataManagerForAgricultureResourceName, String solutionId);
+
+ /**
+ * Get installed Solutions details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return installed Solutions details as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName);
+
+ /**
+ * Get installed Solutions details.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param solutionIds Installed Solution ids.
+ * @param ids Ids of the resource.
+ * @param names Names of the resource.
+ * @param propertyFilters Filters on key-value pairs within the Properties object.
+ * eg. "{testKey} eq {testValue}".
+ * @param statuses Statuses of the resource.
+ * @param minCreatedDateTime Minimum creation date of resource (inclusive).
+ * @param maxCreatedDateTime Maximum creation date of resource (inclusive).
+ * @param minLastModifiedDateTime Minimum last modified date of resource (inclusive).
+ * @param maxLastModifiedDateTime Maximum last modified date of resource (inclusive).
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Skip token for getting next set of results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return installed Solutions details as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ List solutionIds, List ids, List names, List propertyFilters,
+ List statuses, OffsetDateTime minCreatedDateTime, OffsetDateTime maxCreatedDateTime,
+ OffsetDateTime minLastModifiedDateTime, OffsetDateTime maxLastModifiedDateTime, Integer maxPageSize,
+ String skipToken, Context context);
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsDiscoverabilitiesClient.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsDiscoverabilitiesClient.java
new file mode 100644
index 000000000000..fac86472c868
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/SolutionsDiscoverabilitiesClient.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.agrifood.fluent.models.DataManagerForAgricultureSolutionInner;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in SolutionsDiscoverabilitiesClient.
+ */
+public interface SolutionsDiscoverabilitiesClient {
+ /**
+ * Get list of Data Manager For Agriculture solutions.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture solutions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get list of Data Manager For Agriculture solutions.
+ *
+ * @param farmBeatsSolutionIds Ids of Data Manager For Agriculture Solutions which the customer requests to fetch.
+ * @param farmBeatsSolutionNames Names of Data Manager For Agriculture Solutions which the customer requests to
+ * fetch.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture solutions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(List farmBeatsSolutionIds,
+ List farmBeatsSolutionNames, Integer maxPageSize, Context context);
+
+ /**
+ * Get Data Manager For Agriculture solution by id.
+ *
+ * @param dataManagerForAgricultureSolutionId dataManagerForAgricultureSolutionId to be queried.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Manager For Agriculture solution by id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String dataManagerForAgricultureSolutionId,
+ Context context);
+
+ /**
+ * Get Data Manager For Agriculture solution by id.
+ *
+ * @param dataManagerForAgricultureSolutionId dataManagerForAgricultureSolutionId to be queried.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return data Manager For Agriculture solution by id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataManagerForAgricultureSolutionInner get(String dataManagerForAgricultureSolutionId);
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ArmAsyncOperationInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ArmAsyncOperationInner.java
index 71d60768ac31..47a6b870a96e 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ArmAsyncOperationInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ArmAsyncOperationInner.java
@@ -5,11 +5,12 @@
package com.azure.resourcemanager.agrifood.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.agrifood.models.ArmAsyncOperationError;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * Arm async operation class. Ref:
- * https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations.
+ * Arm async operation class.
+ * Ref: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations.
*/
@Fluent
public final class ArmAsyncOperationInner {
@@ -19,9 +20,22 @@ public final class ArmAsyncOperationInner {
@JsonProperty(value = "status")
private String status;
+ /*
+ * Arm async operation error class.
+ * Ref: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.
+ */
+ @JsonProperty(value = "error")
+ private ArmAsyncOperationError error;
+
+ /**
+ * Creates an instance of ArmAsyncOperationInner class.
+ */
+ public ArmAsyncOperationInner() {
+ }
+
/**
* Get the status property: Status of the async operation.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -30,7 +44,7 @@ public String status() {
/**
* Set the status property: Status of the async operation.
- *
+ *
* @param status the status value to set.
* @return the ArmAsyncOperationInner object itself.
*/
@@ -39,11 +53,38 @@ public ArmAsyncOperationInner withStatus(String status) {
return this;
}
+ /**
+ * Get the error property: Arm async operation error class.
+ * Ref:
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.
+ *
+ * @return the error value.
+ */
+ public ArmAsyncOperationError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: Arm async operation error class.
+ * Ref:
+ * https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.
+ *
+ * @param error the error value to set.
+ * @return the ArmAsyncOperationInner object itself.
+ */
+ public ArmAsyncOperationInner withError(ArmAsyncOperationError error) {
+ this.error = error;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (error() != null) {
+ error().validate();
+ }
}
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/CheckNameAvailabilityResponseInner.java
index 35c79bff3f32..8f62a3501b9a 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/CheckNameAvailabilityResponseInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/CheckNameAvailabilityResponseInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilityReason;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The check availability result. */
+/**
+ * The check availability result.
+ */
@Fluent
public final class CheckNameAvailabilityResponseInner {
/*
@@ -29,9 +31,15 @@ public final class CheckNameAvailabilityResponseInner {
@JsonProperty(value = "message")
private String message;
+ /**
+ * Creates an instance of CheckNameAvailabilityResponseInner class.
+ */
+ public CheckNameAvailabilityResponseInner() {
+ }
+
/**
* Get the nameAvailable property: Indicates if the resource name is available.
- *
+ *
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
@@ -40,7 +48,7 @@ public Boolean nameAvailable() {
/**
* Set the nameAvailable property: Indicates if the resource name is available.
- *
+ *
* @param nameAvailable the nameAvailable value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -51,7 +59,7 @@ public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailabl
/**
* Get the reason property: The reason why the given name is not available.
- *
+ *
* @return the reason value.
*/
public CheckNameAvailabilityReason reason() {
@@ -60,7 +68,7 @@ public CheckNameAvailabilityReason reason() {
/**
* Set the reason property: The reason why the given name is not available.
- *
+ *
* @param reason the reason value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -71,7 +79,7 @@ public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason
/**
* Get the message property: Detailed reason why the given name is available.
- *
+ *
* @return the message value.
*/
public String message() {
@@ -80,7 +88,7 @@ public String message() {
/**
* Set the message property: Detailed reason why the given name is available.
- *
+ *
* @param message the message value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -91,7 +99,7 @@ public CheckNameAvailabilityResponseInner withMessage(String message) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataConnectorInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataConnectorInner.java
new file mode 100644
index 000000000000..8ffb198d8cda
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataConnectorInner.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.agrifood.models.DataConnectorProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * DataConnector Model.
+ */
+@Fluent
+public final class DataConnectorInner extends ProxyResource {
+ /*
+ * DataConnector Properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private DataConnectorProperties properties;
+
+ /*
+ * The ETag value to implement optimistic concurrency.
+ */
+ @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of DataConnectorInner class.
+ */
+ public DataConnectorInner() {
+ }
+
+ /**
+ * Get the properties property: DataConnector Properties.
+ *
+ * @return the properties value.
+ */
+ public DataConnectorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: DataConnector Properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DataConnectorInner object itself.
+ */
+ public DataConnectorInner withProperties(DataConnectorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the etag property: The ETag value to implement optimistic concurrency.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property properties in model DataConnectorInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DataConnectorInner.class);
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureExtensionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureExtensionInner.java
new file mode 100644
index 000000000000..36643f5744ce
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureExtensionInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureExtensionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * DataManagerForAgriculture extension resource.
+ */
+@Fluent
+public final class DataManagerForAgricultureExtensionInner extends ProxyResource {
+ /*
+ * DataManagerForAgricultureExtension properties.
+ */
+ @JsonProperty(value = "properties")
+ private DataManagerForAgricultureExtensionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of DataManagerForAgricultureExtensionInner class.
+ */
+ public DataManagerForAgricultureExtensionInner() {
+ }
+
+ /**
+ * Get the properties property: DataManagerForAgricultureExtension properties.
+ *
+ * @return the properties value.
+ */
+ public DataManagerForAgricultureExtensionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: DataManagerForAgricultureExtension properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DataManagerForAgricultureExtensionInner object itself.
+ */
+ public DataManagerForAgricultureExtensionInner
+ withProperties(DataManagerForAgricultureExtensionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureInner.java
similarity index 58%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsInner.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureInner.java
index 62c0263d9152..a3a7a42eb5c5 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureInner.java
@@ -6,16 +6,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
import com.azure.resourcemanager.agrifood.models.Identity;
import com.azure.resourcemanager.agrifood.models.ProvisioningState;
import com.azure.resourcemanager.agrifood.models.PublicNetworkAccess;
import com.azure.resourcemanager.agrifood.models.SensorIntegration;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
import java.util.Map;
-/** FarmBeats ARM Resource. */
+/**
+ * Data Manager For Agriculture ARM Resource.
+ */
@Fluent
-public final class FarmBeatsInner extends Resource {
+public final class DataManagerForAgricultureInner extends Resource {
/*
* Identity for the resource.
*/
@@ -23,14 +27,26 @@ public final class FarmBeatsInner extends Resource {
private Identity identity;
/*
- * FarmBeats ARM Resource properties.
+ * Data Manager For Agriculture ARM Resource properties.
*/
@JsonProperty(value = "properties")
- private FarmBeatsPropertiesInner innerProperties;
+ private DataManagerForAgricultureProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of DataManagerForAgricultureInner class.
+ */
+ public DataManagerForAgricultureInner() {
+ }
/**
* Get the identity property: Identity for the resource.
- *
+ *
* @return the identity value.
*/
public Identity identity() {
@@ -39,41 +55,54 @@ public Identity identity() {
/**
* Set the identity property: Identity for the resource.
- *
+ *
* @param identity the identity value to set.
- * @return the FarmBeatsInner object itself.
+ * @return the DataManagerForAgricultureInner object itself.
*/
- public FarmBeatsInner withIdentity(Identity identity) {
+ public DataManagerForAgricultureInner withIdentity(Identity identity) {
this.identity = identity;
return this;
}
/**
- * Get the innerProperties property: FarmBeats ARM Resource properties.
- *
+ * Get the innerProperties property: Data Manager For Agriculture ARM Resource properties.
+ *
* @return the innerProperties value.
*/
- private FarmBeatsPropertiesInner innerProperties() {
+ private DataManagerForAgricultureProperties innerProperties() {
return this.innerProperties;
}
- /** {@inheritDoc} */
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
- public FarmBeatsInner withLocation(String location) {
+ public DataManagerForAgricultureInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
- public FarmBeatsInner withTags(Map tags) {
+ public DataManagerForAgricultureInner withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
- * Get the instanceUri property: Uri of the FarmBeats instance.
- *
+ * Get the instanceUri property: Uri of the Data Manager For Agriculture instance.
+ *
* @return the instanceUri value.
*/
public String instanceUri() {
@@ -81,8 +110,8 @@ public String instanceUri() {
}
/**
- * Get the provisioningState property: FarmBeats instance provisioning state.
- *
+ * Get the provisioningState property: Data Manager For Agriculture instance provisioning state.
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -91,7 +120,7 @@ public ProvisioningState provisioningState() {
/**
* Get the sensorIntegration property: Sensor integration request model.
- *
+ *
* @return the sensorIntegration value.
*/
public SensorIntegration sensorIntegration() {
@@ -100,21 +129,22 @@ public SensorIntegration sensorIntegration() {
/**
* Set the sensorIntegration property: Sensor integration request model.
- *
+ *
* @param sensorIntegration the sensorIntegration value to set.
- * @return the FarmBeatsInner object itself.
+ * @return the DataManagerForAgricultureInner object itself.
*/
- public FarmBeatsInner withSensorIntegration(SensorIntegration sensorIntegration) {
+ public DataManagerForAgricultureInner withSensorIntegration(SensorIntegration sensorIntegration) {
if (this.innerProperties() == null) {
- this.innerProperties = new FarmBeatsPropertiesInner();
+ this.innerProperties = new DataManagerForAgricultureProperties();
}
this.innerProperties().withSensorIntegration(sensorIntegration);
return this;
}
/**
- * Get the publicNetworkAccess property: Property to allow or block public traffic for an Azure FarmBeats resource.
- *
+ * Get the publicNetworkAccess property: Property to allow or block public traffic for an Azure Data Manager For
+ * Agriculture resource.
+ *
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
@@ -122,31 +152,32 @@ public PublicNetworkAccess publicNetworkAccess() {
}
/**
- * Set the publicNetworkAccess property: Property to allow or block public traffic for an Azure FarmBeats resource.
- *
+ * Set the publicNetworkAccess property: Property to allow or block public traffic for an Azure Data Manager For
+ * Agriculture resource.
+ *
* @param publicNetworkAccess the publicNetworkAccess value to set.
- * @return the FarmBeatsInner object itself.
+ * @return the DataManagerForAgricultureInner object itself.
*/
- public FarmBeatsInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public DataManagerForAgricultureInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
if (this.innerProperties() == null) {
- this.innerProperties = new FarmBeatsPropertiesInner();
+ this.innerProperties = new DataManagerForAgricultureProperties();
}
this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
/**
- * Get the privateEndpointConnections property: The Private Endpoint Connection resource.
- *
+ * Get the privateEndpointConnections property: Private endpoints.
+ *
* @return the privateEndpointConnections value.
*/
- public PrivateEndpointConnectionInner privateEndpointConnections() {
+ public List privateEndpointConnections() {
return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsPropertiesInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureProperties.java
similarity index 63%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsPropertiesInner.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureProperties.java
index fdb8c06f4a29..06f70e120249 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsPropertiesInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureProperties.java
@@ -9,18 +9,21 @@
import com.azure.resourcemanager.agrifood.models.PublicNetworkAccess;
import com.azure.resourcemanager.agrifood.models.SensorIntegration;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
-/** FarmBeats ARM Resource properties. */
+/**
+ * Data Manager For Agriculture ARM Resource properties.
+ */
@Fluent
-public final class FarmBeatsPropertiesInner {
+public final class DataManagerForAgricultureProperties {
/*
- * Uri of the FarmBeats instance.
+ * Uri of the Data Manager For Agriculture instance.
*/
@JsonProperty(value = "instanceUri", access = JsonProperty.Access.WRITE_ONLY)
private String instanceUri;
/*
- * FarmBeats instance provisioning state.
+ * Data Manager For Agriculture instance provisioning state.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
@@ -32,20 +35,26 @@ public final class FarmBeatsPropertiesInner {
private SensorIntegration sensorIntegration;
/*
- * Property to allow or block public traffic for an Azure FarmBeats resource.
+ * Property to allow or block public traffic for an Azure Data Manager For Agriculture resource.
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * The Private Endpoint Connection resource.
+ * Private endpoints.
*/
@JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
- private PrivateEndpointConnectionInner privateEndpointConnections;
+ private List privateEndpointConnections;
/**
- * Get the instanceUri property: Uri of the FarmBeats instance.
- *
+ * Creates an instance of DataManagerForAgricultureProperties class.
+ */
+ public DataManagerForAgricultureProperties() {
+ }
+
+ /**
+ * Get the instanceUri property: Uri of the Data Manager For Agriculture instance.
+ *
* @return the instanceUri value.
*/
public String instanceUri() {
@@ -53,8 +62,8 @@ public String instanceUri() {
}
/**
- * Get the provisioningState property: FarmBeats instance provisioning state.
- *
+ * Get the provisioningState property: Data Manager For Agriculture instance provisioning state.
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -63,7 +72,7 @@ public ProvisioningState provisioningState() {
/**
* Get the sensorIntegration property: Sensor integration request model.
- *
+ *
* @return the sensorIntegration value.
*/
public SensorIntegration sensorIntegration() {
@@ -72,18 +81,19 @@ public SensorIntegration sensorIntegration() {
/**
* Set the sensorIntegration property: Sensor integration request model.
- *
+ *
* @param sensorIntegration the sensorIntegration value to set.
- * @return the FarmBeatsPropertiesInner object itself.
+ * @return the DataManagerForAgricultureProperties object itself.
*/
- public FarmBeatsPropertiesInner withSensorIntegration(SensorIntegration sensorIntegration) {
+ public DataManagerForAgricultureProperties withSensorIntegration(SensorIntegration sensorIntegration) {
this.sensorIntegration = sensorIntegration;
return this;
}
/**
- * Get the publicNetworkAccess property: Property to allow or block public traffic for an Azure FarmBeats resource.
- *
+ * Get the publicNetworkAccess property: Property to allow or block public traffic for an Azure Data Manager For
+ * Agriculture resource.
+ *
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
@@ -91,28 +101,29 @@ public PublicNetworkAccess publicNetworkAccess() {
}
/**
- * Set the publicNetworkAccess property: Property to allow or block public traffic for an Azure FarmBeats resource.
- *
+ * Set the publicNetworkAccess property: Property to allow or block public traffic for an Azure Data Manager For
+ * Agriculture resource.
+ *
* @param publicNetworkAccess the publicNetworkAccess value to set.
- * @return the FarmBeatsPropertiesInner object itself.
+ * @return the DataManagerForAgricultureProperties object itself.
*/
- public FarmBeatsPropertiesInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public DataManagerForAgricultureProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
/**
- * Get the privateEndpointConnections property: The Private Endpoint Connection resource.
- *
+ * Get the privateEndpointConnections property: Private endpoints.
+ *
* @return the privateEndpointConnections value.
*/
- public PrivateEndpointConnectionInner privateEndpointConnections() {
+ public List privateEndpointConnections() {
return this.privateEndpointConnections;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -120,7 +131,7 @@ public void validate() {
sensorIntegration().validate();
}
if (privateEndpointConnections() != null) {
- privateEndpointConnections().validate();
+ privateEndpointConnections().forEach(e -> e.validate());
}
}
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureSolutionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureSolutionInner.java
new file mode 100644
index 000000000000..780fe6170bf9
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/DataManagerForAgricultureSolutionInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureSolutionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * DataManagerForAgriculture solution resource.
+ */
+@Fluent
+public final class DataManagerForAgricultureSolutionInner extends ProxyResource {
+ /*
+ * DataManagerForAgricultureSolution properties.
+ */
+ @JsonProperty(value = "properties")
+ private DataManagerForAgricultureSolutionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of DataManagerForAgricultureSolutionInner class.
+ */
+ public DataManagerForAgricultureSolutionInner() {
+ }
+
+ /**
+ * Get the properties property: DataManagerForAgricultureSolution properties.
+ *
+ * @return the properties value.
+ */
+ public DataManagerForAgricultureSolutionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: DataManagerForAgricultureSolution properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DataManagerForAgricultureSolutionInner object itself.
+ */
+ public DataManagerForAgricultureSolutionInner
+ withProperties(DataManagerForAgricultureSolutionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionInner.java
index 9958f6107edb..dde75dd09044 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionInner.java
@@ -4,12 +4,17 @@
package com.azure.resourcemanager.agrifood.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.agrifood.models.ApiProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
-/** Extension resource. */
-@Fluent
+/**
+ * Extension resource.
+ */
+@Immutable
public final class ExtensionInner extends ProxyResource {
/*
* Extension resource properties.
@@ -23,9 +28,21 @@ public final class ExtensionInner extends ProxyResource {
@JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of ExtensionInner class.
+ */
+ public ExtensionInner() {
+ }
+
/**
* Get the innerProperties property: Extension resource properties.
- *
+ *
* @return the innerProperties value.
*/
private ExtensionProperties innerProperties() {
@@ -34,16 +51,25 @@ private ExtensionProperties innerProperties() {
/**
* Get the etag property: The ETag value to implement optimistic concurrency.
- *
+ *
* @return the etag value.
*/
public String etag() {
return this.etag;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the extensionId property: Extension Id.
- *
+ *
* @return the extensionId value.
*/
public String extensionId() {
@@ -52,7 +78,7 @@ public String extensionId() {
/**
* Get the extensionCategory property: Extension category. e.g. weather/sensor/satellite.
- *
+ *
* @return the extensionCategory value.
*/
public String extensionCategory() {
@@ -61,7 +87,7 @@ public String extensionCategory() {
/**
* Get the installedExtensionVersion property: Installed extension version.
- *
+ *
* @return the installedExtensionVersion value.
*/
public String installedExtensionVersion() {
@@ -70,7 +96,7 @@ public String installedExtensionVersion() {
/**
* Get the extensionAuthLink property: Extension auth link.
- *
+ *
* @return the extensionAuthLink value.
*/
public String extensionAuthLink() {
@@ -79,16 +105,25 @@ public String extensionAuthLink() {
/**
* Get the extensionApiDocsLink property: Extension api docs link.
- *
+ *
* @return the extensionApiDocsLink value.
*/
public String extensionApiDocsLink() {
return this.innerProperties() == null ? null : this.innerProperties().extensionApiDocsLink();
}
+ /**
+ * Get the additionalApiProperties property: Additional Api Properties.
+ *
+ * @return the additionalApiProperties value.
+ */
+ public Map additionalApiProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().additionalApiProperties();
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionProperties.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionProperties.java
index 69fcb9a327be..825f731b9a10 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionProperties.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/ExtensionProperties.java
@@ -5,9 +5,14 @@
package com.azure.resourcemanager.agrifood.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.agrifood.models.ApiProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
-/** Extension resource properties. */
+/**
+ * Extension resource properties.
+ */
@Immutable
public final class ExtensionProperties {
/*
@@ -40,9 +45,22 @@ public final class ExtensionProperties {
@JsonProperty(value = "extensionApiDocsLink", access = JsonProperty.Access.WRITE_ONLY)
private String extensionApiDocsLink;
+ /*
+ * Additional Api Properties.
+ */
+ @JsonProperty(value = "additionalApiProperties", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map additionalApiProperties;
+
+ /**
+ * Creates an instance of ExtensionProperties class.
+ */
+ public ExtensionProperties() {
+ }
+
/**
* Get the extensionId property: Extension Id.
- *
+ *
* @return the extensionId value.
*/
public String extensionId() {
@@ -51,7 +69,7 @@ public String extensionId() {
/**
* Get the extensionCategory property: Extension category. e.g. weather/sensor/satellite.
- *
+ *
* @return the extensionCategory value.
*/
public String extensionCategory() {
@@ -60,7 +78,7 @@ public String extensionCategory() {
/**
* Get the installedExtensionVersion property: Installed extension version.
- *
+ *
* @return the installedExtensionVersion value.
*/
public String installedExtensionVersion() {
@@ -69,7 +87,7 @@ public String installedExtensionVersion() {
/**
* Get the extensionAuthLink property: Extension auth link.
- *
+ *
* @return the extensionAuthLink value.
*/
public String extensionAuthLink() {
@@ -78,18 +96,34 @@ public String extensionAuthLink() {
/**
* Get the extensionApiDocsLink property: Extension api docs link.
- *
+ *
* @return the extensionApiDocsLink value.
*/
public String extensionApiDocsLink() {
return this.extensionApiDocsLink;
}
+ /**
+ * Get the additionalApiProperties property: Additional Api Properties.
+ *
+ * @return the additionalApiProperties value.
+ */
+ public Map additionalApiProperties() {
+ return this.additionalApiProperties;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (additionalApiProperties() != null) {
+ additionalApiProperties().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsExtensionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsExtensionInner.java
deleted file mode 100644
index 1a6b25cf16f8..000000000000
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/FarmBeatsExtensionInner.java
+++ /dev/null
@@ -1,149 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.agrifood.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.agrifood.models.DetailedInformation;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** FarmBeats extension resource. */
-@Fluent
-public final class FarmBeatsExtensionInner extends ProxyResource {
- /*
- * FarmBeatsExtension properties.
- */
- @JsonProperty(value = "properties")
- private FarmBeatsExtensionProperties innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Get the innerProperties property: FarmBeatsExtension properties.
- *
- * @return the innerProperties value.
- */
- private FarmBeatsExtensionProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the targetResourceType property: Target ResourceType of the farmBeatsExtension.
- *
- * @return the targetResourceType value.
- */
- public String targetResourceType() {
- return this.innerProperties() == null ? null : this.innerProperties().targetResourceType();
- }
-
- /**
- * Get the farmBeatsExtensionId property: FarmBeatsExtension ID.
- *
- * @return the farmBeatsExtensionId value.
- */
- public String farmBeatsExtensionId() {
- return this.innerProperties() == null ? null : this.innerProperties().farmBeatsExtensionId();
- }
-
- /**
- * Get the farmBeatsExtensionName property: FarmBeatsExtension name.
- *
- * @return the farmBeatsExtensionName value.
- */
- public String farmBeatsExtensionName() {
- return this.innerProperties() == null ? null : this.innerProperties().farmBeatsExtensionName();
- }
-
- /**
- * Get the farmBeatsExtensionVersion property: FarmBeatsExtension version.
- *
- * @return the farmBeatsExtensionVersion value.
- */
- public String farmBeatsExtensionVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().farmBeatsExtensionVersion();
- }
-
- /**
- * Get the publisherId property: Publisher ID.
- *
- * @return the publisherId value.
- */
- public String publisherId() {
- return this.innerProperties() == null ? null : this.innerProperties().publisherId();
- }
-
- /**
- * Get the description property: Textual description.
- *
- * @return the description value.
- */
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
- }
-
- /**
- * Get the extensionCategory property: Category of the extension. e.g. weather/sensor/satellite.
- *
- * @return the extensionCategory value.
- */
- public String extensionCategory() {
- return this.innerProperties() == null ? null : this.innerProperties().extensionCategory();
- }
-
- /**
- * Get the extensionAuthLink property: FarmBeatsExtension auth link.
- *
- * @return the extensionAuthLink value.
- */
- public String extensionAuthLink() {
- return this.innerProperties() == null ? null : this.innerProperties().extensionAuthLink();
- }
-
- /**
- * Get the extensionApiDocsLink property: FarmBeatsExtension api docs link.
- *
- * @return the extensionApiDocsLink value.
- */
- public String extensionApiDocsLink() {
- return this.innerProperties() == null ? null : this.innerProperties().extensionApiDocsLink();
- }
-
- /**
- * Get the detailedInformation property: Detailed information which shows summary of requested data. Used in
- * descriptive get extension metadata call. Information for weather category per api included are apisSupported,
- * customParameters, PlatformParameters and Units supported.
- *
- * @return the detailedInformation value.
- */
- public List detailedInformation() {
- return this.innerProperties() == null ? null : this.innerProperties().detailedInformation();
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/OperationInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/OperationInner.java
index 2383ed94899a..fa487b880e96 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/OperationInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/OperationInner.java
@@ -12,21 +12,19 @@
/**
* REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Fluent
public final class OperationInner {
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
- * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -38,8 +36,7 @@ public final class OperationInner {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
- * value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
@@ -50,10 +47,16 @@ public final class OperationInner {
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ public OperationInner() {
+ }
+
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -63,7 +66,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -72,7 +75,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -81,7 +84,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -93,7 +96,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -103,7 +106,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -112,7 +115,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionInner.java
index 17660c73003e..f272304a401d 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionInner.java
@@ -11,8 +11,11 @@
import com.azure.resourcemanager.agrifood.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.agrifood.models.PrivateLinkServiceConnectionState;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
-/** The Private Endpoint Connection resource. */
+/**
+ * The private endpoint connection resource.
+ */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
@@ -27,9 +30,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /**
+ * Creates an instance of PrivateEndpointConnectionInner class.
+ */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the innerProperties property: Resource properties.
- *
+ *
* @return the innerProperties value.
*/
private PrivateEndpointConnectionProperties innerProperties() {
@@ -38,7 +47,7 @@ private PrivateEndpointConnectionProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -46,8 +55,17 @@ public SystemData systemData() {
}
/**
- * Get the privateEndpoint property: The resource of private end point.
- *
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -55,8 +73,8 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The resource of private end point.
- *
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
@@ -71,7 +89,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
/**
* Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -81,12 +99,12 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
/**
* Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionInner
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
@@ -96,7 +114,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
+ *
* @return the provisioningState value.
*/
public PrivateEndpointConnectionProvisioningState provisioningState() {
@@ -105,7 +123,7 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionListResultInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionListResultInner.java
new file mode 100644
index 000000000000..974d63a021c9
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionListResultInner.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * List of private endpoint connections associated with the specified resource.
+ */
+@Fluent
+public final class PrivateEndpointConnectionListResultInner {
+ /*
+ * Array of private endpoint connections.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionListResultInner class.
+ */
+ public PrivateEndpointConnectionListResultInner() {
+ }
+
+ /**
+ * Get the value property: Array of private endpoint connections.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private endpoint connections.
+ *
+ * @param value the value value to set.
+ * @return the PrivateEndpointConnectionListResultInner object itself.
+ */
+ public PrivateEndpointConnectionListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionProperties.java
index abb5495d8753..803a3113f42c 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateEndpointConnectionProperties.java
@@ -10,12 +10,21 @@
import com.azure.resourcemanager.agrifood.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.agrifood.models.PrivateLinkServiceConnectionState;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
-/** Properties of the PrivateEndpointConnectProperties. */
+/**
+ * Properties of the private endpoint connection.
+ */
@Fluent
public final class PrivateEndpointConnectionProperties {
/*
- * The resource of private end point.
+ * The group ids for the private endpoint resource.
+ */
+ @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List groupIds;
+
+ /*
+ * The private endpoint resource.
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;
@@ -33,8 +42,23 @@ public final class PrivateEndpointConnectionProperties {
private PrivateEndpointConnectionProvisioningState provisioningState;
/**
- * Get the privateEndpoint property: The resource of private end point.
- *
+ * Creates an instance of PrivateEndpointConnectionProperties class.
+ */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -42,8 +66,8 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The resource of private end point.
- *
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
@@ -55,7 +79,7 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p
/**
* Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -65,19 +89,19 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
/**
* Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
- public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionProperties
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
+ *
* @return the provisioningState value.
*/
public PrivateEndpointConnectionProvisioningState provisioningState() {
@@ -86,7 +110,7 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -94,11 +118,9 @@ public void validate() {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model"
- + " PrivateEndpointConnectionProperties"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
} else {
privateLinkServiceConnectionState().validate();
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceInner.java
index 78e2775fe9bd..7713f66f1e0f 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceInner.java
@@ -10,7 +10,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** A private link resource. */
+/**
+ * A private link resource.
+ */
@Fluent
public final class PrivateLinkResourceInner extends ProxyResource {
/*
@@ -25,9 +27,15 @@ public final class PrivateLinkResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
+ public PrivateLinkResourceInner() {
+ }
+
/**
* Get the innerProperties property: Resource properties.
- *
+ *
* @return the innerProperties value.
*/
private PrivateLinkResourceProperties innerProperties() {
@@ -36,7 +44,7 @@ private PrivateLinkResourceProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -45,7 +53,7 @@ public SystemData systemData() {
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -54,7 +62,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -62,8 +70,8 @@ public List requiredMembers() {
}
/**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -71,8 +79,8 @@ public List requiredZoneNames() {
}
/**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
* @param requiredZoneNames the requiredZoneNames value to set.
* @return the PrivateLinkResourceInner object itself.
*/
@@ -86,7 +94,7 @@ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneN
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceListResultInner.java
new file mode 100644
index 000000000000..c7bb9e948ccf
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceListResultInner.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * A list of private link resources.
+ */
+@Fluent
+public final class PrivateLinkResourceListResultInner {
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Creates an instance of PrivateLinkResourceListResultInner class.
+ */
+ public PrivateLinkResourceListResultInner() {
+ }
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResultInner object itself.
+ */
+ public PrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceProperties.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceProperties.java
index 471b216902dd..62aad8ceecac 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/PrivateLinkResourceProperties.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Properties of a private link resource. */
+/**
+ * Properties of a private link resource.
+ */
@Fluent
public final class PrivateLinkResourceProperties {
/*
@@ -24,14 +26,20 @@ public final class PrivateLinkResourceProperties {
private List requiredMembers;
/*
- * The private link resource Private link DNS zone name.
+ * The private link resource private link DNS zone name.
*/
@JsonProperty(value = "requiredZoneNames")
private List requiredZoneNames;
+ /**
+ * Creates an instance of PrivateLinkResourceProperties class.
+ */
+ public PrivateLinkResourceProperties() {
+ }
+
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -40,7 +48,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -48,8 +56,8 @@ public List requiredMembers() {
}
/**
- * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -57,8 +65,8 @@ public List requiredZoneNames() {
}
/**
- * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
- *
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
* @param requiredZoneNames the requiredZoneNames value to set.
* @return the PrivateLinkResourceProperties object itself.
*/
@@ -69,7 +77,7 @@ public PrivateLinkResourceProperties withRequiredZoneNames(List required
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/SolutionInner.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/SolutionInner.java
new file mode 100644
index 000000000000..ada5f3bdb592
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/SolutionInner.java
@@ -0,0 +1,90 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.agrifood.models.SolutionProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Solution resource.
+ */
+@Fluent
+public final class SolutionInner extends ProxyResource {
+ /*
+ * Solution resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private SolutionProperties properties;
+
+ /*
+ * The ETag value to implement optimistic concurrency.
+ */
+ @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of SolutionInner class.
+ */
+ public SolutionInner() {
+ }
+
+ /**
+ * Get the properties property: Solution resource properties.
+ *
+ * @return the properties value.
+ */
+ public SolutionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Solution resource properties.
+ *
+ * @param properties the properties value to set.
+ * @return the SolutionInner object itself.
+ */
+ public SolutionInner withProperties(SolutionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the etag property: The ETag value to implement optimistic concurrency.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/package-info.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/package-info.java
index 9506d1012900..3e7df8ab030b 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/package-info.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for AgriFoodManagementClient. APIs documentation for Azure AgFoodPlatform
- * Resource Provider Service.
+ * Package containing the inner data models for AgriFoodManagementClient.
+ * APIs documentation for Microsoft Azure Data Manager for Agriculture Service.
*/
package com.azure.resourcemanager.agrifood.fluent.models;
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/package-info.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/package-info.java
index 0bc3fb4306b3..1a4041bcaebb 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/package-info.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for AgriFoodManagementClient. APIs documentation for Azure AgFoodPlatform
- * Resource Provider Service.
+ * Package containing the service clients for AgriFoodManagementClient.
+ * APIs documentation for Microsoft Azure Data Manager for Agriculture Service.
*/
package com.azure.resourcemanager.agrifood.fluent;
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientBuilder.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientBuilder.java
index 5588d38232fd..068ff9c69e95 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientBuilder.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientBuilder.java
@@ -14,17 +14,19 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AgriFoodManagementClientImpl type. */
-@ServiceClientBuilder(serviceClients = {AgriFoodManagementClientImpl.class})
+/**
+ * A builder for creating a new instance of the AgriFoodManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { AgriFoodManagementClientImpl.class })
public final class AgriFoodManagementClientBuilder {
/*
- * The ID of the target subscription.
+ * The ID of the target subscription. The value must be an UUID.
*/
private String subscriptionId;
/**
- * Sets The ID of the target subscription.
- *
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
* @param subscriptionId the subscriptionId value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -40,7 +42,7 @@ public AgriFoodManagementClientBuilder subscriptionId(String subscriptionId) {
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -56,7 +58,7 @@ public AgriFoodManagementClientBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -72,7 +74,7 @@ public AgriFoodManagementClientBuilder environment(AzureEnvironment environment)
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -88,7 +90,7 @@ public AgriFoodManagementClientBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -104,7 +106,7 @@ public AgriFoodManagementClientBuilder defaultPollInterval(Duration defaultPollI
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the AgriFoodManagementClientBuilder.
*/
@@ -115,30 +117,22 @@ public AgriFoodManagementClientBuilder serializerAdapter(SerializerAdapter seria
/**
* Builds an instance of AgriFoodManagementClientImpl with the provided parameters.
- *
+ *
* @return an instance of AgriFoodManagementClientImpl.
*/
public AgriFoodManagementClientImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
- HttpPipeline localPipeline =
- (pipeline != null)
- ? pipeline
- : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- Duration localDefaultPollInterval =
- (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
- SerializerAdapter localSerializerAdapter =
- (serializerAdapter != null)
- ? serializerAdapter
- : SerializerFactory.createDefaultManagementSerializerAdapter();
- AgriFoodManagementClientImpl client =
- new AgriFoodManagementClientImpl(
- localPipeline,
- localSerializerAdapter,
- localDefaultPollInterval,
- localEnvironment,
- subscriptionId,
- localEndpoint);
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ AgriFoodManagementClientImpl client = new AgriFoodManagementClientImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientImpl.java
index f88545b443c4..44238fe71c60 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientImpl.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/AgriFoodManagementClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.agrifood.implementation;
import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
@@ -12,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -23,13 +24,17 @@
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.agrifood.fluent.AgriFoodManagementClient;
+import com.azure.resourcemanager.agrifood.fluent.CheckNameAvailabilitiesClient;
+import com.azure.resourcemanager.agrifood.fluent.DataConnectorsClient;
+import com.azure.resourcemanager.agrifood.fluent.DataManagerForAgricultureExtensionsClient;
+import com.azure.resourcemanager.agrifood.fluent.DataManagerForAgricultureResourcesClient;
import com.azure.resourcemanager.agrifood.fluent.ExtensionsClient;
-import com.azure.resourcemanager.agrifood.fluent.FarmBeatsExtensionsClient;
-import com.azure.resourcemanager.agrifood.fluent.FarmBeatsModelsClient;
-import com.azure.resourcemanager.agrifood.fluent.LocationsClient;
+import com.azure.resourcemanager.agrifood.fluent.OperationResultsClient;
import com.azure.resourcemanager.agrifood.fluent.OperationsClient;
import com.azure.resourcemanager.agrifood.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.agrifood.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.agrifood.fluent.SolutionsClient;
+import com.azure.resourcemanager.agrifood.fluent.SolutionsDiscoverabilitiesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -39,200 +44,283 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the AgriFoodManagementClientImpl type. */
+/**
+ * Initializes a new instance of the AgriFoodManagementClientImpl type.
+ */
@ServiceClient(builder = AgriFoodManagementClientBuilder.class)
public final class AgriFoodManagementClientImpl implements AgriFoodManagementClient {
- /** The ID of the target subscription. */
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
private final String subscriptionId;
/**
- * Gets The ID of the target subscription.
- *
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
- /** server parameter. */
+ /**
+ * server parameter.
+ */
private final String endpoint;
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
+ /**
+ * Api Version.
+ */
private final String apiVersion;
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * The HTTP pipeline to send requests through.
+ */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
- /** The serializer to serialize an object into a string. */
+ /**
+ * The serializer to serialize an object into a string.
+ */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
- *
+ *
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
- /** The default poll interval for long-running operation. */
+ /**
+ * The default poll interval for long-running operation.
+ */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The ExtensionsClient object to access its operations. */
- private final ExtensionsClient extensions;
+ /**
+ * The CheckNameAvailabilitiesClient object to access its operations.
+ */
+ private final CheckNameAvailabilitiesClient checkNameAvailabilities;
/**
- * Gets the ExtensionsClient object to access its operations.
- *
- * @return the ExtensionsClient object.
+ * Gets the CheckNameAvailabilitiesClient object to access its operations.
+ *
+ * @return the CheckNameAvailabilitiesClient object.
*/
- public ExtensionsClient getExtensions() {
- return this.extensions;
+ public CheckNameAvailabilitiesClient getCheckNameAvailabilities() {
+ return this.checkNameAvailabilities;
+ }
+
+ /**
+ * The DataConnectorsClient object to access its operations.
+ */
+ private final DataConnectorsClient dataConnectors;
+
+ /**
+ * Gets the DataConnectorsClient object to access its operations.
+ *
+ * @return the DataConnectorsClient object.
+ */
+ public DataConnectorsClient getDataConnectors() {
+ return this.dataConnectors;
+ }
+
+ /**
+ * The DataManagerForAgricultureExtensionsClient object to access its operations.
+ */
+ private final DataManagerForAgricultureExtensionsClient dataManagerForAgricultureExtensions;
+
+ /**
+ * Gets the DataManagerForAgricultureExtensionsClient object to access its operations.
+ *
+ * @return the DataManagerForAgricultureExtensionsClient object.
+ */
+ public DataManagerForAgricultureExtensionsClient getDataManagerForAgricultureExtensions() {
+ return this.dataManagerForAgricultureExtensions;
}
- /** The FarmBeatsExtensionsClient object to access its operations. */
- private final FarmBeatsExtensionsClient farmBeatsExtensions;
+ /**
+ * The DataManagerForAgricultureResourcesClient object to access its operations.
+ */
+ private final DataManagerForAgricultureResourcesClient dataManagerForAgricultureResources;
/**
- * Gets the FarmBeatsExtensionsClient object to access its operations.
- *
- * @return the FarmBeatsExtensionsClient object.
+ * Gets the DataManagerForAgricultureResourcesClient object to access its operations.
+ *
+ * @return the DataManagerForAgricultureResourcesClient object.
*/
- public FarmBeatsExtensionsClient getFarmBeatsExtensions() {
- return this.farmBeatsExtensions;
+ public DataManagerForAgricultureResourcesClient getDataManagerForAgricultureResources() {
+ return this.dataManagerForAgricultureResources;
}
- /** The FarmBeatsModelsClient object to access its operations. */
- private final FarmBeatsModelsClient farmBeatsModels;
+ /**
+ * The OperationResultsClient object to access its operations.
+ */
+ private final OperationResultsClient operationResults;
/**
- * Gets the FarmBeatsModelsClient object to access its operations.
- *
- * @return the FarmBeatsModelsClient object.
+ * Gets the OperationResultsClient object to access its operations.
+ *
+ * @return the OperationResultsClient object.
*/
- public FarmBeatsModelsClient getFarmBeatsModels() {
- return this.farmBeatsModels;
+ public OperationResultsClient getOperationResults() {
+ return this.operationResults;
}
- /** The LocationsClient object to access its operations. */
- private final LocationsClient locations;
+ /**
+ * The ExtensionsClient object to access its operations.
+ */
+ private final ExtensionsClient extensions;
/**
- * Gets the LocationsClient object to access its operations.
- *
- * @return the LocationsClient object.
+ * Gets the ExtensionsClient object to access its operations.
+ *
+ * @return the ExtensionsClient object.
*/
- public LocationsClient getLocations() {
- return this.locations;
+ public ExtensionsClient getExtensions() {
+ return this.extensions;
}
- /** The OperationsClient object to access its operations. */
+ /**
+ * The OperationsClient object to access its operations.
+ */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
- /** The PrivateEndpointConnectionsClient object to access its operations. */
+ /**
+ * The PrivateEndpointConnectionsClient object to access its operations.
+ */
private final PrivateEndpointConnectionsClient privateEndpointConnections;
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
return this.privateEndpointConnections;
}
- /** The PrivateLinkResourcesClient object to access its operations. */
+ /**
+ * The PrivateLinkResourcesClient object to access its operations.
+ */
private final PrivateLinkResourcesClient privateLinkResources;
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
+ /**
+ * The SolutionsClient object to access its operations.
+ */
+ private final SolutionsClient solutions;
+
+ /**
+ * Gets the SolutionsClient object to access its operations.
+ *
+ * @return the SolutionsClient object.
+ */
+ public SolutionsClient getSolutions() {
+ return this.solutions;
+ }
+
+ /**
+ * The SolutionsDiscoverabilitiesClient object to access its operations.
+ */
+ private final SolutionsDiscoverabilitiesClient solutionsDiscoverabilities;
+
+ /**
+ * Gets the SolutionsDiscoverabilitiesClient object to access its operations.
+ *
+ * @return the SolutionsDiscoverabilitiesClient object.
+ */
+ public SolutionsDiscoverabilitiesClient getSolutionsDiscoverabilities() {
+ return this.solutionsDiscoverabilities;
+ }
+
/**
* Initializes an instance of AgriFoodManagementClient client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param subscriptionId The ID of the target subscription.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
* @param endpoint server parameter.
*/
- AgriFoodManagementClientImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- Duration defaultPollInterval,
- AzureEnvironment environment,
- String subscriptionId,
- String endpoint) {
+ AgriFoodManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-09-01-preview";
+ this.apiVersion = "2023-06-01-preview";
+ this.checkNameAvailabilities = new CheckNameAvailabilitiesClientImpl(this);
+ this.dataConnectors = new DataConnectorsClientImpl(this);
+ this.dataManagerForAgricultureExtensions = new DataManagerForAgricultureExtensionsClientImpl(this);
+ this.dataManagerForAgricultureResources = new DataManagerForAgricultureResourcesClientImpl(this);
+ this.operationResults = new OperationResultsClientImpl(this);
this.extensions = new ExtensionsClientImpl(this);
- this.farmBeatsExtensions = new FarmBeatsExtensionsClientImpl(this);
- this.farmBeatsModels = new FarmBeatsModelsClientImpl(this);
- this.locations = new LocationsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
+ this.solutions = new SolutionsClientImpl(this);
+ this.solutionsDiscoverabilities = new SolutionsDiscoverabilitiesClientImpl(this);
}
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -241,7 +329,7 @@ public Context getContext() {
/**
* Merges default client context with provided context.
- *
+ *
* @param context the context to be merged with default client context.
* @return the merged context.
*/
@@ -251,7 +339,7 @@ public Context mergeContext(Context context) {
/**
* Gets long running operation result.
- *
+ *
* @param activationResponse the response of activation operation.
* @param httpPipeline the http pipeline.
* @param pollResultType type of poll result.
@@ -261,26 +349,15 @@ public Context mergeContext(Context context) {
* @param type of final result.
* @return poller flux for poll result and final result.
*/
- public PollerFlux, U> getLroResult(
- Mono>> activationResponse,
- HttpPipeline httpPipeline,
- Type pollResultType,
- Type finalResultType,
- Context context) {
- return PollerFactory
- .create(
- serializerAdapter,
- httpPipeline,
- pollResultType,
- finalResultType,
- defaultPollInterval,
- activationResponse,
- context);
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
}
/**
* Gets the final result, or an error, based on last async poll response.
- *
+ *
* @param response the last async poll response.
* @param type of poll result.
* @param type of final result.
@@ -293,19 +370,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
HttpResponse errorResponse = null;
PollResult.Error lroError = response.getValue().getError();
if (lroError != null) {
- errorResponse =
- new HttpResponseImpl(
- lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
errorMessage = response.getValue().getError().getMessage();
String errorBody = response.getValue().getError().getResponseBody();
if (errorBody != null) {
// try to deserialize error body to ManagementError
try {
- managementError =
- this
- .getSerializerAdapter()
- .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
@@ -346,7 +420,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/ArmAsyncOperationImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/ArmAsyncOperationImpl.java
index 134b29e92947..3969140cc40d 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/ArmAsyncOperationImpl.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/ArmAsyncOperationImpl.java
@@ -6,14 +6,15 @@
import com.azure.resourcemanager.agrifood.fluent.models.ArmAsyncOperationInner;
import com.azure.resourcemanager.agrifood.models.ArmAsyncOperation;
+import com.azure.resourcemanager.agrifood.models.ArmAsyncOperationError;
public final class ArmAsyncOperationImpl implements ArmAsyncOperation {
private ArmAsyncOperationInner innerObject;
private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
- ArmAsyncOperationImpl(
- ArmAsyncOperationInner innerObject, com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ ArmAsyncOperationImpl(ArmAsyncOperationInner innerObject,
+ com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -22,6 +23,10 @@ public String status() {
return this.innerModel().status();
}
+ public ArmAsyncOperationError error() {
+ return this.innerModel().error();
+ }
+
public ArmAsyncOperationInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsClientImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesClientImpl.java
similarity index 54%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsClientImpl.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesClientImpl.java
index f4e64389a921..08aea2c8751e 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsClientImpl.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesClientImpl.java
@@ -22,98 +22,90 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.resourcemanager.agrifood.fluent.LocationsClient;
+import com.azure.resourcemanager.agrifood.fluent.CheckNameAvailabilitiesClient;
import com.azure.resourcemanager.agrifood.fluent.models.CheckNameAvailabilityResponseInner;
import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilityRequest;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in LocationsClient. */
-public final class LocationsClientImpl implements LocationsClient {
- /** The proxy service used to perform REST calls. */
- private final LocationsService service;
+/**
+ * An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient.
+ */
+public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailabilitiesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final CheckNameAvailabilitiesService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AgriFoodManagementClientImpl client;
/**
- * Initializes an instance of LocationsClientImpl.
- *
+ * Initializes an instance of CheckNameAvailabilitiesClientImpl.
+ *
* @param client the instance of the service client containing this operation class.
*/
- LocationsClientImpl(AgriFoodManagementClientImpl client) {
- this.service =
- RestProxy.create(LocationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ CheckNameAvailabilitiesClientImpl(AgriFoodManagementClientImpl client) {
+ this.service = RestProxy.create(CheckNameAvailabilitiesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AgriFoodManagementClientLocations to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for AgriFoodManagementClientCheckNameAvailabilities to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AgriFoodManagementCl")
- private interface LocationsService {
- @Headers({"Content-Type: application/json"})
+ public interface CheckNameAvailabilitiesService {
+ @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> checkNameAvailability(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") CheckNameAvailabilityRequest body,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> checkNameAvailability(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") CheckNameAvailabilityRequest nameAvailabilityRequest,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the check availability result along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> checkNameAvailabilityWithResponseAsync(
- CheckNameAvailabilityRequest body) {
+ private Mono>
+ checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest nameAvailabilityRequest) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ if (nameAvailabilityRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
} else {
- body.validate();
+ nameAvailabilityRequest.validate();
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .checkNameAvailability(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- body,
- accept,
- context))
+ .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), this.client.getApiVersion(), nameAvailabilityRequest, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -121,78 +113,72 @@ private Mono> checkNameAvailability
* @return the check availability result along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> checkNameAvailabilityWithResponseAsync(
- CheckNameAvailabilityRequest body, Context context) {
+ private Mono>
+ checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest nameAvailabilityRequest, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- if (body == null) {
- return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ if (nameAvailabilityRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter nameAvailabilityRequest is required and cannot be null."));
} else {
- body.validate();
+ nameAvailabilityRequest.validate();
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .checkNameAvailability(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- body,
- accept,
- context);
+ return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), nameAvailabilityRequest, accept, context);
}
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the check availability result on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono checkNameAvailabilityAsync(CheckNameAvailabilityRequest body) {
- return checkNameAvailabilityWithResponseAsync(body).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono
+ checkNameAvailabilityAsync(CheckNameAvailabilityRequest nameAvailabilityRequest) {
+ return checkNameAvailabilityWithResponseAsync(nameAvailabilityRequest)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the check availability result.
+ * @return the check availability result along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest body) {
- return checkNameAvailabilityAsync(body).block();
+ public Response
+ checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest nameAvailabilityRequest, Context context) {
+ return checkNameAvailabilityWithResponseAsync(nameAvailabilityRequest, context).block();
}
/**
* Checks the name availability of the resource with requested resource name.
- *
- * @param body NameAvailabilityRequest object.
- * @param context The context to associate with this operation.
+ *
+ * @param nameAvailabilityRequest NameAvailabilityRequest object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the check availability result along with {@link Response}.
+ * @return the check availability result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityRequest body, Context context) {
- return checkNameAvailabilityWithResponseAsync(body, context).block();
+ public CheckNameAvailabilityResponseInner
+ checkNameAvailability(CheckNameAvailabilityRequest nameAvailabilityRequest) {
+ return checkNameAvailabilityWithResponse(nameAvailabilityRequest, Context.NONE).getValue();
}
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesImpl.java
similarity index 58%
rename from sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsImpl.java
rename to sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesImpl.java
index 938d5ee985c1..c6ddb791ad21 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/LocationsImpl.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilitiesImpl.java
@@ -8,50 +8,47 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.agrifood.fluent.LocationsClient;
+import com.azure.resourcemanager.agrifood.fluent.CheckNameAvailabilitiesClient;
import com.azure.resourcemanager.agrifood.fluent.models.CheckNameAvailabilityResponseInner;
+import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilities;
import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilityRequest;
import com.azure.resourcemanager.agrifood.models.CheckNameAvailabilityResponse;
-import com.azure.resourcemanager.agrifood.models.Locations;
-public final class LocationsImpl implements Locations {
- private static final ClientLogger LOGGER = new ClientLogger(LocationsImpl.class);
+public final class CheckNameAvailabilitiesImpl implements CheckNameAvailabilities {
+ private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilitiesImpl.class);
- private final LocationsClient innerClient;
+ private final CheckNameAvailabilitiesClient innerClient;
private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
- public LocationsImpl(
- LocationsClient innerClient, com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ public CheckNameAvailabilitiesImpl(CheckNameAvailabilitiesClient innerClient,
+ com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
- public CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest body) {
- CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(body);
+ public Response
+ checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest nameAvailabilityRequest, Context context) {
+ Response inner
+ = this.serviceClient().checkNameAvailabilityWithResponse(nameAvailabilityRequest, context);
if (inner != null) {
- return new CheckNameAvailabilityResponseImpl(inner, this.manager());
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
- public Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityRequest body, Context context) {
- Response inner =
- this.serviceClient().checkNameAvailabilityWithResponse(body, context);
+ public CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailabilityRequest nameAvailabilityRequest) {
+ CheckNameAvailabilityResponseInner inner = this.serviceClient().checkNameAvailability(nameAvailabilityRequest);
if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager()));
+ return new CheckNameAvailabilityResponseImpl(inner, this.manager());
} else {
return null;
}
}
- private LocationsClient serviceClient() {
+ private CheckNameAvailabilitiesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilityResponseImpl.java
index 70c9391fa650..d7bdedc7dd04 100644
--- a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilityResponseImpl.java
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/CheckNameAvailabilityResponseImpl.java
@@ -13,8 +13,7 @@ public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailab
private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
- CheckNameAvailabilityResponseImpl(
- CheckNameAvailabilityResponseInner innerObject,
+ CheckNameAvailabilityResponseImpl(CheckNameAvailabilityResponseInner innerObject,
com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorImpl.java
new file mode 100644
index 000000000000..8241501c1528
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorImpl.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.agrifood.fluent.models.DataConnectorInner;
+import com.azure.resourcemanager.agrifood.models.DataConnector;
+import com.azure.resourcemanager.agrifood.models.DataConnectorProperties;
+
+public final class DataConnectorImpl implements DataConnector, DataConnector.Definition, DataConnector.Update {
+ private DataConnectorInner innerObject;
+
+ private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DataConnectorProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public DataConnectorInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.agrifood.AgriFoodManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String dataManagerForAgricultureResourceName;
+
+ private String dataConnectorName;
+
+ public DataConnectorImpl withExistingFarmBeat(String resourceGroupName,
+ String dataManagerForAgricultureResourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.dataManagerForAgricultureResourceName = dataManagerForAgricultureResourceName;
+ return this;
+ }
+
+ public DataConnector create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .createOrUpdateWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DataConnector create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .createOrUpdateWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ DataConnectorImpl(String name, com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ this.innerObject = new DataConnectorInner();
+ this.serviceManager = serviceManager;
+ this.dataConnectorName = name;
+ }
+
+ public DataConnectorImpl update() {
+ return this;
+ }
+
+ public DataConnector apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .createOrUpdateWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DataConnector apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .createOrUpdateWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ DataConnectorImpl(DataConnectorInner innerObject,
+ com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.dataManagerForAgricultureResourceName
+ = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "farmBeats");
+ this.dataConnectorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dataConnectors");
+ }
+
+ public DataConnector refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DataConnector refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getDataConnectors()
+ .getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, context)
+ .getValue();
+ return this;
+ }
+
+ public DataConnectorImpl withProperties(DataConnectorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsClientImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsClientImpl.java
new file mode 100644
index 000000000000..411a505d9d70
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsClientImpl.java
@@ -0,0 +1,808 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.agrifood.fluent.DataConnectorsClient;
+import com.azure.resourcemanager.agrifood.fluent.models.DataConnectorInner;
+import com.azure.resourcemanager.agrifood.models.DataConnectorListResponse;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in DataConnectorsClient.
+ */
+public final class DataConnectorsClientImpl implements DataConnectorsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DataConnectorsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final AgriFoodManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DataConnectorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DataConnectorsClientImpl(AgriFoodManagementClientImpl client) {
+ this.service
+ = RestProxy.create(DataConnectorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AgriFoodManagementClientDataConnectors to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AgriFoodManagementCl")
+ public interface DataConnectorsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("dataManagerForAgricultureResourceName") String dataManagerForAgricultureResourceName,
+ @PathParam("dataConnectorName") String dataConnectorName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("dataManagerForAgricultureResourceName") String dataManagerForAgricultureResourceName,
+ @PathParam("dataConnectorName") String dataConnectorName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DataConnectorInner body, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors/{dataConnectorName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 400 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("dataManagerForAgricultureResourceName") String dataManagerForAgricultureResourceName,
+ @PathParam("dataConnectorName") String dataConnectorName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{dataManagerForAgricultureResourceName}/dataConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dataManagerForAgricultureResourceName") String dataManagerForAgricultureResourceName,
+ @QueryParam("api-version") String apiVersion, @QueryParam("$maxPageSize") Integer maxPageSize,
+ @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName,
+ this.client.getSubscriptionId(), dataManagerForAgricultureResourceName, dataConnectorName,
+ this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), resourceGroupName, this.client.getSubscriptionId(),
+ dataManagerForAgricultureResourceName, dataConnectorName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ return getWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, Context context) {
+ return getWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ context).block();
+ }
+
+ /**
+ * Get specific Data Connector resource by DataConnectorName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specific Data Connector resource by DataConnectorName.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataConnectorInner get(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ return getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, DataConnectorInner body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName,
+ this.client.getSubscriptionId(), dataManagerForAgricultureResourceName, dataConnectorName,
+ this.client.getApiVersion(), body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, DataConnectorInner body,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, this.client.getSubscriptionId(),
+ dataManagerForAgricultureResourceName, dataConnectorName, this.client.getApiVersion(), body, accept,
+ context);
+ }
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, DataConnectorInner body) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName,
+ dataConnectorName, body).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createOrUpdateWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, DataConnectorInner body,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName,
+ dataConnectorName, body, context).block();
+ }
+
+ /**
+ * Create or update Data Connector For MADMA resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param body Body must be valid DataConnector request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return dataConnector Model.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DataConnectorInner createOrUpdate(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, DataConnectorInner body) {
+ return createOrUpdateWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ body, Context.NONE).getValue();
+ }
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server on status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName,
+ this.client.getSubscriptionId(), dataManagerForAgricultureResourceName, dataConnectorName,
+ this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server on status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ if (dataConnectorName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter dataConnectorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), resourceGroupName, this.client.getSubscriptionId(),
+ dataManagerForAgricultureResourceName, dataConnectorName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server on status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ return deleteWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server on status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ context).block();
+ }
+
+ /**
+ * Delete a Data Connectors with given dataConnector name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param dataConnectorName Connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server on status code 400.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ deleteWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, Context.NONE);
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results along
+ * with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Integer maxPageSize, String skipToken) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, dataManagerForAgricultureResourceName, this.client.getApiVersion(), maxPageSize,
+ skipToken, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results along
+ * with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Integer maxPageSize, String skipToken, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (dataManagerForAgricultureResourceName == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter dataManagerForAgricultureResourceName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ dataManagerForAgricultureResourceName, this.client.getApiVersion(), maxPageSize, skipToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Integer maxPageSize, String skipToken) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, dataManagerForAgricultureResourceName, maxPageSize, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName) {
+ final Integer maxPageSize = null;
+ final String skipToken = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, dataManagerForAgricultureResourceName, maxPageSize, skipToken),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Integer maxPageSize, String skipToken, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, dataManagerForAgricultureResourceName,
+ maxPageSize, skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName,
+ String dataManagerForAgricultureResourceName) {
+ final Integer maxPageSize = null;
+ final String skipToken = null;
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, dataManagerForAgricultureResourceName, maxPageSize, skipToken));
+ }
+
+ /**
+ * Lists the Data Connector Credentials for MADMA instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataManagerForAgricultureResourceName DataManagerForAgriculture resource name.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param skipToken Continuation token for getting next set of results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results as
+ * paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, Integer maxPageSize, String skipToken, Context context) {
+ return new PagedIterable<>(
+ listAsync(resourceGroupName, dataManagerForAgricultureResourceName, maxPageSize, skipToken, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results along
+ * with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged response contains list of requested objects and a URL link to get the next set of results along
+ * with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsImpl.java
new file mode 100644
index 000000000000..e8da2e34f8db
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataConnectorsImpl.java
@@ -0,0 +1,169 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.agrifood.fluent.DataConnectorsClient;
+import com.azure.resourcemanager.agrifood.fluent.models.DataConnectorInner;
+import com.azure.resourcemanager.agrifood.models.DataConnector;
+import com.azure.resourcemanager.agrifood.models.DataConnectors;
+
+public final class DataConnectorsImpl implements DataConnectors {
+ private static final ClientLogger LOGGER = new ClientLogger(DataConnectorsImpl.class);
+
+ private final DataConnectorsClient innerClient;
+
+ private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
+
+ public DataConnectorsImpl(DataConnectorsClient innerClient,
+ com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName,
+ String dataManagerForAgricultureResourceName, String dataConnectorName, Context context) {
+ Response inner = this.serviceClient()
+ .getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DataConnectorImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DataConnector get(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ DataConnectorInner inner
+ = this.serviceClient().get(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName);
+ if (inner != null) {
+ return new DataConnectorImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteWithResponse(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName, Context context) {
+ return this.serviceClient()
+ .deleteWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, context);
+ }
+
+ public void delete(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ String dataConnectorName) {
+ this.serviceClient().delete(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName);
+ }
+
+ public PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, dataManagerForAgricultureResourceName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectorImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String dataManagerForAgricultureResourceName,
+ Integer maxPageSize, String skipToken, Context context) {
+ PagedIterable inner = this.serviceClient()
+ .list(resourceGroupName, dataManagerForAgricultureResourceName, maxPageSize, skipToken, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectorImpl(inner1, this.manager()));
+ }
+
+ public DataConnector getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataManagerForAgricultureResourceName = ResourceManagerUtils.getValueFromIdByName(id, "farmBeats");
+ if (dataManagerForAgricultureResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'farmBeats'.", id)));
+ }
+ String dataConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "dataConnectors");
+ if (dataConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dataConnectors'.", id)));
+ }
+ return this
+ .getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName, Context.NONE)
+ .getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataManagerForAgricultureResourceName = ResourceManagerUtils.getValueFromIdByName(id, "farmBeats");
+ if (dataManagerForAgricultureResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'farmBeats'.", id)));
+ }
+ String dataConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "dataConnectors");
+ if (dataConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dataConnectors'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataManagerForAgricultureResourceName = ResourceManagerUtils.getValueFromIdByName(id, "farmBeats");
+ if (dataManagerForAgricultureResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'farmBeats'.", id)));
+ }
+ String dataConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "dataConnectors");
+ if (dataConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dataConnectors'.", id)));
+ }
+ this.deleteWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String dataManagerForAgricultureResourceName = ResourceManagerUtils.getValueFromIdByName(id, "farmBeats");
+ if (dataManagerForAgricultureResourceName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'farmBeats'.", id)));
+ }
+ String dataConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "dataConnectors");
+ if (dataConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'dataConnectors'.", id)));
+ }
+ return this.deleteWithResponse(resourceGroupName, dataManagerForAgricultureResourceName, dataConnectorName,
+ context);
+ }
+
+ private DataConnectorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.agrifood.AgriFoodManager manager() {
+ return this.serviceManager;
+ }
+
+ public DataConnectorImpl define(String name) {
+ return new DataConnectorImpl(name, this.manager());
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionImpl.java
new file mode 100644
index 000000000000..f03c6e8a13dd
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.agrifood.fluent.models.DataManagerForAgricultureExtensionInner;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureExtension;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureExtensionProperties;
+
+public final class DataManagerForAgricultureExtensionImpl implements DataManagerForAgricultureExtension {
+ private DataManagerForAgricultureExtensionInner innerObject;
+
+ private final com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager;
+
+ DataManagerForAgricultureExtensionImpl(DataManagerForAgricultureExtensionInner innerObject,
+ com.azure.resourcemanager.agrifood.AgriFoodManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DataManagerForAgricultureExtensionProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public DataManagerForAgricultureExtensionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.agrifood.AgriFoodManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionsClientImpl.java b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionsClientImpl.java
new file mode 100644
index 000000000000..f9da7802d58a
--- /dev/null
+++ b/sdk/agrifood/azure-resourcemanager-agrifood/src/main/java/com/azure/resourcemanager/agrifood/implementation/DataManagerForAgricultureExtensionsClientImpl.java
@@ -0,0 +1,456 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.agrifood.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.agrifood.fluent.DataManagerForAgricultureExtensionsClient;
+import com.azure.resourcemanager.agrifood.fluent.models.DataManagerForAgricultureExtensionInner;
+import com.azure.resourcemanager.agrifood.models.DataManagerForAgricultureExtensionListResponse;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in DataManagerForAgricultureExtensionsClient.
+ */
+public final class DataManagerForAgricultureExtensionsClientImpl implements DataManagerForAgricultureExtensionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final DataManagerForAgricultureExtensionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final AgriFoodManagementClientImpl client;
+
+ /**
+ * Initializes an instance of DataManagerForAgricultureExtensionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DataManagerForAgricultureExtensionsClientImpl(AgriFoodManagementClientImpl client) {
+ this.service = RestProxy.create(DataManagerForAgricultureExtensionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for AgriFoodManagementClientDataManagerForAgricultureExtensions to be
+ * used by the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "AgriFoodManagementCl")
+ public interface DataManagerForAgricultureExtensionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam(value = "farmBeatsExtensionIds", multipleQueryParams = true) List farmBeatsExtensionIds,
+ @QueryParam(
+ value = "farmBeatsExtensionNames",
+ multipleQueryParams = true) List farmBeatsExtensionNames,
+ @QueryParam(value = "extensionCategories", multipleQueryParams = true) List extensionCategories,
+ @QueryParam(value = "publisherIds", multipleQueryParams = true) List publisherIds,
+ @QueryParam("$maxPageSize") Integer maxPageSize, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{dataManagerForAgricultureExtensionId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("dataManagerForAgricultureExtensionId") String dataManagerForAgricultureExtensionId,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
+ * @param extensionCategories Extension categories.
+ * @param publisherIds Publisher ids.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ List farmBeatsExtensionIds, List farmBeatsExtensionNames, List extensionCategories,
+ List publisherIds, Integer maxPageSize) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ List farmBeatsExtensionIdsConverted = (farmBeatsExtensionIds == null)
+ ? new ArrayList<>()
+ : farmBeatsExtensionIds.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List farmBeatsExtensionNamesConverted = (farmBeatsExtensionNames == null)
+ ? new ArrayList<>()
+ : farmBeatsExtensionNames.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List extensionCategoriesConverted = (extensionCategories == null)
+ ? new ArrayList<>()
+ : extensionCategories.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List publisherIdsConverted = (publisherIds == null)
+ ? new ArrayList<>()
+ : publisherIds.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), farmBeatsExtensionIdsConverted,
+ farmBeatsExtensionNamesConverted, extensionCategoriesConverted, publisherIdsConverted, maxPageSize,
+ this.client.getApiVersion(), accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
+ * @param extensionCategories Extension categories.
+ * @param publisherIds Publisher ids.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ List farmBeatsExtensionIds, List farmBeatsExtensionNames, List extensionCategories,
+ List publisherIds, Integer maxPageSize, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ List farmBeatsExtensionIdsConverted = (farmBeatsExtensionIds == null)
+ ? new ArrayList<>()
+ : farmBeatsExtensionIds.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List farmBeatsExtensionNamesConverted = (farmBeatsExtensionNames == null)
+ ? new ArrayList<>()
+ : farmBeatsExtensionNames.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List extensionCategoriesConverted = (extensionCategories == null)
+ ? new ArrayList<>()
+ : extensionCategories.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ List publisherIdsConverted = (publisherIds == null)
+ ? new ArrayList<>()
+ : publisherIds.stream().map(item -> Objects.toString(item, "")).collect(Collectors.toList());
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), farmBeatsExtensionIdsConverted, farmBeatsExtensionNamesConverted,
+ extensionCategoriesConverted, publisherIdsConverted, maxPageSize, this.client.getApiVersion(), accept,
+ context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
+ * @param extensionCategories Extension categories.
+ * @param publisherIds Publisher ids.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(List farmBeatsExtensionIds,
+ List farmBeatsExtensionNames, List extensionCategories, List publisherIds,
+ Integer maxPageSize) {
+ return new PagedFlux<>(() -> listSinglePageAsync(farmBeatsExtensionIds, farmBeatsExtensionNames,
+ extensionCategories, publisherIds, maxPageSize), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ final List farmBeatsExtensionIds = null;
+ final List farmBeatsExtensionNames = null;
+ final List extensionCategories = null;
+ final List publisherIds = null;
+ final Integer maxPageSize = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(farmBeatsExtensionIds, farmBeatsExtensionNames,
+ extensionCategories, publisherIds, maxPageSize), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
+ * @param extensionCategories Extension categories.
+ * @param publisherIds Publisher ids.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(List farmBeatsExtensionIds,
+ List farmBeatsExtensionNames, List extensionCategories, List publisherIds,
+ Integer maxPageSize, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(farmBeatsExtensionIds, farmBeatsExtensionNames,
+ extensionCategories, publisherIds, maxPageSize, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ final List farmBeatsExtensionIds = null;
+ final List farmBeatsExtensionNames = null;
+ final List extensionCategories = null;
+ final List publisherIds = null;
+ final Integer maxPageSize = null;
+ return new PagedIterable<>(
+ listAsync(farmBeatsExtensionIds, farmBeatsExtensionNames, extensionCategories, publisherIds, maxPageSize));
+ }
+
+ /**
+ * Get list of Data Manager For Agriculture extension.
+ *
+ * @param farmBeatsExtensionIds DataManagerForAgricultureExtension ids.
+ * @param farmBeatsExtensionNames DataManagerForAgriculture extension names.
+ * @param extensionCategories Extension categories.
+ * @param publisherIds Publisher ids.
+ * @param maxPageSize Maximum number of items needed (inclusive).
+ * Minimum = 10, Maximum = 1000, Default value = 50.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of Data Manager For Agriculture extension as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(List farmBeatsExtensionIds,
+ List