diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
index 2bb4d3ca336f..ee155d5c9dd1 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.2 (Unreleased)
+## 1.0.0-beta.1 (2021-03-07)
+- 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.1 (2020-12-18)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
index 72f81d5b298d..ff0ff6f318f3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
@@ -2,7 +2,21 @@
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
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
## Getting started
@@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Opera
com.azure.resourcemanager
azure-resourcemanager-loganalytics
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
index 36423080e736..37e918d14f14 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for LogAnalytics Management
- 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 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 https://aka.ms/azsdk/java/mgmt
https://github.com/Azure/azure-sdk-for-java
@@ -41,6 +41,11 @@
+
+ com.azure
+ azure-core
+ 1.13.0
+
com.azure
azure-core-management
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 98a1bd1600c7..da1e0161f9c7 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,22 +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;
private AvailableServiceTiers availableServiceTiers;
@@ -108,8 +98,18 @@ public final class LogAnalyticsManager {
private WorkspacePurges workspacePurges;
+ private StorageInsightConfigs storageInsightConfigs;
+
+ private Clusters clusters;
+
+ private Operations operations;
+
private Tables tables;
+ private Workspaces workspaces;
+
+ private DeletedWorkspaces deletedWorkspaces;
+
private final OperationalInsightsManagementClient clientObject;
private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -228,17 +228,31 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.loganalytics")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List policies = new ArrayList<>();
- policies
- .add(
- new UserAgentPolicy(
- null,
- "com.azure.resourcemanager.loganalytics",
- "1.0.0-beta.1",
- Configuration.getGlobalConfiguration()));
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
@@ -306,14 +320,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) {
@@ -338,38 +344,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) {
- this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
- }
- return storageInsightConfigs;
- }
-
/** @return Resource collection API of SavedSearches. */
public SavedSearches savedSearches() {
if (this.savedSearches == null) {
@@ -410,6 +384,30 @@ public WorkspacePurges workspacePurges() {
return workspacePurges;
}
+ /** @return Resource collection API of StorageInsightConfigs. */
+ public StorageInsightConfigs storageInsightConfigs() {
+ if (this.storageInsightConfigs == null) {
+ this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
+ }
+ return storageInsightConfigs;
+ }
+
+ /** @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 Tables. */
public Tables tables() {
if (this.tables == null) {
@@ -418,6 +416,22 @@ public Tables tables() {
return tables;
}
+ /** @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 ecb9e1ead6dc..bb9177200fb7 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,34 +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.
- *
- * @return the StorageInsightConfigsClient object.
- */
- StorageInsightConfigsClient getStorageInsightConfigs();
-
/**
* Gets the SavedSearchesClient object to access its operations.
*
@@ -177,10 +135,45 @@ public interface OperationalInsightsManagementClient {
*/
WorkspacePurgesClient getWorkspacePurges();
+ /**
+ * Gets the StorageInsightConfigsClient object to access its operations.
+ *
+ * @return the StorageInsightConfigsClient object.
+ */
+ StorageInsightConfigsClient getStorageInsightConfigs();
+
+ /**
+ * 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 TablesClient object to access its operations.
*
* @return the TablesClient object.
*/
TablesClient getTables();
+
+ /**
+ * 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 d5bc163290d3..ee49aaf477b7 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,60 @@ 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;
+
+ /*
+ * Configures whether billing will be only on the cluster or each workspace
+ * will be billed by its proportional use. This does not change the overall
+ * billing, only how it will be distributed. Default value is 'Cluster'
+ */
+ @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 +145,91 @@ 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: Configures whether billing will be only on the cluster or each workspace will be
+ * billed by its proportional use. This does not change the overall billing, only how it will be distributed.
+ * Default value is 'Cluster'.
+ *
+ * @return the billingType value.
+ */
+ public BillingType billingType() {
+ return this.billingType;
+ }
+
+ /**
+ * Set the billingType property: Configures whether billing will be only on the cluster or each workspace will be
+ * billed by its proportional use. This does not change the overall billing, only how it will be distributed.
+ * Default value is 'Cluster'.
+ *
+ * @param billingType the billingType value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withBillingType(BillingType billingType) {
+ this.billingType = billingType;
+ return this;
}
/**
@@ -156,6 +252,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 +339,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/TableInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java
index 97f0a3960707..cb29d54b9458 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java
@@ -18,15 +18,34 @@ public class TableInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(TableInner.class);
/*
- * The data table data retention in days, between 30 and 730. Setting this
+ * The data table data retention in days, between 7 and 730. Setting this
* property to null will default to the workspace retention.
*/
@JsonProperty(value = "properties.retentionInDays")
private Integer retentionInDays;
+ /*
+ * Specifies if IsTroubleshootingEnabled property can be set for this
+ * table.
+ */
+ @JsonProperty(value = "properties.isTroubleshootingAllowed", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isTroubleshootingAllowed;
+
+ /*
+ * Enable or disable troubleshoot for this table.
+ */
+ @JsonProperty(value = "properties.isTroubleshootEnabled")
+ private Boolean isTroubleshootEnabled;
+
+ /*
+ * Last time when troubleshooting was set for this table.
+ */
+ @JsonProperty(value = "properties.lastTroubleshootDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastTroubleshootDate;
+
/**
- * Get the retentionInDays property: The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
+ * Get the retentionInDays property: The data table data retention in days, between 7 and 730. Setting this property
+ * to null will default to the workspace retention.
*
* @return the retentionInDays value.
*/
@@ -35,8 +54,8 @@ public Integer retentionInDays() {
}
/**
- * Set the retentionInDays property: The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
+ * Set the retentionInDays property: The data table data retention in days, between 7 and 730. Setting this property
+ * to null will default to the workspace retention.
*
* @param retentionInDays the retentionInDays value to set.
* @return the TableInner object itself.
@@ -46,6 +65,45 @@ public TableInner withRetentionInDays(Integer retentionInDays) {
return this;
}
+ /**
+ * Get the isTroubleshootingAllowed property: Specifies if IsTroubleshootingEnabled property can be set for this
+ * table.
+ *
+ * @return the isTroubleshootingAllowed value.
+ */
+ public Boolean isTroubleshootingAllowed() {
+ return this.isTroubleshootingAllowed;
+ }
+
+ /**
+ * Get the isTroubleshootEnabled property: Enable or disable troubleshoot for this table.
+ *
+ * @return the isTroubleshootEnabled value.
+ */
+ public Boolean isTroubleshootEnabled() {
+ return this.isTroubleshootEnabled;
+ }
+
+ /**
+ * Set the isTroubleshootEnabled property: Enable or disable troubleshoot for this table.
+ *
+ * @param isTroubleshootEnabled the isTroubleshootEnabled value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withIsTroubleshootEnabled(Boolean isTroubleshootEnabled) {
+ this.isTroubleshootEnabled = isTroubleshootEnabled;
+ return this;
+ }
+
+ /**
+ * Get the lastTroubleshootDate property: Last time when troubleshooting was set for this table.
+ *
+ * @return the lastTroubleshootDate value.
+ */
+ public String lastTroubleshootDate() {
+ return this.lastTroubleshootDate;
+ }
+
/**
* Validates the instance.
*
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 42a2262853f1..ff5401ba2e35 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
@@ -50,7 +50,8 @@ public class WorkspaceInner extends Resource {
private WorkspaceSku sku;
/*
- * The workspace data retention in days, between 30 and 730.
+ * The workspace data retention in days. Allowed values are per pricing
+ * plan. See pricing tiers documentation for details.
*/
@JsonProperty(value = "properties.retentionInDays")
private Integer retentionInDays;
@@ -61,6 +62,18 @@ public class WorkspaceInner extends Resource {
@JsonProperty(value = "properties.workspaceCapping")
private WorkspaceCapping workspaceCapping;
+ /*
+ * Workspace creation date.
+ */
+ @JsonProperty(value = "properties.createdDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdDate;
+
+ /*
+ * Workspace modification date.
+ */
+ @JsonProperty(value = "properties.modifiedDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String modifiedDate;
+
/*
* The network access type for accessing Log Analytics ingestion.
*/
@@ -73,12 +86,25 @@ public class WorkspaceInner extends Resource {
@JsonProperty(value = "properties.publicNetworkAccessForQuery")
private PublicNetworkAccessType publicNetworkAccessForQuery;
+ /*
+ * Indicates whether customer managed storage is mandatory for query
+ * management.
+ */
+ @JsonProperty(value = "properties.forceCmkForQuery")
+ private Boolean forceCmkForQuery;
+
/*
* List of linked private link scope resources.
*/
@JsonProperty(value = "properties.privateLinkScopedResources", access = JsonProperty.Access.WRITE_ONLY)
private List privateLinkScopedResources;
+ /*
+ * Workspace features.
+ */
+ @JsonProperty(value = "properties.features")
+ private Map features;
+
/**
* Get the etag property: The ETag of the workspace.
*
@@ -149,7 +175,8 @@ public WorkspaceInner withSku(WorkspaceSku sku) {
}
/**
- * Get the retentionInDays property: The workspace data retention in days, between 30 and 730.
+ * Get the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See
+ * pricing tiers documentation for details.
*
* @return the retentionInDays value.
*/
@@ -158,7 +185,8 @@ public Integer retentionInDays() {
}
/**
- * Set the retentionInDays property: The workspace data retention in days, between 30 and 730.
+ * Set the retentionInDays property: The workspace data retention in days. Allowed values are per pricing plan. See
+ * pricing tiers documentation for details.
*
* @param retentionInDays the retentionInDays value to set.
* @return the WorkspaceInner object itself.
@@ -188,6 +216,24 @@ public WorkspaceInner withWorkspaceCapping(WorkspaceCapping workspaceCapping) {
return this;
}
+ /**
+ * Get the createdDate property: Workspace creation date.
+ *
+ * @return the createdDate value.
+ */
+ public String createdDate() {
+ return this.createdDate;
+ }
+
+ /**
+ * Get the modifiedDate property: Workspace modification date.
+ *
+ * @return the modifiedDate value.
+ */
+ public String modifiedDate() {
+ return this.modifiedDate;
+ }
+
/**
* Get the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.
*
@@ -228,6 +274,26 @@ public WorkspaceInner withPublicNetworkAccessForQuery(PublicNetworkAccessType pu
return this;
}
+ /**
+ * Get the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.
+ *
+ * @return the forceCmkForQuery value.
+ */
+ public Boolean forceCmkForQuery() {
+ return this.forceCmkForQuery;
+ }
+
+ /**
+ * Set the forceCmkForQuery property: Indicates whether customer managed storage is mandatory for query management.
+ *
+ * @param forceCmkForQuery the forceCmkForQuery value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withForceCmkForQuery(Boolean forceCmkForQuery) {
+ this.forceCmkForQuery = forceCmkForQuery;
+ return this;
+ }
+
/**
* Get the privateLinkScopedResources property: List of linked private link scope resources.
*
@@ -237,6 +303,26 @@ public List privateLinkScopedResources() {
return this.privateLinkScopedResources;
}
+ /**
+ * Get the features property: Workspace features.
+ *
+ * @return the features value.
+ */
+ public Map features() {
+ return this.features;
+ }
+
+ /**
+ * Set the features property: Workspace features.
+ *
+ * @param features the features value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withFeatures(Map features) {
+ this.features = features;
+ return this;
+ }
+
/** {@inheritDoc} */
@Override
public WorkspaceInner withLocation(String location) {
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 6351619ef420..bc13a70f3d26 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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 3cdde5a1e850..41c2c2511fa1 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
@@ -8,6 +8,9 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.loganalytics.LogAnalyticsManager;
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;
@@ -15,6 +18,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 {
@@ -55,10 +59,6 @@ public ClusterSku sku() {
return this.innerModel().sku();
}
- public String nextLink() {
- return this.innerModel().nextLink();
- }
-
public String clusterId() {
return this.innerModel().clusterId();
}
@@ -67,10 +67,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());
}
@@ -195,8 +228,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) {
@@ -209,8 +247,18 @@ 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) {
+ this.innerModel().withBillingType(billingType);
return this;
}
@@ -224,6 +272,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 8bed9d94b26d..79a0bf00d1fd 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/ClustersImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
index 9bea08f4bf99..6fede98c8d26 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
@@ -30,22 +30,22 @@ public ClustersImpl(ClustersClient innerClient, LogAnalyticsManager serviceManag
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return inner.mapPage(inner1 -> new ClusterImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return inner.mapPage(inner1 -> new ClusterImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
}
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return inner.mapPage(inner1 -> new ClusterImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return inner.mapPage(inner1 -> new ClusterImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager()));
}
public void deleteByResourceGroup(String resourceGroupName, String clusterName) {
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 e78a66c7e875..5a79f084191b 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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/DataExportsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
index 4efe7bdc4ff6..ad5037b8fa58 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
@@ -30,13 +30,13 @@ public DataExportsImpl(DataExportsClient innerClient, LogAnalyticsManager servic
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new DataExportImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new DataExportImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager()));
}
public DataExport get(String resourceGroupName, String workspaceName, String dataExportName) {
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 6a285ef1c4f8..6ac34a85d6eb 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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/DataSourcesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
index 56de2cdb12ec..4c0b942c933d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
@@ -64,14 +64,14 @@ public Response getWithResponse(
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, String filter) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, filter);
- return inner.mapPage(inner1 -> new DataSourceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new DataSourceImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName, String filter, String skiptoken, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, filter, skiptoken, context);
- return inner.mapPage(inner1 -> new DataSourceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new DataSourceImpl(inner1, this.manager()));
}
public DataSource getById(String id) {
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 ef179d8630c1..4ea080826f77 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/DeletedWorkspacesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java
index f0299701d009..c1c36a3dbc47 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java
@@ -28,22 +28,22 @@ public DeletedWorkspacesImpl(DeletedWorkspacesClient innerClient, LogAnalyticsMa
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return inner.mapPage(inner1 -> new WorkspaceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return inner.mapPage(inner1 -> new WorkspaceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return inner.mapPage(inner1 -> new WorkspaceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return inner.mapPage(inner1 -> new WorkspaceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager()));
}
private DeletedWorkspacesClient serviceClient() {
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 4c7018a55e71..a6d49fa05a38 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
}
@@ -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 56919c745037..9ade7f6c5eb2 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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 edbb020a3ace..717369a23fcf 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/LinkedServicesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
index cbed250a4951..dda7831566d8 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
@@ -75,14 +75,14 @@ public Response getWithResponse(
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new LinkedServiceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new LinkedServiceImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new LinkedServiceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new LinkedServiceImpl(inner1, this.manager()));
}
public LinkedService getById(String id) {
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 bdc8ebbc0b77..a5e9e7ea0c09 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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/LinkedStorageAccountsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
index d21ac9a8e6ac..4e00d65bec46 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
@@ -68,14 +68,14 @@ public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new LinkedStorageAccountsResourceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new LinkedStorageAccountsResourceImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new LinkedStorageAccountsResourceImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new LinkedStorageAccountsResourceImpl(inner1, this.manager()));
}
public LinkedStorageAccountsResource getById(String id) {
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 af667506ff33..545498c99807 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/ManagementGroupsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java
index 4fabe3f24812..7961b2f5da0f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java
@@ -28,13 +28,13 @@ public ManagementGroupsImpl(ManagementGroupsClient innerClient, LogAnalyticsMana
public PagedIterable list(String resourceGroupName, String workspaceName) {
PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new ManagementGroupImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ManagementGroupImpl(inner1, this.manager()));
}
public PagedIterable list(String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().list(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new ManagementGroupImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new ManagementGroupImpl(inner1, this.manager()));
}
private ManagementGroupsClient serviceClient() {
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 da9dfd6fdfcd..146ca21375e7 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 14499fa6cd88..139753e4c10a 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,54 +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;
-
- /**
- * Gets the StorageInsightConfigsClient object to access its operations.
- *
- * @return the StorageInsightConfigsClient object.
- */
- public StorageInsightConfigsClient getStorageInsightConfigs() {
- return this.storageInsightConfigs;
- }
-
/** The SavedSearchesClient object to access its operations. */
private final SavedSearchesClient savedSearches;
@@ -357,6 +285,42 @@ public WorkspacePurgesClient getWorkspacePurges() {
return this.workspacePurges;
}
+ /** The StorageInsightConfigsClient object to access its operations. */
+ private final StorageInsightConfigsClient storageInsightConfigs;
+
+ /**
+ * Gets the StorageInsightConfigsClient object to access its operations.
+ *
+ * @return the StorageInsightConfigsClient object.
+ */
+ public StorageInsightConfigsClient getStorageInsightConfigs() {
+ return this.storageInsightConfigs;
+ }
+
+ /** 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 TablesClient object to access its operations. */
private final TablesClient tables;
@@ -369,6 +333,30 @@ public TablesClient getTables() {
return this.tables;
}
+ /** 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,27 +379,26 @@ public TablesClient getTables() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-08-01";
this.dataExports = new DataExportsClientImpl(this);
this.dataSources = new DataSourcesClientImpl(this);
this.intelligencePacks = new IntelligencePacksClientImpl(this);
this.linkedServices = new LinkedServicesClientImpl(this);
this.linkedStorageAccounts = new LinkedStorageAccountsClientImpl(this);
this.managementGroups = new ManagementGroupsClientImpl(this);
- this.operations = new OperationsClientImpl(this);
this.operationStatuses = new OperationStatusesClientImpl(this);
this.sharedKeysOperations = new SharedKeysOperationsClientImpl(this);
this.usages = new UsagesClientImpl(this);
- this.workspaces = new WorkspacesClientImpl(this);
- this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this);
- this.clusters = new ClustersClientImpl(this);
- this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this);
this.savedSearches = new SavedSearchesClientImpl(this);
this.availableServiceTiers = new AvailableServiceTiersClientImpl(this);
this.gateways = new GatewaysClientImpl(this);
this.schemas = new SchemasClientImpl(this);
this.workspacePurges = new WorkspacePurgesClientImpl(this);
+ this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this);
+ this.clusters = new ClustersClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
this.tables = new TablesClientImpl(this);
+ this.workspaces = new WorkspacesClientImpl(this);
+ this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this);
}
/**
@@ -496,7 +483,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
- } catch (IOException ioe) {
+ } catch (IOException | RuntimeException ioe) {
logger.logThrowableAsWarning(ioe);
}
}
@@ -525,7 +512,7 @@ private static final class HttpResponseImpl extends HttpResponse {
super(null);
this.statusCode = statusCode;
this.httpHeaders = httpHeaders;
- this.responseBody = responseBody.getBytes(StandardCharsets.UTF_8);
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
}
public int getStatusCode() {
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 ba1f658144a9..21ad30229491 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/OperationsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java
index c00a152761bf..a4713e538631 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java
@@ -28,12 +28,12 @@ public OperationsImpl(OperationsClient innerClient, LogAnalyticsManager serviceM
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return inner.mapPage(inner1 -> new OperationImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return inner.mapPage(inner1 -> new OperationImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
}
private OperationsClient serviceClient() {
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 eb35975d09b3..a049133788fe 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
}
@@ -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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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 a5e6cc6ce7ca..f5fa4ab45527 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 736da36f9e6a..01fef27cf8c9 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))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -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 f0826c6fe1ce..f0a82b7f1648 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-10-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-10-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-10-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-10-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-10-01";
return FluxUtil
.withContext(
context ->
@@ -541,7 +546,7 @@ private Mono> deleteWithResponseAsync(
resourceGroupName,
workspaceName,
storageInsightName,
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
context))
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
@@ -585,6 +590,7 @@ private Mono> deleteWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2020-10-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-10-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-10-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/StorageInsightConfigsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java
index fd7d4991897f..ae61fb857b5e 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java
@@ -64,14 +64,14 @@ public Response deleteWithResponse(
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new StorageInsightImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new StorageInsightImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new StorageInsightImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new StorageInsightImpl(inner1, this.manager()));
}
public StorageInsight getById(String id) {
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java
index 5e53ca19cfd5..fabc4c048cfc 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java
@@ -34,6 +34,18 @@ public Integer retentionInDays() {
return this.innerModel().retentionInDays();
}
+ public Boolean isTroubleshootingAllowed() {
+ return this.innerModel().isTroubleshootingAllowed();
+ }
+
+ public Boolean isTroubleshootEnabled() {
+ return this.innerModel().isTroubleshootEnabled();
+ }
+
+ public String lastTroubleshootDate() {
+ return this.innerModel().lastTroubleshootDate();
+ }
+
public TableInner innerModel() {
return this.innerObject;
}
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 d5288c8f4ad7..aab0eefe7a71 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-10-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-10-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-10-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-10-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-10-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-10-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/TablesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java
index 23b880a3364e..e6480fa8a0cb 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java
@@ -30,13 +30,13 @@ public TablesImpl(TablesClient innerClient, LogAnalyticsManager serviceManager)
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- return inner.mapPage(inner1 -> new TableImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
- return inner.mapPage(inner1 -> new TableImpl(inner1, this.manager()));
+ return Utils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager()));
}
public Table update(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) {
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 dce15f137264..aa3e071cb617 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/UsagesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java
index 427bdeb9fb00..5af596b1a3f1 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java
@@ -28,12 +28,12 @@ public UsagesImpl(UsagesClient innerClient, LogAnalyticsManager serviceManager)
public PagedIterable