diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
index 9b3c85a23bad..a105f485207f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2021-08-11)
+- Azure Resource Manager LogAnalytics client library for Java. This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.2 (2021-03-30)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
index 275123ad963c..514b11668139 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager LogAnalytics client library for Java.
-This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-loganalytics
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,8 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
index d0dd9bf151df..2298851edc9b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
@@ -1,67 +1,86 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-loganalytics
- 1.0.0-beta.3
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-loganalytics
+ 1.0.0-beta.3
+ jar
- Microsoft Azure SDK for LogAnalytics Management
- This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Operational Insights Client. Package tag package-2020-08.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for LogAnalytics Management
+ This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Operational Insights Client. Package tag package-2021-06.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
-
-
-
-
- com.azure
- azure-core
- 1.19.0
-
-
- com.azure
- azure-core-management
- 1.4.0
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.5
-
- true
-
-
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core
+ 1.19.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
index 376975bad8cd..98888b1a57f1 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
@@ -9,7 +9,6 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,6 +16,7 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -38,7 +38,6 @@
import com.azure.resourcemanager.loganalytics.implementation.SchemasImpl;
import com.azure.resourcemanager.loganalytics.implementation.SharedKeysOperationsImpl;
import com.azure.resourcemanager.loganalytics.implementation.StorageInsightConfigsImpl;
-import com.azure.resourcemanager.loganalytics.implementation.TablesImpl;
import com.azure.resourcemanager.loganalytics.implementation.UsagesImpl;
import com.azure.resourcemanager.loganalytics.implementation.WorkspacePurgesImpl;
import com.azure.resourcemanager.loganalytics.implementation.WorkspacesImpl;
@@ -58,7 +57,6 @@
import com.azure.resourcemanager.loganalytics.models.Schemas;
import com.azure.resourcemanager.loganalytics.models.SharedKeysOperations;
import com.azure.resourcemanager.loganalytics.models.StorageInsightConfigs;
-import com.azure.resourcemanager.loganalytics.models.Tables;
import com.azure.resourcemanager.loganalytics.models.Usages;
import com.azure.resourcemanager.loganalytics.models.WorkspacePurges;
import com.azure.resourcemanager.loganalytics.models.Workspaces;
@@ -82,20 +80,12 @@ public final class LogAnalyticsManager {
private ManagementGroups managementGroups;
- private Operations operations;
-
private OperationStatuses operationStatuses;
private SharedKeysOperations sharedKeysOperations;
private Usages usages;
- private Workspaces workspaces;
-
- private DeletedWorkspaces deletedWorkspaces;
-
- private Clusters clusters;
-
private StorageInsightConfigs storageInsightConfigs;
private SavedSearches savedSearches;
@@ -108,7 +98,13 @@ public final class LogAnalyticsManager {
private WorkspacePurges workspacePurges;
- private Tables tables;
+ private Operations operations;
+
+ private Clusters clusters;
+
+ private Workspaces workspaces;
+
+ private DeletedWorkspaces deletedWorkspaces;
private final OperationalInsightsManagementClient clientObject;
@@ -153,6 +149,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -192,6 +189,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -234,7 +242,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.loganalytics")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -248,6 +256,9 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
@@ -257,10 +268,8 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -320,14 +329,6 @@ public ManagementGroups managementGroups() {
return managementGroups;
}
- /** @return Resource collection API of Operations. */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/** @return Resource collection API of OperationStatuses. */
public OperationStatuses operationStatuses() {
if (this.operationStatuses == null) {
@@ -352,30 +353,6 @@ public Usages usages() {
return usages;
}
- /** @return Resource collection API of Workspaces. */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
- /** @return Resource collection API of DeletedWorkspaces. */
- public DeletedWorkspaces deletedWorkspaces() {
- if (this.deletedWorkspaces == null) {
- this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
- }
- return deletedWorkspaces;
- }
-
- /** @return Resource collection API of Clusters. */
- public Clusters clusters() {
- if (this.clusters == null) {
- this.clusters = new ClustersImpl(clientObject.getClusters(), this);
- }
- return clusters;
- }
-
/** @return Resource collection API of StorageInsightConfigs. */
public StorageInsightConfigs storageInsightConfigs() {
if (this.storageInsightConfigs == null) {
@@ -424,12 +401,36 @@ public WorkspacePurges workspacePurges() {
return workspacePurges;
}
- /** @return Resource collection API of Tables. */
- public Tables tables() {
- if (this.tables == null) {
- this.tables = new TablesImpl(clientObject.getTables(), this);
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Clusters. */
+ public Clusters clusters() {
+ if (this.clusters == null) {
+ this.clusters = new ClustersImpl(clientObject.getClusters(), this);
}
- return tables;
+ return clusters;
+ }
+
+ /** @return Resource collection API of Workspaces. */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /** @return Resource collection API of DeletedWorkspaces. */
+ public DeletedWorkspaces deletedWorkspaces() {
+ if (this.deletedWorkspaces == null) {
+ this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
+ }
+ return deletedWorkspaces;
}
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
index ecb9e1ead6dc..c83ce16e0746 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
@@ -23,13 +23,6 @@ public interface OperationalInsightsManagementClient {
*/
String getEndpoint();
- /**
- * Gets Api Version.
- *
- * @return the apiVersion value.
- */
- String getApiVersion();
-
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -86,13 +79,6 @@ public interface OperationalInsightsManagementClient {
*/
ManagementGroupsClient getManagementGroups();
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
/**
* Gets the OperationStatusesClient object to access its operations.
*
@@ -114,27 +100,6 @@ public interface OperationalInsightsManagementClient {
*/
UsagesClient getUsages();
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
- /**
- * Gets the DeletedWorkspacesClient object to access its operations.
- *
- * @return the DeletedWorkspacesClient object.
- */
- DeletedWorkspacesClient getDeletedWorkspaces();
-
- /**
- * Gets the ClustersClient object to access its operations.
- *
- * @return the ClustersClient object.
- */
- ClustersClient getClusters();
-
/**
* Gets the StorageInsightConfigsClient object to access its operations.
*
@@ -178,9 +143,30 @@ public interface OperationalInsightsManagementClient {
WorkspacePurgesClient getWorkspacePurges();
/**
- * Gets the TablesClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the ClustersClient object to access its operations.
+ *
+ * @return the ClustersClient object.
+ */
+ ClustersClient getClusters();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the DeletedWorkspacesClient object to access its operations.
*
- * @return the TablesClient object.
+ * @return the DeletedWorkspacesClient object.
*/
- TablesClient getTables();
+ DeletedWorkspacesClient getDeletedWorkspaces();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
deleted file mode 100644
index 0f784c4e5ca9..000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
+++ /dev/null
@@ -1,104 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.loganalytics.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.loganalytics.fluent.models.TableInner;
-
-/** An instance of this class provides access to all the operations defined in TablesClient. */
-public interface TablesClient {
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TableInner update(String resourceGroupName, String workspaceName, String tableName, TableInner parameters);
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context);
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TableInner get(String resourceGroupName, String workspaceName, String tableName);
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String tableName, Context context);
-}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java
index d5bc163290d3..3001f3c95920 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java
@@ -8,12 +8,16 @@
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace;
+import com.azure.resourcemanager.loganalytics.models.BillingType;
+import com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties;
import com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus;
import com.azure.resourcemanager.loganalytics.models.ClusterSku;
import com.azure.resourcemanager.loganalytics.models.Identity;
import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
import java.util.Map;
/** The top level Log Analytics cluster resource container. */
@@ -34,12 +38,6 @@ public class ClusterInner extends Resource {
@JsonProperty(value = "sku")
private ClusterSku sku;
- /*
- * The link used to get the next page of recommendations.
- */
- @JsonProperty(value = "properties.nextLink")
- private String nextLink;
-
/*
* The ID associated with the cluster.
*/
@@ -52,12 +50,58 @@ public class ClusterInner extends Resource {
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ClusterEntityStatus provisioningState;
+ /*
+ * Configures whether cluster will use double encryption. This Property can
+ * not be modified after cluster creation. Default value is 'true'
+ */
+ @JsonProperty(value = "properties.isDoubleEncryptionEnabled")
+ private Boolean isDoubleEncryptionEnabled;
+
+ /*
+ * Sets whether the cluster will support availability zones. This can be
+ * set as true only in regions where Azure Data Explorer support
+ * Availability Zones. This Property can not be modified after cluster
+ * creation. Default value is 'true' if region supports Availability Zones.
+ */
+ @JsonProperty(value = "properties.isAvailabilityZonesEnabled")
+ private Boolean isAvailabilityZonesEnabled;
+
+ /*
+ * The cluster's billing type.
+ */
+ @JsonProperty(value = "properties.billingType")
+ private BillingType billingType;
+
/*
* The associated key properties.
*/
@JsonProperty(value = "properties.keyVaultProperties")
private KeyVaultProperties keyVaultProperties;
+ /*
+ * The last time the cluster was updated.
+ */
+ @JsonProperty(value = "properties.lastModifiedDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastModifiedDate;
+
+ /*
+ * The cluster creation time
+ */
+ @JsonProperty(value = "properties.createdDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdDate;
+
+ /*
+ * The list of Log Analytics workspaces associated with the cluster
+ */
+ @JsonProperty(value = "properties.associatedWorkspaces")
+ private List associatedWorkspaces;
+
+ /*
+ * Additional properties for capacity reservation
+ */
+ @JsonProperty(value = "properties.capacityReservationProperties")
+ private CapacityReservationProperties capacityReservationProperties;
+
/**
* Get the identity property: The identity of the resource.
*
@@ -99,41 +143,87 @@ public ClusterInner withSku(ClusterSku sku) {
}
/**
- * Get the nextLink property: The link used to get the next page of recommendations.
+ * Get the clusterId property: The ID associated with the cluster.
+ *
+ * @return the clusterId value.
+ */
+ public String clusterId() {
+ return this.clusterId;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the cluster.
*
- * @return the nextLink value.
+ * @return the provisioningState value.
*/
- public String nextLink() {
- return this.nextLink;
+ public ClusterEntityStatus provisioningState() {
+ return this.provisioningState;
}
/**
- * Set the nextLink property: The link used to get the next page of recommendations.
+ * Get the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property
+ * can not be modified after cluster creation. Default value is 'true'.
*
- * @param nextLink the nextLink value to set.
+ * @return the isDoubleEncryptionEnabled value.
+ */
+ public Boolean isDoubleEncryptionEnabled() {
+ return this.isDoubleEncryptionEnabled;
+ }
+
+ /**
+ * Set the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property
+ * can not be modified after cluster creation. Default value is 'true'.
+ *
+ * @param isDoubleEncryptionEnabled the isDoubleEncryptionEnabled value to set.
* @return the ClusterInner object itself.
*/
- public ClusterInner withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public ClusterInner withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) {
+ this.isDoubleEncryptionEnabled = isDoubleEncryptionEnabled;
return this;
}
/**
- * Get the clusterId property: The ID associated with the cluster.
+ * Get the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability zones. This can
+ * be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be
+ * modified after cluster creation. Default value is 'true' if region supports Availability Zones.
*
- * @return the clusterId value.
+ * @return the isAvailabilityZonesEnabled value.
*/
- public String clusterId() {
- return this.clusterId;
+ public Boolean isAvailabilityZonesEnabled() {
+ return this.isAvailabilityZonesEnabled;
}
/**
- * Get the provisioningState property: The provisioning state of the cluster.
+ * Set the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability zones. This can
+ * be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be
+ * modified after cluster creation. Default value is 'true' if region supports Availability Zones.
*
- * @return the provisioningState value.
+ * @param isAvailabilityZonesEnabled the isAvailabilityZonesEnabled value to set.
+ * @return the ClusterInner object itself.
*/
- public ClusterEntityStatus provisioningState() {
- return this.provisioningState;
+ public ClusterInner withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) {
+ this.isAvailabilityZonesEnabled = isAvailabilityZonesEnabled;
+ return this;
+ }
+
+ /**
+ * Get the billingType property: The cluster's billing type.
+ *
+ * @return the billingType value.
+ */
+ public BillingType billingType() {
+ return this.billingType;
+ }
+
+ /**
+ * Set the billingType property: The cluster's billing type.
+ *
+ * @param billingType the billingType value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withBillingType(BillingType billingType) {
+ this.billingType = billingType;
+ return this;
}
/**
@@ -156,6 +246,64 @@ public ClusterInner withKeyVaultProperties(KeyVaultProperties keyVaultProperties
return this;
}
+ /**
+ * Get the lastModifiedDate property: The last time the cluster was updated.
+ *
+ * @return the lastModifiedDate value.
+ */
+ public String lastModifiedDate() {
+ return this.lastModifiedDate;
+ }
+
+ /**
+ * Get the createdDate property: The cluster creation time.
+ *
+ * @return the createdDate value.
+ */
+ public String createdDate() {
+ return this.createdDate;
+ }
+
+ /**
+ * Get the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster.
+ *
+ * @return the associatedWorkspaces value.
+ */
+ public List associatedWorkspaces() {
+ return this.associatedWorkspaces;
+ }
+
+ /**
+ * Set the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster.
+ *
+ * @param associatedWorkspaces the associatedWorkspaces value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withAssociatedWorkspaces(List associatedWorkspaces) {
+ this.associatedWorkspaces = associatedWorkspaces;
+ return this;
+ }
+
+ /**
+ * Get the capacityReservationProperties property: Additional properties for capacity reservation.
+ *
+ * @return the capacityReservationProperties value.
+ */
+ public CapacityReservationProperties capacityReservationProperties() {
+ return this.capacityReservationProperties;
+ }
+
+ /**
+ * Set the capacityReservationProperties property: Additional properties for capacity reservation.
+ *
+ * @param capacityReservationProperties the capacityReservationProperties value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties) {
+ this.capacityReservationProperties = capacityReservationProperties;
+ return this;
+ }
+
/** {@inheritDoc} */
@Override
public ClusterInner withLocation(String location) {
@@ -185,5 +333,11 @@ public void validate() {
if (keyVaultProperties() != null) {
keyVaultProperties().validate();
}
+ if (associatedWorkspaces() != null) {
+ associatedWorkspaces().forEach(e -> e.validate());
+ }
+ if (capacityReservationProperties() != null) {
+ capacityReservationProperties().validate();
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
index df0abde01f4c..7cf83485106b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
@@ -9,6 +9,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.DataSourceKind;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -40,6 +41,7 @@ public final class DataSourceInner extends ProxyResource {
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
index 91c7206aaeba..0824154049c3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
@@ -10,6 +10,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -23,6 +24,7 @@ public class LinkedServiceInner extends ProxyResource {
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
index 39d0e82438ae..22ec67cfc7c4 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
@@ -46,7 +46,7 @@ public final class OperationStatusInner {
private String status;
/*
- * The error detail of the operation if any.
+ * Error response The error detail of the operation if any.
*/
@JsonProperty(value = "error")
private ManagementError error;
@@ -152,7 +152,7 @@ public OperationStatusInner withStatus(String status) {
}
/**
- * Get the error property: The error detail of the operation if any.
+ * Get the error property: Error response The error detail of the operation if any.
*
* @return the error value.
*/
@@ -161,7 +161,7 @@ public ManagementError error() {
}
/**
- * Set the error property: The error detail of the operation if any.
+ * Set the error property: Error response The error detail of the operation if any.
*
* @param error the error value to set.
* @return the OperationStatusInner object itself.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
index 69d58886efe6..7952855ea84a 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
@@ -20,7 +20,8 @@ public class SavedSearchInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(SavedSearchInner.class);
/*
- * The ETag of the saved search.
+ * The ETag of the saved search. To override an existing saved search, use
+ * "*" or specify the current Etag
*/
@JsonProperty(value = "etag")
private String etag;
@@ -74,7 +75,8 @@ public class SavedSearchInner extends ProxyResource {
private List tags;
/**
- * Get the etag property: The ETag of the saved search.
+ * Get the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the
+ * current Etag.
*
* @return the etag value.
*/
@@ -83,7 +85,8 @@ public String etag() {
}
/**
- * Set the etag property: The ETag of the saved search.
+ * Set the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the
+ * current Etag.
*
* @param etag the etag value to set.
* @return the SavedSearchInner object itself.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
index 035a1a22ef07..eb16a37f784d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.loganalytics.models.StorageAccount;
import com.azure.resourcemanager.loganalytics.models.StorageInsightStatus;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -31,6 +32,7 @@ public class StorageInsightInner extends ProxyResource {
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java
deleted file mode 100644
index 97f0a3960707..000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.loganalytics.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Workspace data table definition. */
-@JsonFlatten
-@Fluent
-public class TableInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TableInner.class);
-
- /*
- * The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
- */
- @JsonProperty(value = "properties.retentionInDays")
- private Integer retentionInDays;
-
- /**
- * Get the retentionInDays property: The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
- *
- * @return the retentionInDays value.
- */
- public Integer retentionInDays() {
- return this.retentionInDays;
- }
-
- /**
- * Set the retentionInDays property: The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
- *
- * @param retentionInDays the retentionInDays value to set.
- * @return the TableInner object itself.
- */
- public TableInner withRetentionInDays(Integer retentionInDays) {
- this.retentionInDays = retentionInDays;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java
index ff5401ba2e35..a7272cc5fdc5 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType;
import com.azure.resourcemanager.loganalytics.models.WorkspaceCapping;
import com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures;
import com.azure.resourcemanager.loganalytics.models.WorkspaceSku;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -103,7 +104,7 @@ public class WorkspaceInner extends Resource {
* Workspace features.
*/
@JsonProperty(value = "properties.features")
- private Map features;
+ private WorkspaceFeatures features;
/**
* Get the etag property: The ETag of the workspace.
@@ -308,7 +309,7 @@ public List privateLinkScopedResources() {
*
* @return the features value.
*/
- public Map features() {
+ public WorkspaceFeatures features() {
return this.features;
}
@@ -318,7 +319,7 @@ public Map features() {
* @param features the features value to set.
* @return the WorkspaceInner object itself.
*/
- public WorkspaceInner withFeatures(Map features) {
+ public WorkspaceInner withFeatures(WorkspaceFeatures features) {
this.features = features;
return this;
}
@@ -352,5 +353,8 @@ public void validate() {
if (privateLinkScopedResources() != null) {
privateLinkScopedResources().forEach(e -> e.validate());
}
+ if (features() != null) {
+ features().validate();
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java
index 57f13aa48eeb..97f1450b4c0f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java
@@ -104,6 +104,7 @@ private Mono>> listByWorkspaceWithRespo
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -114,7 +115,7 @@ private Mono>> listByWorkspaceWithRespo
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -153,6 +154,7 @@ private Mono>> listByWorkspaceWithRespo
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -161,7 +163,7 @@ private Mono>> listByWorkspaceWithRespo
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
index fdb30b089399..46b6b92d594b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
@@ -7,6 +7,9 @@
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner;
+import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace;
+import com.azure.resourcemanager.loganalytics.models.BillingType;
+import com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties;
import com.azure.resourcemanager.loganalytics.models.Cluster;
import com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus;
import com.azure.resourcemanager.loganalytics.models.ClusterPatch;
@@ -14,6 +17,7 @@
import com.azure.resourcemanager.loganalytics.models.Identity;
import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
@@ -54,10 +58,6 @@ public ClusterSku sku() {
return this.innerModel().sku();
}
- public String nextLink() {
- return this.innerModel().nextLink();
- }
-
public String clusterId() {
return this.innerModel().clusterId();
}
@@ -66,10 +66,43 @@ public ClusterEntityStatus provisioningState() {
return this.innerModel().provisioningState();
}
+ public Boolean isDoubleEncryptionEnabled() {
+ return this.innerModel().isDoubleEncryptionEnabled();
+ }
+
+ public Boolean isAvailabilityZonesEnabled() {
+ return this.innerModel().isAvailabilityZonesEnabled();
+ }
+
+ public BillingType billingType() {
+ return this.innerModel().billingType();
+ }
+
public KeyVaultProperties keyVaultProperties() {
return this.innerModel().keyVaultProperties();
}
+ public String lastModifiedDate() {
+ return this.innerModel().lastModifiedDate();
+ }
+
+ public String createdDate() {
+ return this.innerModel().createdDate();
+ }
+
+ public List associatedWorkspaces() {
+ List inner = this.innerModel().associatedWorkspaces();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CapacityReservationProperties capacityReservationProperties() {
+ return this.innerModel().capacityReservationProperties();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -194,8 +227,13 @@ public ClusterImpl withTags(Map tags) {
}
public ClusterImpl withIdentity(Identity identity) {
- this.innerModel().withIdentity(identity);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateParameters.withIdentity(identity);
+ return this;
+ }
}
public ClusterImpl withSku(ClusterSku sku) {
@@ -208,11 +246,26 @@ public ClusterImpl withSku(ClusterSku sku) {
}
}
- public ClusterImpl withNextLink(String nextLink) {
- this.innerModel().withNextLink(nextLink);
+ public ClusterImpl withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) {
+ this.innerModel().withIsDoubleEncryptionEnabled(isDoubleEncryptionEnabled);
+ return this;
+ }
+
+ public ClusterImpl withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) {
+ this.innerModel().withIsAvailabilityZonesEnabled(isAvailabilityZonesEnabled);
return this;
}
+ public ClusterImpl withBillingType(BillingType billingType) {
+ if (isInCreateMode()) {
+ this.innerModel().withBillingType(billingType);
+ return this;
+ } else {
+ this.updateParameters.withBillingType(billingType);
+ return this;
+ }
+ }
+
public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties) {
if (isInCreateMode()) {
this.innerModel().withKeyVaultProperties(keyVaultProperties);
@@ -223,6 +276,16 @@ public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties)
}
}
+ public ClusterImpl withAssociatedWorkspaces(List associatedWorkspaces) {
+ this.innerModel().withAssociatedWorkspaces(associatedWorkspaces);
+ return this;
+ }
+
+ public ClusterImpl withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties) {
+ this.innerModel().withCapacityReservationProperties(capacityReservationProperties);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java
index d9baac701372..12eeef5a2db7 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java
@@ -113,7 +113,7 @@ Mono>> createOrUpdate(
@Delete(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ "/clusters/{clusterName}")
- @ExpectedResponses({200, 204})
+ @ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@HostParam("$host") String endpoint,
@@ -203,6 +203,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -211,7 +212,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -256,13 +257,14 @@ private Mono> listByResourceGroupSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
@@ -360,17 +362,13 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context))
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context))
.>map(
res ->
new PagedResponseBase<>(
@@ -406,15 +404,11 @@ private Mono> listSinglePageAsync(Context context) {
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context)
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
.map(
res ->
new PagedResponseBase<>(
@@ -517,6 +511,7 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -525,7 +520,7 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
clusterName,
parameters,
@@ -573,13 +568,14 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.createOrUpdate(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
clusterName,
parameters,
@@ -772,6 +768,7 @@ private Mono>> deleteWithResponseAsync(String resource
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -781,7 +778,7 @@ private Mono>> deleteWithResponseAsync(String resource
this.client.getEndpoint(),
resourceGroupName,
clusterName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -821,6 +818,7 @@ private Mono>> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -828,7 +826,7 @@ private Mono>> deleteWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
clusterName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -999,6 +997,7 @@ private Mono> getByResourceGroupWithResponseAsync(
if (clusterName == null) {
return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1008,7 +1007,7 @@ private Mono> getByResourceGroupWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
clusterName,
accept,
context))
@@ -1048,6 +1047,7 @@ private Mono> getByResourceGroupWithResponseAsync(
if (clusterName == null) {
return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1055,7 +1055,7 @@ private Mono> getByResourceGroupWithResponseAsync(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
clusterName,
accept,
context);
@@ -1154,6 +1154,7 @@ private Mono> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1163,7 +1164,7 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
clusterName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -1210,6 +1211,7 @@ private Mono> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1217,7 +1219,7 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
clusterName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
index e50eb7f34eb3..3dc11d7c70b0 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
@@ -159,6 +159,7 @@ private Mono> listByWorkspaceSinglePageAsync(
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -169,7 +170,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.>map(
@@ -212,6 +213,7 @@ private Mono> listByWorkspaceSinglePageAsync(
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -220,7 +222,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context)
.map(
@@ -335,6 +337,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -346,7 +349,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context))
@@ -400,6 +403,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -409,7 +413,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context);
@@ -519,6 +523,7 @@ private Mono> getWithResponseAsync(
if (dataExportName == null) {
return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -530,7 +535,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -573,6 +578,7 @@ private Mono> getWithResponseAsync(
if (dataExportName == null) {
return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -582,7 +588,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
@@ -681,6 +687,7 @@ private Mono> deleteWithResponseAsync(
if (dataExportName == null) {
return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -692,7 +699,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -735,6 +742,7 @@ private Mono> deleteWithResponseAsync(
if (dataExportName == null) {
return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -744,7 +752,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataExportName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
index e62dbb112291..01c0087da054 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
@@ -180,6 +180,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -190,7 +191,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -245,6 +246,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -253,7 +255,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -364,6 +366,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -373,7 +376,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -416,6 +419,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.delete(
@@ -423,7 +427,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context);
}
@@ -514,6 +518,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -524,7 +529,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -568,6 +573,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -576,7 +582,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -677,6 +683,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -688,7 +695,7 @@ private Mono> listByWorkspaceSinglePageAsync(
workspaceName,
filter,
skiptoken,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -742,6 +749,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -751,7 +759,7 @@ private Mono> listByWorkspaceSinglePageAsync(
workspaceName,
filter,
skiptoken,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
index 6d95f1fc3350..0592cf1b86f3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
@@ -106,17 +106,13 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context))
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context))
.>map(
res ->
new PagedResponseBase<>(
@@ -147,15 +143,11 @@ private Mono> listSinglePageAsync(Context context)
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context)
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
.map(
res ->
new PagedResponseBase<>(
@@ -241,6 +233,7 @@ private Mono> listByResourceGroupSinglePageAsync(S
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -249,7 +242,7 @@ private Mono> listByResourceGroupSinglePageAsync(S
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -289,13 +282,14 @@ private Mono> listByResourceGroupSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
index dbfa15e3aa39..07b595f539ce 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
@@ -103,6 +103,7 @@ private Mono> deleteWithResponseAsync(
if (gatewayId == null) {
return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -113,7 +114,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
gatewayId,
- this.client.getApiVersion(),
+ apiVersion,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -155,6 +156,7 @@ private Mono> deleteWithResponseAsync(
if (gatewayId == null) {
return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.delete(
@@ -163,7 +165,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
gatewayId,
- this.client.getApiVersion(),
+ apiVersion,
context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
index 594a76ca050f..dadc1e331c08 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
@@ -139,6 +139,7 @@ private Mono> disableWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -148,7 +149,7 @@ private Mono> disableWithResponseAsync(
resourceGroupName,
workspaceName,
intelligencePackName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -192,6 +193,7 @@ private Mono> disableWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.disable(
@@ -199,7 +201,7 @@ private Mono> disableWithResponseAsync(
resourceGroupName,
workspaceName,
intelligencePackName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context);
}
@@ -291,6 +293,7 @@ private Mono> enableWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -300,7 +303,7 @@ private Mono> enableWithResponseAsync(
resourceGroupName,
workspaceName,
intelligencePackName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -344,6 +347,7 @@ private Mono> enableWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.enable(
@@ -351,7 +355,7 @@ private Mono> enableWithResponseAsync(
resourceGroupName,
workspaceName,
intelligencePackName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context);
}
@@ -438,6 +442,7 @@ private Mono>> listWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -447,7 +452,7 @@ private Mono>> listWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -487,6 +492,7 @@ private Mono>> listWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -494,7 +500,7 @@ private Mono>> listWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
index 2f90f6a77b0d..da2497bcdcab 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
@@ -71,7 +71,7 @@ private interface LinkedServicesService {
@Put(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ "/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
- @ExpectedResponses({200, 201})
+ @ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@@ -88,7 +88,7 @@ Mono>> createOrUpdate(
@Delete(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ "/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
- @ExpectedResponses({200, 204})
+ @ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@HostParam("$host") String endpoint,
@@ -175,6 +175,7 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -186,7 +187,7 @@ private Mono>> createOrUpdateWithResponseAsync(
workspaceName,
linkedServiceName,
this.client.getSubscriptionId(),
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context))
@@ -241,6 +242,7 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -250,7 +252,7 @@ private Mono>> createOrUpdateWithResponseAsync(
workspaceName,
linkedServiceName,
this.client.getSubscriptionId(),
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context);
@@ -474,6 +476,7 @@ private Mono>> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -484,7 +487,7 @@ private Mono>> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
linkedServiceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -529,6 +532,7 @@ private Mono>> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -537,7 +541,7 @@ private Mono>> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
linkedServiceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -734,6 +738,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -744,7 +749,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
linkedServiceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -789,6 +794,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -797,7 +803,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
linkedServiceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -894,6 +900,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -903,7 +910,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -947,6 +954,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -954,7 +962,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
index 09b7f5548f2a..014ddbf87d85 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
@@ -174,6 +174,7 @@ private Mono> createOrUpdateWithRes
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -185,7 +186,7 @@ private Mono> createOrUpdateWithRes
workspaceName,
dataSourceType,
this.client.getSubscriptionId(),
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context))
@@ -240,6 +241,7 @@ private Mono> createOrUpdateWithRes
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -249,7 +251,7 @@ private Mono> createOrUpdateWithRes
workspaceName,
dataSourceType,
this.client.getSubscriptionId(),
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context);
@@ -368,6 +370,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -377,7 +380,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceType,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -420,6 +423,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.delete(
@@ -427,7 +431,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceType,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context);
}
@@ -518,6 +522,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -528,7 +533,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceType,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -572,6 +577,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -580,7 +586,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
dataSourceType,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -680,6 +686,7 @@ private Mono> listByWorkspaceS
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -689,7 +696,7 @@ private Mono> listByWorkspaceS
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
workspaceName,
accept,
context))
@@ -735,6 +742,7 @@ private Mono> listByWorkspaceS
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -742,7 +750,7 @@ private Mono> listByWorkspaceS
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
workspaceName,
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
index 0b0fa63bfc39..b162bd3a82df 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
@@ -107,6 +107,7 @@ private Mono> listSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -116,7 +117,7 @@ private Mono> listSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -160,6 +161,7 @@ private Mono> listSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -167,7 +169,7 @@ private Mono> listSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
index 7dfd440bdfd2..0c5d1965495c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
@@ -101,6 +101,7 @@ private Mono> getWithResponseAsync(String locatio
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -110,7 +111,7 @@ private Mono> getWithResponseAsync(String locatio
this.client.getEndpoint(),
location,
asyncOperationId,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -150,6 +151,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -157,7 +159,7 @@ private Mono> getWithResponseAsync(
this.client.getEndpoint(),
location,
asyncOperationId,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java
index 33ae49d8a88d..94ae4dc388c4 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java
@@ -38,7 +38,6 @@
import com.azure.resourcemanager.loganalytics.fluent.SchemasClient;
import com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient;
import com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient;
-import com.azure.resourcemanager.loganalytics.fluent.TablesClient;
import com.azure.resourcemanager.loganalytics.fluent.UsagesClient;
import com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient;
import com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient;
@@ -81,18 +80,6 @@ public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
- private final String apiVersion;
-
- /**
- * Gets Api Version.
- *
- * @return the apiVersion value.
- */
- public String getApiVersion() {
- return this.apiVersion;
- }
-
/** The HTTP pipeline to send requests through. */
private final HttpPipeline httpPipeline;
@@ -201,18 +188,6 @@ public ManagementGroupsClient getManagementGroups() {
return this.managementGroups;
}
- /** The OperationsClient object to access its operations. */
- private final OperationsClient operations;
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- public OperationsClient getOperations() {
- return this.operations;
- }
-
/** The OperationStatusesClient object to access its operations. */
private final OperationStatusesClient operationStatuses;
@@ -249,42 +224,6 @@ public UsagesClient getUsages() {
return this.usages;
}
- /** The WorkspacesClient object to access its operations. */
- private final WorkspacesClient workspaces;
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- public WorkspacesClient getWorkspaces() {
- return this.workspaces;
- }
-
- /** The DeletedWorkspacesClient object to access its operations. */
- private final DeletedWorkspacesClient deletedWorkspaces;
-
- /**
- * Gets the DeletedWorkspacesClient object to access its operations.
- *
- * @return the DeletedWorkspacesClient object.
- */
- public DeletedWorkspacesClient getDeletedWorkspaces() {
- return this.deletedWorkspaces;
- }
-
- /** The ClustersClient object to access its operations. */
- private final ClustersClient clusters;
-
- /**
- * Gets the ClustersClient object to access its operations.
- *
- * @return the ClustersClient object.
- */
- public ClustersClient getClusters() {
- return this.clusters;
- }
-
/** The StorageInsightConfigsClient object to access its operations. */
private final StorageInsightConfigsClient storageInsightConfigs;
@@ -357,16 +296,52 @@ public WorkspacePurgesClient getWorkspacePurges() {
return this.workspacePurges;
}
- /** The TablesClient object to access its operations. */
- private final TablesClient tables;
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The ClustersClient object to access its operations. */
+ private final ClustersClient clusters;
+
+ /**
+ * Gets the ClustersClient object to access its operations.
+ *
+ * @return the ClustersClient object.
+ */
+ public ClustersClient getClusters() {
+ return this.clusters;
+ }
+
+ /** The WorkspacesClient object to access its operations. */
+ private final WorkspacesClient workspaces;
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ public WorkspacesClient getWorkspaces() {
+ return this.workspaces;
+ }
+
+ /** The DeletedWorkspacesClient object to access its operations. */
+ private final DeletedWorkspacesClient deletedWorkspaces;
/**
- * Gets the TablesClient object to access its operations.
+ * Gets the DeletedWorkspacesClient object to access its operations.
*
- * @return the TablesClient object.
+ * @return the DeletedWorkspacesClient object.
*/
- public TablesClient getTables() {
- return this.tables;
+ public DeletedWorkspacesClient getDeletedWorkspaces() {
+ return this.deletedWorkspaces;
}
/**
@@ -391,27 +366,25 @@ public TablesClient getTables() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-08-01";
this.dataExports = new DataExportsClientImpl(this);
this.dataSources = new DataSourcesClientImpl(this);
this.intelligencePacks = new IntelligencePacksClientImpl(this);
this.linkedServices = new LinkedServicesClientImpl(this);
this.linkedStorageAccounts = new LinkedStorageAccountsClientImpl(this);
this.managementGroups = new ManagementGroupsClientImpl(this);
- this.operations = new OperationsClientImpl(this);
this.operationStatuses = new OperationStatusesClientImpl(this);
this.sharedKeysOperations = new SharedKeysOperationsClientImpl(this);
this.usages = new UsagesClientImpl(this);
- this.workspaces = new WorkspacesClientImpl(this);
- this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this);
- this.clusters = new ClustersClientImpl(this);
this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this);
this.savedSearches = new SavedSearchesClientImpl(this);
this.availableServiceTiers = new AvailableServiceTiersClientImpl(this);
this.gateways = new GatewaysClientImpl(this);
this.schemas = new SchemasClientImpl(this);
this.workspacePurges = new WorkspacePurgesClientImpl(this);
- this.tables = new TablesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.clusters = new ClustersClientImpl(this);
+ this.workspaces = new WorkspacesClientImpl(this);
+ this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this);
}
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
index 8ed8020bfcb3..3fd4f06a764a 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
@@ -95,10 +95,10 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ final String apiVersion = "2020-10-01";
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context))
.>map(
res ->
new PagedResponseBase<>(
@@ -128,10 +128,11 @@ private Mono> listSinglePageAsync(Context context)
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ final String apiVersion = "2020-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
+ .list(this.client.getEndpoint(), apiVersion, accept, context)
.map(
res ->
new PagedResponseBase<>(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java
index 8c7dba622ff7..69afd818c0c6 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java
@@ -158,6 +158,7 @@ private Mono> deleteWithResponseAsync(
if (savedSearchId == null) {
return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -168,7 +169,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -210,6 +211,7 @@ private Mono> deleteWithResponseAsync(
if (savedSearchId == null) {
return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.delete(
@@ -218,7 +220,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
context);
}
@@ -314,6 +316,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -325,7 +328,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context))
@@ -379,6 +382,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -388,7 +392,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
parameters,
accept,
context);
@@ -498,6 +502,7 @@ private Mono> getWithResponseAsync(
if (savedSearchId == null) {
return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -509,7 +514,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -552,6 +557,7 @@ private Mono> getWithResponseAsync(
if (savedSearchId == null) {
return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -561,7 +567,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
savedSearchId,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
@@ -656,6 +662,7 @@ private Mono> listByWorkspaceWithResponse
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -665,7 +672,7 @@ private Mono> listByWorkspaceWithResponse
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -705,6 +712,7 @@ private Mono> listByWorkspaceWithResponse
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -712,7 +720,7 @@ private Mono> listByWorkspaceWithResponse
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java
index 59c20877bfa4..6c49c0c5be50 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java
@@ -101,6 +101,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -110,7 +111,7 @@ private Mono> getWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -150,6 +151,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -157,7 +159,7 @@ private Mono> getWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java
index 9a05dccf50f3..9addf67c5144 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java
@@ -118,6 +118,7 @@ private Mono> getSharedKeysWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -127,7 +128,7 @@ private Mono> getSharedKeysWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -167,6 +168,7 @@ private Mono> getSharedKeysWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -174,7 +176,7 @@ private Mono> getSharedKeysWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -268,6 +270,7 @@ private Mono> regenerateWithResponseAsync(
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -278,7 +281,7 @@ private Mono> regenerateWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -318,6 +321,7 @@ private Mono> regenerateWithResponseAsync(
if (workspaceName == null) {
return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -326,7 +330,7 @@ private Mono> regenerateWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java
index dd9d0d8a166d..71cab1936f43 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java
@@ -180,6 +180,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -190,7 +191,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -246,6 +247,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -254,7 +256,7 @@ private Mono> createOrUpdateWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -367,6 +369,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -377,7 +380,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -422,6 +425,7 @@ private Mono> getWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -430,7 +434,7 @@ private Mono> getWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -532,6 +536,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
return FluxUtil
.withContext(
context ->
@@ -541,7 +546,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -585,6 +590,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
context = this.client.mergeContext(context);
return service
.delete(
@@ -592,7 +598,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context);
}
@@ -679,6 +685,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -688,7 +695,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -737,6 +744,7 @@ private Mono> listByWorkspaceSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -744,7 +752,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java
deleted file mode 100644
index ae66c1b1463a..000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.loganalytics.implementation;
-
-import com.azure.resourcemanager.loganalytics.fluent.models.TableInner;
-import com.azure.resourcemanager.loganalytics.models.Table;
-
-public final class TableImpl implements Table {
- private TableInner innerObject;
-
- private final com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager;
-
- TableImpl(TableInner innerObject, com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public Integer retentionInDays() {
- return this.innerModel().retentionInDays();
- }
-
- public TableInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java
deleted file mode 100644
index 2907cdc2bebb..000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java
+++ /dev/null
@@ -1,618 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.loganalytics.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.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.loganalytics.fluent.TablesClient;
-import com.azure.resourcemanager.loganalytics.fluent.models.TableInner;
-import com.azure.resourcemanager.loganalytics.models.TablesListResult;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in TablesClient. */
-public final class TablesClientImpl implements TablesClient {
- private final ClientLogger logger = new ClientLogger(TablesClientImpl.class);
-
- /** The proxy service used to perform REST calls. */
- private final TablesService service;
-
- /** The service client containing this operation class. */
- private final OperationalInsightsManagementClientImpl client;
-
- /**
- * Initializes an instance of TablesClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- TablesClientImpl(OperationalInsightsManagementClientImpl client) {
- this.service = RestProxy.create(TablesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for OperationalInsightsManagementClientTables to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "OperationalInsightsM")
- private interface TablesService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/tables")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByWorkspace(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/tables/{tableName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("tableName") String tableName,
- @BodyParam("application/json") TableInner parameters,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/tables/{tableName}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("tableName") String tableName,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
- String resourceGroupName, String workspaceName) {
- 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 (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByWorkspace(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByWorkspaceSinglePageAsync(
- String resourceGroupName, String workspaceName, 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 (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByWorkspace(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) {
- return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName));
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByWorkspaceAsync(
- String resourceGroupName, String workspaceName, Context context) {
- return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context));
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
- return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName));
- }
-
- /**
- * Gets all the tables for the specified Log Analytics workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @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 all the tables for the specified Log Analytics workspace.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) {
- return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context));
- }
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- if (tableName == null) {
- return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .update(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- tableName,
- parameters,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- if (tableName == null) {
- return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null."));
- }
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .update(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- tableName,
- parameters,
- accept,
- context);
- }
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters) {
- return updateWithResponseAsync(resourceGroupName, workspaceName, tableName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TableInner update(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) {
- return updateAsync(resourceGroupName, workspaceName, tableName, parameters).block();
- }
-
- /**
- * Updates a Log Analytics workspace table properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @param parameters The parameters required to update table properties.
- * @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 workspace data table definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context) {
- return updateWithResponseAsync(resourceGroupName, workspaceName, tableName, parameters, context).block();
- }
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String workspaceName, String tableName) {
- 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 (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- if (tableName == null) {
- return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- workspaceName,
- this.client.getApiVersion(),
- tableName,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String workspaceName, String tableName, 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 (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
- if (tableName == null) {
- return Mono.error(new IllegalArgumentException("Parameter tableName 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,
- workspaceName,
- this.client.getApiVersion(),
- tableName,
- accept,
- context);
- }
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String workspaceName, String tableName) {
- return getWithResponseAsync(resourceGroupName, workspaceName, tableName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TableInner get(String resourceGroupName, String workspaceName, String tableName) {
- return getAsync(resourceGroupName, workspaceName, tableName).block();
- }
-
- /**
- * Gets a Log Analytics workspace table.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
- * @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 Log Analytics workspace table.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String tableName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, tableName, context).block();
- }
-}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java
deleted file mode 100644
index 8ee8c3a0b68b..000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.loganalytics.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.loganalytics.fluent.TablesClient;
-import com.azure.resourcemanager.loganalytics.fluent.models.TableInner;
-import com.azure.resourcemanager.loganalytics.models.Table;
-import com.azure.resourcemanager.loganalytics.models.Tables;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-public final class TablesImpl implements Tables {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TablesImpl.class);
-
- private final TablesClient innerClient;
-
- private final com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager;
-
- public TablesImpl(
- TablesClient innerClient, com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
- PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return Utils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return Utils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager()));
- }
-
- public Table update(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) {
- TableInner inner = this.serviceClient().update(resourceGroupName, workspaceName, tableName, parameters);
- if (inner != null) {
- return new TableImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response updateWithResponse(
- String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context) {
- Response inner =
- this.serviceClient().updateWithResponse(resourceGroupName, workspaceName, tableName, parameters, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new TableImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public Table get(String resourceGroupName, String workspaceName, String tableName) {
- TableInner inner = this.serviceClient().get(resourceGroupName, workspaceName, tableName);
- if (inner != null) {
- return new TableImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String tableName, Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, workspaceName, tableName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new TableImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- private TablesClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java
index 5fe17c28238c..ce2735bcdc99 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java
@@ -105,6 +105,7 @@ private Mono> listSinglePageAsync(String resourc
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -114,7 +115,7 @@ private Mono> listSinglePageAsync(String resourc
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -158,6 +159,7 @@ private Mono> listSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -165,7 +167,7 @@ private Mono> listSinglePageAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java
index 612c1d9b2a4c..2f7219d82460 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.loganalytics.models.Workspace;
import com.azure.resourcemanager.loganalytics.models.WorkspaceCapping;
import com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures;
import com.azure.resourcemanager.loganalytics.models.WorkspacePatch;
import com.azure.resourcemanager.loganalytics.models.WorkspaceSku;
import java.util.Collections;
@@ -101,13 +102,8 @@ public List privateLinkScopedResources() {
}
}
- public Map features() {
- Map inner = this.innerModel().features();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
+ public WorkspaceFeatures features() {
+ return this.innerModel().features();
}
public Region region() {
@@ -309,7 +305,7 @@ public WorkspaceImpl withForceCmkForQuery(Boolean forceCmkForQuery) {
}
}
- public WorkspaceImpl withFeatures(Map features) {
+ public WorkspaceImpl withFeatures(WorkspaceFeatures features) {
if (isInCreateMode()) {
this.innerModel().withFeatures(features);
return this;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java
index a3e0cc6c8596..59ade20d2f25 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java
@@ -135,6 +135,7 @@ private Mono purgeWithResponseAsync(
} else {
body.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -143,7 +144,7 @@ private Mono purgeWithResponseAsync(
.purge(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
workspaceName,
body,
@@ -196,13 +197,14 @@ private Mono purgeWithResponseAsync(
} else {
body.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.purge(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
workspaceName,
body,
@@ -320,6 +322,7 @@ private Mono> getPurgeStatusWithResp
if (purgeId == null) {
return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -328,7 +331,7 @@ private Mono> getPurgeStatusWithResp
.getPurgeStatus(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
workspaceName,
purgeId,
@@ -374,13 +377,14 @@ private Mono> getPurgeStatusWithResp
if (purgeId == null) {
return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.getPurgeStatus(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
workspaceName,
purgeId,
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java
index 52fa2d36e037..ca1516e1243d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java
@@ -179,17 +179,13 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context))
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context))
.>map(
res ->
new PagedResponseBase<>(
@@ -220,15 +216,11 @@ private Mono> listSinglePageAsync(Context context)
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context)
+ .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
.map(
res ->
new PagedResponseBase<>(
@@ -314,6 +306,7 @@ private Mono> listByResourceGroupSinglePageAsync(S
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -322,7 +315,7 @@ private Mono> listByResourceGroupSinglePageAsync(S
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -362,13 +355,14 @@ private Mono> listByResourceGroupSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.listByResourceGroup(
this.client.getEndpoint(),
resourceGroupName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context)
@@ -474,6 +468,7 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -483,7 +478,7 @@ private Mono>> createOrUpdateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -530,6 +525,7 @@ private Mono>> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -537,7 +533,7 @@ private Mono>> createOrUpdateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -734,6 +730,7 @@ private Mono>> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -743,7 +740,7 @@ private Mono>> deleteWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
force,
accept,
@@ -788,6 +785,7 @@ private Mono>> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -795,7 +793,7 @@ private Mono>> deleteWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
force,
accept,
@@ -1041,6 +1039,7 @@ private Mono> getByResourceGroupWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1050,7 +1049,7 @@ private Mono> getByResourceGroupWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context))
@@ -1090,6 +1089,7 @@ private Mono> getByResourceGroupWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1097,7 +1097,7 @@ private Mono> getByResourceGroupWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
accept,
context);
@@ -1196,6 +1196,7 @@ private Mono