diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
index 9b3c85a23bad3..839c532fc211c 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-05-28)
+- 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-10. 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 4d00532c8e11e..1e0b3250cd802 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-2020-10. 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 dbdb7cc7663f8..cddf468831aa0 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-2020-10.
+ 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.16.0
-
-
- com.azure
- azure-core-management
- 1.2.2
-
-
-
-
-
- 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.16.0
+
+
+ com.azure
+ azure-core-management
+ 1.2.2
+
+
+
+
+
+ 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 376975bad8cd4..d4bd995792cf7 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
@@ -82,20 +82,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;
@@ -110,6 +102,14 @@ public final class LogAnalyticsManager {
private Tables tables;
+ private Clusters clusters;
+
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private DeletedWorkspaces deletedWorkspaces;
+
private final OperationalInsightsManagementClient clientObject;
private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -234,7 +234,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(" (")
@@ -261,6 +261,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
.add(
new BearerTokenAuthenticationPolicy(
credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -320,14 +321,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 +345,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) {
@@ -432,6 +401,38 @@ public Tables tables() {
return tables;
}
+ /** @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 Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @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 Wrapped service client OperationalInsightsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
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 ecb9e1ead6dc4..e77acecba485b 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.
*
@@ -183,4 +148,32 @@ public interface OperationalInsightsManagementClient {
* @return the TablesClient object.
*/
TablesClient getTables();
+
+ /**
+ * Gets the ClustersClient object to access its operations.
+ *
+ * @return the ClustersClient object.
+ */
+ ClustersClient getClusters();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * 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();
}
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 d5bc163290d33..3001f3c959209 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/WorkspaceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java
index ff5401ba2e353..4d25e18d01cd5 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
@@ -100,10 +100,29 @@ public class WorkspaceInner extends Resource {
private List privateLinkScopedResources;
/*
- * Workspace features.
+ * Flag that indicate if data should be exported.
*/
- @JsonProperty(value = "properties.features")
- private Map features;
+ @JsonProperty(value = "properties.features.enableDataExport")
+ private Boolean enableDataExport;
+
+ /*
+ * Flag that describes if we want to remove the data after 30 days.
+ */
+ @JsonProperty(value = "properties.features.immediatePurgeDataOn30Days")
+ private Boolean immediatePurgeDataOn30Days;
+
+ /*
+ * Flag that indicate which permission to use - resource or workspace or
+ * both.
+ */
+ @JsonProperty(value = "properties.features.enableLogAccessUsingOnlyResourcePermissions")
+ private Boolean enableLogAccessUsingOnlyResourcePermissions;
+
+ /*
+ * Dedicated LA cluster resourceId that is linked to the workspaces.
+ */
+ @JsonProperty(value = "properties.features.clusterResourceId")
+ private String clusterResourceId;
/**
* Get the etag property: The ETag of the workspace.
@@ -304,22 +323,85 @@ public List privateLinkScopedResources() {
}
/**
- * Get the features property: Workspace features.
+ * Get the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @return the enableDataExport value.
+ */
+ public Boolean enableDataExport() {
+ return this.enableDataExport;
+ }
+
+ /**
+ * Set the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @param enableDataExport the enableDataExport value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withEnableDataExport(Boolean enableDataExport) {
+ this.enableDataExport = enableDataExport;
+ return this;
+ }
+
+ /**
+ * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @return the immediatePurgeDataOn30Days value.
+ */
+ public Boolean immediatePurgeDataOn30Days() {
+ return this.immediatePurgeDataOn30Days;
+ }
+
+ /**
+ * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) {
+ this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days;
+ return this;
+ }
+
+ /**
+ * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @return the enableLogAccessUsingOnlyResourcePermissions value.
+ */
+ public Boolean enableLogAccessUsingOnlyResourcePermissions() {
+ return this.enableLogAccessUsingOnlyResourcePermissions;
+ }
+
+ /**
+ * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withEnableLogAccessUsingOnlyResourcePermissions(
+ Boolean enableLogAccessUsingOnlyResourcePermissions) {
+ this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions;
+ return this;
+ }
+
+ /**
+ * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
*
- * @return the features value.
+ * @return the clusterResourceId value.
*/
- public Map features() {
- return this.features;
+ public String clusterResourceId() {
+ return this.clusterResourceId;
}
/**
- * Set the features property: Workspace features.
+ * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
*
- * @param features the features value to set.
+ * @param clusterResourceId the clusterResourceId value to set.
* @return the WorkspaceInner object itself.
*/
- public WorkspaceInner withFeatures(Map features) {
- this.features = features;
+ public WorkspaceInner withClusterResourceId(String clusterResourceId) {
+ this.clusterResourceId = clusterResourceId;
return this;
}
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 57f13aa48eeb6..97f1450b4c0ff 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 fdb30b0893996..46b6b92d594bb 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 d9baac7013721..689fdc30e5ba3 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
@@ -203,6 +203,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 e50eb7f34eb3f..3dc11d7c70b04 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 e62dbb1122913..01c0087da0549 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 6d95f1fc33508..cf9e5e5d49ec3 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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 dbfa15e3aa390..07b595f539ce7 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 594a76ca050ff..dadc1e331c087 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 2f90f6a77b0d9..60a3237c541e5 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
@@ -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 09b7f5548f2a5..014ddbf87d854 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 0b0fa63bfc39e..b162bd3a82dfd 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 7dfd440bdfd28..0c5d1965495ca 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 33ae49d8a88dd..e5a996ccebec8 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
@@ -81,18 +81,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 +189,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 +225,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;
@@ -369,6 +309,54 @@ public TablesClient getTables() {
return this.tables;
}
+ /** 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 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 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;
+ }
+
/**
* Initializes an instance of OperationalInsightsManagementClient client.
*
@@ -391,20 +379,15 @@ 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);
@@ -412,6 +395,10 @@ public TablesClient getTables() {
this.schemas = new SchemasClientImpl(this);
this.workspacePurges = new WorkspacePurgesClientImpl(this);
this.tables = new TablesClientImpl(this);
+ this.clusters = new ClustersClientImpl(this);
+ this.operations = new OperationsClientImpl(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 8ed8020bfcb34..3fd4f06a764a5 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 8c7dba622ff72..69afd818c0c6d 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 59c20877bfa45..6c49c0c5be504 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 9a05dccf50f3b..9addf67c51444 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 dd9d0d8a166dc..71cab1936f43a 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/TablesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java
index 2907cdc2bebb0..9e840b2086fcc 100644
--- 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
@@ -141,6 +141,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(
@@ -151,7 +152,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.>map(
@@ -194,6 +195,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
@@ -202,7 +204,7 @@ private Mono> listByWorkspaceSinglePageAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context)
.map(
@@ -316,6 +318,7 @@ private Mono> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -326,7 +329,7 @@ private Mono> updateWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
tableName,
parameters,
accept,
@@ -377,6 +380,7 @@ private Mono> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -385,7 +389,7 @@ private Mono> updateWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
tableName,
parameters,
accept,
@@ -490,6 +494,7 @@ private Mono> getWithResponseAsync(
if (tableName == null) {
return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -500,7 +505,7 @@ private Mono> getWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
tableName,
accept,
context))
@@ -544,6 +549,7 @@ private Mono> getWithResponseAsync(
if (tableName == null) {
return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null."));
}
+ final String apiVersion = "2020-08-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -552,7 +558,7 @@ private Mono> getWithResponseAsync(
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
tableName,
accept,
context);
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 5fe17c28238c3..ce2735bcdc997 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 612c1d9b2a4c1..8878ffb59890e 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
@@ -101,13 +101,20 @@ public List privateLinkScopedResources() {
}
}
- public Map features() {
- Map inner = this.innerModel().features();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
+ public Boolean enableDataExport() {
+ return this.innerModel().enableDataExport();
+ }
+
+ public Boolean immediatePurgeDataOn30Days() {
+ return this.innerModel().immediatePurgeDataOn30Days();
+ }
+
+ public Boolean enableLogAccessUsingOnlyResourcePermissions() {
+ return this.innerModel().enableLogAccessUsingOnlyResourcePermissions();
+ }
+
+ public String clusterResourceId() {
+ return this.innerModel().clusterResourceId();
}
public Region region() {
@@ -309,12 +316,47 @@ public WorkspaceImpl withForceCmkForQuery(Boolean forceCmkForQuery) {
}
}
- public WorkspaceImpl withFeatures(Map features) {
+ public WorkspaceImpl withEnableDataExport(Boolean enableDataExport) {
+ if (isInCreateMode()) {
+ this.innerModel().withEnableDataExport(enableDataExport);
+ return this;
+ } else {
+ this.updateParameters.withEnableDataExport(enableDataExport);
+ return this;
+ }
+ }
+
+ public WorkspaceImpl withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) {
+ if (isInCreateMode()) {
+ this.innerModel().withImmediatePurgeDataOn30Days(immediatePurgeDataOn30Days);
+ return this;
+ } else {
+ this.updateParameters.withImmediatePurgeDataOn30Days(immediatePurgeDataOn30Days);
+ return this;
+ }
+ }
+
+ public WorkspaceImpl withEnableLogAccessUsingOnlyResourcePermissions(
+ Boolean enableLogAccessUsingOnlyResourcePermissions) {
+ if (isInCreateMode()) {
+ this
+ .innerModel()
+ .withEnableLogAccessUsingOnlyResourcePermissions(enableLogAccessUsingOnlyResourcePermissions);
+ return this;
+ } else {
+ this
+ .updateParameters
+ .withEnableLogAccessUsingOnlyResourcePermissions(enableLogAccessUsingOnlyResourcePermissions);
+ return this;
+ }
+ }
+
+ public WorkspaceImpl withClusterResourceId(String clusterResourceId) {
if (isInCreateMode()) {
- this.innerModel().withFeatures(features);
+ this.innerModel().withClusterResourceId(clusterResourceId);
return this;
} else {
- this.updateParameters.withFeatures(features);
+ this.updateParameters.withClusterResourceId(clusterResourceId);
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 a3e0cc6c85962..59ade20d2f25e 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 52fa2d36e0374..7e6a2b2bfa9fd 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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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 = "2020-10-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> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-10-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1205,7 +1206,7 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
@@ -1252,6 +1253,7 @@ private Mono> updateWithResponseAsync(
} else {
parameters.validate();
}
+ final String apiVersion = "2020-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1259,7 +1261,7 @@ private Mono> updateWithResponseAsync(
this.client.getEndpoint(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
parameters,
accept,
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java
new file mode 100644
index 0000000000000..5cc05a8a3d2b8
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java
@@ -0,0 +1,84 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The list of Log Analytics workspaces associated with the cluster. */
+@Immutable
+public final class AssociatedWorkspace {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AssociatedWorkspace.class);
+
+ /*
+ * The id of the assigned workspace.
+ */
+ @JsonProperty(value = "workspaceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String workspaceId;
+
+ /*
+ * The name id the assigned workspace.
+ */
+ @JsonProperty(value = "workspaceName", access = JsonProperty.Access.WRITE_ONLY)
+ private String workspaceName;
+
+ /*
+ * The ResourceId id the assigned workspace.
+ */
+ @JsonProperty(value = "resourceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String resourceId;
+
+ /*
+ * The time of workspace association.
+ */
+ @JsonProperty(value = "associateDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String associateDate;
+
+ /**
+ * Get the workspaceId property: The id of the assigned workspace.
+ *
+ * @return the workspaceId value.
+ */
+ public String workspaceId() {
+ return this.workspaceId;
+ }
+
+ /**
+ * Get the workspaceName property: The name id the assigned workspace.
+ *
+ * @return the workspaceName value.
+ */
+ public String workspaceName() {
+ return this.workspaceName;
+ }
+
+ /**
+ * Get the resourceId property: The ResourceId id the assigned workspace.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the associateDate property: The time of workspace association.
+ *
+ * @return the associateDate value.
+ */
+ public String associateDate() {
+ return this.associateDate;
+ }
+
+ /**
+ * 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/models/BillingType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java
new file mode 100644
index 0000000000000..f57053a49627d
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java
@@ -0,0 +1,34 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Defines values for BillingType. */
+public final class BillingType extends ExpandableStringEnum {
+ /** Static value Cluster for BillingType. */
+ public static final BillingType CLUSTER = fromString("Cluster");
+
+ /** Static value Workspaces for BillingType. */
+ public static final BillingType WORKSPACES = fromString("Workspaces");
+
+ /**
+ * Creates or finds a BillingType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding BillingType.
+ */
+ @JsonCreator
+ public static BillingType fromString(String name) {
+ return fromString(name, BillingType.class);
+ }
+
+ /** @return known BillingType values. */
+ public static Collection values() {
+ return values(BillingType.class);
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java
new file mode 100644
index 0000000000000..9ef5d139842b3
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java
@@ -0,0 +1,69 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Capacity Reservation properties. */
+@Immutable
+public final class CapacityReservationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityReservationProperties.class);
+
+ /*
+ * The last time Sku was updated.
+ */
+ @JsonProperty(value = "lastSkuUpdate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastSkuUpdate;
+
+ /*
+ * Minimum CapacityReservation value in GB.
+ */
+ @JsonProperty(value = "minCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private Long minCapacity;
+
+ /*
+ * Maximum CapacityReservation value in GB.
+ */
+ @JsonProperty(value = "maxCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private Long maxCapacity;
+
+ /**
+ * Get the lastSkuUpdate property: The last time Sku was updated.
+ *
+ * @return the lastSkuUpdate value.
+ */
+ public String lastSkuUpdate() {
+ return this.lastSkuUpdate;
+ }
+
+ /**
+ * Get the minCapacity property: Minimum CapacityReservation value in GB.
+ *
+ * @return the minCapacity value.
+ */
+ public Long minCapacity() {
+ return this.minCapacity;
+ }
+
+ /**
+ * Get the maxCapacity property: Maximum CapacityReservation value in GB.
+ *
+ * @return the maxCapacity value.
+ */
+ public Long maxCapacity() {
+ return this.maxCapacity;
+ }
+
+ /**
+ * 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/models/Cluster.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java
index 6cd5fe9911757..50dc0d70db138 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java
@@ -7,6 +7,7 @@
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner;
+import java.util.List;
import java.util.Map;
/** An immutable client-side representation of Cluster. */
@@ -60,13 +61,6 @@ public interface Cluster {
*/
ClusterSku sku();
- /**
- * Gets the nextLink property: The link used to get the next page of recommendations.
- *
- * @return the nextLink value.
- */
- String nextLink();
-
/**
* Gets the clusterId property: The ID associated with the cluster.
*
@@ -81,6 +75,30 @@ public interface Cluster {
*/
ClusterEntityStatus provisioningState();
+ /**
+ * Gets the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property
+ * can not be modified after cluster creation. Default value is 'true'.
+ *
+ * @return the isDoubleEncryptionEnabled value.
+ */
+ Boolean isDoubleEncryptionEnabled();
+
+ /**
+ * Gets 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 isAvailabilityZonesEnabled value.
+ */
+ Boolean isAvailabilityZonesEnabled();
+
+ /**
+ * Gets the billingType property: The cluster's billing type.
+ *
+ * @return the billingType value.
+ */
+ BillingType billingType();
+
/**
* Gets the keyVaultProperties property: The associated key properties.
*
@@ -88,6 +106,34 @@ public interface Cluster {
*/
KeyVaultProperties keyVaultProperties();
+ /**
+ * Gets the lastModifiedDate property: The last time the cluster was updated.
+ *
+ * @return the lastModifiedDate value.
+ */
+ String lastModifiedDate();
+
+ /**
+ * Gets the createdDate property: The cluster creation time.
+ *
+ * @return the createdDate value.
+ */
+ String createdDate();
+
+ /**
+ * Gets the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster.
+ *
+ * @return the associatedWorkspaces value.
+ */
+ List associatedWorkspaces();
+
+ /**
+ * Gets the capacityReservationProperties property: Additional properties for capacity reservation.
+ *
+ * @return the capacityReservationProperties value.
+ */
+ CapacityReservationProperties capacityReservationProperties();
+
/**
* Gets the region of the resource.
*
@@ -157,8 +203,12 @@ interface WithCreate
extends DefinitionStages.WithTags,
DefinitionStages.WithIdentity,
DefinitionStages.WithSku,
- DefinitionStages.WithNextLink,
- DefinitionStages.WithKeyVaultProperties {
+ DefinitionStages.WithIsDoubleEncryptionEnabled,
+ DefinitionStages.WithIsAvailabilityZonesEnabled,
+ DefinitionStages.WithBillingType,
+ DefinitionStages.WithKeyVaultProperties,
+ DefinitionStages.WithAssociatedWorkspaces,
+ DefinitionStages.WithCapacityReservationProperties {
/**
* Executes the create request.
*
@@ -204,15 +254,43 @@ interface WithSku {
*/
WithCreate withSku(ClusterSku sku);
}
- /** The stage of the Cluster definition allowing to specify nextLink. */
- interface WithNextLink {
+ /** The stage of the Cluster definition allowing to specify isDoubleEncryptionEnabled. */
+ interface WithIsDoubleEncryptionEnabled {
/**
- * Specifies the nextLink property: The link used to get the next page of recommendations..
+ * Specifies 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 link used to get the next page of recommendations.
+ * @param isDoubleEncryptionEnabled Configures whether cluster will use double encryption. This Property can
+ * not be modified after cluster creation. Default value is 'true'.
* @return the next definition stage.
*/
- WithCreate withNextLink(String nextLink);
+ WithCreate withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled);
+ }
+ /** The stage of the Cluster definition allowing to specify isAvailabilityZonesEnabled. */
+ interface WithIsAvailabilityZonesEnabled {
+ /**
+ * Specifies 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..
+ *
+ * @param isAvailabilityZonesEnabled 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 next definition stage.
+ */
+ WithCreate withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled);
+ }
+ /** The stage of the Cluster definition allowing to specify billingType. */
+ interface WithBillingType {
+ /**
+ * Specifies the billingType property: The cluster's billing type..
+ *
+ * @param billingType The cluster's billing type.
+ * @return the next definition stage.
+ */
+ WithCreate withBillingType(BillingType billingType);
}
/** The stage of the Cluster definition allowing to specify keyVaultProperties. */
interface WithKeyVaultProperties {
@@ -224,6 +302,27 @@ interface WithKeyVaultProperties {
*/
WithCreate withKeyVaultProperties(KeyVaultProperties keyVaultProperties);
}
+ /** The stage of the Cluster definition allowing to specify associatedWorkspaces. */
+ interface WithAssociatedWorkspaces {
+ /**
+ * Specifies the associatedWorkspaces property: The list of Log Analytics workspaces associated with the
+ * cluster.
+ *
+ * @param associatedWorkspaces The list of Log Analytics workspaces associated with the cluster.
+ * @return the next definition stage.
+ */
+ WithCreate withAssociatedWorkspaces(List associatedWorkspaces);
+ }
+ /** The stage of the Cluster definition allowing to specify capacityReservationProperties. */
+ interface WithCapacityReservationProperties {
+ /**
+ * Specifies the capacityReservationProperties property: Additional properties for capacity reservation.
+ *
+ * @param capacityReservationProperties Additional properties for capacity reservation.
+ * @return the next definition stage.
+ */
+ WithCreate withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties);
+ }
}
/**
* Begins update for the Cluster resource.
@@ -233,7 +332,12 @@ interface WithKeyVaultProperties {
Cluster.Update update();
/** The template for Cluster update. */
- interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithKeyVaultProperties {
+ interface Update
+ extends UpdateStages.WithTags,
+ UpdateStages.WithIdentity,
+ UpdateStages.WithSku,
+ UpdateStages.WithKeyVaultProperties,
+ UpdateStages.WithBillingType {
/**
* Executes the update request.
*
@@ -261,6 +365,16 @@ interface WithTags {
*/
Update withTags(Map tags);
}
+ /** The stage of the Cluster update allowing to specify identity. */
+ interface WithIdentity {
+ /**
+ * Specifies the identity property: The identity of the resource..
+ *
+ * @param identity The identity of the resource.
+ * @return the next definition stage.
+ */
+ Update withIdentity(Identity identity);
+ }
/** The stage of the Cluster update allowing to specify sku. */
interface WithSku {
/**
@@ -281,6 +395,16 @@ interface WithKeyVaultProperties {
*/
Update withKeyVaultProperties(KeyVaultProperties keyVaultProperties);
}
+ /** The stage of the Cluster update allowing to specify billingType. */
+ interface WithBillingType {
+ /**
+ * Specifies the billingType property: The cluster's billing type..
+ *
+ * @param billingType The cluster's billing type.
+ * @return the next definition stage.
+ */
+ Update withBillingType(BillingType billingType);
+ }
}
/**
* Refreshes the resource to sync with Azure.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java
index 34be5ae9d38f6..b072c7cf7cbd1 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java
@@ -17,6 +17,12 @@
public class ClusterPatch {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPatch.class);
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
/*
* The sku properties.
*/
@@ -35,6 +41,32 @@ public class ClusterPatch {
@JsonProperty(value = "properties.keyVaultProperties")
private KeyVaultProperties keyVaultProperties;
+ /*
+ * The cluster's billing type.
+ */
+ @JsonProperty(value = "properties.billingType")
+ private BillingType billingType;
+
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the ClusterPatch object itself.
+ */
+ public ClusterPatch withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
/**
* Get the sku property: The sku properties.
*
@@ -95,12 +127,35 @@ public ClusterPatch withKeyVaultProperties(KeyVaultProperties keyVaultProperties
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 ClusterPatch object itself.
+ */
+ public ClusterPatch withBillingType(BillingType billingType) {
+ this.billingType = billingType;
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (sku() != null) {
sku().validate();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java
deleted file mode 100644
index 697ee10baa222..0000000000000
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java
+++ /dev/null
@@ -1,54 +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.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The resource management error additional info. */
-@Immutable
-public final class ErrorAdditionalInfo {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ErrorAdditionalInfo.class);
-
- /*
- * The additional info type.
- */
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
- private String type;
-
- /*
- * The additional info.
- */
- @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
- private Object info;
-
- /**
- * Get the type property: The additional info type.
- *
- * @return the type value.
- */
- public String type() {
- return this.type;
- }
-
- /**
- * Get the info property: The additional info.
- *
- * @return the info value.
- */
- public Object info() {
- return this.info;
- }
-
- /**
- * 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/models/Identity.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java
index 2115f49ea7fa1..b46323e664d01 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java
@@ -8,6 +8,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** Identity for the resource. */
@Fluent
@@ -27,11 +28,19 @@ public class Identity {
private String tenantId;
/*
- * The identity type.
+ * Type of managed service identity.
*/
@JsonProperty(value = "type", required = true)
private IdentityType type;
+ /*
+ * The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ private Map userAssignedIdentities;
+
/**
* Get the principalId property: The principal ID of resource identity.
*
@@ -51,7 +60,7 @@ public String tenantId() {
}
/**
- * Get the type property: The identity type.
+ * Get the type property: Type of managed service identity.
*
* @return the type value.
*/
@@ -60,7 +69,7 @@ public IdentityType type() {
}
/**
- * Set the type property: The identity type.
+ * Set the type property: Type of managed service identity.
*
* @param type the type value to set.
* @return the Identity object itself.
@@ -70,6 +79,30 @@ public Identity withType(IdentityType type) {
return this;
}
+ /**
+ * Get the userAssignedIdentities property: The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public Map userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: The list of user identities associated with the resource. The user
+ * identity dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the Identity object itself.
+ */
+ public Identity withUserAssignedIdentities(Map userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -80,5 +113,15 @@ public void validate() {
throw logger
.logExceptionAsError(new IllegalArgumentException("Missing required property type in model Identity"));
}
+ if (userAssignedIdentities() != null) {
+ userAssignedIdentities()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java
index 457f03780ba35..b8566c9eb059e 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java
@@ -12,6 +12,9 @@ public enum IdentityType {
/** Enum value SystemAssigned. */
SYSTEM_ASSIGNED("SystemAssigned"),
+ /** Enum value UserAssigned. */
+ USER_ASSIGNED("UserAssigned"),
+
/** Enum value None. */
NONE("None");
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java
index ac2c6827af82d..3a6d9052ff476 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java
@@ -33,6 +33,12 @@ public final class KeyVaultProperties {
@JsonProperty(value = "keyVersion")
private String keyVersion;
+ /*
+ * Selected key minimum required size.
+ */
+ @JsonProperty(value = "keyRsaSize")
+ private Integer keyRsaSize;
+
/**
* Get the keyVaultUri property: The Key Vault uri which holds they key associated with the Log Analytics cluster.
*
@@ -93,6 +99,26 @@ public KeyVaultProperties withKeyVersion(String keyVersion) {
return this;
}
+ /**
+ * Get the keyRsaSize property: Selected key minimum required size.
+ *
+ * @return the keyRsaSize value.
+ */
+ public Integer keyRsaSize() {
+ return this.keyRsaSize;
+ }
+
+ /**
+ * Set the keyRsaSize property: Selected key minimum required size.
+ *
+ * @param keyRsaSize the keyRsaSize value to set.
+ * @return the KeyVaultProperties object itself.
+ */
+ public KeyVaultProperties withKeyRsaSize(Integer keyRsaSize) {
+ this.keyRsaSize = keyRsaSize;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java
new file mode 100644
index 0000000000000..09534dfdca5a1
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** User assigned identity properties. */
+@Immutable
+public final class UserIdentityProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UserIdentityProperties.class);
+
+ /*
+ * The principal id of user assigned identity.
+ */
+ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
+ private String principalId;
+
+ /*
+ * The client id of user assigned identity.
+ */
+ @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY)
+ private String clientId;
+
+ /**
+ * Get the principalId property: The principal id of user assigned identity.
+ *
+ * @return the principalId value.
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Get the clientId property: The client id of user assigned identity.
+ *
+ * @return the clientId value.
+ */
+ public String clientId() {
+ return this.clientId;
+ }
+
+ /**
+ * 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/models/Workspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java
index 44ce1350abae5..85e00d2f7421b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java
@@ -133,11 +133,33 @@ public interface Workspace {
List privateLinkScopedResources();
/**
- * Gets the features property: Workspace features.
+ * Gets the enableDataExport property: Flag that indicate if data should be exported.
*
- * @return the features value.
+ * @return the enableDataExport value.
*/
- Map features();
+ Boolean enableDataExport();
+
+ /**
+ * Gets the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @return the immediatePurgeDataOn30Days value.
+ */
+ Boolean immediatePurgeDataOn30Days();
+
+ /**
+ * Gets the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @return the enableLogAccessUsingOnlyResourcePermissions value.
+ */
+ Boolean enableLogAccessUsingOnlyResourcePermissions();
+
+ /**
+ * Gets the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
+ *
+ * @return the clusterResourceId value.
+ */
+ String clusterResourceId();
/**
* Gets the region of the resource.
@@ -214,7 +236,10 @@ interface WithCreate
DefinitionStages.WithPublicNetworkAccessForIngestion,
DefinitionStages.WithPublicNetworkAccessForQuery,
DefinitionStages.WithForceCmkForQuery,
- DefinitionStages.WithFeatures {
+ DefinitionStages.WithEnableDataExport,
+ DefinitionStages.WithImmediatePurgeDataOn30Days,
+ DefinitionStages.WithEnableLogAccessUsingOnlyResourcePermissions,
+ DefinitionStages.WithClusterResourceId {
/**
* Executes the create request.
*
@@ -325,15 +350,50 @@ interface WithForceCmkForQuery {
*/
WithCreate withForceCmkForQuery(Boolean forceCmkForQuery);
}
- /** The stage of the Workspace definition allowing to specify features. */
- interface WithFeatures {
+ /** The stage of the Workspace definition allowing to specify enableDataExport. */
+ interface WithEnableDataExport {
+ /**
+ * Specifies the enableDataExport property: Flag that indicate if data should be exported..
+ *
+ * @param enableDataExport Flag that indicate if data should be exported.
+ * @return the next definition stage.
+ */
+ WithCreate withEnableDataExport(Boolean enableDataExport);
+ }
+ /** The stage of the Workspace definition allowing to specify immediatePurgeDataOn30Days. */
+ interface WithImmediatePurgeDataOn30Days {
+ /**
+ * Specifies the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data
+ * after 30 days..
+ *
+ * @param immediatePurgeDataOn30Days Flag that describes if we want to remove the data after 30 days.
+ * @return the next definition stage.
+ */
+ WithCreate withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days);
+ }
+ /** The stage of the Workspace definition allowing to specify enableLogAccessUsingOnlyResourcePermissions. */
+ interface WithEnableLogAccessUsingOnlyResourcePermissions {
+ /**
+ * Specifies the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission
+ * to use - resource or workspace or both..
+ *
+ * @param enableLogAccessUsingOnlyResourcePermissions Flag that indicate which permission to use - resource
+ * or workspace or both.
+ * @return the next definition stage.
+ */
+ WithCreate withEnableLogAccessUsingOnlyResourcePermissions(
+ Boolean enableLogAccessUsingOnlyResourcePermissions);
+ }
+ /** The stage of the Workspace definition allowing to specify clusterResourceId. */
+ interface WithClusterResourceId {
/**
- * Specifies the features property: Workspace features..
+ * Specifies the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the
+ * workspaces..
*
- * @param features Workspace features.
+ * @param clusterResourceId Dedicated LA cluster resourceId that is linked to the workspaces.
* @return the next definition stage.
*/
- WithCreate withFeatures(Map features);
+ WithCreate withClusterResourceId(String clusterResourceId);
}
}
/**
@@ -353,7 +413,10 @@ interface Update
UpdateStages.WithPublicNetworkAccessForIngestion,
UpdateStages.WithPublicNetworkAccessForQuery,
UpdateStages.WithForceCmkForQuery,
- UpdateStages.WithFeatures {
+ UpdateStages.WithEnableDataExport,
+ UpdateStages.WithImmediatePurgeDataOn30Days,
+ UpdateStages.WithEnableLogAccessUsingOnlyResourcePermissions,
+ UpdateStages.WithClusterResourceId {
/**
* Executes the update request.
*
@@ -456,15 +519,49 @@ interface WithForceCmkForQuery {
*/
Update withForceCmkForQuery(Boolean forceCmkForQuery);
}
- /** The stage of the Workspace update allowing to specify features. */
- interface WithFeatures {
+ /** The stage of the Workspace update allowing to specify enableDataExport. */
+ interface WithEnableDataExport {
+ /**
+ * Specifies the enableDataExport property: Flag that indicate if data should be exported..
+ *
+ * @param enableDataExport Flag that indicate if data should be exported.
+ * @return the next definition stage.
+ */
+ Update withEnableDataExport(Boolean enableDataExport);
+ }
+ /** The stage of the Workspace update allowing to specify immediatePurgeDataOn30Days. */
+ interface WithImmediatePurgeDataOn30Days {
+ /**
+ * Specifies the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data
+ * after 30 days..
+ *
+ * @param immediatePurgeDataOn30Days Flag that describes if we want to remove the data after 30 days.
+ * @return the next definition stage.
+ */
+ Update withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days);
+ }
+ /** The stage of the Workspace update allowing to specify enableLogAccessUsingOnlyResourcePermissions. */
+ interface WithEnableLogAccessUsingOnlyResourcePermissions {
+ /**
+ * Specifies the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission
+ * to use - resource or workspace or both..
+ *
+ * @param enableLogAccessUsingOnlyResourcePermissions Flag that indicate which permission to use - resource
+ * or workspace or both.
+ * @return the next definition stage.
+ */
+ Update withEnableLogAccessUsingOnlyResourcePermissions(Boolean enableLogAccessUsingOnlyResourcePermissions);
+ }
+ /** The stage of the Workspace update allowing to specify clusterResourceId. */
+ interface WithClusterResourceId {
/**
- * Specifies the features property: Workspace features..
+ * Specifies the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the
+ * workspaces..
*
- * @param features Workspace features.
+ * @param clusterResourceId Dedicated LA cluster resourceId that is linked to the workspaces.
* @return the next definition stage.
*/
- Update withFeatures(Map features);
+ Update withClusterResourceId(String clusterResourceId);
}
}
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java
new file mode 100644
index 0000000000000..7a292409ecca4
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java
@@ -0,0 +1,170 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Workspace features. */
+@Fluent
+public final class WorkspaceFeatures {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceFeatures.class);
+
+ /*
+ * Flag that indicate if data should be exported.
+ */
+ @JsonProperty(value = "enableDataExport")
+ private Boolean enableDataExport;
+
+ /*
+ * Flag that describes if we want to remove the data after 30 days.
+ */
+ @JsonProperty(value = "immediatePurgeDataOn30Days")
+ private Boolean immediatePurgeDataOn30Days;
+
+ /*
+ * Flag that indicate which permission to use - resource or workspace or
+ * both.
+ */
+ @JsonProperty(value = "enableLogAccessUsingOnlyResourcePermissions")
+ private Boolean enableLogAccessUsingOnlyResourcePermissions;
+
+ /*
+ * Dedicated LA cluster resourceId that is linked to the workspaces.
+ */
+ @JsonProperty(value = "clusterResourceId")
+ private String clusterResourceId;
+
+ /*
+ * Workspace features.
+ */
+ @JsonIgnore private Map additionalProperties;
+
+ /**
+ * Get the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @return the enableDataExport value.
+ */
+ public Boolean enableDataExport() {
+ return this.enableDataExport;
+ }
+
+ /**
+ * Set the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @param enableDataExport the enableDataExport value to set.
+ * @return the WorkspaceFeatures object itself.
+ */
+ public WorkspaceFeatures withEnableDataExport(Boolean enableDataExport) {
+ this.enableDataExport = enableDataExport;
+ return this;
+ }
+
+ /**
+ * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @return the immediatePurgeDataOn30Days value.
+ */
+ public Boolean immediatePurgeDataOn30Days() {
+ return this.immediatePurgeDataOn30Days;
+ }
+
+ /**
+ * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set.
+ * @return the WorkspaceFeatures object itself.
+ */
+ public WorkspaceFeatures withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) {
+ this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days;
+ return this;
+ }
+
+ /**
+ * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @return the enableLogAccessUsingOnlyResourcePermissions value.
+ */
+ public Boolean enableLogAccessUsingOnlyResourcePermissions() {
+ return this.enableLogAccessUsingOnlyResourcePermissions;
+ }
+
+ /**
+ * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set.
+ * @return the WorkspaceFeatures object itself.
+ */
+ public WorkspaceFeatures withEnableLogAccessUsingOnlyResourcePermissions(
+ Boolean enableLogAccessUsingOnlyResourcePermissions) {
+ this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions;
+ return this;
+ }
+
+ /**
+ * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
+ *
+ * @return the clusterResourceId value.
+ */
+ public String clusterResourceId() {
+ return this.clusterResourceId;
+ }
+
+ /**
+ * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
+ *
+ * @param clusterResourceId the clusterResourceId value to set.
+ * @return the WorkspaceFeatures object itself.
+ */
+ public WorkspaceFeatures withClusterResourceId(String clusterResourceId) {
+ this.clusterResourceId = clusterResourceId;
+ return this;
+ }
+
+ /**
+ * Get the additionalProperties property: Workspace features.
+ *
+ * @return the additionalProperties value.
+ */
+ @JsonAnyGetter
+ public Map additionalProperties() {
+ return this.additionalProperties;
+ }
+
+ /**
+ * Set the additionalProperties property: Workspace features.
+ *
+ * @param additionalProperties the additionalProperties value to set.
+ * @return the WorkspaceFeatures object itself.
+ */
+ public WorkspaceFeatures withAdditionalProperties(Map additionalProperties) {
+ this.additionalProperties = additionalProperties;
+ return this;
+ }
+
+ @JsonAnySetter
+ void withAdditionalProperties(String key, Object value) {
+ if (additionalProperties == null) {
+ additionalProperties = new HashMap<>();
+ }
+ additionalProperties.put(key, value);
+ }
+
+ /**
+ * 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/models/WorkspacePatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java
index c1d0c35e8ed38..a1b370ec6ddc7 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java
@@ -94,10 +94,29 @@ public class WorkspacePatch extends AzureEntityResource {
private List privateLinkScopedResources;
/*
- * Workspace features.
+ * Flag that indicate if data should be exported.
*/
- @JsonProperty(value = "properties.features")
- private Map features;
+ @JsonProperty(value = "properties.features.enableDataExport")
+ private Boolean enableDataExport;
+
+ /*
+ * Flag that describes if we want to remove the data after 30 days.
+ */
+ @JsonProperty(value = "properties.features.immediatePurgeDataOn30Days")
+ private Boolean immediatePurgeDataOn30Days;
+
+ /*
+ * Flag that indicate which permission to use - resource or workspace or
+ * both.
+ */
+ @JsonProperty(value = "properties.features.enableLogAccessUsingOnlyResourcePermissions")
+ private Boolean enableLogAccessUsingOnlyResourcePermissions;
+
+ /*
+ * Dedicated LA cluster resourceId that is linked to the workspaces.
+ */
+ @JsonProperty(value = "properties.features.clusterResourceId")
+ private String clusterResourceId;
/**
* Get the tags property: Resource tags. Optional.
@@ -298,22 +317,85 @@ public List privateLinkScopedResources() {
}
/**
- * Get the features property: Workspace features.
+ * Get the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @return the enableDataExport value.
+ */
+ public Boolean enableDataExport() {
+ return this.enableDataExport;
+ }
+
+ /**
+ * Set the enableDataExport property: Flag that indicate if data should be exported.
+ *
+ * @param enableDataExport the enableDataExport value to set.
+ * @return the WorkspacePatch object itself.
+ */
+ public WorkspacePatch withEnableDataExport(Boolean enableDataExport) {
+ this.enableDataExport = enableDataExport;
+ return this;
+ }
+
+ /**
+ * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @return the immediatePurgeDataOn30Days value.
+ */
+ public Boolean immediatePurgeDataOn30Days() {
+ return this.immediatePurgeDataOn30Days;
+ }
+
+ /**
+ * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days.
+ *
+ * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set.
+ * @return the WorkspacePatch object itself.
+ */
+ public WorkspacePatch withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) {
+ this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days;
+ return this;
+ }
+
+ /**
+ * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @return the enableLogAccessUsingOnlyResourcePermissions value.
+ */
+ public Boolean enableLogAccessUsingOnlyResourcePermissions() {
+ return this.enableLogAccessUsingOnlyResourcePermissions;
+ }
+
+ /**
+ * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use -
+ * resource or workspace or both.
+ *
+ * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set.
+ * @return the WorkspacePatch object itself.
+ */
+ public WorkspacePatch withEnableLogAccessUsingOnlyResourcePermissions(
+ Boolean enableLogAccessUsingOnlyResourcePermissions) {
+ this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions;
+ return this;
+ }
+
+ /**
+ * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
*
- * @return the features value.
+ * @return the clusterResourceId value.
*/
- public Map features() {
- return this.features;
+ public String clusterResourceId() {
+ return this.clusterResourceId;
}
/**
- * Set the features property: Workspace features.
+ * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces.
*
- * @param features the features value to set.
+ * @param clusterResourceId the clusterResourceId value to set.
* @return the WorkspacePatch object itself.
*/
- public WorkspacePatch withFeatures(Map features) {
- this.features = features;
+ public WorkspacePatch withClusterResourceId(String clusterResourceId) {
+ this.clusterResourceId = clusterResourceId;
return this;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java
index 798779b881d43..743f0d8e0695d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java
@@ -27,13 +27,6 @@ public final class WorkspaceSku {
@JsonProperty(value = "capacityReservationLevel")
private Integer capacityReservationLevel;
- /*
- * The maximum capacity reservation level available for this workspace,
- * when CapacityReservation sku is selected.
- */
- @JsonProperty(value = "maxCapacityReservationLevel", access = JsonProperty.Access.WRITE_ONLY)
- private Integer maxCapacityReservationLevel;
-
/*
* The last time when the sku was updated.
*/
@@ -82,16 +75,6 @@ public WorkspaceSku withCapacityReservationLevel(Integer capacityReservationLeve
return this;
}
- /**
- * Get the maxCapacityReservationLevel property: The maximum capacity reservation level available for this
- * workspace, when CapacityReservation sku is selected.
- *
- * @return the maxCapacityReservationLevel value.
- */
- public Integer maxCapacityReservationLevel() {
- return this.maxCapacityReservationLevel;
- }
-
/**
* Get the lastSkuUpdate property: The last time when the sku was updated.
*