net.bytebuddy
byte-buddy
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/NewRelicObservabilityManager.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/NewRelicObservabilityManager.java
index f4814b4ee32f6..39c86b6333721 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/NewRelicObservabilityManager.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/NewRelicObservabilityManager.java
@@ -25,6 +25,9 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.newrelicobservability.fluent.NewRelicObservability;
import com.azure.resourcemanager.newrelicobservability.implementation.AccountsImpl;
+import com.azure.resourcemanager.newrelicobservability.implementation.BillingInfoesImpl;
+import com.azure.resourcemanager.newrelicobservability.implementation.ConnectedPartnerResourcesImpl;
+import com.azure.resourcemanager.newrelicobservability.implementation.MonitoredSubscriptionsImpl;
import com.azure.resourcemanager.newrelicobservability.implementation.MonitorsImpl;
import com.azure.resourcemanager.newrelicobservability.implementation.NewRelicObservabilityBuilder;
import com.azure.resourcemanager.newrelicobservability.implementation.OperationsImpl;
@@ -32,6 +35,9 @@
import com.azure.resourcemanager.newrelicobservability.implementation.PlansImpl;
import com.azure.resourcemanager.newrelicobservability.implementation.TagRulesImpl;
import com.azure.resourcemanager.newrelicobservability.models.Accounts;
+import com.azure.resourcemanager.newrelicobservability.models.BillingInfoes;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResources;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscriptions;
import com.azure.resourcemanager.newrelicobservability.models.Monitors;
import com.azure.resourcemanager.newrelicobservability.models.Operations;
import com.azure.resourcemanager.newrelicobservability.models.Organizations;
@@ -44,7 +50,9 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to NewRelicObservabilityManager. */
+/**
+ * Entry point to NewRelicObservabilityManager.
+ */
public final class NewRelicObservabilityManager {
private Operations operations;
@@ -56,26 +64,28 @@ public final class NewRelicObservabilityManager {
private Plans plans;
+ private BillingInfoes billingInfoes;
+
+ private ConnectedPartnerResources connectedPartnerResources;
+
private TagRules tagRules;
+ private MonitoredSubscriptions monitoredSubscriptions;
+
private final NewRelicObservability clientObject;
- private NewRelicObservabilityManager(
- HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ private NewRelicObservabilityManager(HttpPipeline httpPipeline, AzureProfile profile,
+ Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new NewRelicObservabilityBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new NewRelicObservabilityBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of NewRelicObservability service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the NewRelicObservability service API instance.
@@ -88,7 +98,7 @@ public static NewRelicObservabilityManager authenticate(TokenCredential credenti
/**
* Creates an instance of NewRelicObservability service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the NewRelicObservability service API instance.
@@ -101,14 +111,16 @@ public static NewRelicObservabilityManager authenticate(HttpPipeline httpPipelin
/**
* Gets a Configurable instance that can be used to create NewRelicObservabilityManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new NewRelicObservabilityManager.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);
@@ -180,8 +192,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.
@@ -198,8 +210,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"));
@@ -219,21 +231,12 @@ public NewRelicObservabilityManager authenticate(TokenCredential credential, Azu
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.newrelicobservability")
- .append("/")
- .append("1.0.0");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.newrelicobservability")
+ .append("/").append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -252,38 +255,25 @@ public NewRelicObservabilityManager authenticate(TokenCredential credential, Azu
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 NewRelicObservabilityManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -295,7 +285,7 @@ public Operations operations() {
/**
* Gets the resource collection API of Accounts.
- *
+ *
* @return Resource collection API of Accounts.
*/
public Accounts accounts() {
@@ -307,7 +297,7 @@ public Accounts accounts() {
/**
* Gets the resource collection API of Monitors. It manages NewRelicMonitorResource.
- *
+ *
* @return Resource collection API of Monitors.
*/
public Monitors monitors() {
@@ -319,7 +309,7 @@ public Monitors monitors() {
/**
* Gets the resource collection API of Organizations.
- *
+ *
* @return Resource collection API of Organizations.
*/
public Organizations organizations() {
@@ -331,7 +321,7 @@ public Organizations organizations() {
/**
* Gets the resource collection API of Plans.
- *
+ *
* @return Resource collection API of Plans.
*/
public Plans plans() {
@@ -341,9 +331,34 @@ public Plans plans() {
return plans;
}
+ /**
+ * Gets the resource collection API of BillingInfoes.
+ *
+ * @return Resource collection API of BillingInfoes.
+ */
+ public BillingInfoes billingInfoes() {
+ if (this.billingInfoes == null) {
+ this.billingInfoes = new BillingInfoesImpl(clientObject.getBillingInfoes(), this);
+ }
+ return billingInfoes;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectedPartnerResources.
+ *
+ * @return Resource collection API of ConnectedPartnerResources.
+ */
+ public ConnectedPartnerResources connectedPartnerResources() {
+ if (this.connectedPartnerResources == null) {
+ this.connectedPartnerResources
+ = new ConnectedPartnerResourcesImpl(clientObject.getConnectedPartnerResources(), this);
+ }
+ return connectedPartnerResources;
+ }
+
/**
* Gets the resource collection API of TagRules. It manages TagRule.
- *
+ *
* @return Resource collection API of TagRules.
*/
public TagRules tagRules() {
@@ -354,8 +369,23 @@ public TagRules tagRules() {
}
/**
- * @return Wrapped service client NewRelicObservability providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets the resource collection API of MonitoredSubscriptions. It manages MonitoredSubscriptionProperties.
+ *
+ * @return Resource collection API of MonitoredSubscriptions.
+ */
+ public MonitoredSubscriptions monitoredSubscriptions() {
+ if (this.monitoredSubscriptions == null) {
+ this.monitoredSubscriptions
+ = new MonitoredSubscriptionsImpl(clientObject.getMonitoredSubscriptions(), this);
+ }
+ return monitoredSubscriptions;
+ }
+
+ /**
+ * Gets wrapped service client NewRelicObservability providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client NewRelicObservability.
*/
public NewRelicObservability serviceClient() {
return this.clientObject;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/AccountsClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/AccountsClient.java
index bebbcf51a9f01..c8897603e468a 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/AccountsClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/AccountsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.newrelicobservability.fluent.models.AccountResourceInner;
-/** An instance of this class provides access to all the operations defined in AccountsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AccountsClient.
+ */
public interface AccountsClient {
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -27,7 +29,7 @@ public interface AccountsClient {
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @param context The context to associate with this operation.
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/BillingInfoesClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/BillingInfoesClient.java
new file mode 100644
index 0000000000000..24fbecdcd7ca2
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/BillingInfoesClient.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.newrelicobservability.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.newrelicobservability.fluent.models.BillingInfoResponseInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BillingInfoesClient.
+ */
+public interface BillingInfoesClient {
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 marketplace info mapped to the given monitor along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String monitorName, Context context);
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 marketplace info mapped to the given monitor.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BillingInfoResponseInner get(String resourceGroupName, String monitorName);
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/ConnectedPartnerResourcesClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/ConnectedPartnerResourcesClient.java
new file mode 100644
index 0000000000000..fdb42682cc57d
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/ConnectedPartnerResourcesClient.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.ConnectedPartnerResourcesListFormatInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedPartnerResourcesClient.
+ */
+public interface ConnectedPartnerResourcesClient {
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 list of all active newrelic deployments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName);
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName,
+ String body, Context context);
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitoredSubscriptionsClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitoredSubscriptionsClient.java
new file mode 100644
index 0000000000000..3c6d45adb7000
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitoredSubscriptionsClient.java
@@ -0,0 +1,272 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredSubscriptionPropertiesInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConfigurationName;
+
+/**
+ * An instance of this class provides access to all the operations defined in MonitoredSubscriptionsClient.
+ */
+public interface MonitoredSubscriptionsClient {
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName);
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String monitorName,
+ Context context);
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context);
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoredSubscriptionPropertiesInner get(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName);
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName);
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor 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 SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context);
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoredSubscriptionPropertiesInner createorUpdate(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName);
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor 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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoredSubscriptionPropertiesInner createorUpdate(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor 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 SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoredSubscriptionPropertiesInner> beginUpdate(
+ String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoredSubscriptionPropertiesInner update(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor 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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoredSubscriptionPropertiesInner update(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 monitorName, ConfigurationName configurationName);
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String monitorName, ConfigurationName configurationName, Context context);
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitorsClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitorsClient.java
index 974a640345eb2..549902266fa9a 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitorsClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/MonitorsClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.newrelicobservability.fluent.models.AppServiceInfoInner;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.LinkedResourceInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MetricRulesInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MetricsStatusResponseInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredResourceInner;
@@ -26,62 +27,64 @@
import com.azure.resourcemanager.newrelicobservability.models.NewRelicMonitorResourceUpdate;
import com.azure.resourcemanager.newrelicobservability.models.SwitchBillingRequest;
-/** An instance of this class provides access to all the operations defined in MonitorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorsClient.
+ */
public interface MonitorsClient {
/**
* List NewRelicMonitorResource resources by subscription ID.
- *
+ *
* @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 response of a NewRelicMonitorResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a NewRelicMonitorResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List NewRelicMonitorResource resources by subscription 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 the response of a NewRelicMonitorResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a NewRelicMonitorResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* List NewRelicMonitorResource resources by 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 the response of a NewRelicMonitorResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a NewRelicMonitorResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* List NewRelicMonitorResource resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 response of a NewRelicMonitorResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a NewRelicMonitorResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Get a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
@@ -91,12 +94,12 @@ public interface MonitorsClient {
* @return a NewRelicMonitorResource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String monitorName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String monitorName,
+ Context context);
/**
* Get a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -109,7 +112,7 @@ Response getByResourceGroupWithResponse(
/**
* Create a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param resource Resource create parameters.
@@ -119,12 +122,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, NewRelicMonitorResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String monitorName, NewRelicMonitorResourceInner resource);
+ SyncPoller, NewRelicMonitorResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String monitorName, NewRelicMonitorResourceInner resource);
/**
* Create a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param resource Resource create parameters.
@@ -140,7 +143,7 @@ SyncPoller, NewRelicMonitorResourceInne
/**
* Create a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param resource Resource create parameters.
@@ -150,12 +153,12 @@ SyncPoller, NewRelicMonitorResourceInne
* @return a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NewRelicMonitorResourceInner createOrUpdate(
- String resourceGroupName, String monitorName, NewRelicMonitorResourceInner resource);
+ NewRelicMonitorResourceInner createOrUpdate(String resourceGroupName, String monitorName,
+ NewRelicMonitorResourceInner resource);
/**
* Create a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param resource Resource create parameters.
@@ -166,12 +169,12 @@ NewRelicMonitorResourceInner createOrUpdate(
* @return a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NewRelicMonitorResourceInner createOrUpdate(
- String resourceGroupName, String monitorName, NewRelicMonitorResourceInner resource, Context context);
+ NewRelicMonitorResourceInner createOrUpdate(String resourceGroupName, String monitorName,
+ NewRelicMonitorResourceInner resource, Context context);
/**
* Update a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param properties The resource properties to be updated.
@@ -182,12 +185,12 @@ NewRelicMonitorResourceInner createOrUpdate(
* @return a Monitor Resource by NewRelic along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String monitorName, NewRelicMonitorResourceUpdate properties, Context context);
+ Response updateWithResponse(String resourceGroupName, String monitorName,
+ NewRelicMonitorResourceUpdate properties, Context context);
/**
* Update a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param properties The resource properties to be updated.
@@ -197,12 +200,12 @@ Response updateWithResponse(
* @return a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NewRelicMonitorResourceInner update(
- String resourceGroupName, String monitorName, NewRelicMonitorResourceUpdate properties);
+ NewRelicMonitorResourceInner update(String resourceGroupName, String monitorName,
+ NewRelicMonitorResourceUpdate properties);
/**
* Delete a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
@@ -216,7 +219,7 @@ NewRelicMonitorResourceInner update(
/**
* Delete a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
@@ -227,12 +230,12 @@ NewRelicMonitorResourceInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String userEmail, String monitorName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String userEmail, String monitorName,
+ Context context);
/**
* Delete a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
@@ -245,7 +248,7 @@ SyncPoller, Void> beginDelete(
/**
* Delete a NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param userEmail User Email.
* @param monitorName Name of the Monitors resource.
@@ -259,7 +262,7 @@ SyncPoller, Void> beginDelete(
/**
* Get metric rules.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
@@ -270,12 +273,12 @@ SyncPoller, Void> beginDelete(
* @return metric rules along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getMetricRulesWithResponse(
- String resourceGroupName, String monitorName, MetricsRequest request, Context context);
+ Response getMetricRulesWithResponse(String resourceGroupName, String monitorName,
+ MetricsRequest request, Context context);
/**
* Get metric rules.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
@@ -289,7 +292,7 @@ Response getMetricRulesWithResponse(
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
@@ -300,12 +303,12 @@ Response getMetricRulesWithResponse(
* @return metric status along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getMetricStatusWithResponse(
- String resourceGroupName, String monitorName, MetricsStatusRequest request, Context context);
+ Response getMetricStatusWithResponse(String resourceGroupName, String monitorName,
+ MetricsStatusRequest request, Context context);
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the get metrics status request.
@@ -315,12 +318,12 @@ Response getMetricStatusWithResponse(
* @return metric status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MetricsStatusResponseInner getMetricStatus(
- String resourceGroupName, String monitorName, MetricsStatusRequest request);
+ MetricsStatusResponseInner getMetricStatus(String resourceGroupName, String monitorName,
+ MetricsStatusRequest request);
/**
* List the app service resources currently being monitored by the NewRelic resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the app services get request.
@@ -330,12 +333,12 @@ MetricsStatusResponseInner getMetricStatus(
* @return response of a list app services Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAppServices(
- String resourceGroupName, String monitorName, AppServicesGetRequest request);
+ PagedIterable listAppServices(String resourceGroupName, String monitorName,
+ AppServicesGetRequest request);
/**
* List the app service resources currently being monitored by the NewRelic resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the app services get request.
@@ -346,12 +349,12 @@ PagedIterable listAppServices(
* @return response of a list app services Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAppServices(
- String resourceGroupName, String monitorName, AppServicesGetRequest request, Context context);
+ PagedIterable listAppServices(String resourceGroupName, String monitorName,
+ AppServicesGetRequest request, Context context);
/**
* Switches the billing for NewRelic monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the switch billing request.
@@ -362,12 +365,12 @@ PagedIterable listAppServices(
* @return a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MonitorsSwitchBillingResponse switchBillingWithResponse(
- String resourceGroupName, String monitorName, SwitchBillingRequest request, Context context);
+ MonitorsSwitchBillingResponse switchBillingWithResponse(String resourceGroupName, String monitorName,
+ SwitchBillingRequest request, Context context);
/**
* Switches the billing for NewRelic monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the switch billing request.
@@ -377,12 +380,12 @@ MonitorsSwitchBillingResponse switchBillingWithResponse(
* @return a Monitor Resource by NewRelic.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NewRelicMonitorResourceInner switchBilling(
- String resourceGroupName, String monitorName, SwitchBillingRequest request);
+ NewRelicMonitorResourceInner switchBilling(String resourceGroupName, String monitorName,
+ SwitchBillingRequest request);
/**
* List the compute vm resources currently being monitored by the NewRelic resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the Hosts get request.
@@ -396,7 +399,7 @@ NewRelicMonitorResourceInner switchBilling(
/**
* List the compute vm resources currently being monitored by the NewRelic resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param request The details of the Hosts get request.
@@ -407,42 +410,70 @@ NewRelicMonitorResourceInner switchBilling(
* @return response of a list VM Host Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listHosts(
- String resourceGroupName, String monitorName, HostsGetRequest request, Context context);
+ PagedIterable listHosts(String resourceGroupName, String monitorName, HostsGetRequest request,
+ Context context);
/**
* List the resources currently being monitored by the NewRelic monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors 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 list of all the resources being monitored by NewRelic monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return list of all the resources being monitored by NewRelic monitor resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listMonitoredResources(String resourceGroupName, String monitorName);
/**
* List the resources currently being monitored by the NewRelic monitor resource.
- *
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 list of all the resources being monitored by NewRelic monitor resource as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
+ Context context);
+
+ /**
+ * List all Azure resources associated to the same NewRelic organization and account as the target resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors 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 response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listLinkedResources(String resourceGroupName, String monitorName);
+
+ /**
+ * List all Azure resources associated to the same NewRelic organization and account as the target resource.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors 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 list of all the resources being monitored by NewRelic monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listMonitoredResources(
- String resourceGroupName, String monitorName, Context context);
+ PagedIterable listLinkedResources(String resourceGroupName, String monitorName,
+ Context context);
/**
* Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
@@ -452,12 +483,12 @@ PagedIterable listMonitoredResources(
* @return response of payload to be passed while installing VM agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response vmHostPayloadWithResponse(
- String resourceGroupName, String monitorName, Context context);
+ Response vmHostPayloadWithResponse(String resourceGroupName, String monitorName,
+ Context context);
/**
* Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/NewRelicObservability.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/NewRelicObservability.java
index 5057a6922bb54..7e0ff48dea9da 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/NewRelicObservability.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/NewRelicObservability.java
@@ -7,82 +7,105 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for NewRelicObservability class. */
+/**
+ * The interface for NewRelicObservability class.
+ */
public interface NewRelicObservability {
/**
* Gets The ID of the target subscription.
- *
+ *
* @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 OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the AccountsClient object to access its operations.
- *
+ *
* @return the AccountsClient object.
*/
AccountsClient getAccounts();
/**
* Gets the MonitorsClient object to access its operations.
- *
+ *
* @return the MonitorsClient object.
*/
MonitorsClient getMonitors();
/**
* Gets the OrganizationsClient object to access its operations.
- *
+ *
* @return the OrganizationsClient object.
*/
OrganizationsClient getOrganizations();
/**
* Gets the PlansClient object to access its operations.
- *
+ *
* @return the PlansClient object.
*/
PlansClient getPlans();
+ /**
+ * Gets the BillingInfoesClient object to access its operations.
+ *
+ * @return the BillingInfoesClient object.
+ */
+ BillingInfoesClient getBillingInfoes();
+
+ /**
+ * Gets the ConnectedPartnerResourcesClient object to access its operations.
+ *
+ * @return the ConnectedPartnerResourcesClient object.
+ */
+ ConnectedPartnerResourcesClient getConnectedPartnerResources();
+
/**
* Gets the TagRulesClient object to access its operations.
- *
+ *
* @return the TagRulesClient object.
*/
TagRulesClient getTagRules();
+
+ /**
+ * Gets the MonitoredSubscriptionsClient object to access its operations.
+ *
+ * @return the MonitoredSubscriptionsClient object.
+ */
+ MonitoredSubscriptionsClient getMonitoredSubscriptions();
}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OperationsClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OperationsClient.java
index 030cebabc15ae..a307b7f3ffeff 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OperationsClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.newrelicobservability.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 {
/**
* List the operations for the 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();
/**
* List the operations for the 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/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OrganizationsClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OrganizationsClient.java
index 022c25a18cfe6..491a4703922aa 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OrganizationsClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/OrganizationsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.newrelicobservability.fluent.models.OrganizationResourceInner;
-/** An instance of this class provides access to all the operations defined in OrganizationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OrganizationsClient.
+ */
public interface OrganizationsClient {
/**
* List all the existing organizations.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -27,7 +29,7 @@ public interface OrganizationsClient {
/**
* List all the existing organizations.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @param context The context to associate with this operation.
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/PlansClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/PlansClient.java
index 5fdc8edde21f2..0b27f3e793e2a 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/PlansClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/PlansClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.newrelicobservability.fluent.models.PlanDataResourceInner;
-/** An instance of this class provides access to all the operations defined in PlansClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PlansClient.
+ */
public interface PlansClient {
/**
* List plans data.
- *
+ *
* @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 response of get all plan data Operation as paginated response with {@link PagedIterable}.
@@ -24,7 +26,7 @@ public interface PlansClient {
/**
* List plans data.
- *
+ *
* @param accountId Account Id.
* @param organizationId Organization Id.
* @param context The context to associate with this operation.
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/TagRulesClient.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/TagRulesClient.java
index b7d971519c4e7..e3d1e34d15e1c 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/TagRulesClient.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/TagRulesClient.java
@@ -14,11 +14,13 @@
import com.azure.resourcemanager.newrelicobservability.fluent.models.TagRuleInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.TagRuleUpdateInner;
-/** An instance of this class provides access to all the operations defined in TagRulesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in TagRulesClient.
+ */
public interface TagRulesClient {
/**
* List TagRule resources by NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -31,7 +33,7 @@ public interface TagRulesClient {
/**
* List TagRule resources by NewRelicMonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param context The context to associate with this operation.
@@ -41,12 +43,12 @@ public interface TagRulesClient {
* @return the response of a TagRule list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByNewRelicMonitorResource(
- String resourceGroupName, String monitorName, Context context);
+ PagedIterable listByNewRelicMonitorResource(String resourceGroupName, String monitorName,
+ Context context);
/**
* Get a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -57,12 +59,12 @@ PagedIterable listByNewRelicMonitorResource(
* @return a TagRule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String monitorName, String ruleSetName, Context context);
+ Response getWithResponse(String resourceGroupName, String monitorName, String ruleSetName,
+ Context context);
/**
* Get a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -76,7 +78,7 @@ Response getWithResponse(
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -87,12 +89,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of a tag rule belonging to NewRelic account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TagRuleInner> beginCreateOrUpdate(
- String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource);
+ SyncPoller, TagRuleInner> beginCreateOrUpdate(String resourceGroupName, String monitorName,
+ String ruleSetName, TagRuleInner resource);
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -104,12 +106,12 @@ SyncPoller, TagRuleInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of a tag rule belonging to NewRelic account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TagRuleInner> beginCreateOrUpdate(
- String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource, Context context);
+ SyncPoller, TagRuleInner> beginCreateOrUpdate(String resourceGroupName, String monitorName,
+ String ruleSetName, TagRuleInner resource, Context context);
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -120,12 +122,12 @@ SyncPoller, TagRuleInner> beginCreateOrUpdate(
* @return a tag rule belonging to NewRelic account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TagRuleInner createOrUpdate(
- String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource);
+ TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName,
+ TagRuleInner resource);
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -137,12 +139,12 @@ TagRuleInner createOrUpdate(
* @return a tag rule belonging to NewRelic account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TagRuleInner createOrUpdate(
- String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource, Context context);
+ TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName, TagRuleInner resource,
+ Context context);
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -156,7 +158,7 @@ TagRuleInner createOrUpdate(
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -167,12 +169,12 @@ TagRuleInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String monitorName, String ruleSetName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName,
+ Context context);
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -185,7 +187,7 @@ SyncPoller, Void> beginDelete(
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -199,7 +201,7 @@ SyncPoller, Void> beginDelete(
/**
* Update a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -211,16 +213,12 @@ SyncPoller, Void> beginDelete(
* @return a tag rule belonging to NewRelic account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String monitorName,
- String ruleSetName,
- TagRuleUpdateInner properties,
- Context context);
+ Response updateWithResponse(String resourceGroupName, String monitorName, String ruleSetName,
+ TagRuleUpdateInner properties, Context context);
/**
* Update a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitors resource.
* @param ruleSetName Name of the TagRule.
@@ -231,6 +229,6 @@ Response updateWithResponse(
* @return a tag rule belonging to NewRelic account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TagRuleInner update(
- String resourceGroupName, String monitorName, String ruleSetName, TagRuleUpdateInner properties);
+ TagRuleInner update(String resourceGroupName, String monitorName, String ruleSetName,
+ TagRuleUpdateInner properties);
}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountProperties.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountProperties.java
index fe7862b7a39e4..9c2d1eba9b28d 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountProperties.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountProperties.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** List of all the New relic accounts for the given user. */
+/**
+ * List of all the New relic accounts for the given user.
+ */
@Fluent
public final class AccountProperties {
/*
@@ -29,18 +31,20 @@ public final class AccountProperties {
private String accountName;
/*
- * region
+ * Region where New Relic account is present
*/
@JsonProperty(value = "region")
private String region;
- /** Creates an instance of AccountProperties class. */
+ /**
+ * Creates an instance of AccountProperties class.
+ */
public AccountProperties() {
}
/**
* Get the organizationId property: organization id.
- *
+ *
* @return the organizationId value.
*/
public String organizationId() {
@@ -49,7 +53,7 @@ public String organizationId() {
/**
* Set the organizationId property: organization id.
- *
+ *
* @param organizationId the organizationId value to set.
* @return the AccountProperties object itself.
*/
@@ -60,7 +64,7 @@ public AccountProperties withOrganizationId(String organizationId) {
/**
* Get the accountId property: account id.
- *
+ *
* @return the accountId value.
*/
public String accountId() {
@@ -69,7 +73,7 @@ public String accountId() {
/**
* Set the accountId property: account id.
- *
+ *
* @param accountId the accountId value to set.
* @return the AccountProperties object itself.
*/
@@ -80,7 +84,7 @@ public AccountProperties withAccountId(String accountId) {
/**
* Get the accountName property: account name.
- *
+ *
* @return the accountName value.
*/
public String accountName() {
@@ -89,7 +93,7 @@ public String accountName() {
/**
* Set the accountName property: account name.
- *
+ *
* @param accountName the accountName value to set.
* @return the AccountProperties object itself.
*/
@@ -99,8 +103,8 @@ public AccountProperties withAccountName(String accountName) {
}
/**
- * Get the region property: region.
- *
+ * Get the region property: Region where New Relic account is present.
+ *
* @return the region value.
*/
public String region() {
@@ -108,8 +112,8 @@ public String region() {
}
/**
- * Set the region property: region.
- *
+ * Set the region property: Region where New Relic account is present.
+ *
* @param region the region value to set.
* @return the AccountProperties object itself.
*/
@@ -120,7 +124,7 @@ public AccountProperties withRegion(String region) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountResourceInner.java
index 1ed1f744a4001..b9fea867ecf55 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountResourceInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AccountResourceInner.java
@@ -9,7 +9,9 @@
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The details of a account resource. */
+/**
+ * The details of a account resource.
+ */
@Fluent
public final class AccountResourceInner extends ProxyResource {
/*
@@ -24,13 +26,15 @@ public final class AccountResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of AccountResourceInner class. */
+ /**
+ * Creates an instance of AccountResourceInner class.
+ */
public AccountResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private AccountProperties innerProperties() {
@@ -39,7 +43,7 @@ private AccountProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -48,7 +52,7 @@ public SystemData systemData() {
/**
* Get the organizationId property: organization id.
- *
+ *
* @return the organizationId value.
*/
public String organizationId() {
@@ -57,7 +61,7 @@ public String organizationId() {
/**
* Set the organizationId property: organization id.
- *
+ *
* @param organizationId the organizationId value to set.
* @return the AccountResourceInner object itself.
*/
@@ -71,7 +75,7 @@ public AccountResourceInner withOrganizationId(String organizationId) {
/**
* Get the accountId property: account id.
- *
+ *
* @return the accountId value.
*/
public String accountId() {
@@ -80,7 +84,7 @@ public String accountId() {
/**
* Set the accountId property: account id.
- *
+ *
* @param accountId the accountId value to set.
* @return the AccountResourceInner object itself.
*/
@@ -94,7 +98,7 @@ public AccountResourceInner withAccountId(String accountId) {
/**
* Get the accountName property: account name.
- *
+ *
* @return the accountName value.
*/
public String accountName() {
@@ -103,7 +107,7 @@ public String accountName() {
/**
* Set the accountName property: account name.
- *
+ *
* @param accountName the accountName value to set.
* @return the AccountResourceInner object itself.
*/
@@ -116,8 +120,8 @@ public AccountResourceInner withAccountName(String accountName) {
}
/**
- * Get the region property: region.
- *
+ * Get the region property: Region where New Relic account is present.
+ *
* @return the region value.
*/
public String region() {
@@ -125,8 +129,8 @@ public String region() {
}
/**
- * Set the region property: region.
- *
+ * Set the region property: Region where New Relic account is present.
+ *
* @param region the region value to set.
* @return the AccountResourceInner object itself.
*/
@@ -140,7 +144,7 @@ public AccountResourceInner withRegion(String region) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AppServiceInfoInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AppServiceInfoInner.java
index a06da081e1979..6ebc8c67419cb 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AppServiceInfoInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/AppServiceInfoInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Details of VM Resource having NewRelic OneAgent installed. */
+/**
+ * Details of VM Resource having NewRelic OneAgent installed.
+ */
@Fluent
public final class AppServiceInfoInner {
/*
@@ -28,13 +30,15 @@ public final class AppServiceInfoInner {
@JsonProperty(value = "agentStatus")
private String agentStatus;
- /** Creates an instance of AppServiceInfoInner class. */
+ /**
+ * Creates an instance of AppServiceInfoInner class.
+ */
public AppServiceInfoInner() {
}
/**
* Get the azureResourceId property: Azure App service resource ID.
- *
+ *
* @return the azureResourceId value.
*/
public String azureResourceId() {
@@ -43,7 +47,7 @@ public String azureResourceId() {
/**
* Set the azureResourceId property: Azure App service resource ID.
- *
+ *
* @param azureResourceId the azureResourceId value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -54,7 +58,7 @@ public AppServiceInfoInner withAzureResourceId(String azureResourceId) {
/**
* Get the agentVersion property: Version of the NewRelic agent installed on the App service.
- *
+ *
* @return the agentVersion value.
*/
public String agentVersion() {
@@ -63,7 +67,7 @@ public String agentVersion() {
/**
* Set the agentVersion property: Version of the NewRelic agent installed on the App service.
- *
+ *
* @param agentVersion the agentVersion value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -74,7 +78,7 @@ public AppServiceInfoInner withAgentVersion(String agentVersion) {
/**
* Get the agentStatus property: Status of the NewRelic agent installed on the App service.
- *
+ *
* @return the agentStatus value.
*/
public String agentStatus() {
@@ -83,7 +87,7 @@ public String agentStatus() {
/**
* Set the agentStatus property: Status of the NewRelic agent installed on the App service.
- *
+ *
* @param agentStatus the agentStatus value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -94,7 +98,7 @@ public AppServiceInfoInner withAgentStatus(String agentStatus) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/BillingInfoResponseInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/BillingInfoResponseInner.java
new file mode 100644
index 0000000000000..835449f04a4f7
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/BillingInfoResponseInner.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.newrelicobservability.models.MarketplaceSaaSInfo;
+import com.azure.resourcemanager.newrelicobservability.models.PartnerBillingEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Marketplace Subscription and Organization details to which resource gets billed into.
+ */
+@Fluent
+public final class BillingInfoResponseInner {
+ /*
+ * Marketplace Subscription details
+ */
+ @JsonProperty(value = "marketplaceSaasInfo")
+ private MarketplaceSaaSInfo marketplaceSaasInfo;
+
+ /*
+ * Partner Billing Entity details: Organization Info
+ */
+ @JsonProperty(value = "partnerBillingEntity")
+ private PartnerBillingEntity partnerBillingEntity;
+
+ /**
+ * Creates an instance of BillingInfoResponseInner class.
+ */
+ public BillingInfoResponseInner() {
+ }
+
+ /**
+ * Get the marketplaceSaasInfo property: Marketplace Subscription details.
+ *
+ * @return the marketplaceSaasInfo value.
+ */
+ public MarketplaceSaaSInfo marketplaceSaasInfo() {
+ return this.marketplaceSaasInfo;
+ }
+
+ /**
+ * Set the marketplaceSaasInfo property: Marketplace Subscription details.
+ *
+ * @param marketplaceSaasInfo the marketplaceSaasInfo value to set.
+ * @return the BillingInfoResponseInner object itself.
+ */
+ public BillingInfoResponseInner withMarketplaceSaasInfo(MarketplaceSaaSInfo marketplaceSaasInfo) {
+ this.marketplaceSaasInfo = marketplaceSaasInfo;
+ return this;
+ }
+
+ /**
+ * Get the partnerBillingEntity property: Partner Billing Entity details: Organization Info.
+ *
+ * @return the partnerBillingEntity value.
+ */
+ public PartnerBillingEntity partnerBillingEntity() {
+ return this.partnerBillingEntity;
+ }
+
+ /**
+ * Set the partnerBillingEntity property: Partner Billing Entity details: Organization Info.
+ *
+ * @param partnerBillingEntity the partnerBillingEntity value to set.
+ * @return the BillingInfoResponseInner object itself.
+ */
+ public BillingInfoResponseInner withPartnerBillingEntity(PartnerBillingEntity partnerBillingEntity) {
+ this.partnerBillingEntity = partnerBillingEntity;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (marketplaceSaasInfo() != null) {
+ marketplaceSaasInfo().validate();
+ }
+ if (partnerBillingEntity() != null) {
+ partnerBillingEntity().validate();
+ }
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/ConnectedPartnerResourcesListFormatInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/ConnectedPartnerResourcesListFormatInner.java
new file mode 100644
index 0000000000000..19a6b659015e8
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/ConnectedPartnerResourcesListFormatInner.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.newrelicobservability.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Connected Partner Resources List Format.
+ */
+@Fluent
+public final class ConnectedPartnerResourcesListFormatInner {
+ /*
+ * Connected Partner Resource Properties
+ */
+ @JsonProperty(value = "properties")
+ private ConnectedPartnerResourceProperties properties;
+
+ /**
+ * Creates an instance of ConnectedPartnerResourcesListFormatInner class.
+ */
+ public ConnectedPartnerResourcesListFormatInner() {
+ }
+
+ /**
+ * Get the properties property: Connected Partner Resource Properties.
+ *
+ * @return the properties value.
+ */
+ public ConnectedPartnerResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Connected Partner Resource Properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ConnectedPartnerResourcesListFormatInner object itself.
+ */
+ public ConnectedPartnerResourcesListFormatInner withProperties(ConnectedPartnerResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/LinkedResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/LinkedResourceInner.java
new file mode 100644
index 0000000000000..d3f7375f257f8
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/LinkedResourceInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The definition of a linked resource.
+ */
+@Fluent
+public final class LinkedResourceInner {
+ /*
+ * The ARM id of the linked resource.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Creates an instance of LinkedResourceInner class.
+ */
+ public LinkedResourceInner() {
+ }
+
+ /**
+ * Get the id property: The ARM id of the linked resource.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The ARM id of the linked resource.
+ *
+ * @param id the id value to set.
+ * @return the LinkedResourceInner object itself.
+ */
+ public LinkedResourceInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricRulesInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricRulesInner.java
index 48c67894582cf..eadf1eb2a7474 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricRulesInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricRulesInner.java
@@ -10,7 +10,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Set of rules for sending metrics for the Monitor resource. */
+/**
+ * Set of rules for sending metrics for the Monitor resource.
+ */
@Fluent
public final class MetricRulesInner {
/*
@@ -31,13 +33,15 @@ public final class MetricRulesInner {
@JsonProperty(value = "userEmail")
private String userEmail;
- /** Creates an instance of MetricRulesInner class. */
+ /**
+ * Creates an instance of MetricRulesInner class.
+ */
public MetricRulesInner() {
}
/**
* Get the sendMetrics property: Flag specifying if metrics should be sent for the Monitor resource.
- *
+ *
* @return the sendMetrics value.
*/
public SendMetricsStatus sendMetrics() {
@@ -46,7 +50,7 @@ public SendMetricsStatus sendMetrics() {
/**
* Set the sendMetrics property: Flag specifying if metrics should be sent for the Monitor resource.
- *
+ *
* @param sendMetrics the sendMetrics value to set.
* @return the MetricRulesInner object itself.
*/
@@ -57,7 +61,7 @@ public MetricRulesInner withSendMetrics(SendMetricsStatus sendMetrics) {
/**
* Get the filteringTags property: List of filtering tags to be used for capturing metrics.
- *
+ *
* @return the filteringTags value.
*/
public List filteringTags() {
@@ -66,7 +70,7 @@ public List filteringTags() {
/**
* Set the filteringTags property: List of filtering tags to be used for capturing metrics.
- *
+ *
* @param filteringTags the filteringTags value to set.
* @return the MetricRulesInner object itself.
*/
@@ -77,7 +81,7 @@ public MetricRulesInner withFilteringTags(List filteringTags) {
/**
* Get the userEmail property: User Email.
- *
+ *
* @return the userEmail value.
*/
public String userEmail() {
@@ -86,7 +90,7 @@ public String userEmail() {
/**
* Set the userEmail property: User Email.
- *
+ *
* @param userEmail the userEmail value to set.
* @return the MetricRulesInner object itself.
*/
@@ -97,7 +101,7 @@ public MetricRulesInner withUserEmail(String userEmail) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricsStatusResponseInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricsStatusResponseInner.java
index 56ae936dc2f12..e3e0cb38499ec 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricsStatusResponseInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MetricsStatusResponseInner.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Response of get metrics status Operation. */
+/**
+ * Response of get metrics status Operation.
+ */
@Fluent
public final class MetricsStatusResponseInner {
/*
@@ -17,13 +19,15 @@ public final class MetricsStatusResponseInner {
@JsonProperty(value = "azureResourceIds")
private List azureResourceIds;
- /** Creates an instance of MetricsStatusResponseInner class. */
+ /**
+ * Creates an instance of MetricsStatusResponseInner class.
+ */
public MetricsStatusResponseInner() {
}
/**
* Get the azureResourceIds property: Azure resource IDs.
- *
+ *
* @return the azureResourceIds value.
*/
public List azureResourceIds() {
@@ -32,7 +36,7 @@ public List azureResourceIds() {
/**
* Set the azureResourceIds property: Azure resource IDs.
- *
+ *
* @param azureResourceIds the azureResourceIds value to set.
* @return the MetricsStatusResponseInner object itself.
*/
@@ -43,7 +47,7 @@ public MetricsStatusResponseInner withAzureResourceIds(List azureResourc
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitorProperties.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitorProperties.java
index cfad9ad1adfe3..9684d76c19645 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitorProperties.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitorProperties.java
@@ -16,7 +16,9 @@
import com.azure.resourcemanager.newrelicobservability.models.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Properties specific to the NewRelic Monitor resource. */
+/**
+ * Properties specific to the NewRelic Monitor resource.
+ */
@Fluent
public final class MonitorProperties {
/*
@@ -85,13 +87,27 @@ public final class MonitorProperties {
@JsonProperty(value = "accountCreationSource")
private AccountCreationSource accountCreationSource;
- /** Creates an instance of MonitorProperties class. */
+ /*
+ * State of the Azure Subscription containing the monitor resource
+ */
+ @JsonProperty(value = "subscriptionState")
+ private String subscriptionState;
+
+ /*
+ * Status of Azure Subscription where Marketplace SaaS is located.
+ */
+ @JsonProperty(value = "saaSAzureSubscriptionStatus")
+ private String saaSAzureSubscriptionStatus;
+
+ /**
+ * Creates an instance of MonitorProperties class.
+ */
public MonitorProperties() {
}
/**
* Get the provisioningState property: Provisioning State of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -100,7 +116,7 @@ public ProvisioningState provisioningState() {
/**
* Get the monitoringStatus property: MonitoringStatus of the resource.
- *
+ *
* @return the monitoringStatus value.
*/
public MonitoringStatus monitoringStatus() {
@@ -109,7 +125,7 @@ public MonitoringStatus monitoringStatus() {
/**
* Get the marketplaceSubscriptionStatus property: NewRelic Organization properties of the resource.
- *
+ *
* @return the marketplaceSubscriptionStatus value.
*/
public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
@@ -118,7 +134,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Get the marketplaceSubscriptionId property: Marketplace Subscription Id.
- *
+ *
* @return the marketplaceSubscriptionId value.
*/
public String marketplaceSubscriptionId() {
@@ -127,7 +143,7 @@ public String marketplaceSubscriptionId() {
/**
* Get the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @return the newRelicAccountProperties value.
*/
public NewRelicAccountProperties newRelicAccountProperties() {
@@ -136,7 +152,7 @@ public NewRelicAccountProperties newRelicAccountProperties() {
/**
* Set the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @param newRelicAccountProperties the newRelicAccountProperties value to set.
* @return the MonitorProperties object itself.
*/
@@ -147,7 +163,7 @@ public MonitorProperties withNewRelicAccountProperties(NewRelicAccountProperties
/**
* Get the userInfo property: User Info.
- *
+ *
* @return the userInfo value.
*/
public UserInfo userInfo() {
@@ -156,7 +172,7 @@ public UserInfo userInfo() {
/**
* Set the userInfo property: User Info.
- *
+ *
* @param userInfo the userInfo value to set.
* @return the MonitorProperties object itself.
*/
@@ -167,7 +183,7 @@ public MonitorProperties withUserInfo(UserInfo userInfo) {
/**
* Get the planData property: Plan details.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -176,7 +192,7 @@ public PlanData planData() {
/**
* Set the planData property: Plan details.
- *
+ *
* @param planData the planData value to set.
* @return the MonitorProperties object itself.
*/
@@ -187,7 +203,7 @@ public MonitorProperties withPlanData(PlanData planData) {
/**
* Get the liftrResourceCategory property: Liftr resource category.
- *
+ *
* @return the liftrResourceCategory value.
*/
public LiftrResourceCategories liftrResourceCategory() {
@@ -196,7 +212,7 @@ public LiftrResourceCategories liftrResourceCategory() {
/**
* Get the liftrResourcePreference property: Liftr resource preference. The priority of the resource.
- *
+ *
* @return the liftrResourcePreference value.
*/
public Integer liftrResourcePreference() {
@@ -205,7 +221,7 @@ public Integer liftrResourcePreference() {
/**
* Get the orgCreationSource property: Source of org creation.
- *
+ *
* @return the orgCreationSource value.
*/
public OrgCreationSource orgCreationSource() {
@@ -214,7 +230,7 @@ public OrgCreationSource orgCreationSource() {
/**
* Set the orgCreationSource property: Source of org creation.
- *
+ *
* @param orgCreationSource the orgCreationSource value to set.
* @return the MonitorProperties object itself.
*/
@@ -225,7 +241,7 @@ public MonitorProperties withOrgCreationSource(OrgCreationSource orgCreationSour
/**
* Get the accountCreationSource property: Source of account creation.
- *
+ *
* @return the accountCreationSource value.
*/
public AccountCreationSource accountCreationSource() {
@@ -234,7 +250,7 @@ public AccountCreationSource accountCreationSource() {
/**
* Set the accountCreationSource property: Source of account creation.
- *
+ *
* @param accountCreationSource the accountCreationSource value to set.
* @return the MonitorProperties object itself.
*/
@@ -243,9 +259,49 @@ public MonitorProperties withAccountCreationSource(AccountCreationSource account
return this;
}
+ /**
+ * Get the subscriptionState property: State of the Azure Subscription containing the monitor resource.
+ *
+ * @return the subscriptionState value.
+ */
+ public String subscriptionState() {
+ return this.subscriptionState;
+ }
+
+ /**
+ * Set the subscriptionState property: State of the Azure Subscription containing the monitor resource.
+ *
+ * @param subscriptionState the subscriptionState value to set.
+ * @return the MonitorProperties object itself.
+ */
+ public MonitorProperties withSubscriptionState(String subscriptionState) {
+ this.subscriptionState = subscriptionState;
+ return this;
+ }
+
+ /**
+ * Get the saaSAzureSubscriptionStatus property: Status of Azure Subscription where Marketplace SaaS is located.
+ *
+ * @return the saaSAzureSubscriptionStatus value.
+ */
+ public String saaSAzureSubscriptionStatus() {
+ return this.saaSAzureSubscriptionStatus;
+ }
+
+ /**
+ * Set the saaSAzureSubscriptionStatus property: Status of Azure Subscription where Marketplace SaaS is located.
+ *
+ * @param saaSAzureSubscriptionStatus the saaSAzureSubscriptionStatus value to set.
+ * @return the MonitorProperties object itself.
+ */
+ public MonitorProperties withSaaSAzureSubscriptionStatus(String saaSAzureSubscriptionStatus) {
+ this.saaSAzureSubscriptionStatus = saaSAzureSubscriptionStatus;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredResourceInner.java
index 294cfd43a25ed..2067b0609c848 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredResourceInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredResourceInner.java
@@ -9,7 +9,9 @@
import com.azure.resourcemanager.newrelicobservability.models.SendingMetricsStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Details of resource being monitored by NewRelic monitor resource. */
+/**
+ * Details of resource being monitored by NewRelic monitor resource.
+ */
@Fluent
public final class MonitoredResourceInner {
/*
@@ -42,13 +44,15 @@ public final class MonitoredResourceInner {
@JsonProperty(value = "reasonForLogsStatus")
private String reasonForLogsStatus;
- /** Creates an instance of MonitoredResourceInner class. */
+ /**
+ * Creates an instance of MonitoredResourceInner class.
+ */
public MonitoredResourceInner() {
}
/**
* Get the id property: The ARM id of the resource.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -57,7 +61,7 @@ public String id() {
/**
* Set the id property: The ARM id of the resource.
- *
+ *
* @param id the id value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -68,7 +72,7 @@ public MonitoredResourceInner withId(String id) {
/**
* Get the sendingMetrics property: Flag indicating if resource is sending metrics to NewRelic.
- *
+ *
* @return the sendingMetrics value.
*/
public SendingMetricsStatus sendingMetrics() {
@@ -77,7 +81,7 @@ public SendingMetricsStatus sendingMetrics() {
/**
* Set the sendingMetrics property: Flag indicating if resource is sending metrics to NewRelic.
- *
+ *
* @param sendingMetrics the sendingMetrics value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -89,7 +93,7 @@ public MonitoredResourceInner withSendingMetrics(SendingMetricsStatus sendingMet
/**
* Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
* sending).
- *
+ *
* @return the reasonForMetricsStatus value.
*/
public String reasonForMetricsStatus() {
@@ -99,7 +103,7 @@ public String reasonForMetricsStatus() {
/**
* Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
* sending).
- *
+ *
* @param reasonForMetricsStatus the reasonForMetricsStatus value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -110,7 +114,7 @@ public MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetrics
/**
* Get the sendingLogs property: Flag indicating if resource is sending logs to NewRelic.
- *
+ *
* @return the sendingLogs value.
*/
public SendingLogsStatus sendingLogs() {
@@ -119,7 +123,7 @@ public SendingLogsStatus sendingLogs() {
/**
* Set the sendingLogs property: Flag indicating if resource is sending logs to NewRelic.
- *
+ *
* @param sendingLogs the sendingLogs value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -130,7 +134,7 @@ public MonitoredResourceInner withSendingLogs(SendingLogsStatus sendingLogs) {
/**
* Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
- *
+ *
* @return the reasonForLogsStatus value.
*/
public String reasonForLogsStatus() {
@@ -139,7 +143,7 @@ public String reasonForLogsStatus() {
/**
* Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
- *
+ *
* @param reasonForLogsStatus the reasonForLogsStatus value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -150,7 +154,7 @@ public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionInner.java
new file mode 100644
index 0000000000000..46e8a7c4dbee2
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionInner.java
@@ -0,0 +1,136 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.newrelicobservability.models.Status;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The list of subscriptions and it's monitoring status by current NewRelic monitor.
+ */
+@Fluent
+public final class MonitoredSubscriptionInner {
+ /*
+ * The subscriptionId to be monitored.
+ */
+ @JsonProperty(value = "subscriptionId")
+ private String subscriptionId;
+
+ /*
+ * The state of monitoring.
+ */
+ @JsonProperty(value = "status")
+ private Status status;
+
+ /*
+ * The reason of not monitoring the subscription.
+ */
+ @JsonProperty(value = "error")
+ private String error;
+
+ /*
+ * The resource-specific properties for this resource.
+ */
+ @JsonProperty(value = "tagRules")
+ private MonitoringTagRulesPropertiesInner tagRules;
+
+ /**
+ * Creates an instance of MonitoredSubscriptionInner class.
+ */
+ public MonitoredSubscriptionInner() {
+ }
+
+ /**
+ * Get the subscriptionId property: The subscriptionId to be monitored.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: The subscriptionId to be monitored.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the MonitoredSubscriptionInner object itself.
+ */
+ public MonitoredSubscriptionInner withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the status property: The state of monitoring.
+ *
+ * @return the status value.
+ */
+ public Status status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: The state of monitoring.
+ *
+ * @param status the status value to set.
+ * @return the MonitoredSubscriptionInner object itself.
+ */
+ public MonitoredSubscriptionInner withStatus(Status status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the error property: The reason of not monitoring the subscription.
+ *
+ * @return the error value.
+ */
+ public String error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: The reason of not monitoring the subscription.
+ *
+ * @param error the error value to set.
+ * @return the MonitoredSubscriptionInner object itself.
+ */
+ public MonitoredSubscriptionInner withError(String error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get the tagRules property: The resource-specific properties for this resource.
+ *
+ * @return the tagRules value.
+ */
+ public MonitoringTagRulesPropertiesInner tagRules() {
+ return this.tagRules;
+ }
+
+ /**
+ * Set the tagRules property: The resource-specific properties for this resource.
+ *
+ * @param tagRules the tagRules value to set.
+ * @return the MonitoredSubscriptionInner object itself.
+ */
+ public MonitoredSubscriptionInner withTagRules(MonitoringTagRulesPropertiesInner tagRules) {
+ this.tagRules = tagRules;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (tagRules() != null) {
+ tagRules().validate();
+ }
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionPropertiesInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionPropertiesInner.java
new file mode 100644
index 0000000000000..aa16c325c746f
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoredSubscriptionPropertiesInner.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.newrelicobservability.models.SubscriptionList;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+@Fluent
+public final class MonitoredSubscriptionPropertiesInner extends ProxyResource {
+ /*
+ * The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @JsonProperty(value = "properties")
+ private SubscriptionList properties;
+
+ /**
+ * Creates an instance of MonitoredSubscriptionPropertiesInner class.
+ */
+ public MonitoredSubscriptionPropertiesInner() {
+ }
+
+ /**
+ * Get the properties property: The request to update subscriptions needed to be monitored by the NewRelic monitor
+ * resource.
+ *
+ * @return the properties value.
+ */
+ public SubscriptionList properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The request to update subscriptions needed to be monitored by the NewRelic monitor
+ * resource.
+ *
+ * @param properties the properties value to set.
+ * @return the MonitoredSubscriptionPropertiesInner object itself.
+ */
+ public MonitoredSubscriptionPropertiesInner withProperties(SubscriptionList properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoringTagRulesPropertiesInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoringTagRulesPropertiesInner.java
index d52542789b3f9..69fba227d8739 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoringTagRulesPropertiesInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/MonitoringTagRulesPropertiesInner.java
@@ -9,7 +9,9 @@
import com.azure.resourcemanager.newrelicobservability.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The resource-specific properties for this resource. */
+/**
+ * The resource-specific properties for this resource.
+ */
@Fluent
public final class MonitoringTagRulesPropertiesInner {
/*
@@ -30,13 +32,15 @@ public final class MonitoringTagRulesPropertiesInner {
@JsonProperty(value = "metricRules")
private MetricRulesInner metricRules;
- /** Creates an instance of MonitoringTagRulesPropertiesInner class. */
+ /**
+ * Creates an instance of MonitoringTagRulesPropertiesInner class.
+ */
public MonitoringTagRulesPropertiesInner() {
}
/**
* Get the provisioningState property: Provisioning State of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -45,7 +49,7 @@ public ProvisioningState provisioningState() {
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -54,7 +58,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the MonitoringTagRulesPropertiesInner object itself.
*/
@@ -65,7 +69,7 @@ public MonitoringTagRulesPropertiesInner withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRulesInner metricRules() {
@@ -74,7 +78,7 @@ public MetricRulesInner metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the MonitoringTagRulesPropertiesInner object itself.
*/
@@ -85,7 +89,7 @@ public MonitoringTagRulesPropertiesInner withMetricRules(MetricRulesInner metric
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceInner.java
index 54fbf990fbf46..2d24d2e99e2bc 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceInner.java
@@ -21,7 +21,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** A Monitor Resource by NewRelic. */
+/**
+ * A Monitor Resource by NewRelic.
+ */
@Fluent
public final class NewRelicMonitorResourceInner extends Resource {
/*
@@ -42,13 +44,15 @@ public final class NewRelicMonitorResourceInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of NewRelicMonitorResourceInner class. */
+ /**
+ * Creates an instance of NewRelicMonitorResourceInner class.
+ */
public NewRelicMonitorResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private MonitorProperties innerProperties() {
@@ -57,7 +61,7 @@ private MonitorProperties innerProperties() {
/**
* Get the identity property: The managed service identities assigned to this resource.
- *
+ *
* @return the identity value.
*/
public ManagedServiceIdentity identity() {
@@ -66,7 +70,7 @@ public ManagedServiceIdentity identity() {
/**
* Set the identity property: The managed service identities assigned to this resource.
- *
+ *
* @param identity the identity value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
@@ -77,21 +81,25 @@ public NewRelicMonitorResourceInner withIdentity(ManagedServiceIdentity identity
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public NewRelicMonitorResourceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public NewRelicMonitorResourceInner withTags(Map tags) {
super.withTags(tags);
@@ -100,7 +108,7 @@ public NewRelicMonitorResourceInner withTags(Map tags) {
/**
* Get the provisioningState property: Provisioning State of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -109,7 +117,7 @@ public ProvisioningState provisioningState() {
/**
* Get the monitoringStatus property: MonitoringStatus of the resource.
- *
+ *
* @return the monitoringStatus value.
*/
public MonitoringStatus monitoringStatus() {
@@ -118,7 +126,7 @@ public MonitoringStatus monitoringStatus() {
/**
* Get the marketplaceSubscriptionStatus property: NewRelic Organization properties of the resource.
- *
+ *
* @return the marketplaceSubscriptionStatus value.
*/
public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
@@ -127,7 +135,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Get the marketplaceSubscriptionId property: Marketplace Subscription Id.
- *
+ *
* @return the marketplaceSubscriptionId value.
*/
public String marketplaceSubscriptionId() {
@@ -136,7 +144,7 @@ public String marketplaceSubscriptionId() {
/**
* Get the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @return the newRelicAccountProperties value.
*/
public NewRelicAccountProperties newRelicAccountProperties() {
@@ -145,12 +153,12 @@ public NewRelicAccountProperties newRelicAccountProperties() {
/**
* Set the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @param newRelicAccountProperties the newRelicAccountProperties value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
- public NewRelicMonitorResourceInner withNewRelicAccountProperties(
- NewRelicAccountProperties newRelicAccountProperties) {
+ public NewRelicMonitorResourceInner
+ withNewRelicAccountProperties(NewRelicAccountProperties newRelicAccountProperties) {
if (this.innerProperties() == null) {
this.innerProperties = new MonitorProperties();
}
@@ -160,7 +168,7 @@ public NewRelicMonitorResourceInner withNewRelicAccountProperties(
/**
* Get the userInfo property: User Info.
- *
+ *
* @return the userInfo value.
*/
public UserInfo userInfo() {
@@ -169,7 +177,7 @@ public UserInfo userInfo() {
/**
* Set the userInfo property: User Info.
- *
+ *
* @param userInfo the userInfo value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
@@ -183,7 +191,7 @@ public NewRelicMonitorResourceInner withUserInfo(UserInfo userInfo) {
/**
* Get the planData property: Plan details.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -192,7 +200,7 @@ public PlanData planData() {
/**
* Set the planData property: Plan details.
- *
+ *
* @param planData the planData value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
@@ -206,7 +214,7 @@ public NewRelicMonitorResourceInner withPlanData(PlanData planData) {
/**
* Get the liftrResourceCategory property: Liftr resource category.
- *
+ *
* @return the liftrResourceCategory value.
*/
public LiftrResourceCategories liftrResourceCategory() {
@@ -215,7 +223,7 @@ public LiftrResourceCategories liftrResourceCategory() {
/**
* Get the liftrResourcePreference property: Liftr resource preference. The priority of the resource.
- *
+ *
* @return the liftrResourcePreference value.
*/
public Integer liftrResourcePreference() {
@@ -224,7 +232,7 @@ public Integer liftrResourcePreference() {
/**
* Get the orgCreationSource property: Source of org creation.
- *
+ *
* @return the orgCreationSource value.
*/
public OrgCreationSource orgCreationSource() {
@@ -233,7 +241,7 @@ public OrgCreationSource orgCreationSource() {
/**
* Set the orgCreationSource property: Source of org creation.
- *
+ *
* @param orgCreationSource the orgCreationSource value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
@@ -247,7 +255,7 @@ public NewRelicMonitorResourceInner withOrgCreationSource(OrgCreationSource orgC
/**
* Get the accountCreationSource property: Source of account creation.
- *
+ *
* @return the accountCreationSource value.
*/
public AccountCreationSource accountCreationSource() {
@@ -256,7 +264,7 @@ public AccountCreationSource accountCreationSource() {
/**
* Set the accountCreationSource property: Source of account creation.
- *
+ *
* @param accountCreationSource the accountCreationSource value to set.
* @return the NewRelicMonitorResourceInner object itself.
*/
@@ -268,17 +276,61 @@ public NewRelicMonitorResourceInner withAccountCreationSource(AccountCreationSou
return this;
}
+ /**
+ * Get the subscriptionState property: State of the Azure Subscription containing the monitor resource.
+ *
+ * @return the subscriptionState value.
+ */
+ public String subscriptionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().subscriptionState();
+ }
+
+ /**
+ * Set the subscriptionState property: State of the Azure Subscription containing the monitor resource.
+ *
+ * @param subscriptionState the subscriptionState value to set.
+ * @return the NewRelicMonitorResourceInner object itself.
+ */
+ public NewRelicMonitorResourceInner withSubscriptionState(String subscriptionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MonitorProperties();
+ }
+ this.innerProperties().withSubscriptionState(subscriptionState);
+ return this;
+ }
+
+ /**
+ * Get the saaSAzureSubscriptionStatus property: Status of Azure Subscription where Marketplace SaaS is located.
+ *
+ * @return the saaSAzureSubscriptionStatus value.
+ */
+ public String saaSAzureSubscriptionStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().saaSAzureSubscriptionStatus();
+ }
+
+ /**
+ * Set the saaSAzureSubscriptionStatus property: Status of Azure Subscription where Marketplace SaaS is located.
+ *
+ * @param saaSAzureSubscriptionStatus the saaSAzureSubscriptionStatus value to set.
+ * @return the NewRelicMonitorResourceInner object itself.
+ */
+ public NewRelicMonitorResourceInner withSaaSAzureSubscriptionStatus(String saaSAzureSubscriptionStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MonitorProperties();
+ }
+ this.innerProperties().withSaaSAzureSubscriptionStatus(saaSAzureSubscriptionStatus);
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerProperties in model NewRelicMonitorResourceInner"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property innerProperties in model NewRelicMonitorResourceInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceUpdateProperties.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceUpdateProperties.java
index 0d8d715951c77..f4ef675e1293d 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceUpdateProperties.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/NewRelicMonitorResourceUpdateProperties.java
@@ -12,7 +12,9 @@
import com.azure.resourcemanager.newrelicobservability.models.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The updatable properties of the NewRelicMonitorResource. */
+/**
+ * The updatable properties of the NewRelicMonitorResource.
+ */
@Fluent
public final class NewRelicMonitorResourceUpdateProperties {
/*
@@ -45,13 +47,15 @@ public final class NewRelicMonitorResourceUpdateProperties {
@JsonProperty(value = "accountCreationSource")
private AccountCreationSource accountCreationSource;
- /** Creates an instance of NewRelicMonitorResourceUpdateProperties class. */
+ /**
+ * Creates an instance of NewRelicMonitorResourceUpdateProperties class.
+ */
public NewRelicMonitorResourceUpdateProperties() {
}
/**
* Get the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @return the newRelicAccountProperties value.
*/
public NewRelicAccountProperties newRelicAccountProperties() {
@@ -60,19 +64,19 @@ public NewRelicAccountProperties newRelicAccountProperties() {
/**
* Set the newRelicAccountProperties property: MarketplaceSubscriptionStatus of the resource.
- *
+ *
* @param newRelicAccountProperties the newRelicAccountProperties value to set.
* @return the NewRelicMonitorResourceUpdateProperties object itself.
*/
- public NewRelicMonitorResourceUpdateProperties withNewRelicAccountProperties(
- NewRelicAccountProperties newRelicAccountProperties) {
+ public NewRelicMonitorResourceUpdateProperties
+ withNewRelicAccountProperties(NewRelicAccountProperties newRelicAccountProperties) {
this.newRelicAccountProperties = newRelicAccountProperties;
return this;
}
/**
* Get the userInfo property: User Info.
- *
+ *
* @return the userInfo value.
*/
public UserInfo userInfo() {
@@ -81,7 +85,7 @@ public UserInfo userInfo() {
/**
* Set the userInfo property: User Info.
- *
+ *
* @param userInfo the userInfo value to set.
* @return the NewRelicMonitorResourceUpdateProperties object itself.
*/
@@ -92,7 +96,7 @@ public NewRelicMonitorResourceUpdateProperties withUserInfo(UserInfo userInfo) {
/**
* Get the planData property: Plan details.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -101,7 +105,7 @@ public PlanData planData() {
/**
* Set the planData property: Plan details.
- *
+ *
* @param planData the planData value to set.
* @return the NewRelicMonitorResourceUpdateProperties object itself.
*/
@@ -112,7 +116,7 @@ public NewRelicMonitorResourceUpdateProperties withPlanData(PlanData planData) {
/**
* Get the orgCreationSource property: Source of org creation.
- *
+ *
* @return the orgCreationSource value.
*/
public OrgCreationSource orgCreationSource() {
@@ -121,7 +125,7 @@ public OrgCreationSource orgCreationSource() {
/**
* Set the orgCreationSource property: Source of org creation.
- *
+ *
* @param orgCreationSource the orgCreationSource value to set.
* @return the NewRelicMonitorResourceUpdateProperties object itself.
*/
@@ -132,7 +136,7 @@ public NewRelicMonitorResourceUpdateProperties withOrgCreationSource(OrgCreation
/**
* Get the accountCreationSource property: Source of account creation.
- *
+ *
* @return the accountCreationSource value.
*/
public AccountCreationSource accountCreationSource() {
@@ -141,19 +145,19 @@ public AccountCreationSource accountCreationSource() {
/**
* Set the accountCreationSource property: Source of account creation.
- *
+ *
* @param accountCreationSource the accountCreationSource value to set.
* @return the NewRelicMonitorResourceUpdateProperties object itself.
*/
- public NewRelicMonitorResourceUpdateProperties withAccountCreationSource(
- AccountCreationSource accountCreationSource) {
+ public NewRelicMonitorResourceUpdateProperties
+ withAccountCreationSource(AccountCreationSource accountCreationSource) {
this.accountCreationSource = accountCreationSource;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OperationInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OperationInner.java
index ea0884c17c93c..fcb6e352326f2 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OperationInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OperationInner.java
@@ -12,8 +12,8 @@
/**
* 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 {
@@ -50,14 +50,16 @@ public final class OperationInner {
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
- /** Creates an instance of OperationInner class. */
+ /**
+ * 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() {
@@ -67,7 +69,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() {
@@ -76,7 +78,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -85,7 +87,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.
*/
@@ -97,7 +99,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() {
@@ -107,7 +109,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() {
@@ -116,7 +118,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationProperties.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationProperties.java
index 3aac3269f2783..687ebeed98901 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationProperties.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationProperties.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.newrelicobservability.models.BillingSource;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Details of Organizations. */
+/**
+ * Details of Organizations.
+ */
@Fluent
public final class OrganizationProperties {
/*
@@ -29,13 +31,15 @@ public final class OrganizationProperties {
@JsonProperty(value = "billingSource")
private BillingSource billingSource;
- /** Creates an instance of OrganizationProperties class. */
+ /**
+ * Creates an instance of OrganizationProperties class.
+ */
public OrganizationProperties() {
}
/**
* Get the organizationId property: organization id.
- *
+ *
* @return the organizationId value.
*/
public String organizationId() {
@@ -44,7 +48,7 @@ public String organizationId() {
/**
* Set the organizationId property: organization id.
- *
+ *
* @param organizationId the organizationId value to set.
* @return the OrganizationProperties object itself.
*/
@@ -55,7 +59,7 @@ public OrganizationProperties withOrganizationId(String organizationId) {
/**
* Get the organizationName property: organization name.
- *
+ *
* @return the organizationName value.
*/
public String organizationName() {
@@ -64,7 +68,7 @@ public String organizationName() {
/**
* Set the organizationName property: organization name.
- *
+ *
* @param organizationName the organizationName value to set.
* @return the OrganizationProperties object itself.
*/
@@ -75,7 +79,7 @@ public OrganizationProperties withOrganizationName(String organizationName) {
/**
* Get the billingSource property: Billing source.
- *
+ *
* @return the billingSource value.
*/
public BillingSource billingSource() {
@@ -84,7 +88,7 @@ public BillingSource billingSource() {
/**
* Set the billingSource property: Billing source.
- *
+ *
* @param billingSource the billingSource value to set.
* @return the OrganizationProperties object itself.
*/
@@ -95,7 +99,7 @@ public OrganizationProperties withBillingSource(BillingSource billingSource) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationResourceInner.java
index e4c77069e6c21..49728479de56a 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationResourceInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/OrganizationResourceInner.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.newrelicobservability.models.BillingSource;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The details of a Organization resource. */
+/**
+ * The details of a Organization resource.
+ */
@Fluent
public final class OrganizationResourceInner extends ProxyResource {
/*
@@ -25,13 +27,15 @@ public final class OrganizationResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of OrganizationResourceInner class. */
+ /**
+ * Creates an instance of OrganizationResourceInner class.
+ */
public OrganizationResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private OrganizationProperties innerProperties() {
@@ -40,7 +44,7 @@ private OrganizationProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -49,7 +53,7 @@ public SystemData systemData() {
/**
* Get the organizationId property: organization id.
- *
+ *
* @return the organizationId value.
*/
public String organizationId() {
@@ -58,7 +62,7 @@ public String organizationId() {
/**
* Set the organizationId property: organization id.
- *
+ *
* @param organizationId the organizationId value to set.
* @return the OrganizationResourceInner object itself.
*/
@@ -72,7 +76,7 @@ public OrganizationResourceInner withOrganizationId(String organizationId) {
/**
* Get the organizationName property: organization name.
- *
+ *
* @return the organizationName value.
*/
public String organizationName() {
@@ -81,7 +85,7 @@ public String organizationName() {
/**
* Set the organizationName property: organization name.
- *
+ *
* @param organizationName the organizationName value to set.
* @return the OrganizationResourceInner object itself.
*/
@@ -95,7 +99,7 @@ public OrganizationResourceInner withOrganizationName(String organizationName) {
/**
* Get the billingSource property: Billing source.
- *
+ *
* @return the billingSource value.
*/
public BillingSource billingSource() {
@@ -104,7 +108,7 @@ public BillingSource billingSource() {
/**
* Set the billingSource property: Billing source.
- *
+ *
* @param billingSource the billingSource value to set.
* @return the OrganizationResourceInner object itself.
*/
@@ -118,7 +122,7 @@ public OrganizationResourceInner withBillingSource(BillingSource billingSource)
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataProperties.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataProperties.java
index b4ab5beb338a0..2773e5d2527c1 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataProperties.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataProperties.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.newrelicobservability.models.PlanData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Plan details. */
+/**
+ * Plan details.
+ */
@Fluent
public final class PlanDataProperties {
/*
@@ -31,13 +33,15 @@ public final class PlanDataProperties {
@JsonProperty(value = "accountCreationSource")
private AccountCreationSource accountCreationSource;
- /** Creates an instance of PlanDataProperties class. */
+ /**
+ * Creates an instance of PlanDataProperties class.
+ */
public PlanDataProperties() {
}
/**
* Get the planData property: Plan details.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -46,7 +50,7 @@ public PlanData planData() {
/**
* Set the planData property: Plan details.
- *
+ *
* @param planData the planData value to set.
* @return the PlanDataProperties object itself.
*/
@@ -57,7 +61,7 @@ public PlanDataProperties withPlanData(PlanData planData) {
/**
* Get the orgCreationSource property: Source of org creation.
- *
+ *
* @return the orgCreationSource value.
*/
public OrgCreationSource orgCreationSource() {
@@ -66,7 +70,7 @@ public OrgCreationSource orgCreationSource() {
/**
* Set the orgCreationSource property: Source of org creation.
- *
+ *
* @param orgCreationSource the orgCreationSource value to set.
* @return the PlanDataProperties object itself.
*/
@@ -77,7 +81,7 @@ public PlanDataProperties withOrgCreationSource(OrgCreationSource orgCreationSou
/**
* Get the accountCreationSource property: Source of account creation.
- *
+ *
* @return the accountCreationSource value.
*/
public AccountCreationSource accountCreationSource() {
@@ -86,7 +90,7 @@ public AccountCreationSource accountCreationSource() {
/**
* Set the accountCreationSource property: Source of account creation.
- *
+ *
* @param accountCreationSource the accountCreationSource value to set.
* @return the PlanDataProperties object itself.
*/
@@ -97,7 +101,7 @@ public PlanDataProperties withAccountCreationSource(AccountCreationSource accoun
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataResourceInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataResourceInner.java
index d541fd5140838..000633eb66ce7 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataResourceInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/PlanDataResourceInner.java
@@ -12,7 +12,9 @@
import com.azure.resourcemanager.newrelicobservability.models.PlanData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The details of a PlanData resource. */
+/**
+ * The details of a PlanData resource.
+ */
@Fluent
public final class PlanDataResourceInner extends ProxyResource {
/*
@@ -27,13 +29,15 @@ public final class PlanDataResourceInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of PlanDataResourceInner class. */
+ /**
+ * Creates an instance of PlanDataResourceInner class.
+ */
public PlanDataResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private PlanDataProperties innerProperties() {
@@ -42,7 +46,7 @@ private PlanDataProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -51,7 +55,7 @@ public SystemData systemData() {
/**
* Get the planData property: Plan details.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -60,7 +64,7 @@ public PlanData planData() {
/**
* Set the planData property: Plan details.
- *
+ *
* @param planData the planData value to set.
* @return the PlanDataResourceInner object itself.
*/
@@ -74,7 +78,7 @@ public PlanDataResourceInner withPlanData(PlanData planData) {
/**
* Get the orgCreationSource property: Source of org creation.
- *
+ *
* @return the orgCreationSource value.
*/
public OrgCreationSource orgCreationSource() {
@@ -83,7 +87,7 @@ public OrgCreationSource orgCreationSource() {
/**
* Set the orgCreationSource property: Source of org creation.
- *
+ *
* @param orgCreationSource the orgCreationSource value to set.
* @return the PlanDataResourceInner object itself.
*/
@@ -97,7 +101,7 @@ public PlanDataResourceInner withOrgCreationSource(OrgCreationSource orgCreation
/**
* Get the accountCreationSource property: Source of account creation.
- *
+ *
* @return the accountCreationSource value.
*/
public AccountCreationSource accountCreationSource() {
@@ -106,7 +110,7 @@ public AccountCreationSource accountCreationSource() {
/**
* Set the accountCreationSource property: Source of account creation.
- *
+ *
* @param accountCreationSource the accountCreationSource value to set.
* @return the PlanDataResourceInner object itself.
*/
@@ -120,7 +124,7 @@ public PlanDataResourceInner withAccountCreationSource(AccountCreationSource acc
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleInner.java
index 8a237df6055a4..9990f515edcbb 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleInner.java
@@ -12,7 +12,9 @@
import com.azure.resourcemanager.newrelicobservability.models.ProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** A tag rule belonging to NewRelic account. */
+/**
+ * A tag rule belonging to NewRelic account.
+ */
@Fluent
public final class TagRuleInner extends ProxyResource {
/*
@@ -27,13 +29,15 @@ public final class TagRuleInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of TagRuleInner class. */
+ /**
+ * Creates an instance of TagRuleInner class.
+ */
public TagRuleInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private MonitoringTagRulesPropertiesInner innerProperties() {
@@ -42,7 +46,7 @@ private MonitoringTagRulesPropertiesInner innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -51,7 +55,7 @@ public SystemData systemData() {
/**
* Get the provisioningState property: Provisioning State of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -60,7 +64,7 @@ public ProvisioningState provisioningState() {
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -69,7 +73,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the TagRuleInner object itself.
*/
@@ -83,7 +87,7 @@ public TagRuleInner withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRulesInner metricRules() {
@@ -92,7 +96,7 @@ public MetricRulesInner metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the TagRuleInner object itself.
*/
@@ -106,14 +110,13 @@ public TagRuleInner withMetricRules(MetricRulesInner metricRules) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property innerProperties in model TagRuleInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model TagRuleInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdateInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdateInner.java
index dfef473f2a644..20f78dee1a815 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdateInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdateInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.newrelicobservability.models.LogRules;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The type used for update operations of the TagRule. */
+/**
+ * The type used for update operations of the TagRule.
+ */
@Fluent
public final class TagRuleUpdateInner {
/*
@@ -17,13 +19,15 @@ public final class TagRuleUpdateInner {
@JsonProperty(value = "properties")
private TagRuleUpdatePropertiesInner innerProperties;
- /** Creates an instance of TagRuleUpdateInner class. */
+ /**
+ * Creates an instance of TagRuleUpdateInner class.
+ */
public TagRuleUpdateInner() {
}
/**
* Get the innerProperties property: The updatable properties of the TagRule.
- *
+ *
* @return the innerProperties value.
*/
private TagRuleUpdatePropertiesInner innerProperties() {
@@ -32,7 +36,7 @@ private TagRuleUpdatePropertiesInner innerProperties() {
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -41,7 +45,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the TagRuleUpdateInner object itself.
*/
@@ -55,7 +59,7 @@ public TagRuleUpdateInner withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRulesInner metricRules() {
@@ -64,7 +68,7 @@ public MetricRulesInner metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the TagRuleUpdateInner object itself.
*/
@@ -78,7 +82,7 @@ public TagRuleUpdateInner withMetricRules(MetricRulesInner metricRules) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdatePropertiesInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdatePropertiesInner.java
index 687bdad877088..1dc98a2c7f9d6 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdatePropertiesInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/TagRuleUpdatePropertiesInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.newrelicobservability.models.LogRules;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The updatable properties of the TagRule. */
+/**
+ * The updatable properties of the TagRule.
+ */
@Fluent
public final class TagRuleUpdatePropertiesInner {
/*
@@ -23,13 +25,15 @@ public final class TagRuleUpdatePropertiesInner {
@JsonProperty(value = "metricRules")
private MetricRulesInner metricRules;
- /** Creates an instance of TagRuleUpdatePropertiesInner class. */
+ /**
+ * Creates an instance of TagRuleUpdatePropertiesInner class.
+ */
public TagRuleUpdatePropertiesInner() {
}
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -38,7 +42,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the TagRuleUpdatePropertiesInner object itself.
*/
@@ -49,7 +53,7 @@ public TagRuleUpdatePropertiesInner withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRulesInner metricRules() {
@@ -58,7 +62,7 @@ public MetricRulesInner metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the TagRuleUpdatePropertiesInner object itself.
*/
@@ -69,7 +73,7 @@ public TagRuleUpdatePropertiesInner withMetricRules(MetricRulesInner metricRules
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMExtensionPayloadInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMExtensionPayloadInner.java
index c8bd75268003c..6923a21104e71 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMExtensionPayloadInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMExtensionPayloadInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Response of payload to be passed while installing VM agent. */
+/**
+ * Response of payload to be passed while installing VM agent.
+ */
@Fluent
public final class VMExtensionPayloadInner {
/*
@@ -16,13 +18,15 @@ public final class VMExtensionPayloadInner {
@JsonProperty(value = "ingestionKey")
private String ingestionKey;
- /** Creates an instance of VMExtensionPayloadInner class. */
+ /**
+ * Creates an instance of VMExtensionPayloadInner class.
+ */
public VMExtensionPayloadInner() {
}
/**
* Get the ingestionKey property: Ingestion key of the account.
- *
+ *
* @return the ingestionKey value.
*/
public String ingestionKey() {
@@ -31,7 +35,7 @@ public String ingestionKey() {
/**
* Set the ingestionKey property: Ingestion key of the account.
- *
+ *
* @param ingestionKey the ingestionKey value to set.
* @return the VMExtensionPayloadInner object itself.
*/
@@ -42,7 +46,7 @@ public VMExtensionPayloadInner withIngestionKey(String ingestionKey) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMInfoInner.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMInfoInner.java
index 34029b0c1850d..337f45f108224 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMInfoInner.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/VMInfoInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Details of VM Resource having NewRelic OneAgent installed. */
+/**
+ * Details of VM Resource having NewRelic OneAgent installed.
+ */
@Fluent
public final class VMInfoInner {
/*
@@ -28,13 +30,15 @@ public final class VMInfoInner {
@JsonProperty(value = "agentStatus")
private String agentStatus;
- /** Creates an instance of VMInfoInner class. */
+ /**
+ * Creates an instance of VMInfoInner class.
+ */
public VMInfoInner() {
}
/**
* Get the vmId property: Azure VM resource ID.
- *
+ *
* @return the vmId value.
*/
public String vmId() {
@@ -43,7 +47,7 @@ public String vmId() {
/**
* Set the vmId property: Azure VM resource ID.
- *
+ *
* @param vmId the vmId value to set.
* @return the VMInfoInner object itself.
*/
@@ -54,7 +58,7 @@ public VMInfoInner withVmId(String vmId) {
/**
* Get the agentVersion property: Version of the NewRelic agent installed on the VM.
- *
+ *
* @return the agentVersion value.
*/
public String agentVersion() {
@@ -63,7 +67,7 @@ public String agentVersion() {
/**
* Set the agentVersion property: Version of the NewRelic agent installed on the VM.
- *
+ *
* @param agentVersion the agentVersion value to set.
* @return the VMInfoInner object itself.
*/
@@ -74,7 +78,7 @@ public VMInfoInner withAgentVersion(String agentVersion) {
/**
* Get the agentStatus property: Status of the NewRelic agent installed on the VM.
- *
+ *
* @return the agentStatus value.
*/
public String agentStatus() {
@@ -83,7 +87,7 @@ public String agentStatus() {
/**
* Set the agentStatus property: Status of the NewRelic agent installed on the VM.
- *
+ *
* @param agentStatus the agentStatus value to set.
* @return the VMInfoInner object itself.
*/
@@ -94,7 +98,7 @@ public VMInfoInner withAgentStatus(String agentStatus) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/package-info.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/package-info.java
index 92ec93e13d33e..57f83d2067eff 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/package-info.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for NewRelicObservability. null. */
+/**
+ * Package containing the inner data models for NewRelicObservability.
+ * null.
+ */
package com.azure.resourcemanager.newrelicobservability.fluent.models;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/package-info.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/package-info.java
index 9639651ea926e..ac6fed96890a7 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/package-info.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for NewRelicObservability. null. */
+/**
+ * Package containing the service clients for NewRelicObservability.
+ * null.
+ */
package com.azure.resourcemanager.newrelicobservability.fluent;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountResourceImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountResourceImpl.java
index 02212054a6241..ba5eb8ffef8f6 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountResourceImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountResourceImpl.java
@@ -13,8 +13,7 @@ public final class AccountResourceImpl implements AccountResource {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- AccountResourceImpl(
- AccountResourceInner innerObject,
+ AccountResourceImpl(AccountResourceInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsClientImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsClientImpl.java
index a04acdb1b9fb5..486fe2a102817 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsClientImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsClientImpl.java
@@ -30,17 +30,23 @@
import com.azure.resourcemanager.newrelicobservability.models.AccountsListResponse;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in AccountsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AccountsClient.
+ */
public final class AccountsClientImpl implements AccountsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final AccountsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final NewRelicObservabilityImpl client;
/**
* Initializes an instance of AccountsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
AccountsClientImpl(NewRelicObservabilityImpl client) {
@@ -55,54 +61,43 @@ public final class AccountsClientImpl implements AccountsClient {
@Host("{$host}")
@ServiceInterface(name = "NewRelicObservabilit")
public interface AccountsService {
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/NewRelic.Observability/accounts")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @QueryParam("userEmail") String userEmail,
- @QueryParam("location") String location,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("userEmail") String userEmail, @QueryParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @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 response of get all accounts Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String userEmail, String location) {
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 (userEmail == null) {
return Mono.error(new IllegalArgumentException("Parameter userEmail is required and cannot be null."));
@@ -112,32 +107,16 @@ private Mono> listSinglePageAsync(String use
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- userEmail,
- location,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), userEmail, location, 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()));
}
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @param context The context to associate with this operation.
@@ -145,22 +124,18 @@ private Mono> listSinglePageAsync(String use
* @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 response of get all accounts Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String userEmail, String location, Context context) {
+ private Mono> listSinglePageAsync(String userEmail, String location,
+ 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 (userEmail == null) {
return Mono.error(new IllegalArgumentException("Parameter userEmail is required and cannot be null."));
@@ -171,28 +146,15 @@ private Mono> listSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- userEmail,
- location,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), userEmail,
+ location, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -202,13 +164,13 @@ private Mono> listSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String userEmail, String location) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(userEmail, location), nextLink -> listNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listSinglePageAsync(userEmail, location),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @param context The context to associate with this operation.
@@ -219,14 +181,13 @@ private PagedFlux listAsync(String userEmail, String locat
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String userEmail, String location, Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(userEmail, location, context),
+ return new PagedFlux<>(() -> listSinglePageAsync(userEmail, location, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -241,7 +202,7 @@ public PagedIterable list(String userEmail, String locatio
/**
* List all the existing accounts.
- *
+ *
* @param userEmail User Email.
* @param location Location for NewRelic.
* @param context The context to associate with this operation.
@@ -257,14 +218,15 @@ public PagedIterable list(String userEmail, String locatio
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * 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 response of get all accounts Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -272,37 +234,28 @@ private Mono> listNextSinglePageAsync(String
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."));
+ 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))
+ 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.
+ *
+ * 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 response of get all accounts Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
@@ -310,23 +263,13 @@ private Mono> listNextSinglePageAsync(String
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."));
+ 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));
+ 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/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsImpl.java
index c886051fb1ba0..989d43f5cd39c 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AccountsImpl.java
@@ -19,8 +19,7 @@ public final class AccountsImpl implements Accounts {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- public AccountsImpl(
- AccountsClient innerClient,
+ public AccountsImpl(AccountsClient innerClient,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
@@ -28,12 +27,12 @@ public AccountsImpl(
public PagedIterable list(String userEmail, String location) {
PagedIterable inner = this.serviceClient().list(userEmail, location);
- return Utils.mapPage(inner, inner1 -> new AccountResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AccountResourceImpl(inner1, this.manager()));
}
public PagedIterable list(String userEmail, String location, Context context) {
PagedIterable inner = this.serviceClient().list(userEmail, location, context);
- return Utils.mapPage(inner, inner1 -> new AccountResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new AccountResourceImpl(inner1, this.manager()));
}
private AccountsClient serviceClient() {
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AppServiceInfoImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AppServiceInfoImpl.java
index d23cb2edb8530..8839036a43f06 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AppServiceInfoImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/AppServiceInfoImpl.java
@@ -12,8 +12,7 @@ public final class AppServiceInfoImpl implements AppServiceInfo {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- AppServiceInfoImpl(
- AppServiceInfoInner innerObject,
+ AppServiceInfoImpl(AppServiceInfoInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoResponseImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoResponseImpl.java
new file mode 100644
index 0000000000000..d0c650d1d86b2
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoResponseImpl.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.resourcemanager.newrelicobservability.fluent.models.BillingInfoResponseInner;
+import com.azure.resourcemanager.newrelicobservability.models.BillingInfoResponse;
+import com.azure.resourcemanager.newrelicobservability.models.MarketplaceSaaSInfo;
+import com.azure.resourcemanager.newrelicobservability.models.PartnerBillingEntity;
+
+public final class BillingInfoResponseImpl implements BillingInfoResponse {
+ private BillingInfoResponseInner innerObject;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ BillingInfoResponseImpl(BillingInfoResponseInner innerObject,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public MarketplaceSaaSInfo marketplaceSaasInfo() {
+ return this.innerModel().marketplaceSaasInfo();
+ }
+
+ public PartnerBillingEntity partnerBillingEntity() {
+ return this.innerModel().partnerBillingEntity();
+ }
+
+ public BillingInfoResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesClientImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesClientImpl.java
new file mode 100644
index 0000000000000..421d8cd8c863b
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesClientImpl.java
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+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.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.newrelicobservability.fluent.BillingInfoesClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.BillingInfoResponseInner;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in BillingInfoesClient.
+ */
+public final class BillingInfoesClientImpl implements BillingInfoesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final BillingInfoesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NewRelicObservabilityImpl client;
+
+ /**
+ * Initializes an instance of BillingInfoesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BillingInfoesClientImpl(NewRelicObservabilityImpl client) {
+ this.service
+ = RestProxy.create(BillingInfoesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NewRelicObservabilityBillingInfoes to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "NewRelicObservabilit")
+ public interface BillingInfoesService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getBillingInfo")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 marketplace info mapped to the given monitor along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String monitorName) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, monitorName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 marketplace info mapped to the given monitor along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String monitorName,
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, accept, context);
+ }
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 marketplace info mapped to the given monitor on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String monitorName) {
+ return getWithResponseAsync(resourceGroupName, monitorName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 marketplace info mapped to the given monitor along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String monitorName,
+ Context context) {
+ return getWithResponseAsync(resourceGroupName, monitorName, context).block();
+ }
+
+ /**
+ * Get marketplace info mapped to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 marketplace info mapped to the given monitor.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public BillingInfoResponseInner get(String resourceGroupName, String monitorName) {
+ return getWithResponse(resourceGroupName, monitorName, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesImpl.java
new file mode 100644
index 0000000000000..6e3272bc8b5ed
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/BillingInfoesImpl.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.newrelicobservability.fluent.BillingInfoesClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.BillingInfoResponseInner;
+import com.azure.resourcemanager.newrelicobservability.models.BillingInfoResponse;
+import com.azure.resourcemanager.newrelicobservability.models.BillingInfoes;
+
+public final class BillingInfoesImpl implements BillingInfoes {
+ private static final ClientLogger LOGGER = new ClientLogger(BillingInfoesImpl.class);
+
+ private final BillingInfoesClient innerClient;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ public BillingInfoesImpl(BillingInfoesClient innerClient,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String monitorName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, monitorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new BillingInfoResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public BillingInfoResponse get(String resourceGroupName, String monitorName) {
+ BillingInfoResponseInner inner = this.serviceClient().get(resourceGroupName, monitorName);
+ if (inner != null) {
+ return new BillingInfoResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private BillingInfoesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesClientImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesClientImpl.java
new file mode 100644
index 0000000000000..122d706635971
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesClientImpl.java
@@ -0,0 +1,312 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.core.annotation.BodyParam;
+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.Post;
+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.newrelicobservability.fluent.ConnectedPartnerResourcesClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.ConnectedPartnerResourcesListFormatInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResourcesListResponse;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectedPartnerResourcesClient.
+ */
+public final class ConnectedPartnerResourcesClientImpl implements ConnectedPartnerResourcesClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ConnectedPartnerResourcesService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NewRelicObservabilityImpl client;
+
+ /**
+ * Initializes an instance of ConnectedPartnerResourcesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ConnectedPartnerResourcesClientImpl(NewRelicObservabilityImpl client) {
+ this.service = RestProxy.create(ConnectedPartnerResourcesService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NewRelicObservabilityConnectedPartnerResources to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "NewRelicObservabilit")
+ public interface ConnectedPartnerResourcesService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listConnectedPartnerResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") String body, @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);
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String monitorName, String body) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, monitorName, body, 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()));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String monitorName, String body, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, body, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName,
+ String body) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, monitorName, body),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 all active newrelic deployments as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName,
+ String monitorName) {
+ final String body = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, monitorName, body),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName,
+ String body, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, monitorName, body, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 all active newrelic deployments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ final String body = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, body));
+ }
+
+ /**
+ * List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param body Email Id of the user.
+ * @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 all active newrelic deployments as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName,
+ String body, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, body, 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 list of all active newrelic deployments 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 list of all active newrelic deployments 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/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesImpl.java
new file mode 100644
index 0000000000000..cf5e56d9ca933
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesImpl.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.newrelicobservability.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.newrelicobservability.fluent.ConnectedPartnerResourcesClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.ConnectedPartnerResourcesListFormatInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResources;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResourcesListFormat;
+
+public final class ConnectedPartnerResourcesImpl implements ConnectedPartnerResources {
+ private static final ClientLogger LOGGER = new ClientLogger(ConnectedPartnerResourcesImpl.class);
+
+ private final ConnectedPartnerResourcesClient innerClient;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ public ConnectedPartnerResourcesImpl(ConnectedPartnerResourcesClient innerClient,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, monitorName);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ConnectedPartnerResourcesListFormatImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName,
+ String body, Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, monitorName, body, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ConnectedPartnerResourcesListFormatImpl(inner1, this.manager()));
+ }
+
+ private ConnectedPartnerResourcesClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesListFormatImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesListFormatImpl.java
new file mode 100644
index 0000000000000..ead42119d6e2f
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/ConnectedPartnerResourcesListFormatImpl.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.resourcemanager.newrelicobservability.fluent.models.ConnectedPartnerResourcesListFormatInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResourceProperties;
+import com.azure.resourcemanager.newrelicobservability.models.ConnectedPartnerResourcesListFormat;
+
+public final class ConnectedPartnerResourcesListFormatImpl implements ConnectedPartnerResourcesListFormat {
+ private ConnectedPartnerResourcesListFormatInner innerObject;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ ConnectedPartnerResourcesListFormatImpl(ConnectedPartnerResourcesListFormatInner innerObject,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public ConnectedPartnerResourceProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public ConnectedPartnerResourcesListFormatInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/LinkedResourceImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/LinkedResourceImpl.java
new file mode 100644
index 0000000000000..81804fb1e6098
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/LinkedResourceImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.resourcemanager.newrelicobservability.fluent.models.LinkedResourceInner;
+import com.azure.resourcemanager.newrelicobservability.models.LinkedResource;
+
+public final class LinkedResourceImpl implements LinkedResource {
+ private LinkedResourceInner innerObject;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ LinkedResourceImpl(LinkedResourceInner innerObject,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public LinkedResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricRulesImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricRulesImpl.java
index 5f217ce0d08c3..29a6752b64185 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricRulesImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricRulesImpl.java
@@ -16,8 +16,7 @@ public final class MetricRulesImpl implements MetricRules {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- MetricRulesImpl(
- MetricRulesInner innerObject,
+ MetricRulesImpl(MetricRulesInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricsStatusResponseImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricsStatusResponseImpl.java
index a3550a8900319..35926b05312a9 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricsStatusResponseImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MetricsStatusResponseImpl.java
@@ -14,8 +14,7 @@ public final class MetricsStatusResponseImpl implements MetricsStatusResponse {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- MetricsStatusResponseImpl(
- MetricsStatusResponseInner innerObject,
+ MetricsStatusResponseImpl(MetricsStatusResponseInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredResourceImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredResourceImpl.java
index dbf820dee7c53..cad9c336284a8 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredResourceImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredResourceImpl.java
@@ -14,8 +14,7 @@ public final class MonitoredResourceImpl implements MonitoredResource {
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- MonitoredResourceImpl(
- MonitoredResourceInner innerObject,
+ MonitoredResourceImpl(MonitoredResourceInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionImpl.java
new file mode 100644
index 0000000000000..5c1e56a7a5ab8
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredSubscriptionInner;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoringTagRulesPropertiesInner;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscription;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoringTagRulesProperties;
+import com.azure.resourcemanager.newrelicobservability.models.Status;
+
+public final class MonitoredSubscriptionImpl implements MonitoredSubscription {
+ private MonitoredSubscriptionInner innerObject;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ MonitoredSubscriptionImpl(MonitoredSubscriptionInner innerObject,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String subscriptionId() {
+ return this.innerModel().subscriptionId();
+ }
+
+ public Status status() {
+ return this.innerModel().status();
+ }
+
+ public String error() {
+ return this.innerModel().error();
+ }
+
+ public MonitoringTagRulesProperties tagRules() {
+ MonitoringTagRulesPropertiesInner inner = this.innerModel().tagRules();
+ if (inner != null) {
+ return new MonitoringTagRulesPropertiesImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public MonitoredSubscriptionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionPropertiesImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionPropertiesImpl.java
new file mode 100644
index 0000000000000..8876220a39cb5
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionPropertiesImpl.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredSubscriptionPropertiesInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConfigurationName;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscriptionProperties;
+import com.azure.resourcemanager.newrelicobservability.models.SubscriptionList;
+
+public final class MonitoredSubscriptionPropertiesImpl implements MonitoredSubscriptionProperties,
+ MonitoredSubscriptionProperties.Definition, MonitoredSubscriptionProperties.Update {
+ private MonitoredSubscriptionPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SubscriptionList properties() {
+ return this.innerModel().properties();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public MonitoredSubscriptionPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String monitorName;
+
+ private ConfigurationName configurationName;
+
+ public MonitoredSubscriptionPropertiesImpl withExistingMonitor(String resourceGroupName, String monitorName) {
+ this.resourceGroupName = resourceGroupName;
+ this.monitorName = monitorName;
+ return this;
+ }
+
+ public MonitoredSubscriptionProperties create() {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions().createorUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public MonitoredSubscriptionProperties create(Context context) {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions().createorUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), context);
+ return this;
+ }
+
+ MonitoredSubscriptionPropertiesImpl(ConfigurationName name,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = new MonitoredSubscriptionPropertiesInner();
+ this.serviceManager = serviceManager;
+ this.configurationName = name;
+ }
+
+ public MonitoredSubscriptionPropertiesImpl update() {
+ return this;
+ }
+
+ public MonitoredSubscriptionProperties apply() {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions().update(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public MonitoredSubscriptionProperties apply(Context context) {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions().update(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), context);
+ return this;
+ }
+
+ MonitoredSubscriptionPropertiesImpl(MonitoredSubscriptionPropertiesInner innerObject,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "monitors");
+ this.configurationName = ConfigurationName
+ .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "monitoredSubscriptions"));
+ }
+
+ public MonitoredSubscriptionProperties refresh() {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, Context.NONE).getValue();
+ return this;
+ }
+
+ public MonitoredSubscriptionProperties refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient().getMonitoredSubscriptions()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, context).getValue();
+ return this;
+ }
+
+ public MonitoredSubscriptionPropertiesImpl withProperties(SubscriptionList properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsClientImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsClientImpl.java
new file mode 100644
index 0000000000000..ff12c8a207b3a
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsClientImpl.java
@@ -0,0 +1,1299 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.newrelicobservability.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.newrelicobservability.fluent.MonitoredSubscriptionsClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredSubscriptionPropertiesInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConfigurationName;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscriptionPropertiesList;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in MonitoredSubscriptionsClient.
+ */
+public final class MonitoredSubscriptionsClientImpl implements MonitoredSubscriptionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final MonitoredSubscriptionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final NewRelicObservabilityImpl client;
+
+ /**
+ * Initializes an instance of MonitoredSubscriptionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ MonitoredSubscriptionsClientImpl(NewRelicObservabilityImpl client) {
+ this.service = RestProxy.create(MonitoredSubscriptionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for NewRelicObservabilityMonitoredSubscriptions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "NewRelicObservabilit")
+ public interface MonitoredSubscriptionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @PathParam("configurationName") ConfigurationName configurationName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createorUpdate(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @PathParam("configurationName") ConfigurationName configurationName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") MonitoredSubscriptionPropertiesInner body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @PathParam("configurationName") ConfigurationName configurationName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") MonitoredSubscriptionPropertiesInner body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @PathParam("configurationName") ConfigurationName configurationName,
+ @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);
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String monitorName) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, 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()));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String monitorName, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName 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, monitorName,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, monitorName),
+ nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String monitorName,
+ Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, monitorName, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String resourceGroupName, String monitorName,
+ Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, monitorName, context));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String monitorName, ConfigurationName configurationName) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, configurationName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String monitorName, ConfigurationName configurationName, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, monitorName,
+ configurationName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ return getWithResponseAsync(resourceGroupName, monitorName, configurationName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context) {
+ return getWithResponseAsync(resourceGroupName, monitorName, configurationName, context).block();
+ }
+
+ /**
+ * List the subscriptions currently being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonitoredSubscriptionPropertiesInner get(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ return getWithResponse(resourceGroupName, monitorName, configurationName, Context.NONE).getValue();
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createorUpdateWithResponseAsync(String resourceGroupName,
+ String monitorName, ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createorUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, configurationName, this.client.getApiVersion(), body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createorUpdateWithResponseAsync(String resourceGroupName,
+ String monitorName, ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body,
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createorUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, configurationName, this.client.getApiVersion(), body, accept, context);
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body) {
+ Mono>> mono
+ = createorUpdateWithResponseAsync(resourceGroupName, monitorName, configurationName, body);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, this.client.getContext());
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ Mono>> mono
+ = createorUpdateWithResponseAsync(resourceGroupName, monitorName, configurationName, body);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, this.client.getContext());
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createorUpdateWithResponseAsync(resourceGroupName, monitorName, configurationName, body, context);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, context);
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return this.beginCreateorUpdateAsync(resourceGroupName, monitorName, configurationName, body).getSyncPoller();
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginCreateorUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context) {
+ return this.beginCreateorUpdateAsync(resourceGroupName, monitorName, configurationName, body, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createorUpdateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body) {
+ return beginCreateorUpdateAsync(resourceGroupName, monitorName, configurationName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createorUpdateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return beginCreateorUpdateAsync(resourceGroupName, monitorName, configurationName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createorUpdateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context) {
+ return beginCreateorUpdateAsync(resourceGroupName, monitorName, configurationName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonitoredSubscriptionPropertiesInner createorUpdate(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return createorUpdateAsync(resourceGroupName, monitorName, configurationName, body).block();
+ }
+
+ /**
+ * Add the subscriptions that should be monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonitoredSubscriptionPropertiesInner createorUpdate(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context) {
+ return createorUpdateAsync(resourceGroupName, monitorName, configurationName, body, context).block();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, configurationName, this.client.getApiVersion(), body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, configurationName, this.client.getApiVersion(), body, accept, context);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, monitorName, configurationName, body);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, this.client.getContext());
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, monitorName, configurationName, body);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, this.client.getContext());
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link PollerFlux} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MonitoredSubscriptionPropertiesInner>
+ beginUpdateAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, monitorName, configurationName, body, context);
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), MonitoredSubscriptionPropertiesInner.class,
+ MonitoredSubscriptionPropertiesInner.class, context);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return this.beginUpdateAsync(resourceGroupName, monitorName, configurationName, body).getSyncPoller();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 {@link SyncPoller} for polling of the request to update subscriptions needed to be monitored by the
+ * NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MonitoredSubscriptionPropertiesInner>
+ beginUpdate(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ MonitoredSubscriptionPropertiesInner body, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, monitorName, configurationName, body, context).getSyncPoller();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body) {
+ return beginUpdateAsync(resourceGroupName, monitorName, configurationName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return beginUpdateAsync(resourceGroupName, monitorName, configurationName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context) {
+ return beginUpdateAsync(resourceGroupName, monitorName, configurationName, body, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonitoredSubscriptionPropertiesInner update(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ final MonitoredSubscriptionPropertiesInner body = null;
+ return updateAsync(resourceGroupName, monitorName, configurationName, body).block();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param body The request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ * @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 request to update subscriptions needed to be monitored by the NewRelic monitor resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MonitoredSubscriptionPropertiesInner update(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, MonitoredSubscriptionPropertiesInner body, Context context) {
+ return updateAsync(resourceGroupName, monitorName, configurationName, body, context).block();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, configurationName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, 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 (monitorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter monitorName is required and cannot be null."));
+ }
+ if (configurationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, configurationName, this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, monitorName, configurationName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, monitorName, configurationName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ return this.beginDeleteAsync(resourceGroupName, monitorName, configurationName).getSyncPoller();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, monitorName, configurationName, context).getSyncPoller();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ return beginDeleteAsync(resourceGroupName, monitorName, configurationName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, monitorName, configurationName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ deleteAsync(resourceGroupName, monitorName, configurationName).block();
+ }
+
+ /**
+ * Updates the subscriptions that are being monitored by the NewRelic monitor resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Name of the Monitors resource.
+ * @param configurationName The configuration name. Only 'default' value is supported.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ Context context) {
+ deleteAsync(resourceGroupName, monitorName, configurationName, context).block();
+ }
+
+ /**
+ * 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 the response body 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 the response body 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/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsImpl.java
new file mode 100644
index 0000000000000..02c95f088a1dd
--- /dev/null
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoredSubscriptionsImpl.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.newrelicobservability.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.newrelicobservability.fluent.MonitoredSubscriptionsClient;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredSubscriptionPropertiesInner;
+import com.azure.resourcemanager.newrelicobservability.models.ConfigurationName;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscriptionProperties;
+import com.azure.resourcemanager.newrelicobservability.models.MonitoredSubscriptions;
+
+public final class MonitoredSubscriptionsImpl implements MonitoredSubscriptions {
+ private static final ClientLogger LOGGER = new ClientLogger(MonitoredSubscriptionsImpl.class);
+
+ private final MonitoredSubscriptionsClient innerClient;
+
+ private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
+
+ public MonitoredSubscriptionsImpl(MonitoredSubscriptionsClient innerClient,
+ com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, monitorName);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new MonitoredSubscriptionPropertiesImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(String resourceGroupName, String monitorName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().list(resourceGroupName, monitorName, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new MonitoredSubscriptionPropertiesImpl(inner1, this.manager()));
+ }
+
+ public Response getWithResponse(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, monitorName, configurationName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new MonitoredSubscriptionPropertiesImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public MonitoredSubscriptionProperties get(String resourceGroupName, String monitorName,
+ ConfigurationName configurationName) {
+ MonitoredSubscriptionPropertiesInner inner
+ = this.serviceClient().get(resourceGroupName, monitorName, configurationName);
+ if (inner != null) {
+ return new MonitoredSubscriptionPropertiesImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String monitorName, ConfigurationName configurationName) {
+ this.serviceClient().delete(resourceGroupName, monitorName, configurationName);
+ }
+
+ public void delete(String resourceGroupName, String monitorName, ConfigurationName configurationName,
+ Context context) {
+ this.serviceClient().delete(resourceGroupName, monitorName, configurationName, context);
+ }
+
+ public MonitoredSubscriptionProperties 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 monitorName = ResourceManagerUtils.getValueFromIdByName(id, "monitors");
+ if (monitorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'monitors'.", id)));
+ }
+ String configurationNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "monitoredSubscriptions");
+ if (configurationNameLocal == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'monitoredSubscriptions'.", id)));
+ }
+ ConfigurationName configurationName = ConfigurationName.fromString(configurationNameLocal);
+ return this.getWithResponse(resourceGroupName, monitorName, configurationName, 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 monitorName = ResourceManagerUtils.getValueFromIdByName(id, "monitors");
+ if (monitorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'monitors'.", id)));
+ }
+ String configurationNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "monitoredSubscriptions");
+ if (configurationNameLocal == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'monitoredSubscriptions'.", id)));
+ }
+ ConfigurationName configurationName = ConfigurationName.fromString(configurationNameLocal);
+ return this.getWithResponse(resourceGroupName, monitorName, configurationName, 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 monitorName = ResourceManagerUtils.getValueFromIdByName(id, "monitors");
+ if (monitorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'monitors'.", id)));
+ }
+ String configurationNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "monitoredSubscriptions");
+ if (configurationNameLocal == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'monitoredSubscriptions'.", id)));
+ }
+ ConfigurationName configurationName = ConfigurationName.fromString(configurationNameLocal);
+ this.delete(resourceGroupName, monitorName, configurationName, Context.NONE);
+ }
+
+ public void 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 monitorName = ResourceManagerUtils.getValueFromIdByName(id, "monitors");
+ if (monitorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'monitors'.", id)));
+ }
+ String configurationNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "monitoredSubscriptions");
+ if (configurationNameLocal == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String
+ .format("The resource ID '%s' is not valid. Missing path segment 'monitoredSubscriptions'.", id)));
+ }
+ ConfigurationName configurationName = ConfigurationName.fromString(configurationNameLocal);
+ this.delete(resourceGroupName, monitorName, configurationName, context);
+ }
+
+ private MonitoredSubscriptionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager manager() {
+ return this.serviceManager;
+ }
+
+ public MonitoredSubscriptionPropertiesImpl define(ConfigurationName name) {
+ return new MonitoredSubscriptionPropertiesImpl(name, this.manager());
+ }
+}
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoringTagRulesPropertiesImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoringTagRulesPropertiesImpl.java
index 316db538be5a3..49f3b352aadd7 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoringTagRulesPropertiesImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitoringTagRulesPropertiesImpl.java
@@ -16,8 +16,7 @@ public final class MonitoringTagRulesPropertiesImpl implements MonitoringTagRule
private final com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager;
- MonitoringTagRulesPropertiesImpl(
- MonitoringTagRulesPropertiesInner innerObject,
+ MonitoringTagRulesPropertiesImpl(MonitoringTagRulesPropertiesInner innerObject,
com.azure.resourcemanager.newrelicobservability.NewRelicObservabilityManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitorsClientImpl.java b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitorsClientImpl.java
index 5bd0c27357ca0..bc95b7a057d3e 100644
--- a/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitorsClientImpl.java
+++ b/sdk/newrelicobservability/azure-resourcemanager-newrelicobservability/src/main/java/com/azure/resourcemanager/newrelicobservability/implementation/MonitorsClientImpl.java
@@ -35,6 +35,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.newrelicobservability.fluent.MonitorsClient;
import com.azure.resourcemanager.newrelicobservability.fluent.models.AppServiceInfoInner;
+import com.azure.resourcemanager.newrelicobservability.fluent.models.LinkedResourceInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MetricRulesInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MetricsStatusResponseInner;
import com.azure.resourcemanager.newrelicobservability.fluent.models.MonitoredResourceInner;
@@ -44,6 +45,7 @@
import com.azure.resourcemanager.newrelicobservability.models.AppServicesGetRequest;
import com.azure.resourcemanager.newrelicobservability.models.AppServicesListResponse;
import com.azure.resourcemanager.newrelicobservability.models.HostsGetRequest;
+import com.azure.resourcemanager.newrelicobservability.models.LinkedResourceListResponse;
import com.azure.resourcemanager.newrelicobservability.models.MetricsRequest;
import com.azure.resourcemanager.newrelicobservability.models.MetricsStatusRequest;
import com.azure.resourcemanager.newrelicobservability.models.MonitoredResourceListResponse;
@@ -56,17 +58,23 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in MonitorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorsClient.
+ */
public final class MonitorsClientImpl implements MonitorsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final MonitorsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final NewRelicObservabilityImpl client;
/**
* Initializes an instance of MonitorsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
MonitorsClientImpl(NewRelicObservabilityImpl client) {
@@ -81,348 +89,259 @@ public final class MonitorsClientImpl implements MonitorsClient {
@Host("{$host}")
@ServiceInterface(name = "NewRelicObservabilit")
public interface MonitorsService {
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/NewRelic.Observability/monitors")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @HeaderParam("Accept") String accept,
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
- @ExpectedResponses({200, 201})
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") NewRelicMonitorResourceInner resource,
- @HeaderParam("Accept") String accept,
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") NewRelicMonitorResourceInner resource, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
+ Mono> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
@BodyParam("application/json") NewRelicMonitorResourceUpdate properties,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
- @ExpectedResponses({200, 202, 204})
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("userEmail") String userEmail,
- @PathParam("monitorName") String monitorName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricRules")
- @ExpectedResponses({200})
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("userEmail") String userEmail,
+ @PathParam("monitorName") String monitorName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricRules")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getMetricRules(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") MetricsRequest request,
- @HeaderParam("Accept") String accept,
+ Mono> getMetricRules(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") MetricsRequest request, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricStatus")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricStatus")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getMetricStatus(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") MetricsStatusRequest request,
- @HeaderParam("Accept") String accept,
+ Mono> getMetricStatus(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") MetricsStatusRequest request, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listAppServices(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") AppServicesGetRequest request,
- @HeaderParam("Accept") String accept,
+ Mono> listAppServices(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") AppServicesGetRequest request, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling")
- @ExpectedResponses({200, 202, 204})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono switchBilling(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") SwitchBillingRequest request,
- @HeaderParam("Accept") String accept,
+ Mono switchBilling(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") SwitchBillingRequest request, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listHosts")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listHosts")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listHosts(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @BodyParam("application/json") HostsGetRequest request,
- @HeaderParam("Accept") String accept,
+ Mono> listHosts(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @BodyParam("application/json") HostsGetRequest request, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredResources")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredResources")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listMonitoredResources(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
+ Mono> listMonitoredResources(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listLinkedResources(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/vmHostPayloads")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/vmHostPayloads")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> vmHostPayload(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> vmHostPayload(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listAppServicesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listHostsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listMonitoredResourcesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono