scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -192,6 +219,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -203,6 +241,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -210,9 +261,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -234,7 +287,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.loganalytics")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -248,19 +301,38 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -272,6 +344,22 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
}
}
+ /** @return Resource collection API of QueryPacks. */
+ public QueryPacks queryPacks() {
+ if (this.queryPacks == null) {
+ this.queryPacks = new QueryPacksImpl(clientObject.getQueryPacks(), this);
+ }
+ return queryPacks;
+ }
+
+ /** @return Resource collection API of Queries. */
+ public Queries queries() {
+ if (this.queries == null) {
+ this.queries = new QueriesImpl(clientObject.getQueries(), this);
+ }
+ return queries;
+ }
+
/** @return Resource collection API of DataExports. */
public DataExports dataExports() {
if (this.dataExports == null) {
@@ -320,14 +408,6 @@ public ManagementGroups managementGroups() {
return managementGroups;
}
- /** @return Resource collection API of Operations. */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/** @return Resource collection API of OperationStatuses. */
public OperationStatuses operationStatuses() {
if (this.operationStatuses == null) {
@@ -352,30 +432,6 @@ public Usages usages() {
return usages;
}
- /** @return Resource collection API of Workspaces. */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
- /** @return Resource collection API of DeletedWorkspaces. */
- public DeletedWorkspaces deletedWorkspaces() {
- if (this.deletedWorkspaces == null) {
- this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
- }
- return deletedWorkspaces;
- }
-
- /** @return Resource collection API of Clusters. */
- public Clusters clusters() {
- if (this.clusters == null) {
- this.clusters = new ClustersImpl(clientObject.getClusters(), this);
- }
- return clusters;
- }
-
/** @return Resource collection API of StorageInsightConfigs. */
public StorageInsightConfigs storageInsightConfigs() {
if (this.storageInsightConfigs == null) {
@@ -424,6 +480,38 @@ public WorkspacePurges workspacePurges() {
return workspacePurges;
}
+ /** @return Resource collection API of Clusters. */
+ public Clusters clusters() {
+ if (this.clusters == null) {
+ this.clusters = new ClustersImpl(clientObject.getClusters(), this);
+ }
+ return clusters;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Workspaces. */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /** @return Resource collection API of DeletedWorkspaces. */
+ public DeletedWorkspaces deletedWorkspaces() {
+ if (this.deletedWorkspaces == null) {
+ this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
+ }
+ return deletedWorkspaces;
+ }
+
/** @return Resource collection API of Tables. */
public Tables tables() {
if (this.tables == null) {
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
index 87da77ea3418..c6120a4bb8f9 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
@@ -35,7 +35,7 @@ public interface AvailableServiceTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response> listByWorkspaceWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
index ea21003519bd..c7df2eb352fa 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
@@ -23,7 +23,7 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group.
+ * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -36,7 +36,7 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group.
+ * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -46,7 +46,7 @@ public interface ClustersClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Log Analytics clusters in a subscription.
+ * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -58,7 +58,7 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Log Analytics clusters in a subscription.
+ * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -72,9 +72,9 @@ public interface ClustersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Log Analytics cluster resource container.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters);
@@ -88,9 +88,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Log Analytics cluster resource container.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
@@ -131,9 +131,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
/**
@@ -145,9 +145,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
/**
@@ -197,12 +197,43 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics cluster instance.
+ * @return a Log Analytics cluster instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context);
+ /**
+ * Updates a Log Analytics cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterPatch parameters);
+
+ /**
+ * Updates a Log Analytics cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ClusterInner> beginUpdate(
+ String resourceGroupName, String clusterName, ClusterPatch parameters, Context context);
+
/**
* Updates a Log Analytics cluster.
*
@@ -230,6 +261,5 @@ Response getByResourceGroupWithResponse(
* @return the top level Log Analytics cluster resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String clusterName, ClusterPatch parameters, Context context);
+ ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
index 909ceda84a3e..94ec80673103 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
@@ -21,7 +21,7 @@ public interface DataExportsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list data exports.
+ * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -35,7 +35,7 @@ public interface DataExportsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list data exports.
+ * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
@@ -67,7 +67,7 @@ DataExportInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level data export resource container.
+ * @return the top level data export resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -101,7 +101,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a data export instance.
+ * @return a data export instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -130,7 +130,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
index 7136276001b8..4971182048e5 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
@@ -40,7 +40,7 @@ DataSourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return datasources under OMS Workspace.
+ * @return datasources under OMS Workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -73,7 +73,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -103,7 +103,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a datasource instance.
+ * @return a datasource instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -118,7 +118,8 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the first page of data source instances in a workspace with the link to the next page.
+ * @return the first page of data source instances in a workspace with the link to the next page as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, String filter);
@@ -134,7 +135,8 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the first page of data source instances in a workspace with the link to the next page.
+ * @return the first page of data source instances in a workspace with the link to the next page as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
index bfe3d7e6f65e..0c0bfc73924b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
@@ -17,7 +17,8 @@ public interface DeletedWorkspacesClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return recently deleted workspaces in a subscription, available for recovery.
+ * @return recently deleted workspaces in a subscription, available for recovery as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +30,8 @@ public interface DeletedWorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return recently deleted workspaces in a subscription, available for recovery.
+ * @return recently deleted workspaces in a subscription, available for recovery as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -41,7 +43,8 @@ public interface DeletedWorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return recently deleted workspaces in a resource group, available for recovery.
+ * @return recently deleted workspaces in a resource group, available for recovery as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -54,7 +57,8 @@ public interface DeletedWorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return recently deleted workspaces in a resource group, available for recovery.
+ * @return recently deleted workspaces in a resource group, available for recovery as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
index 67166742fd62..0f1f4f4c1796 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
@@ -34,7 +34,7 @@ public interface GatewaysClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
index f9f450e40ec3..68913d829b3c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
@@ -36,7 +36,7 @@ public interface IntelligencePacksClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response disableWithResponse(
@@ -65,7 +65,7 @@ Response disableWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response enableWithResponse(
@@ -93,7 +93,7 @@ Response enableWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of IntelligencePack.
+ * @return array of IntelligencePack along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response> listWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
index 52d5ed546759..b4d809df0fda 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
@@ -25,9 +25,9 @@ public interface LinkedServicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
+ * @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LinkedServiceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String linkedServiceName, LinkedServiceInner parameters);
@@ -42,9 +42,9 @@ SyncPoller, LinkedServiceInner> beginCreateOrUpda
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
+ * @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LinkedServiceInner> beginCreateOrUpdate(
String resourceGroupName,
String workspaceName,
@@ -98,9 +98,9 @@ LinkedServiceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
+ * @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LinkedServiceInner> beginDelete(
String resourceGroupName, String workspaceName, String linkedServiceName);
@@ -114,9 +114,9 @@ SyncPoller, LinkedServiceInner> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
+ * @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LinkedServiceInner> beginDelete(
String resourceGroupName, String workspaceName, String linkedServiceName, Context context);
@@ -174,7 +174,7 @@ LinkedServiceInner delete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a linked service instance.
+ * @return a linked service instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -188,7 +188,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the linked services instances in a workspace.
+ * @return the linked services instances in a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -202,7 +202,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the linked services instances in a workspace.
+ * @return the linked services instances in a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
index db9567cfed52..a4a108f8a888 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
@@ -46,7 +46,7 @@ LinkedStorageAccountsResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked storage accounts top level resource container.
+ * @return linked storage accounts top level resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -79,7 +79,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -110,7 +110,8 @@ LinkedStorageAccountsResourceInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all linked storage account of a specific data source type associated with the specified workspace.
+ * @return all linked storage account of a specific data source type associated with the specified workspace along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -126,7 +127,7 @@ Response getWithResponse(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all linked storage accounts associated with the specified workspace, storage accounts will be sorted by
- * their data source type.
+ * their data source type as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -142,7 +143,7 @@ Response getWithResponse(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all linked storage accounts associated with the specified workspace, storage accounts will be sorted by
- * their data source type.
+ * their data source type as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
index 827ffa214064..70871d7802d8 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
@@ -20,7 +20,7 @@ public interface ManagementGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of management groups connected to a workspace.
+ * @return a list of management groups connected to a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -34,7 +34,7 @@ public interface ManagementGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of management groups connected to a workspace.
+ * @return a list of management groups connected to a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
index d28d2e657878..63d4779ef512 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
@@ -34,7 +34,7 @@ public interface OperationStatusesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the status of a long running azure asynchronous operation.
+ * @return the status of a long running azure asynchronous operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String location, String asyncOperationId, Context context);
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..2f619df7c40d 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.
*
@@ -44,6 +37,20 @@ public interface OperationalInsightsManagementClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the QueryPacksClient object to access its operations.
+ *
+ * @return the QueryPacksClient object.
+ */
+ QueryPacksClient getQueryPacks();
+
+ /**
+ * Gets the QueriesClient object to access its operations.
+ *
+ * @return the QueriesClient object.
+ */
+ QueriesClient getQueries();
+
/**
* Gets the DataExportsClient object to access its operations.
*
@@ -86,13 +93,6 @@ public interface OperationalInsightsManagementClient {
*/
ManagementGroupsClient getManagementGroups();
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
/**
* Gets the OperationStatusesClient object to access its operations.
*
@@ -114,27 +114,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.
*
@@ -177,6 +156,34 @@ public interface OperationalInsightsManagementClient {
*/
WorkspacePurgesClient getWorkspacePurges();
+ /**
+ * Gets the ClustersClient object to access its operations.
+ *
+ * @return the ClustersClient object.
+ */
+ ClustersClient getClusters();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the DeletedWorkspacesClient object to access its operations.
+ *
+ * @return the DeletedWorkspacesClient object.
+ */
+ DeletedWorkspacesClient getDeletedWorkspaces();
+
/**
* Gets the TablesClient object to access its operations.
*
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
index d96ce122c9e6..64f88e37380c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list solution operations.
+ * @return result of the request to list solution operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list solution operations.
+ * @return result of the request to list solution operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java
new file mode 100644
index 000000000000..b3a8a7f5966a
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java
@@ -0,0 +1,236 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner;
+import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties;
+
+/** An instance of this class provides access to all the operations defined in QueriesClient. */
+public interface QueriesClient {
+ /**
+ * Gets a list of Queries defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String queryPackName);
+
+ /**
+ * Gets a list of Queries defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param top Maximum items returned in page.
+ * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
+ * return the query information.
+ * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String queryPackName,
+ Long top,
+ Boolean includeBody,
+ String skipToken,
+ Context context);
+
+ /**
+ * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable search(
+ String resourceGroupName,
+ String queryPackName,
+ LogAnalyticsQueryPackQuerySearchProperties querySearchProperties);
+
+ /**
+ * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
+ * @param top Maximum items returned in page.
+ * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
+ * return the query information.
+ * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable search(
+ String resourceGroupName,
+ String queryPackName,
+ LogAnalyticsQueryPackQuerySearchProperties querySearchProperties,
+ Long top,
+ Boolean includeBody,
+ String skipToken,
+ Context context);
+
+ /**
+ * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a specific Log Analytics Query defined within a Log Analytics QueryPack.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackQueryInner get(String resourceGroupName, String queryPackName, String id);
+
+ /**
+ * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String queryPackName, String id, Context context);
+
+ /**
+ * Adds or Updates a specific Query within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics
+ * QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Log Analytics QueryPack-Query definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackQueryInner put(
+ String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload);
+
+ /**
+ * Adds or Updates a specific Query within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics
+ * QueryPack.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Log Analytics QueryPack-Query definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response putWithResponse(
+ String resourceGroupName,
+ String queryPackName,
+ String id,
+ LogAnalyticsQueryPackQueryInner queryPayload,
+ Context context);
+
+ /**
+ * Adds or Updates a specific Query within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics
+ * QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Log Analytics QueryPack-Query definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackQueryInner update(
+ String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload);
+
+ /**
+ * Adds or Updates a specific Query within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics
+ * QueryPack.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Log Analytics QueryPack-Query definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String queryPackName,
+ String id,
+ LogAnalyticsQueryPackQueryInner queryPayload,
+ Context context);
+
+ /**
+ * Deletes a specific Query defined within an Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String queryPackName, String id);
+
+ /**
+ * Deletes a specific Query defined within an Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param id The id of a specific query defined in the Log Analytics QueryPack.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, Context context);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java
new file mode 100644
index 000000000000..69613037cf1d
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java
@@ -0,0 +1,189 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner;
+import com.azure.resourcemanager.loganalytics.models.TagsResource;
+
+/** An instance of this class provides access to all the operations defined in QueryPacksClient. */
+public interface QueryPacksClient {
+ /**
+ * Gets a list of all Log Analytics QueryPacks within a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of all Log Analytics QueryPacks within a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets a list of Log Analytics QueryPacks within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Log Analytics QueryPacks within a resource group as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets a list of Log Analytics QueryPacks within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Log Analytics QueryPacks within a resource group as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Deletes a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String queryPackName);
+
+ /**
+ * Deletes a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String queryPackName, Context context);
+
+ /**
+ * Returns a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackInner getByResourceGroup(String resourceGroupName, String queryPackName);
+
+ /**
+ * Returns a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String queryPackName, Context context);
+
+ /**
+ * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
+ * nor AppId in the Put operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
+ * QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackInner createOrUpdate(
+ String resourceGroupName, String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload);
+
+ /**
+ * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
+ * nor AppId in the Put operation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
+ * QueryPack.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String queryPackName,
+ LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload,
+ Context context);
+
+ /**
+ * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param queryPackTags Updated tag information to set into the QueryPack instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, TagsResource queryPackTags);
+
+ /**
+ * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param queryPackTags Updated tag information to set into the QueryPack instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Analytics QueryPack definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateTagsWithResponse(
+ String resourceGroupName, String queryPackName, TagsResource queryPackTags, Context context);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
index b0d762b2d209..f57c5f69c0c4 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
@@ -36,7 +36,7 @@ public interface SavedSearchesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -69,7 +69,7 @@ SavedSearchInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return value object for saved search results.
+ * @return value object for saved search results along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -103,7 +103,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified saved search for a given workspace.
+ * @return the specified saved search for a given workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -131,7 +131,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the saved searches for a given Log Analytics Workspace.
+ * @return the saved searches for a given Log Analytics Workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listByWorkspaceWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
index d7470e311ab7..e08bdd698234 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
@@ -34,7 +34,7 @@ public interface SchemasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the schema for a given workspace.
+ * @return the schema for a given workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
index 7cf817523364..01fb6729182c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
@@ -34,7 +34,7 @@ public interface SharedKeysOperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the shared keys for a workspace.
+ * @return the shared keys for a workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getSharedKeysWithResponse(
@@ -64,7 +64,7 @@ Response getSharedKeysWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the shared keys for a workspace.
+ * @return the shared keys for a workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response regenerateWithResponse(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
index acce922c504d..8d5e32ecec19 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
@@ -40,7 +40,7 @@ StorageInsightInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level storage insight resource container.
+ * @return the top level storage insight resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -74,7 +74,7 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a storage insight instance.
+ * @return a storage insight instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -103,7 +103,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -117,7 +117,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list storage insights operation response.
+ * @return the list storage insights operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -131,7 +131,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list storage insights operation response.
+ * @return the list storage insights operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
index 0f784c4e5ca9..bb27c20458ed 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
@@ -8,7 +8,9 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.loganalytics.fluent.models.TableInner;
/** An instance of this class provides access to all the operations defined in TablesClient. */
@@ -21,7 +23,8 @@ public interface TablesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the tables for the specified Log Analytics workspace.
+ * @return all the tables for the specified Log Analytics workspace as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -35,13 +38,112 @@ public interface TablesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the tables for the specified Log Analytics workspace.
+ * @return all the tables for the specified Log Analytics workspace as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
/**
- * Updates a Log Analytics workspace table properties.
+ * Update or Create a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TableInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String tableName, TableInner parameters);
+
+ /**
+ * Update or Create a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TableInner> beginCreateOrUpdate(
+ String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context);
+
+ /**
+ * Update or Create a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableInner createOrUpdate(String resourceGroupName, String workspaceName, String tableName, TableInner parameters);
+
+ /**
+ * Update or Create a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context);
+
+ /**
+ * Update a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TableInner> beginUpdate(
+ String resourceGroupName, String workspaceName, String tableName, TableInner parameters);
+
+ /**
+ * Update a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param parameters The parameters required to update table properties.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of workspace data table definition.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TableInner> beginUpdate(
+ String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context);
+
+ /**
+ * Update a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -56,7 +158,7 @@ public interface TablesClient {
TableInner update(String resourceGroupName, String workspaceName, String tableName, TableInner parameters);
/**
- * Updates a Log Analytics workspace table properties.
+ * Update a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -69,7 +171,7 @@ public interface TablesClient {
* @return workspace data table definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
+ TableInner update(
String resourceGroupName, String workspaceName, String tableName, TableInner parameters, Context context);
/**
@@ -96,9 +198,97 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics workspace table.
+ * @return a Log Analytics workspace table along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String workspaceName, String tableName, Context context);
+
+ /**
+ * Delete a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName);
+
+ /**
+ * Delete a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String workspaceName, String tableName, Context context);
+
+ /**
+ * Delete a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String tableName);
+
+ /**
+ * Delete a Log Analytics workspace table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String tableName, Context context);
+
+ /**
+ * Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of
+ * Data Collection Rule-based Custom Logs.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void migrate(String resourceGroupName, String workspaceName, String tableName);
+
+ /**
+ * Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of
+ * Data Collection Rule-based Custom Logs.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response migrateWithResponse(
+ String resourceGroupName, String workspaceName, String tableName, Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
index 17a73a511dc3..2fd82f76a963 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
@@ -20,7 +20,7 @@ public interface UsagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of usage metrics for a workspace.
+ * @return a list of usage metrics for a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName);
@@ -34,7 +34,7 @@ public interface UsagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of usage metrics for a workspace.
+ * @return a list of usage metrics for a workspace as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
index 38e33b4d2648..0da7cf343ac3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
@@ -79,7 +79,7 @@ WorkspacePurgesPurgeResponse purgeWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return status of an ongoing purge operation.
+ * @return status of an ongoing purge operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getPurgeStatusWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
index e73903b64ee2..5fcad1925d47 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
@@ -21,7 +21,7 @@ public interface WorkspacesClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the workspaces in a subscription.
+ * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -33,7 +33,7 @@ public interface WorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the workspaces in a subscription.
+ * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -45,7 +45,7 @@ public interface WorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaces in a resource group.
+ * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -58,7 +58,7 @@ public interface WorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaces in a resource group.
+ * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -72,9 +72,9 @@ public interface WorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Workspace resource container.
+ * @return the {@link SyncPoller} for polling of the top level Workspace resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, WorkspaceInner parameters);
@@ -88,9 +88,9 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Workspace resource container.
+ * @return the {@link SyncPoller} for polling of the top level Workspace resource container.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, WorkspaceInner parameters, Context context);
@@ -136,9 +136,9 @@ WorkspaceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Boolean force);
/**
@@ -154,9 +154,9 @@ WorkspaceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String workspaceName, Boolean force, Context context);
@@ -229,7 +229,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a workspace instance.
+ * @return a workspace instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -259,7 +259,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Workspace resource container.
+ * @return the top level Workspace resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
index dfa21413205f..4132fda7f657 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.SkuNameEnum;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Service Tier details. */
@Immutable
public final class AvailableServiceTierInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableServiceTierInner.class);
-
/*
* The name of the Service Tier.
*/
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..ae700477cb0c 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
@@ -5,23 +5,21 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-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. */
-@JsonFlatten
@Fluent
-public class ClusterInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterInner.class);
-
+public final class ClusterInner extends Resource {
/*
* The identity of the resource.
*/
@@ -35,28 +33,10 @@ public class ClusterInner extends Resource {
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.
- */
- @JsonProperty(value = "properties.clusterId", access = JsonProperty.Access.WRITE_ONLY)
- private String clusterId;
-
- /*
- * The provisioning state of the cluster.
+ * Log Analytics cluster properties.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ClusterEntityStatus provisioningState;
-
- /*
- * The associated key properties.
- */
- @JsonProperty(value = "properties.keyVaultProperties")
- private KeyVaultProperties keyVaultProperties;
+ @JsonProperty(value = "properties")
+ private ClusterProperties innerProperties;
/**
* Get the identity property: The identity of the resource.
@@ -99,22 +79,25 @@ public ClusterInner withSku(ClusterSku sku) {
}
/**
- * Get the nextLink property: The link used to get the next page of recommendations.
+ * Get the innerProperties property: Log Analytics cluster properties.
*
- * @return the nextLink value.
+ * @return the innerProperties value.
*/
- public String nextLink() {
- return this.nextLink;
+ private ClusterProperties innerProperties() {
+ return this.innerProperties;
}
- /**
- * Set the nextLink property: The link used to get the next page of recommendations.
- *
- * @param nextLink the nextLink value to set.
- * @return the ClusterInner object itself.
- */
- public ClusterInner withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ /** {@inheritDoc} */
+ @Override
+ public ClusterInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ClusterInner withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -124,7 +107,7 @@ public ClusterInner withNextLink(String nextLink) {
* @return the clusterId value.
*/
public String clusterId() {
- return this.clusterId;
+ return this.innerProperties() == null ? null : this.innerProperties().clusterId();
}
/**
@@ -133,7 +116,82 @@ public String clusterId() {
* @return the provisioningState value.
*/
public ClusterEntityStatus provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property
+ * can not be modified after cluster creation. Default value is 'true'.
+ *
+ * @return the isDoubleEncryptionEnabled value.
+ */
+ public Boolean isDoubleEncryptionEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().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 withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withIsDoubleEncryptionEnabled(isDoubleEncryptionEnabled);
+ return this;
+ }
+
+ /**
+ * 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 isAvailabilityZonesEnabled value.
+ */
+ public Boolean isAvailabilityZonesEnabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().isAvailabilityZonesEnabled();
+ }
+
+ /**
+ * 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.
+ *
+ * @param isAvailabilityZonesEnabled the isAvailabilityZonesEnabled value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withIsAvailabilityZonesEnabled(isAvailabilityZonesEnabled);
+ return this;
+ }
+
+ /**
+ * Get the billingType property: The cluster's billing type.
+ *
+ * @return the billingType value.
+ */
+ public BillingType billingType() {
+ return this.innerProperties() == null ? null : this.innerProperties().billingType();
+ }
+
+ /**
+ * Set the billingType property: The cluster's billing type.
+ *
+ * @param billingType the billingType value to set.
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withBillingType(BillingType billingType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withBillingType(billingType);
+ return this;
}
/**
@@ -142,7 +200,7 @@ public ClusterEntityStatus provisioningState() {
* @return the keyVaultProperties value.
*/
public KeyVaultProperties keyVaultProperties() {
- return this.keyVaultProperties;
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultProperties();
}
/**
@@ -152,21 +210,74 @@ public KeyVaultProperties keyVaultProperties() {
* @return the ClusterInner object itself.
*/
public ClusterInner withKeyVaultProperties(KeyVaultProperties keyVaultProperties) {
- this.keyVaultProperties = keyVaultProperties;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withKeyVaultProperties(keyVaultProperties);
return this;
}
- /** {@inheritDoc} */
- @Override
- public ClusterInner withLocation(String location) {
- super.withLocation(location);
+ /**
+ * Get the lastModifiedDate property: The last time the cluster was updated.
+ *
+ * @return the lastModifiedDate value.
+ */
+ public String lastModifiedDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedDate();
+ }
+
+ /**
+ * Get the createdDate property: The cluster creation time.
+ *
+ * @return the createdDate value.
+ */
+ public String createdDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdDate();
+ }
+
+ /**
+ * Get the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster.
+ *
+ * @return the associatedWorkspaces value.
+ */
+ public List associatedWorkspaces() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withAssociatedWorkspaces(associatedWorkspaces);
return this;
}
- /** {@inheritDoc} */
- @Override
- public ClusterInner withTags(Map tags) {
- super.withTags(tags);
+ /**
+ * Get the capacityReservationProperties property: Additional properties for capacity reservation.
+ *
+ * @return the capacityReservationProperties value.
+ */
+ public CapacityReservationProperties capacityReservationProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().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) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withCapacityReservationProperties(capacityReservationProperties);
return this;
}
@@ -182,8 +293,8 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
- if (keyVaultProperties() != null) {
- keyVaultProperties().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java
new file mode 100644
index 000000000000..f433e3425339
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.BillingType;
+import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Log Analytics cluster patch properties. */
+@Fluent
+public final class ClusterPatchProperties {
+ /*
+ * The associated key properties.
+ */
+ @JsonProperty(value = "keyVaultProperties")
+ private KeyVaultProperties keyVaultProperties;
+
+ /*
+ * The cluster's billing type.
+ */
+ @JsonProperty(value = "billingType")
+ private BillingType billingType;
+
+ /**
+ * Get the keyVaultProperties property: The associated key properties.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public KeyVaultProperties keyVaultProperties() {
+ return this.keyVaultProperties;
+ }
+
+ /**
+ * Set the keyVaultProperties property: The associated key properties.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the ClusterPatchProperties object itself.
+ */
+ public ClusterPatchProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties) {
+ this.keyVaultProperties = keyVaultProperties;
+ return this;
+ }
+
+ /**
+ * Get the billingType property: The cluster's billing type.
+ *
+ * @return the billingType value.
+ */
+ public BillingType billingType() {
+ return this.billingType;
+ }
+
+ /**
+ * Set the billingType property: The cluster's billing type.
+ *
+ * @param billingType the billingType value to set.
+ * @return the ClusterPatchProperties object itself.
+ */
+ public ClusterPatchProperties withBillingType(BillingType billingType) {
+ this.billingType = billingType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keyVaultProperties() != null) {
+ keyVaultProperties().validate();
+ }
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java
new file mode 100644
index 000000000000..8a7695d33430
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java
@@ -0,0 +1,262 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.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.KeyVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Cluster properties. */
+@Fluent
+public final class ClusterProperties {
+ /*
+ * The ID associated with the cluster.
+ */
+ @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY)
+ private String clusterId;
+
+ /*
+ * The provisioning state of the cluster.
+ */
+ @JsonProperty(value = "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 = "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 = "isAvailabilityZonesEnabled")
+ private Boolean isAvailabilityZonesEnabled;
+
+ /*
+ * The cluster's billing type.
+ */
+ @JsonProperty(value = "billingType")
+ private BillingType billingType;
+
+ /*
+ * The associated key properties.
+ */
+ @JsonProperty(value = "keyVaultProperties")
+ private KeyVaultProperties keyVaultProperties;
+
+ /*
+ * The last time the cluster was updated.
+ */
+ @JsonProperty(value = "lastModifiedDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastModifiedDate;
+
+ /*
+ * The cluster creation time
+ */
+ @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdDate;
+
+ /*
+ * The list of Log Analytics workspaces associated with the cluster
+ */
+ @JsonProperty(value = "associatedWorkspaces")
+ private List associatedWorkspaces;
+
+ /*
+ * Additional properties for capacity reservation
+ */
+ @JsonProperty(value = "capacityReservationProperties")
+ private CapacityReservationProperties capacityReservationProperties;
+
+ /**
+ * 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 provisioningState value.
+ */
+ public ClusterEntityStatus provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property
+ * can not be modified after cluster creation. Default value is 'true'.
+ *
+ * @return the isDoubleEncryptionEnabled value.
+ */
+ 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 ClusterProperties object itself.
+ */
+ public ClusterProperties withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) {
+ this.isDoubleEncryptionEnabled = isDoubleEncryptionEnabled;
+ return this;
+ }
+
+ /**
+ * 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 isAvailabilityZonesEnabled value.
+ */
+ public Boolean isAvailabilityZonesEnabled() {
+ return this.isAvailabilityZonesEnabled;
+ }
+
+ /**
+ * 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.
+ *
+ * @param isAvailabilityZonesEnabled the isAvailabilityZonesEnabled value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) {
+ this.isAvailabilityZonesEnabled = isAvailabilityZonesEnabled;
+ return this;
+ }
+
+ /**
+ * Get the billingType property: The cluster's billing type.
+ *
+ * @return the billingType value.
+ */
+ public BillingType billingType() {
+ return this.billingType;
+ }
+
+ /**
+ * Set the billingType property: The cluster's billing type.
+ *
+ * @param billingType the billingType value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withBillingType(BillingType billingType) {
+ this.billingType = billingType;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultProperties property: The associated key properties.
+ *
+ * @return the keyVaultProperties value.
+ */
+ public KeyVaultProperties keyVaultProperties() {
+ return this.keyVaultProperties;
+ }
+
+ /**
+ * Set the keyVaultProperties property: The associated key properties.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties) {
+ this.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 ClusterProperties object itself.
+ */
+ public ClusterProperties 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 ClusterProperties object itself.
+ */
+ public ClusterProperties withCapacityReservationProperties(
+ CapacityReservationProperties capacityReservationProperties) {
+ this.capacityReservationProperties = capacityReservationProperties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ 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/DataExportInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
index 293aa39a13ea..ddca04c9f767 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
@@ -5,69 +5,28 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.Type;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The top level data export resource container. */
-@JsonFlatten
@Fluent
-public class DataExportInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataExportInner.class);
-
- /*
- * The data export rule ID.
- */
- @JsonProperty(value = "properties.dataExportId")
- private String dataExportId;
-
- /*
- * An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- */
- @JsonProperty(value = "properties.tableNames")
- private List tableNames;
-
- /*
- * Active when enabled.
- */
- @JsonProperty(value = "properties.enable")
- private Boolean enable;
-
+public final class DataExportInner extends ProxyResource {
/*
- * The latest data export rule modification time.
+ * data export properties.
*/
- @JsonProperty(value = "properties.createdDate")
- private String createdDate;
+ @JsonProperty(value = "properties")
+ private DataExportProperties innerProperties;
- /*
- * Date and time when the export was last modified.
- */
- @JsonProperty(value = "properties.lastModifiedDate")
- private String lastModifiedDate;
-
- /*
- * The destination resource ID. This can be copied from the Properties
- * entry of the destination resource in Azure.
- */
- @JsonProperty(value = "properties.destination.resourceId")
- private String resourceId;
-
- /*
- * The type of the destination resource
- */
- @JsonProperty(value = "properties.destination.type", access = JsonProperty.Access.WRITE_ONLY)
- private Type typePropertiesDestinationType;
-
- /*
- * Optional. Allows to define an Event Hub name. Not applicable when
- * destination is Storage Account.
+ /**
+ * Get the innerProperties property: data export properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.destination.metaData.eventHubName")
- private String eventHubName;
+ private DataExportProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the dataExportId property: The data export rule ID.
@@ -75,7 +34,7 @@ public class DataExportInner extends ProxyResource {
* @return the dataExportId value.
*/
public String dataExportId() {
- return this.dataExportId;
+ return this.innerProperties() == null ? null : this.innerProperties().dataExportId();
}
/**
@@ -85,7 +44,10 @@ public String dataExportId() {
* @return the DataExportInner object itself.
*/
public DataExportInner withDataExportId(String dataExportId) {
- this.dataExportId = dataExportId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withDataExportId(dataExportId);
return this;
}
@@ -95,7 +57,7 @@ public DataExportInner withDataExportId(String dataExportId) {
* @return the tableNames value.
*/
public List tableNames() {
- return this.tableNames;
+ return this.innerProperties() == null ? null : this.innerProperties().tableNames();
}
/**
@@ -105,7 +67,10 @@ public List tableNames() {
* @return the DataExportInner object itself.
*/
public DataExportInner withTableNames(List tableNames) {
- this.tableNames = tableNames;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withTableNames(tableNames);
return this;
}
@@ -115,7 +80,7 @@ public DataExportInner withTableNames(List tableNames) {
* @return the enable value.
*/
public Boolean enable() {
- return this.enable;
+ return this.innerProperties() == null ? null : this.innerProperties().enable();
}
/**
@@ -125,7 +90,10 @@ public Boolean enable() {
* @return the DataExportInner object itself.
*/
public DataExportInner withEnable(Boolean enable) {
- this.enable = enable;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withEnable(enable);
return this;
}
@@ -135,7 +103,7 @@ public DataExportInner withEnable(Boolean enable) {
* @return the createdDate value.
*/
public String createdDate() {
- return this.createdDate;
+ return this.innerProperties() == null ? null : this.innerProperties().createdDate();
}
/**
@@ -145,7 +113,10 @@ public String createdDate() {
* @return the DataExportInner object itself.
*/
public DataExportInner withCreatedDate(String createdDate) {
- this.createdDate = createdDate;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withCreatedDate(createdDate);
return this;
}
@@ -155,7 +126,7 @@ public DataExportInner withCreatedDate(String createdDate) {
* @return the lastModifiedDate value.
*/
public String lastModifiedDate() {
- return this.lastModifiedDate;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedDate();
}
/**
@@ -165,7 +136,10 @@ public String lastModifiedDate() {
* @return the DataExportInner object itself.
*/
public DataExportInner withLastModifiedDate(String lastModifiedDate) {
- this.lastModifiedDate = lastModifiedDate;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withLastModifiedDate(lastModifiedDate);
return this;
}
@@ -176,7 +150,7 @@ public DataExportInner withLastModifiedDate(String lastModifiedDate) {
* @return the resourceId value.
*/
public String resourceId() {
- return this.resourceId;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceId();
}
/**
@@ -187,17 +161,20 @@ public String resourceId() {
* @return the DataExportInner object itself.
*/
public DataExportInner withResourceId(String resourceId) {
- this.resourceId = resourceId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withResourceId(resourceId);
return this;
}
/**
- * Get the typePropertiesDestinationType property: The type of the destination resource.
+ * Get the type property: The type of the destination resource.
*
- * @return the typePropertiesDestinationType value.
+ * @return the type value.
*/
- public Type typePropertiesDestinationType() {
- return this.typePropertiesDestinationType;
+ public Type typePropertiesType() {
+ return this.innerProperties() == null ? null : this.innerProperties().type();
}
/**
@@ -207,7 +184,7 @@ public Type typePropertiesDestinationType() {
* @return the eventHubName value.
*/
public String eventHubName() {
- return this.eventHubName;
+ return this.innerProperties() == null ? null : this.innerProperties().eventHubName();
}
/**
@@ -218,7 +195,10 @@ public String eventHubName() {
* @return the DataExportInner object itself.
*/
public DataExportInner withEventHubName(String eventHubName) {
- this.eventHubName = eventHubName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataExportProperties();
+ }
+ this.innerProperties().withEventHubName(eventHubName);
return this;
}
@@ -228,5 +208,8 @@ public DataExportInner withEventHubName(String eventHubName) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java
new file mode 100644
index 000000000000..96fff01a2a70
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java
@@ -0,0 +1,237 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.Type;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Data Export properties. */
+@Fluent
+public final class DataExportProperties {
+ /*
+ * The data export rule ID.
+ */
+ @JsonProperty(value = "dataExportId")
+ private String dataExportId;
+
+ /*
+ * An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
+ */
+ @JsonProperty(value = "tableNames", required = true)
+ private List tableNames;
+
+ /*
+ * destination properties.
+ */
+ @JsonProperty(value = "destination")
+ private Destination innerDestination;
+
+ /*
+ * Active when enabled.
+ */
+ @JsonProperty(value = "enable")
+ private Boolean enable;
+
+ /*
+ * The latest data export rule modification time.
+ */
+ @JsonProperty(value = "createdDate")
+ private String createdDate;
+
+ /*
+ * Date and time when the export was last modified.
+ */
+ @JsonProperty(value = "lastModifiedDate")
+ private String lastModifiedDate;
+
+ /**
+ * Get the dataExportId property: The data export rule ID.
+ *
+ * @return the dataExportId value.
+ */
+ public String dataExportId() {
+ return this.dataExportId;
+ }
+
+ /**
+ * Set the dataExportId property: The data export rule ID.
+ *
+ * @param dataExportId the dataExportId value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withDataExportId(String dataExportId) {
+ this.dataExportId = dataExportId;
+ return this;
+ }
+
+ /**
+ * Get the tableNames property: An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
+ *
+ * @return the tableNames value.
+ */
+ public List tableNames() {
+ return this.tableNames;
+ }
+
+ /**
+ * Set the tableNames property: An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
+ *
+ * @param tableNames the tableNames value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withTableNames(List tableNames) {
+ this.tableNames = tableNames;
+ return this;
+ }
+
+ /**
+ * Get the innerDestination property: destination properties.
+ *
+ * @return the innerDestination value.
+ */
+ private Destination innerDestination() {
+ return this.innerDestination;
+ }
+
+ /**
+ * Get the enable property: Active when enabled.
+ *
+ * @return the enable value.
+ */
+ public Boolean enable() {
+ return this.enable;
+ }
+
+ /**
+ * Set the enable property: Active when enabled.
+ *
+ * @param enable the enable value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withEnable(Boolean enable) {
+ this.enable = enable;
+ return this;
+ }
+
+ /**
+ * Get the createdDate property: The latest data export rule modification time.
+ *
+ * @return the createdDate value.
+ */
+ public String createdDate() {
+ return this.createdDate;
+ }
+
+ /**
+ * Set the createdDate property: The latest data export rule modification time.
+ *
+ * @param createdDate the createdDate value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withCreatedDate(String createdDate) {
+ this.createdDate = createdDate;
+ return this;
+ }
+
+ /**
+ * Get the lastModifiedDate property: Date and time when the export was last modified.
+ *
+ * @return the lastModifiedDate value.
+ */
+ public String lastModifiedDate() {
+ return this.lastModifiedDate;
+ }
+
+ /**
+ * Set the lastModifiedDate property: Date and time when the export was last modified.
+ *
+ * @param lastModifiedDate the lastModifiedDate value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withLastModifiedDate(String lastModifiedDate) {
+ this.lastModifiedDate = lastModifiedDate;
+ return this;
+ }
+
+ /**
+ * Get the resourceId property: The destination resource ID. This can be copied from the Properties entry of the
+ * destination resource in Azure.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.innerDestination() == null ? null : this.innerDestination().resourceId();
+ }
+
+ /**
+ * Set the resourceId property: The destination resource ID. This can be copied from the Properties entry of the
+ * destination resource in Azure.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withResourceId(String resourceId) {
+ if (this.innerDestination() == null) {
+ this.innerDestination = new Destination();
+ }
+ this.innerDestination().withResourceId(resourceId);
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of the destination resource.
+ *
+ * @return the type value.
+ */
+ public Type type() {
+ return this.innerDestination() == null ? null : this.innerDestination().type();
+ }
+
+ /**
+ * Get the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @return the eventHubName value.
+ */
+ public String eventHubName() {
+ return this.innerDestination() == null ? null : this.innerDestination().eventHubName();
+ }
+
+ /**
+ * Set the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @param eventHubName the eventHubName value to set.
+ * @return the DataExportProperties object itself.
+ */
+ public DataExportProperties withEventHubName(String eventHubName) {
+ if (this.innerDestination() == null) {
+ this.innerDestination = new Destination();
+ }
+ this.innerDestination().withEventHubName(eventHubName);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (tableNames() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property tableNames in model DataExportProperties"));
+ }
+ if (innerDestination() != null) {
+ innerDestination().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DataExportProperties.class);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
index df0abde01f4c..ef09393faf1b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
@@ -8,15 +8,13 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.DataSourceKind;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Datasources under OMS Workspace. */
@Fluent
public final class DataSourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataSourceInner.class);
-
/*
* The data source properties in raw json format, each kind of data source
* have it's own schema.
@@ -40,6 +38,7 @@ public final class DataSourceInner extends ProxyResource {
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/**
@@ -131,14 +130,16 @@ public DataSourceInner withTags(Map tags) {
*/
public void validate() {
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property properties in model DataSourceInner"));
}
if (kind() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property kind in model DataSourceInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(DataSourceInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java
new file mode 100644
index 000000000000..4ae7e6fabac3
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.Type;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Destination properties. */
+@Fluent
+public final class Destination {
+ /*
+ * The destination resource ID. This can be copied from the Properties
+ * entry of the destination resource in Azure.
+ */
+ @JsonProperty(value = "resourceId", required = true)
+ private String resourceId;
+
+ /*
+ * The type of the destination resource
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private Type type;
+
+ /*
+ * destination meta data.
+ */
+ @JsonProperty(value = "metaData")
+ private DestinationMetadata innerMetadata;
+
+ /**
+ * Get the resourceId property: The destination resource ID. This can be copied from the Properties entry of the
+ * destination resource in Azure.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resourceId property: The destination resource ID. This can be copied from the Properties entry of the
+ * destination resource in Azure.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the Destination object itself.
+ */
+ public Destination withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of the destination resource.
+ *
+ * @return the type value.
+ */
+ public Type type() {
+ return this.type;
+ }
+
+ /**
+ * Get the innerMetadata property: destination meta data.
+ *
+ * @return the innerMetadata value.
+ */
+ private DestinationMetadata innerMetadata() {
+ return this.innerMetadata;
+ }
+
+ /**
+ * Get the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @return the eventHubName value.
+ */
+ public String eventHubName() {
+ return this.innerMetadata() == null ? null : this.innerMetadata().eventHubName();
+ }
+
+ /**
+ * Set the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @param eventHubName the eventHubName value to set.
+ * @return the Destination object itself.
+ */
+ public Destination withEventHubName(String eventHubName) {
+ if (this.innerMetadata() == null) {
+ this.innerMetadata = new DestinationMetadata();
+ }
+ this.innerMetadata().withEventHubName(eventHubName);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (resourceId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property resourceId in model Destination"));
+ }
+ if (innerMetadata() != null) {
+ innerMetadata().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(Destination.class);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java
new file mode 100644
index 000000000000..d7c0bbeb3296
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Destination meta data. */
+@Fluent
+public final class DestinationMetadata {
+ /*
+ * Optional. Allows to define an Event Hub name. Not applicable when
+ * destination is Storage Account.
+ */
+ @JsonProperty(value = "eventHubName")
+ private String eventHubName;
+
+ /**
+ * Get the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @return the eventHubName value.
+ */
+ public String eventHubName() {
+ return this.eventHubName;
+ }
+
+ /**
+ * Set the eventHubName property: Optional. Allows to define an Event Hub name. Not applicable when destination is
+ * Storage Account.
+ *
+ * @param eventHubName the eventHubName value to set.
+ * @return the DestinationMetadata object itself.
+ */
+ public DestinationMetadata withEventHubName(String eventHubName) {
+ this.eventHubName = eventHubName;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
index 21cbb135a612..6c8601f08ee9 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Intelligence Pack containing a string name and boolean indicating if it's enabled. */
@Fluent
public final class IntelligencePackInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IntelligencePackInner.class);
-
/*
* The name of the intelligence pack.
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
index 91c7206aaeba..c8784c190106 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java
@@ -5,45 +5,37 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The top level Linked service resource container. */
-@JsonFlatten
@Fluent
-public class LinkedServiceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedServiceInner.class);
+public final class LinkedServiceInner extends ProxyResource {
+ /*
+ * The properties of the linked service.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private LinkedServiceProperties innerProperties = new LinkedServiceProperties();
/*
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
- /*
- * The resource id of the resource that will be linked to the workspace.
- * This should be used for linking resources which require read access
- */
- @JsonProperty(value = "properties.resourceId")
- private String resourceId;
-
- /*
- * The resource id of the resource that will be linked to the workspace.
- * This should be used for linking resources which require write access
- */
- @JsonProperty(value = "properties.writeAccessResourceId")
- private String writeAccessResourceId;
-
- /*
- * The provisioning state of the linked service.
+ /**
+ * Get the innerProperties property: The properties of the linked service.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.provisioningState")
- private LinkedServiceEntityStatus provisioningState;
+ private LinkedServiceProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the tags property: Resource tags.
@@ -72,7 +64,7 @@ public LinkedServiceInner withTags(Map tags) {
* @return the resourceId value.
*/
public String resourceId() {
- return this.resourceId;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceId();
}
/**
@@ -83,7 +75,10 @@ public String resourceId() {
* @return the LinkedServiceInner object itself.
*/
public LinkedServiceInner withResourceId(String resourceId) {
- this.resourceId = resourceId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedServiceProperties();
+ }
+ this.innerProperties().withResourceId(resourceId);
return this;
}
@@ -94,7 +89,7 @@ public LinkedServiceInner withResourceId(String resourceId) {
* @return the writeAccessResourceId value.
*/
public String writeAccessResourceId() {
- return this.writeAccessResourceId;
+ return this.innerProperties() == null ? null : this.innerProperties().writeAccessResourceId();
}
/**
@@ -105,7 +100,10 @@ public String writeAccessResourceId() {
* @return the LinkedServiceInner object itself.
*/
public LinkedServiceInner withWriteAccessResourceId(String writeAccessResourceId) {
- this.writeAccessResourceId = writeAccessResourceId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedServiceProperties();
+ }
+ this.innerProperties().withWriteAccessResourceId(writeAccessResourceId);
return this;
}
@@ -115,7 +113,7 @@ public LinkedServiceInner withWriteAccessResourceId(String writeAccessResourceId
* @return the provisioningState value.
*/
public LinkedServiceEntityStatus provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -125,7 +123,10 @@ public LinkedServiceEntityStatus provisioningState() {
* @return the LinkedServiceInner object itself.
*/
public LinkedServiceInner withProvisioningState(LinkedServiceEntityStatus provisioningState) {
- this.provisioningState = provisioningState;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedServiceProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
return this;
}
@@ -135,5 +136,15 @@ public LinkedServiceInner withProvisioningState(LinkedServiceEntityStatus provis
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model LinkedServiceInner"));
+ } else {
+ innerProperties().validate();
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java
new file mode 100644
index 000000000000..f04eb7c07045
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Linked service properties. */
+@Fluent
+public final class LinkedServiceProperties {
+ /*
+ * The resource id of the resource that will be linked to the workspace.
+ * This should be used for linking resources which require read access
+ */
+ @JsonProperty(value = "resourceId")
+ private String resourceId;
+
+ /*
+ * The resource id of the resource that will be linked to the workspace.
+ * This should be used for linking resources which require write access
+ */
+ @JsonProperty(value = "writeAccessResourceId")
+ private String writeAccessResourceId;
+
+ /*
+ * The provisioning state of the linked service.
+ */
+ @JsonProperty(value = "provisioningState")
+ private LinkedServiceEntityStatus provisioningState;
+
+ /**
+ * Get the resourceId property: The resource id of the resource that will be linked to the workspace. This should be
+ * used for linking resources which require read access.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resourceId property: The resource id of the resource that will be linked to the workspace. This should be
+ * used for linking resources which require read access.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the LinkedServiceProperties object itself.
+ */
+ public LinkedServiceProperties withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Get the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace.
+ * This should be used for linking resources which require write access.
+ *
+ * @return the writeAccessResourceId value.
+ */
+ public String writeAccessResourceId() {
+ return this.writeAccessResourceId;
+ }
+
+ /**
+ * Set the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace.
+ * This should be used for linking resources which require write access.
+ *
+ * @param writeAccessResourceId the writeAccessResourceId value to set.
+ * @return the LinkedServiceProperties object itself.
+ */
+ public LinkedServiceProperties withWriteAccessResourceId(String writeAccessResourceId) {
+ this.writeAccessResourceId = writeAccessResourceId;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the linked service.
+ *
+ * @return the provisioningState value.
+ */
+ public LinkedServiceEntityStatus provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: The provisioning state of the linked service.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the LinkedServiceProperties object itself.
+ */
+ public LinkedServiceProperties withProvisioningState(LinkedServiceEntityStatus provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java
new file mode 100644
index 000000000000..618daa0a2c8d
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.DataSourceType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Linked storage accounts properties. */
+@Fluent
+public final class LinkedStorageAccountsProperties {
+ /*
+ * Linked storage accounts type.
+ */
+ @JsonProperty(value = "dataSourceType", access = JsonProperty.Access.WRITE_ONLY)
+ private DataSourceType dataSourceType;
+
+ /*
+ * Linked storage accounts resources ids.
+ */
+ @JsonProperty(value = "storageAccountIds")
+ private List storageAccountIds;
+
+ /**
+ * Get the dataSourceType property: Linked storage accounts type.
+ *
+ * @return the dataSourceType value.
+ */
+ public DataSourceType dataSourceType() {
+ return this.dataSourceType;
+ }
+
+ /**
+ * Get the storageAccountIds property: Linked storage accounts resources ids.
+ *
+ * @return the storageAccountIds value.
+ */
+ public List storageAccountIds() {
+ return this.storageAccountIds;
+ }
+
+ /**
+ * Set the storageAccountIds property: Linked storage accounts resources ids.
+ *
+ * @param storageAccountIds the storageAccountIds value to set.
+ * @return the LinkedStorageAccountsProperties object itself.
+ */
+ public LinkedStorageAccountsProperties withStorageAccountIds(List storageAccountIds) {
+ this.storageAccountIds = storageAccountIds;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java
index 01639e3857bc..555598d1846f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java
@@ -5,31 +5,29 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.DataSourceType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Linked storage accounts top level resource container. */
-@JsonFlatten
@Fluent
-public class LinkedStorageAccountsResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedStorageAccountsResourceInner.class);
-
+public final class LinkedStorageAccountsResourceInner extends ProxyResource {
/*
- * Linked storage accounts type.
+ * Linked storage accounts properties.
*/
- @JsonProperty(value = "properties.dataSourceType", access = JsonProperty.Access.WRITE_ONLY)
- private DataSourceType dataSourceType;
+ @JsonProperty(value = "properties", required = true)
+ private LinkedStorageAccountsProperties innerProperties = new LinkedStorageAccountsProperties();
- /*
- * Linked storage accounts resources ids.
+ /**
+ * Get the innerProperties property: Linked storage accounts properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.storageAccountIds")
- private List storageAccountIds;
+ private LinkedStorageAccountsProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the dataSourceType property: Linked storage accounts type.
@@ -37,7 +35,7 @@ public class LinkedStorageAccountsResourceInner extends ProxyResource {
* @return the dataSourceType value.
*/
public DataSourceType dataSourceType() {
- return this.dataSourceType;
+ return this.innerProperties() == null ? null : this.innerProperties().dataSourceType();
}
/**
@@ -46,7 +44,7 @@ public DataSourceType dataSourceType() {
* @return the storageAccountIds value.
*/
public List storageAccountIds() {
- return this.storageAccountIds;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountIds();
}
/**
@@ -56,7 +54,10 @@ public List storageAccountIds() {
* @return the LinkedStorageAccountsResourceInner object itself.
*/
public LinkedStorageAccountsResourceInner withStorageAccountIds(List storageAccountIds) {
- this.storageAccountIds = storageAccountIds;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedStorageAccountsProperties();
+ }
+ this.innerProperties().withStorageAccountIds(storageAccountIds);
return this;
}
@@ -66,5 +67,15 @@ public LinkedStorageAccountsResourceInner withStorageAccountIds(List sto
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model LinkedStorageAccountsResourceInner"));
+ } else {
+ innerProperties().validate();
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(LinkedStorageAccountsResourceInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java
new file mode 100644
index 000000000000..7d670653ab79
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.QueryPacksResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** An Log Analytics QueryPack definition. */
+@Fluent
+public final class LogAnalyticsQueryPackInner extends QueryPacksResource {
+ /*
+ * Properties that define a Log Analytics QueryPack resource.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private LogAnalyticsQueryPackProperties innerProperties = new LogAnalyticsQueryPackProperties();
+
+ /**
+ * Get the innerProperties property: Properties that define a Log Analytics QueryPack resource.
+ *
+ * @return the innerProperties value.
+ */
+ private LogAnalyticsQueryPackProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LogAnalyticsQueryPackInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LogAnalyticsQueryPackInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the queryPackId property: The unique ID of your application. This field cannot be changed.
+ *
+ * @return the queryPackId value.
+ */
+ public String queryPackId() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryPackId();
+ }
+
+ /**
+ * Get the timeCreated property: Creation Date for the Log Analytics QueryPack, in ISO 8601 format.
+ *
+ * @return the timeCreated value.
+ */
+ public OffsetDateTime timeCreated() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeCreated();
+ }
+
+ /**
+ * Get the timeModified property: Last modified date of the Log Analytics QueryPack, in ISO 8601 format.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeModified();
+ }
+
+ /**
+ * Get the provisioningState property: Current state of this QueryPack: whether or not is has been provisioned
+ * within the resource group it is defined. Users cannot change this value but are able to read from it. Values will
+ * include Succeeded, Deploying, Canceled, and Failed.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model LogAnalyticsQueryPackInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackInner.class);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java
new file mode 100644
index 000000000000..d569862c247e
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Properties that define a Log Analytics QueryPack resource. */
+@Immutable
+public final class LogAnalyticsQueryPackProperties {
+ /*
+ * The unique ID of your application. This field cannot be changed.
+ */
+ @JsonProperty(value = "queryPackId", access = JsonProperty.Access.WRITE_ONLY)
+ private String queryPackId;
+
+ /*
+ * Creation Date for the Log Analytics QueryPack, in ISO 8601 format.
+ */
+ @JsonProperty(value = "timeCreated", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime timeCreated;
+
+ /*
+ * Last modified date of the Log Analytics QueryPack, in ISO 8601 format.
+ */
+ @JsonProperty(value = "timeModified", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime timeModified;
+
+ /*
+ * Current state of this QueryPack: whether or not is has been provisioned
+ * within the resource group it is defined. Users cannot change this value
+ * but are able to read from it. Values will include Succeeded, Deploying,
+ * Canceled, and Failed.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Get the queryPackId property: The unique ID of your application. This field cannot be changed.
+ *
+ * @return the queryPackId value.
+ */
+ public String queryPackId() {
+ return this.queryPackId;
+ }
+
+ /**
+ * Get the timeCreated property: Creation Date for the Log Analytics QueryPack, in ISO 8601 format.
+ *
+ * @return the timeCreated value.
+ */
+ public OffsetDateTime timeCreated() {
+ return this.timeCreated;
+ }
+
+ /**
+ * Get the timeModified property: Last modified date of the Log Analytics QueryPack, in ISO 8601 format.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.timeModified;
+ }
+
+ /**
+ * Get the provisioningState property: Current state of this QueryPack: whether or not is has been provisioned
+ * within the resource group it is defined. Users cannot change this value but are able to read from it. Values will
+ * include Succeeded, Deploying, Canceled, and Failed.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java
new file mode 100644
index 000000000000..74711b47452f
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.AzureResourceProperties;
+import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** A Log Analytics QueryPack-Query definition. */
+@Fluent
+public final class LogAnalyticsQueryPackQueryInner extends AzureResourceProperties {
+ /*
+ * Properties that define an Log Analytics QueryPack-Query resource.
+ */
+ @JsonProperty(value = "properties")
+ private LogAnalyticsQueryPackQueryProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: Properties that define an Log Analytics QueryPack-Query resource.
+ *
+ * @return the innerProperties value.
+ */
+ private LogAnalyticsQueryPackQueryProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the id property: The unique ID of your application. This field cannot be changed.
+ *
+ * @return the id value.
+ */
+ public String idPropertiesId() {
+ return this.innerProperties() == null ? null : this.innerProperties().id();
+ }
+
+ /**
+ * Get the displayName property: Unique display name for your query within the Query Pack.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
+ }
+
+ /**
+ * Set the displayName property: Unique display name for your query within the Query Pack.
+ *
+ * @param displayName the displayName value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withDisplayName(String displayName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withDisplayName(displayName);
+ return this;
+ }
+
+ /**
+ * Get the timeCreated property: Creation Date for the Log Analytics Query, in ISO 8601 format.
+ *
+ * @return the timeCreated value.
+ */
+ public OffsetDateTime timeCreated() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeCreated();
+ }
+
+ /**
+ * Get the timeModified property: Last modified date of the Log Analytics Query, in ISO 8601 format.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeModified();
+ }
+
+ /**
+ * Get the author property: Object Id of user creating the query.
+ *
+ * @return the author value.
+ */
+ public String author() {
+ return this.innerProperties() == null ? null : this.innerProperties().author();
+ }
+
+ /**
+ * Get the description property: Description of the query.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: Description of the query.
+ *
+ * @param description the description value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Get the body property: Body of the query.
+ *
+ * @return the body value.
+ */
+ public String body() {
+ return this.innerProperties() == null ? null : this.innerProperties().body();
+ }
+
+ /**
+ * Set the body property: Body of the query.
+ *
+ * @param body the body value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withBody(String body) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withBody(body);
+ return this;
+ }
+
+ /**
+ * Get the related property: The related metadata items for the function.
+ *
+ * @return the related value.
+ */
+ public LogAnalyticsQueryPackQueryPropertiesRelated related() {
+ return this.innerProperties() == null ? null : this.innerProperties().related();
+ }
+
+ /**
+ * Set the related property: The related metadata items for the function.
+ *
+ * @param related the related value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withRelated(LogAnalyticsQueryPackQueryPropertiesRelated related) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withRelated(related);
+ return this;
+ }
+
+ /**
+ * Get the tags property: Tags associated with the query.
+ *
+ * @return the tags value.
+ */
+ public Map> tags() {
+ return this.innerProperties() == null ? null : this.innerProperties().tags();
+ }
+
+ /**
+ * Set the tags property: Tags associated with the query.
+ *
+ * @param tags the tags value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withTags(Map> tags) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the properties property: Additional properties that can be set for the query.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.innerProperties() == null ? null : this.innerProperties().properties();
+ }
+
+ /**
+ * Set the properties property: Additional properties that can be set for the query.
+ *
+ * @param properties the properties value to set.
+ * @return the LogAnalyticsQueryPackQueryInner object itself.
+ */
+ public LogAnalyticsQueryPackQueryInner withProperties(Object properties) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogAnalyticsQueryPackQueryProperties();
+ }
+ this.innerProperties().withProperties(properties);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java
new file mode 100644
index 000000000000..97579626b26d
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java
@@ -0,0 +1,260 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Properties that define an Log Analytics QueryPack-Query resource. */
+@Fluent
+public final class LogAnalyticsQueryPackQueryProperties {
+ /*
+ * The unique ID of your application. This field cannot be changed.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * Unique display name for your query within the Query Pack.
+ */
+ @JsonProperty(value = "displayName", required = true)
+ private String displayName;
+
+ /*
+ * Creation Date for the Log Analytics Query, in ISO 8601 format.
+ */
+ @JsonProperty(value = "timeCreated", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime timeCreated;
+
+ /*
+ * Last modified date of the Log Analytics Query, in ISO 8601 format.
+ */
+ @JsonProperty(value = "timeModified", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime timeModified;
+
+ /*
+ * Object Id of user creating the query.
+ */
+ @JsonProperty(value = "author", access = JsonProperty.Access.WRITE_ONLY)
+ private String author;
+
+ /*
+ * Description of the query.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * Body of the query.
+ */
+ @JsonProperty(value = "body", required = true)
+ private String body;
+
+ /*
+ * The related metadata items for the function.
+ */
+ @JsonProperty(value = "related")
+ private LogAnalyticsQueryPackQueryPropertiesRelated related;
+
+ /*
+ * Tags associated with the query.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map> tags;
+
+ /*
+ * Additional properties that can be set for the query.
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /**
+ * Get the id property: The unique ID of your application. This field cannot be changed.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the displayName property: Unique display name for your query within the Query Pack.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: Unique display name for your query within the Query Pack.
+ *
+ * @param displayName the displayName value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the timeCreated property: Creation Date for the Log Analytics Query, in ISO 8601 format.
+ *
+ * @return the timeCreated value.
+ */
+ public OffsetDateTime timeCreated() {
+ return this.timeCreated;
+ }
+
+ /**
+ * Get the timeModified property: Last modified date of the Log Analytics Query, in ISO 8601 format.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.timeModified;
+ }
+
+ /**
+ * Get the author property: Object Id of user creating the query.
+ *
+ * @return the author value.
+ */
+ public String author() {
+ return this.author;
+ }
+
+ /**
+ * Get the description property: Description of the query.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description of the query.
+ *
+ * @param description the description value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the body property: Body of the query.
+ *
+ * @return the body value.
+ */
+ public String body() {
+ return this.body;
+ }
+
+ /**
+ * Set the body property: Body of the query.
+ *
+ * @param body the body value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withBody(String body) {
+ this.body = body;
+ return this;
+ }
+
+ /**
+ * Get the related property: The related metadata items for the function.
+ *
+ * @return the related value.
+ */
+ public LogAnalyticsQueryPackQueryPropertiesRelated related() {
+ return this.related;
+ }
+
+ /**
+ * Set the related property: The related metadata items for the function.
+ *
+ * @param related the related value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withRelated(LogAnalyticsQueryPackQueryPropertiesRelated related) {
+ this.related = related;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Tags associated with the query.
+ *
+ * @return the tags value.
+ */
+ public Map> tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Tags associated with the query.
+ *
+ * @param tags the tags value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withTags(Map> tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Additional properties that can be set for the query.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Additional properties that can be set for the query.
+ *
+ * @param properties the properties value to set.
+ * @return the LogAnalyticsQueryPackQueryProperties object itself.
+ */
+ public LogAnalyticsQueryPackQueryProperties withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (displayName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property displayName in model LogAnalyticsQueryPackQueryProperties"));
+ }
+ if (body() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property body in model LogAnalyticsQueryPackQueryProperties"));
+ }
+ if (related() != null) {
+ related().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackQueryProperties.class);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java
index 210342b8a60f..6817f85dbcd3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java
@@ -5,66 +5,26 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A management group that is connected to a workspace. */
-@JsonFlatten
@Fluent
-public class ManagementGroupInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagementGroupInner.class);
-
- /*
- * The number of servers connected to the management group.
- */
- @JsonProperty(value = "properties.serverCount")
- private Integer serverCount;
-
- /*
- * Gets or sets a value indicating whether the management group is a
- * gateway.
- */
- @JsonProperty(value = "properties.isGateway")
- private Boolean isGateway;
-
- /*
- * The name of the management group.
- */
- @JsonProperty(value = "properties.name")
- private String name;
-
+public final class ManagementGroupInner {
/*
- * The unique ID of the management group.
+ * The properties of the management group.
*/
- @JsonProperty(value = "properties.id")
- private String id;
+ @JsonProperty(value = "properties")
+ private ManagementGroupProperties innerProperties;
- /*
- * The datetime that the management group was created.
- */
- @JsonProperty(value = "properties.created")
- private OffsetDateTime created;
-
- /*
- * The last datetime that the management group received data.
- */
- @JsonProperty(value = "properties.dataReceived")
- private OffsetDateTime dataReceived;
-
- /*
- * The version of System Center that is managing the management group.
- */
- @JsonProperty(value = "properties.version")
- private String version;
-
- /*
- * The SKU of System Center that is managing the management group.
+ /**
+ * Get the innerProperties property: The properties of the management group.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.sku")
- private String sku;
+ private ManagementGroupProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the serverCount property: The number of servers connected to the management group.
@@ -72,7 +32,7 @@ public class ManagementGroupInner {
* @return the serverCount value.
*/
public Integer serverCount() {
- return this.serverCount;
+ return this.innerProperties() == null ? null : this.innerProperties().serverCount();
}
/**
@@ -82,7 +42,10 @@ public Integer serverCount() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withServerCount(Integer serverCount) {
- this.serverCount = serverCount;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withServerCount(serverCount);
return this;
}
@@ -92,7 +55,7 @@ public ManagementGroupInner withServerCount(Integer serverCount) {
* @return the isGateway value.
*/
public Boolean isGateway() {
- return this.isGateway;
+ return this.innerProperties() == null ? null : this.innerProperties().isGateway();
}
/**
@@ -102,7 +65,10 @@ public Boolean isGateway() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withIsGateway(Boolean isGateway) {
- this.isGateway = isGateway;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withIsGateway(isGateway);
return this;
}
@@ -112,7 +78,7 @@ public ManagementGroupInner withIsGateway(Boolean isGateway) {
* @return the name value.
*/
public String name() {
- return this.name;
+ return this.innerProperties() == null ? null : this.innerProperties().name();
}
/**
@@ -122,7 +88,10 @@ public String name() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withName(String name) {
- this.name = name;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withName(name);
return this;
}
@@ -132,7 +101,7 @@ public ManagementGroupInner withName(String name) {
* @return the id value.
*/
public String id() {
- return this.id;
+ return this.innerProperties() == null ? null : this.innerProperties().id();
}
/**
@@ -142,7 +111,10 @@ public String id() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withId(String id) {
- this.id = id;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withId(id);
return this;
}
@@ -152,7 +124,7 @@ public ManagementGroupInner withId(String id) {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -162,7 +134,10 @@ public OffsetDateTime created() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withCreated(OffsetDateTime created) {
- this.created = created;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withCreated(created);
return this;
}
@@ -172,7 +147,7 @@ public ManagementGroupInner withCreated(OffsetDateTime created) {
* @return the dataReceived value.
*/
public OffsetDateTime dataReceived() {
- return this.dataReceived;
+ return this.innerProperties() == null ? null : this.innerProperties().dataReceived();
}
/**
@@ -182,7 +157,10 @@ public OffsetDateTime dataReceived() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withDataReceived(OffsetDateTime dataReceived) {
- this.dataReceived = dataReceived;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withDataReceived(dataReceived);
return this;
}
@@ -192,7 +170,7 @@ public ManagementGroupInner withDataReceived(OffsetDateTime dataReceived) {
* @return the version value.
*/
public String version() {
- return this.version;
+ return this.innerProperties() == null ? null : this.innerProperties().version();
}
/**
@@ -202,7 +180,10 @@ public String version() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withVersion(String version) {
- this.version = version;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withVersion(version);
return this;
}
@@ -212,7 +193,7 @@ public ManagementGroupInner withVersion(String version) {
* @return the sku value.
*/
public String sku() {
- return this.sku;
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
}
/**
@@ -222,7 +203,10 @@ public String sku() {
* @return the ManagementGroupInner object itself.
*/
public ManagementGroupInner withSku(String sku) {
- this.sku = sku;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ManagementGroupProperties();
+ }
+ this.innerProperties().withSku(sku);
return this;
}
@@ -232,5 +216,8 @@ public ManagementGroupInner withSku(String sku) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java
new file mode 100644
index 000000000000..f9f02fa9fa50
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java
@@ -0,0 +1,230 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Management group properties. */
+@Fluent
+public final class ManagementGroupProperties {
+ /*
+ * The number of servers connected to the management group.
+ */
+ @JsonProperty(value = "serverCount")
+ private Integer serverCount;
+
+ /*
+ * Gets or sets a value indicating whether the management group is a
+ * gateway.
+ */
+ @JsonProperty(value = "isGateway")
+ private Boolean isGateway;
+
+ /*
+ * The name of the management group.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * The unique ID of the management group.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * The datetime that the management group was created.
+ */
+ @JsonProperty(value = "created")
+ private OffsetDateTime created;
+
+ /*
+ * The last datetime that the management group received data.
+ */
+ @JsonProperty(value = "dataReceived")
+ private OffsetDateTime dataReceived;
+
+ /*
+ * The version of System Center that is managing the management group.
+ */
+ @JsonProperty(value = "version")
+ private String version;
+
+ /*
+ * The SKU of System Center that is managing the management group.
+ */
+ @JsonProperty(value = "sku")
+ private String sku;
+
+ /**
+ * Get the serverCount property: The number of servers connected to the management group.
+ *
+ * @return the serverCount value.
+ */
+ public Integer serverCount() {
+ return this.serverCount;
+ }
+
+ /**
+ * Set the serverCount property: The number of servers connected to the management group.
+ *
+ * @param serverCount the serverCount value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withServerCount(Integer serverCount) {
+ this.serverCount = serverCount;
+ return this;
+ }
+
+ /**
+ * Get the isGateway property: Gets or sets a value indicating whether the management group is a gateway.
+ *
+ * @return the isGateway value.
+ */
+ public Boolean isGateway() {
+ return this.isGateway;
+ }
+
+ /**
+ * Set the isGateway property: Gets or sets a value indicating whether the management group is a gateway.
+ *
+ * @param isGateway the isGateway value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withIsGateway(Boolean isGateway) {
+ this.isGateway = isGateway;
+ return this;
+ }
+
+ /**
+ * Get the name property: The name of the management group.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the management group.
+ *
+ * @param name the name value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: The unique ID of the management group.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The unique ID of the management group.
+ *
+ * @param id the id value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the created property: The datetime that the management group was created.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Set the created property: The datetime that the management group was created.
+ *
+ * @param created the created value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withCreated(OffsetDateTime created) {
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * Get the dataReceived property: The last datetime that the management group received data.
+ *
+ * @return the dataReceived value.
+ */
+ public OffsetDateTime dataReceived() {
+ return this.dataReceived;
+ }
+
+ /**
+ * Set the dataReceived property: The last datetime that the management group received data.
+ *
+ * @param dataReceived the dataReceived value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withDataReceived(OffsetDateTime dataReceived) {
+ this.dataReceived = dataReceived;
+ return this;
+ }
+
+ /**
+ * Get the version property: The version of System Center that is managing the management group.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: The version of System Center that is managing the management group.
+ *
+ * @param version the version value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The SKU of System Center that is managing the management group.
+ *
+ * @return the sku value.
+ */
+ public String sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of System Center that is managing the management group.
+ *
+ * @param sku the sku value to set.
+ * @return the ManagementGroupProperties object itself.
+ */
+ public ManagementGroupProperties withSku(String sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java
index d0cd3f670f0c..2a2c31edd633 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Supported operation of OperationalInsights resource provider. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{operation}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
index 39d0e82438ae..191eee031c03 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The status of operation. */
@Fluent
public final class OperationStatusInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationStatusInner.class);
-
/*
* The operation Id.
*/
@@ -46,7 +42,7 @@ public final class OperationStatusInner {
private String status;
/*
- * The error detail of the operation if any.
+ * Error response The error detail of the operation if any.
*/
@JsonProperty(value = "error")
private ManagementError error;
@@ -152,7 +148,7 @@ public OperationStatusInner withStatus(String status) {
}
/**
- * Get the error property: The error detail of the operation if any.
+ * Get the error property: Error response The error detail of the operation if any.
*
* @return the error value.
*/
@@ -161,7 +157,7 @@ public ManagementError error() {
}
/**
- * Set the error property: The error detail of the operation if any.
+ * Set the error property: Error response The error detail of the operation if any.
*
* @param error the error value to set.
* @return the OperationStatusInner object itself.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
index 69d58886efe6..3a6bd818875c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java
@@ -5,76 +5,31 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.Tag;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Value object for saved search results. */
-@JsonFlatten
@Fluent
-public class SavedSearchInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SavedSearchInner.class);
-
+public final class SavedSearchInner extends ProxyResource {
/*
- * The ETag of the saved search.
+ * The ETag of the saved search. To override an existing saved search, use
+ * "*" or specify the current Etag
*/
@JsonProperty(value = "etag")
private String etag;
/*
- * The category of the saved search. This helps the user to find a saved
- * search faster.
- */
- @JsonProperty(value = "properties.category", required = true)
- private String category;
-
- /*
- * Saved search display name.
- */
- @JsonProperty(value = "properties.displayName", required = true)
- private String displayName;
-
- /*
- * The query expression for the saved search.
- */
- @JsonProperty(value = "properties.query", required = true)
- private String query;
-
- /*
- * The function alias if query serves as a function.
- */
- @JsonProperty(value = "properties.functionAlias")
- private String functionAlias;
-
- /*
- * The optional function parameters if query serves as a function. Value
- * should be in the following format: 'param-name1:type1 = default_value1,
- * param-name2:type2 = default_value2'. For more examples and proper syntax
- * please refer to
- * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
- */
- @JsonProperty(value = "properties.functionParameters")
- private String functionParameters;
-
- /*
- * The version number of the query language. The current version is 2 and
- * is the default.
- */
- @JsonProperty(value = "properties.version")
- private Long version;
-
- /*
- * The tags attached to the saved search.
+ * The properties of the saved search.
*/
- @JsonProperty(value = "properties.tags")
- private List tags;
+ @JsonProperty(value = "properties", required = true)
+ private SavedSearchProperties innerProperties = new SavedSearchProperties();
/**
- * Get the etag property: The ETag of the saved search.
+ * Get the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the
+ * current Etag.
*
* @return the etag value.
*/
@@ -83,7 +38,8 @@ public String etag() {
}
/**
- * Set the etag property: The ETag of the saved search.
+ * Set the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the
+ * current Etag.
*
* @param etag the etag value to set.
* @return the SavedSearchInner object itself.
@@ -93,13 +49,22 @@ public SavedSearchInner withEtag(String etag) {
return this;
}
+ /**
+ * Get the innerProperties property: The properties of the saved search.
+ *
+ * @return the innerProperties value.
+ */
+ private SavedSearchProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the category property: The category of the saved search. This helps the user to find a saved search faster.
*
* @return the category value.
*/
public String category() {
- return this.category;
+ return this.innerProperties() == null ? null : this.innerProperties().category();
}
/**
@@ -109,7 +74,10 @@ public String category() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withCategory(String category) {
- this.category = category;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withCategory(category);
return this;
}
@@ -119,7 +87,7 @@ public SavedSearchInner withCategory(String category) {
* @return the displayName value.
*/
public String displayName() {
- return this.displayName;
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
}
/**
@@ -129,7 +97,10 @@ public String displayName() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withDisplayName(String displayName) {
- this.displayName = displayName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withDisplayName(displayName);
return this;
}
@@ -139,7 +110,7 @@ public SavedSearchInner withDisplayName(String displayName) {
* @return the query value.
*/
public String query() {
- return this.query;
+ return this.innerProperties() == null ? null : this.innerProperties().query();
}
/**
@@ -149,7 +120,10 @@ public String query() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withQuery(String query) {
- this.query = query;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withQuery(query);
return this;
}
@@ -159,7 +133,7 @@ public SavedSearchInner withQuery(String query) {
* @return the functionAlias value.
*/
public String functionAlias() {
- return this.functionAlias;
+ return this.innerProperties() == null ? null : this.innerProperties().functionAlias();
}
/**
@@ -169,7 +143,10 @@ public String functionAlias() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withFunctionAlias(String functionAlias) {
- this.functionAlias = functionAlias;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withFunctionAlias(functionAlias);
return this;
}
@@ -182,7 +159,7 @@ public SavedSearchInner withFunctionAlias(String functionAlias) {
* @return the functionParameters value.
*/
public String functionParameters() {
- return this.functionParameters;
+ return this.innerProperties() == null ? null : this.innerProperties().functionParameters();
}
/**
@@ -195,7 +172,10 @@ public String functionParameters() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withFunctionParameters(String functionParameters) {
- this.functionParameters = functionParameters;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withFunctionParameters(functionParameters);
return this;
}
@@ -205,7 +185,7 @@ public SavedSearchInner withFunctionParameters(String functionParameters) {
* @return the version value.
*/
public Long version() {
- return this.version;
+ return this.innerProperties() == null ? null : this.innerProperties().version();
}
/**
@@ -215,7 +195,10 @@ public Long version() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withVersion(Long version) {
- this.version = version;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withVersion(version);
return this;
}
@@ -225,7 +208,7 @@ public SavedSearchInner withVersion(Long version) {
* @return the tags value.
*/
public List tags() {
- return this.tags;
+ return this.innerProperties() == null ? null : this.innerProperties().tags();
}
/**
@@ -235,7 +218,10 @@ public List tags() {
* @return the SavedSearchInner object itself.
*/
public SavedSearchInner withTags(List tags) {
- this.tags = tags;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SavedSearchProperties();
+ }
+ this.innerProperties().withTags(tags);
return this;
}
@@ -245,23 +231,15 @@ public SavedSearchInner withTags(List tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (category() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property category in model SavedSearchInner"));
- }
- if (displayName() == null) {
- throw logger
+ if (innerProperties() == null) {
+ throw LOGGER
.logExceptionAsError(
- new IllegalArgumentException("Missing required property displayName in model SavedSearchInner"));
- }
- if (query() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property query in model SavedSearchInner"));
- }
- if (tags() != null) {
- tags().forEach(e -> e.validate());
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model SavedSearchInner"));
+ } else {
+ innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(SavedSearchInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java
new file mode 100644
index 000000000000..5bf7644a8ee6
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.Tag;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Value object for saved search results. */
+@Fluent
+public final class SavedSearchProperties {
+ /*
+ * The category of the saved search. This helps the user to find a saved
+ * search faster.
+ */
+ @JsonProperty(value = "category", required = true)
+ private String category;
+
+ /*
+ * Saved search display name.
+ */
+ @JsonProperty(value = "displayName", required = true)
+ private String displayName;
+
+ /*
+ * The query expression for the saved search.
+ */
+ @JsonProperty(value = "query", required = true)
+ private String query;
+
+ /*
+ * The function alias if query serves as a function.
+ */
+ @JsonProperty(value = "functionAlias")
+ private String functionAlias;
+
+ /*
+ * The optional function parameters if query serves as a function. Value
+ * should be in the following format: 'param-name1:type1 = default_value1,
+ * param-name2:type2 = default_value2'. For more examples and proper syntax
+ * please refer to
+ * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
+ */
+ @JsonProperty(value = "functionParameters")
+ private String functionParameters;
+
+ /*
+ * The version number of the query language. The current version is 2 and
+ * is the default.
+ */
+ @JsonProperty(value = "version")
+ private Long version;
+
+ /*
+ * The tags attached to the saved search.
+ */
+ @JsonProperty(value = "tags")
+ private List tags;
+
+ /**
+ * Get the category property: The category of the saved search. This helps the user to find a saved search faster.
+ *
+ * @return the category value.
+ */
+ public String category() {
+ return this.category;
+ }
+
+ /**
+ * Set the category property: The category of the saved search. This helps the user to find a saved search faster.
+ *
+ * @param category the category value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withCategory(String category) {
+ this.category = category;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Saved search display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: Saved search display name.
+ *
+ * @param displayName the displayName value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the query property: The query expression for the saved search.
+ *
+ * @return the query value.
+ */
+ public String query() {
+ return this.query;
+ }
+
+ /**
+ * Set the query property: The query expression for the saved search.
+ *
+ * @param query the query value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withQuery(String query) {
+ this.query = query;
+ return this;
+ }
+
+ /**
+ * Get the functionAlias property: The function alias if query serves as a function.
+ *
+ * @return the functionAlias value.
+ */
+ public String functionAlias() {
+ return this.functionAlias;
+ }
+
+ /**
+ * Set the functionAlias property: The function alias if query serves as a function.
+ *
+ * @param functionAlias the functionAlias value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withFunctionAlias(String functionAlias) {
+ this.functionAlias = functionAlias;
+ return this;
+ }
+
+ /**
+ * Get the functionParameters property: The optional function parameters if query serves as a function. Value should
+ * be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more
+ * examples and proper syntax please refer to
+ * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
+ *
+ * @return the functionParameters value.
+ */
+ public String functionParameters() {
+ return this.functionParameters;
+ }
+
+ /**
+ * Set the functionParameters property: The optional function parameters if query serves as a function. Value should
+ * be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more
+ * examples and proper syntax please refer to
+ * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
+ *
+ * @param functionParameters the functionParameters value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withFunctionParameters(String functionParameters) {
+ this.functionParameters = functionParameters;
+ return this;
+ }
+
+ /**
+ * Get the version property: The version number of the query language. The current version is 2 and is the default.
+ *
+ * @return the version value.
+ */
+ public Long version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: The version number of the query language. The current version is 2 and is the default.
+ *
+ * @param version the version value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withVersion(Long version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the tags property: The tags attached to the saved search.
+ *
+ * @return the tags value.
+ */
+ public List tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags attached to the saved search.
+ *
+ * @param tags the tags value to set.
+ * @return the SavedSearchProperties object itself.
+ */
+ public SavedSearchProperties withTags(List tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (category() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property category in model SavedSearchProperties"));
+ }
+ if (displayName() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property displayName in model SavedSearchProperties"));
+ }
+ if (query() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property query in model SavedSearchProperties"));
+ }
+ if (tags() != null) {
+ tags().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SavedSearchProperties.class);
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java
index eab26be41e29..32adb847cef1 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The saved search list operation response. */
@Fluent
public final class SavedSearchesListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SavedSearchesListResultInner.class);
-
/*
* The array of result values.
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java
index 1f860762e99f..7f4a2de48647 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.SearchMetadata;
import com.azure.resourcemanager.loganalytics.models.SearchSchemaValue;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The get schema operation response. */
@Fluent
public final class SearchGetSchemaResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SearchGetSchemaResponseInner.class);
-
/*
* The metadata from search results.
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java
index f691605aad1b..8409043f1466 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The shared keys for a workspace. */
@Fluent
public final class SharedKeysInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedKeysInner.class);
-
/*
* The primary shared key of a workspace.
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
index 035a1a22ef07..ff67299ddb48 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java
@@ -5,21 +5,22 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.StorageAccount;
import com.azure.resourcemanager.loganalytics.models.StorageInsightStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** The top level storage insight resource container. */
-@JsonFlatten
@Fluent
-public class StorageInsightInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageInsightInner.class);
+public final class StorageInsightInner extends ProxyResource {
+ /*
+ * Storage insight properties.
+ */
+ @JsonProperty(value = "properties")
+ private StorageInsightProperties innerProperties;
/*
* The ETag of the storage insight.
@@ -31,31 +32,17 @@ public class StorageInsightInner extends ProxyResource {
* Resource tags.
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
- /*
- * The names of the blob containers that the workspace should read
- */
- @JsonProperty(value = "properties.containers")
- private List containers;
-
- /*
- * The names of the Azure tables that the workspace should read
- */
- @JsonProperty(value = "properties.tables")
- private List tables;
-
- /*
- * The storage account connection details
- */
- @JsonProperty(value = "properties.storageAccount")
- private StorageAccount storageAccount;
-
- /*
- * The status of the storage insight
+ /**
+ * Get the innerProperties property: Storage insight properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
- private StorageInsightStatus status;
+ private StorageInsightProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the etag property: The ETag of the storage insight.
@@ -103,7 +90,7 @@ public StorageInsightInner withTags(Map tags) {
* @return the containers value.
*/
public List containers() {
- return this.containers;
+ return this.innerProperties() == null ? null : this.innerProperties().containers();
}
/**
@@ -113,7 +100,10 @@ public List containers() {
* @return the StorageInsightInner object itself.
*/
public StorageInsightInner withContainers(List containers) {
- this.containers = containers;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageInsightProperties();
+ }
+ this.innerProperties().withContainers(containers);
return this;
}
@@ -123,7 +113,7 @@ public StorageInsightInner withContainers(List containers) {
* @return the tables value.
*/
public List tables() {
- return this.tables;
+ return this.innerProperties() == null ? null : this.innerProperties().tables();
}
/**
@@ -133,7 +123,10 @@ public List tables() {
* @return the StorageInsightInner object itself.
*/
public StorageInsightInner withTables(List tables) {
- this.tables = tables;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageInsightProperties();
+ }
+ this.innerProperties().withTables(tables);
return this;
}
@@ -143,7 +136,7 @@ public StorageInsightInner withTables(List tables) {
* @return the storageAccount value.
*/
public StorageAccount storageAccount() {
- return this.storageAccount;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccount();
}
/**
@@ -153,7 +146,10 @@ public StorageAccount storageAccount() {
* @return the StorageInsightInner object itself.
*/
public StorageInsightInner withStorageAccount(StorageAccount storageAccount) {
- this.storageAccount = storageAccount;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageInsightProperties();
+ }
+ this.innerProperties().withStorageAccount(storageAccount);
return this;
}
@@ -163,7 +159,7 @@ public StorageInsightInner withStorageAccount(StorageAccount storageAccount) {
* @return the status value.
*/
public StorageInsightStatus status() {
- return this.status;
+ return this.innerProperties() == null ? null : this.innerProperties().status();
}
/**
@@ -172,11 +168,8 @@ public StorageInsightStatus status() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (storageAccount() != null) {
- storageAccount().validate();
- }
- if (status() != null) {
- status().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java
new file mode 100644
index 000000000000..f3cf405b44c8
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java
@@ -0,0 +1,130 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.loganalytics.models.StorageAccount;
+import com.azure.resourcemanager.loganalytics.models.StorageInsightStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Storage insight properties. */
+@Fluent
+public final class StorageInsightProperties {
+ /*
+ * The names of the blob containers that the workspace should read
+ */
+ @JsonProperty(value = "containers")
+ private List containers;
+
+ /*
+ * The names of the Azure tables that the workspace should read
+ */
+ @JsonProperty(value = "tables")
+ private List tables;
+
+ /*
+ * The storage account connection details
+ */
+ @JsonProperty(value = "storageAccount", required = true)
+ private StorageAccount storageAccount;
+
+ /*
+ * The status of the storage insight
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private StorageInsightStatus status;
+
+ /**
+ * Get the containers property: The names of the blob containers that the workspace should read.
+ *
+ * @return the containers value.
+ */
+ public List containers() {
+ return this.containers;
+ }
+
+ /**
+ * Set the containers property: The names of the blob containers that the workspace should read.
+ *
+ * @param containers the containers value to set.
+ * @return the StorageInsightProperties object itself.
+ */
+ public StorageInsightProperties withContainers(List containers) {
+ this.containers = containers;
+ return this;
+ }
+
+ /**
+ * Get the tables property: The names of the Azure tables that the workspace should read.
+ *
+ * @return the tables value.
+ */
+ public List tables() {
+ return this.tables;
+ }
+
+ /**
+ * Set the tables property: The names of the Azure tables that the workspace should read.
+ *
+ * @param tables the tables value to set.
+ * @return the StorageInsightProperties object itself.
+ */
+ public StorageInsightProperties withTables(List tables) {
+ this.tables = tables;
+ return this;
+ }
+
+ /**
+ * Get the storageAccount property: The storage account connection details.
+ *
+ * @return the storageAccount value.
+ */
+ public StorageAccount storageAccount() {
+ return this.storageAccount;
+ }
+
+ /**
+ * Set the storageAccount property: The storage account connection details.
+ *
+ * @param storageAccount the storageAccount value to set.
+ * @return the StorageInsightProperties object itself.
+ */
+ public StorageInsightProperties withStorageAccount(StorageAccount storageAccount) {
+ this.storageAccount = storageAccount;
+ return this;
+ }
+
+ /**
+ * Get the status property: The status of the storage insight.
+ *
+ * @return the status value.
+ */
+ public StorageInsightStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (storageAccount() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property storageAccount in model StorageInsightProperties"));
+ } else {
+ storageAccount().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(StorageInsightProperties.class);
+}
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..c45415a51ff6 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
@@ -5,52 +5,255 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.loganalytics.models.RestoredLogs;
+import com.azure.resourcemanager.loganalytics.models.ResultStatistics;
+import com.azure.resourcemanager.loganalytics.models.Schema;
+import com.azure.resourcemanager.loganalytics.models.SearchResults;
+import com.azure.resourcemanager.loganalytics.models.SystemDataAutoGenerated;
+import com.azure.resourcemanager.loganalytics.models.TablePlanEnum;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Workspace data table definition. */
-@JsonFlatten
@Fluent
-public class TableInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TableInner.class);
+public final class TableInner extends ProxyResource {
+ /*
+ * Table's properties.
+ */
+ @JsonProperty(value = "properties")
+ private TableProperties innerProperties;
/*
- * The data table data retention in days, between 30 and 730. Setting this
- * property to null will default to the workspace retention.
+ * Metadata pertaining to creation and last modification of the resource.
*/
- @JsonProperty(value = "properties.retentionInDays")
- private Integer retentionInDays;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemDataAutoGenerated systemData;
+
+ /**
+ * Get the innerProperties property: Table's properties.
+ *
+ * @return the innerProperties value.
+ */
+ private TableProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
- * 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 systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemDataAutoGenerated systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the retentionInDays property: The table retention in days, between 4 and 730. Setting this property to -1
+ * will default to the workspace retention.
*
* @return the retentionInDays value.
*/
public Integer retentionInDays() {
- return this.retentionInDays;
+ return this.innerProperties() == null ? null : this.innerProperties().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 table retention in days, between 4 and 730. Setting this property to -1
+ * will default to the workspace retention.
*
* @param retentionInDays the retentionInDays value to set.
* @return the TableInner object itself.
*/
public TableInner withRetentionInDays(Integer retentionInDays) {
- this.retentionInDays = retentionInDays;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withRetentionInDays(retentionInDays);
+ return this;
+ }
+
+ /**
+ * Get the totalRetentionInDays property: The table total retention in days, between 4 and 2555. Setting this
+ * property to -1 will default to table retention.
+ *
+ * @return the totalRetentionInDays value.
+ */
+ public Integer totalRetentionInDays() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalRetentionInDays();
+ }
+
+ /**
+ * Set the totalRetentionInDays property: The table total retention in days, between 4 and 2555. Setting this
+ * property to -1 will default to table retention.
+ *
+ * @param totalRetentionInDays the totalRetentionInDays value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withTotalRetentionInDays(Integer totalRetentionInDays) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withTotalRetentionInDays(totalRetentionInDays);
+ return this;
+ }
+
+ /**
+ * Get the archiveRetentionInDays property: The table data archive retention in days. Calculated as
+ * (totalRetentionInDays-retentionInDays).
+ *
+ * @return the archiveRetentionInDays value.
+ */
+ public Integer archiveRetentionInDays() {
+ return this.innerProperties() == null ? null : this.innerProperties().archiveRetentionInDays();
+ }
+
+ /**
+ * Get the searchResults property: Parameters of the search job that initiated this table.
+ *
+ * @return the searchResults value.
+ */
+ public SearchResults searchResults() {
+ return this.innerProperties() == null ? null : this.innerProperties().searchResults();
+ }
+
+ /**
+ * Set the searchResults property: Parameters of the search job that initiated this table.
+ *
+ * @param searchResults the searchResults value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withSearchResults(SearchResults searchResults) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withSearchResults(searchResults);
return this;
}
+ /**
+ * Get the restoredLogs property: Parameters of the restore operation that initiated this table.
+ *
+ * @return the restoredLogs value.
+ */
+ public RestoredLogs restoredLogs() {
+ return this.innerProperties() == null ? null : this.innerProperties().restoredLogs();
+ }
+
+ /**
+ * Set the restoredLogs property: Parameters of the restore operation that initiated this table.
+ *
+ * @param restoredLogs the restoredLogs value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withRestoredLogs(RestoredLogs restoredLogs) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withRestoredLogs(restoredLogs);
+ return this;
+ }
+
+ /**
+ * Get the resultStatistics property: Search job execution statistics.
+ *
+ * @return the resultStatistics value.
+ */
+ public ResultStatistics resultStatistics() {
+ return this.innerProperties() == null ? null : this.innerProperties().resultStatistics();
+ }
+
+ /**
+ * Set the resultStatistics property: Search job execution statistics.
+ *
+ * @param resultStatistics the resultStatistics value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withResultStatistics(ResultStatistics resultStatistics) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withResultStatistics(resultStatistics);
+ return this;
+ }
+
+ /**
+ * Get the plan property: Instruct the system how to handle and charge the logs ingested to this table.
+ *
+ * @return the plan value.
+ */
+ public TablePlanEnum plan() {
+ return this.innerProperties() == null ? null : this.innerProperties().plan();
+ }
+
+ /**
+ * Set the plan property: Instruct the system how to handle and charge the logs ingested to this table.
+ *
+ * @param plan the plan value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withPlan(TablePlanEnum plan) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withPlan(plan);
+ return this;
+ }
+
+ /**
+ * Get the lastPlanModifiedDate property: The timestamp that table plan was last modified (UTC).
+ *
+ * @return the lastPlanModifiedDate value.
+ */
+ public String lastPlanModifiedDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastPlanModifiedDate();
+ }
+
+ /**
+ * Get the schema property: Table schema.
+ *
+ * @return the schema value.
+ */
+ public Schema schema() {
+ return this.innerProperties() == null ? null : this.innerProperties().schema();
+ }
+
+ /**
+ * Set the schema property: Table schema.
+ *
+ * @param schema the schema value to set.
+ * @return the TableInner object itself.
+ */
+ public TableInner withSchema(Schema schema) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TableProperties();
+ }
+ this.innerProperties().withSchema(schema);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Table's current provisioning state. If set to 'updating', indicates a
+ * resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is
+ * concluded.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (systemData() != null) {
+ systemData().validate();
+ }
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java
new file mode 100644
index 000000000000..cae44b73dc3d
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java
@@ -0,0 +1,278 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum;
+import com.azure.resourcemanager.loganalytics.models.RestoredLogs;
+import com.azure.resourcemanager.loganalytics.models.ResultStatistics;
+import com.azure.resourcemanager.loganalytics.models.Schema;
+import com.azure.resourcemanager.loganalytics.models.SearchResults;
+import com.azure.resourcemanager.loganalytics.models.TablePlanEnum;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Table properties. */
+@Fluent
+public final class TableProperties {
+ /*
+ * The table retention in days, between 4 and 730. Setting this property to
+ * -1 will default to the workspace retention.
+ */
+ @JsonProperty(value = "retentionInDays")
+ private Integer retentionInDays;
+
+ /*
+ * The table total retention in days, between 4 and 2555. Setting this
+ * property to -1 will default to table retention.
+ */
+ @JsonProperty(value = "totalRetentionInDays")
+ private Integer totalRetentionInDays;
+
+ /*
+ * The table data archive retention in days. Calculated as
+ * (totalRetentionInDays-retentionInDays)
+ */
+ @JsonProperty(value = "archiveRetentionInDays", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer archiveRetentionInDays;
+
+ /*
+ * Parameters of the search job that initiated this table.
+ */
+ @JsonProperty(value = "searchResults")
+ private SearchResults searchResults;
+
+ /*
+ * Parameters of the restore operation that initiated this table.
+ */
+ @JsonProperty(value = "restoredLogs")
+ private RestoredLogs restoredLogs;
+
+ /*
+ * Search job execution statistics.
+ */
+ @JsonProperty(value = "resultStatistics")
+ private ResultStatistics resultStatistics;
+
+ /*
+ * Instruct the system how to handle and charge the logs ingested to this
+ * table.
+ */
+ @JsonProperty(value = "plan")
+ private TablePlanEnum plan;
+
+ /*
+ * The timestamp that table plan was last modified (UTC).
+ */
+ @JsonProperty(value = "lastPlanModifiedDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastPlanModifiedDate;
+
+ /*
+ * Table schema.
+ */
+ @JsonProperty(value = "schema")
+ private Schema schema;
+
+ /*
+ * Table's current provisioning state. If set to 'updating', indicates a
+ * resource lock due to ongoing operation, forbidding any update to the
+ * table until the ongoing operation is concluded.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateEnum provisioningState;
+
+ /**
+ * Get the retentionInDays property: The table retention in days, between 4 and 730. Setting this property to -1
+ * will default to the workspace retention.
+ *
+ * @return the retentionInDays value.
+ */
+ public Integer retentionInDays() {
+ return this.retentionInDays;
+ }
+
+ /**
+ * Set the retentionInDays property: The table retention in days, between 4 and 730. Setting this property to -1
+ * will default to the workspace retention.
+ *
+ * @param retentionInDays the retentionInDays value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withRetentionInDays(Integer retentionInDays) {
+ this.retentionInDays = retentionInDays;
+ return this;
+ }
+
+ /**
+ * Get the totalRetentionInDays property: The table total retention in days, between 4 and 2555. Setting this
+ * property to -1 will default to table retention.
+ *
+ * @return the totalRetentionInDays value.
+ */
+ public Integer totalRetentionInDays() {
+ return this.totalRetentionInDays;
+ }
+
+ /**
+ * Set the totalRetentionInDays property: The table total retention in days, between 4 and 2555. Setting this
+ * property to -1 will default to table retention.
+ *
+ * @param totalRetentionInDays the totalRetentionInDays value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withTotalRetentionInDays(Integer totalRetentionInDays) {
+ this.totalRetentionInDays = totalRetentionInDays;
+ return this;
+ }
+
+ /**
+ * Get the archiveRetentionInDays property: The table data archive retention in days. Calculated as
+ * (totalRetentionInDays-retentionInDays).
+ *
+ * @return the archiveRetentionInDays value.
+ */
+ public Integer archiveRetentionInDays() {
+ return this.archiveRetentionInDays;
+ }
+
+ /**
+ * Get the searchResults property: Parameters of the search job that initiated this table.
+ *
+ * @return the searchResults value.
+ */
+ public SearchResults searchResults() {
+ return this.searchResults;
+ }
+
+ /**
+ * Set the searchResults property: Parameters of the search job that initiated this table.
+ *
+ * @param searchResults the searchResults value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withSearchResults(SearchResults searchResults) {
+ this.searchResults = searchResults;
+ return this;
+ }
+
+ /**
+ * Get the restoredLogs property: Parameters of the restore operation that initiated this table.
+ *
+ * @return the restoredLogs value.
+ */
+ public RestoredLogs restoredLogs() {
+ return this.restoredLogs;
+ }
+
+ /**
+ * Set the restoredLogs property: Parameters of the restore operation that initiated this table.
+ *
+ * @param restoredLogs the restoredLogs value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withRestoredLogs(RestoredLogs restoredLogs) {
+ this.restoredLogs = restoredLogs;
+ return this;
+ }
+
+ /**
+ * Get the resultStatistics property: Search job execution statistics.
+ *
+ * @return the resultStatistics value.
+ */
+ public ResultStatistics resultStatistics() {
+ return this.resultStatistics;
+ }
+
+ /**
+ * Set the resultStatistics property: Search job execution statistics.
+ *
+ * @param resultStatistics the resultStatistics value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withResultStatistics(ResultStatistics resultStatistics) {
+ this.resultStatistics = resultStatistics;
+ return this;
+ }
+
+ /**
+ * Get the plan property: Instruct the system how to handle and charge the logs ingested to this table.
+ *
+ * @return the plan value.
+ */
+ public TablePlanEnum plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: Instruct the system how to handle and charge the logs ingested to this table.
+ *
+ * @param plan the plan value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withPlan(TablePlanEnum plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the lastPlanModifiedDate property: The timestamp that table plan was last modified (UTC).
+ *
+ * @return the lastPlanModifiedDate value.
+ */
+ public String lastPlanModifiedDate() {
+ return this.lastPlanModifiedDate;
+ }
+
+ /**
+ * Get the schema property: Table schema.
+ *
+ * @return the schema value.
+ */
+ public Schema schema() {
+ return this.schema;
+ }
+
+ /**
+ * Set the schema property: Table schema.
+ *
+ * @param schema the schema value to set.
+ * @return the TableProperties object itself.
+ */
+ public TableProperties withSchema(Schema schema) {
+ this.schema = schema;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Table's current provisioning state. If set to 'updating', indicates a
+ * resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is
+ * concluded.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningStateEnum provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (searchResults() != null) {
+ searchResults().validate();
+ }
+ if (restoredLogs() != null) {
+ restoredLogs().validate();
+ }
+ if (resultStatistics() != null) {
+ resultStatistics().validate();
+ }
+ if (schema() != null) {
+ schema().validate();
+ }
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java
index cfed6590e933..2eaa34c2b61c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.MetricName;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A metric describing the usage of a resource. */
@Fluent
public final class UsageMetricInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UsageMetricInner.class);
-
/*
* The name of the metric.
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java
index ff5401ba2e35..67b245e380ca 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
@@ -5,105 +5,56 @@
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-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.PrivateLinkScopedResource;
import com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType;
+import com.azure.resourcemanager.loganalytics.models.SystemDataAutoGenerated;
import com.azure.resourcemanager.loganalytics.models.WorkspaceCapping;
import com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures;
import com.azure.resourcemanager.loganalytics.models.WorkspaceSku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** The top level Workspace resource container. */
-@JsonFlatten
@Fluent
-public class WorkspaceInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class);
-
- /*
- * The ETag of the workspace.
- */
- @JsonProperty(value = "eTag")
- private String etag;
-
- /*
- * The provisioning state of the workspace.
- */
- @JsonProperty(value = "properties.provisioningState")
- private WorkspaceEntityStatus provisioningState;
-
- /*
- * This is a read-only property. Represents the ID associated with the
- * workspace.
- */
- @JsonProperty(value = "properties.customerId", access = JsonProperty.Access.WRITE_ONLY)
- private String customerId;
-
- /*
- * The SKU of the workspace.
- */
- @JsonProperty(value = "properties.sku")
- private WorkspaceSku sku;
-
- /*
- * 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;
-
- /*
- * The daily volume cap for ingestion.
- */
- @JsonProperty(value = "properties.workspaceCapping")
- private WorkspaceCapping workspaceCapping;
-
+public final class WorkspaceInner extends Resource {
/*
- * Workspace creation date.
+ * Workspace properties.
*/
- @JsonProperty(value = "properties.createdDate", access = JsonProperty.Access.WRITE_ONLY)
- private String createdDate;
+ @JsonProperty(value = "properties")
+ private WorkspaceProperties innerProperties;
/*
- * Workspace modification date.
+ * Metadata pertaining to creation and last modification of the resource.
*/
- @JsonProperty(value = "properties.modifiedDate", access = JsonProperty.Access.WRITE_ONLY)
- private String modifiedDate;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemDataAutoGenerated systemData;
/*
- * The network access type for accessing Log Analytics ingestion.
- */
- @JsonProperty(value = "properties.publicNetworkAccessForIngestion")
- private PublicNetworkAccessType publicNetworkAccessForIngestion;
-
- /*
- * The network access type for accessing Log Analytics query.
- */
- @JsonProperty(value = "properties.publicNetworkAccessForQuery")
- private PublicNetworkAccessType publicNetworkAccessForQuery;
-
- /*
- * Indicates whether customer managed storage is mandatory for query
- * management.
+ * The ETag of the workspace.
*/
- @JsonProperty(value = "properties.forceCmkForQuery")
- private Boolean forceCmkForQuery;
+ @JsonProperty(value = "eTag")
+ private String etag;
- /*
- * List of linked private link scope resources.
+ /**
+ * Get the innerProperties property: Workspace properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.privateLinkScopedResources", access = JsonProperty.Access.WRITE_ONLY)
- private List privateLinkScopedResources;
+ private WorkspaceProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * Workspace features.
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.features")
- private Map features;
+ public SystemDataAutoGenerated systemData() {
+ return this.systemData;
+ }
/**
* Get the etag property: The ETag of the workspace.
@@ -125,24 +76,27 @@ public WorkspaceInner withEtag(String etag) {
return this;
}
+ /** {@inheritDoc} */
+ @Override
+ public WorkspaceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WorkspaceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Get the provisioningState property: The provisioning state of the workspace.
*
* @return the provisioningState value.
*/
public WorkspaceEntityStatus provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Set the provisioningState property: The provisioning state of the workspace.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the WorkspaceInner object itself.
- */
- public WorkspaceInner withProvisioningState(WorkspaceEntityStatus provisioningState) {
- this.provisioningState = provisioningState;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -151,7 +105,7 @@ public WorkspaceInner withProvisioningState(WorkspaceEntityStatus provisioningSt
* @return the customerId value.
*/
public String customerId() {
- return this.customerId;
+ return this.innerProperties() == null ? null : this.innerProperties().customerId();
}
/**
@@ -160,7 +114,7 @@ public String customerId() {
* @return the sku value.
*/
public WorkspaceSku sku() {
- return this.sku;
+ return this.innerProperties() == null ? null : this.innerProperties().sku();
}
/**
@@ -170,7 +124,10 @@ public WorkspaceSku sku() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withSku(WorkspaceSku sku) {
- this.sku = sku;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withSku(sku);
return this;
}
@@ -181,7 +138,7 @@ public WorkspaceInner withSku(WorkspaceSku sku) {
* @return the retentionInDays value.
*/
public Integer retentionInDays() {
- return this.retentionInDays;
+ return this.innerProperties() == null ? null : this.innerProperties().retentionInDays();
}
/**
@@ -192,7 +149,10 @@ public Integer retentionInDays() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withRetentionInDays(Integer retentionInDays) {
- this.retentionInDays = retentionInDays;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withRetentionInDays(retentionInDays);
return this;
}
@@ -202,7 +162,7 @@ public WorkspaceInner withRetentionInDays(Integer retentionInDays) {
* @return the workspaceCapping value.
*/
public WorkspaceCapping workspaceCapping() {
- return this.workspaceCapping;
+ return this.innerProperties() == null ? null : this.innerProperties().workspaceCapping();
}
/**
@@ -212,7 +172,10 @@ public WorkspaceCapping workspaceCapping() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withWorkspaceCapping(WorkspaceCapping workspaceCapping) {
- this.workspaceCapping = workspaceCapping;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withWorkspaceCapping(workspaceCapping);
return this;
}
@@ -222,7 +185,7 @@ public WorkspaceInner withWorkspaceCapping(WorkspaceCapping workspaceCapping) {
* @return the createdDate value.
*/
public String createdDate() {
- return this.createdDate;
+ return this.innerProperties() == null ? null : this.innerProperties().createdDate();
}
/**
@@ -231,7 +194,7 @@ public String createdDate() {
* @return the modifiedDate value.
*/
public String modifiedDate() {
- return this.modifiedDate;
+ return this.innerProperties() == null ? null : this.innerProperties().modifiedDate();
}
/**
@@ -240,7 +203,7 @@ public String modifiedDate() {
* @return the publicNetworkAccessForIngestion value.
*/
public PublicNetworkAccessType publicNetworkAccessForIngestion() {
- return this.publicNetworkAccessForIngestion;
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccessForIngestion();
}
/**
@@ -250,7 +213,10 @@ public PublicNetworkAccessType publicNetworkAccessForIngestion() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withPublicNetworkAccessForIngestion(PublicNetworkAccessType publicNetworkAccessForIngestion) {
- this.publicNetworkAccessForIngestion = publicNetworkAccessForIngestion;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withPublicNetworkAccessForIngestion(publicNetworkAccessForIngestion);
return this;
}
@@ -260,7 +226,7 @@ public WorkspaceInner withPublicNetworkAccessForIngestion(PublicNetworkAccessTyp
* @return the publicNetworkAccessForQuery value.
*/
public PublicNetworkAccessType publicNetworkAccessForQuery() {
- return this.publicNetworkAccessForQuery;
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccessForQuery();
}
/**
@@ -270,7 +236,10 @@ public PublicNetworkAccessType publicNetworkAccessForQuery() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery) {
- this.publicNetworkAccessForQuery = publicNetworkAccessForQuery;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withPublicNetworkAccessForQuery(publicNetworkAccessForQuery);
return this;
}
@@ -280,7 +249,7 @@ public WorkspaceInner withPublicNetworkAccessForQuery(PublicNetworkAccessType pu
* @return the forceCmkForQuery value.
*/
public Boolean forceCmkForQuery() {
- return this.forceCmkForQuery;
+ return this.innerProperties() == null ? null : this.innerProperties().forceCmkForQuery();
}
/**
@@ -290,7 +259,10 @@ public Boolean forceCmkForQuery() {
* @return the WorkspaceInner object itself.
*/
public WorkspaceInner withForceCmkForQuery(Boolean forceCmkForQuery) {
- this.forceCmkForQuery = forceCmkForQuery;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withForceCmkForQuery(forceCmkForQuery);
return this;
}
@@ -300,7 +272,7 @@ public WorkspaceInner withForceCmkForQuery(Boolean forceCmkForQuery) {
* @return the privateLinkScopedResources value.
*/
public List privateLinkScopedResources() {
- return this.privateLinkScopedResources;
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkScopedResources();
}
/**
@@ -308,8 +280,8 @@ public List privateLinkScopedResources() {
*
* @return the features value.
*/
- public Map features() {
- return this.features;
+ public WorkspaceFeatures features() {
+ return this.innerProperties() == null ? null : this.innerProperties().features();
}
/**
@@ -318,22 +290,38 @@ public Map features() {
* @param features the features value to set.
* @return the WorkspaceInner object itself.
*/
- public WorkspaceInner withFeatures(Map features) {
- this.features = features;
+ public WorkspaceInner withFeatures(WorkspaceFeatures features) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withFeatures(features);
return this;
}
- /** {@inheritDoc} */
- @Override
- public WorkspaceInner withLocation(String location) {
- super.withLocation(location);
- return this;
+ /**
+ * Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use
+ * for this workspace. Expected format is -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
+ *
+ * @return the defaultDataCollectionRuleResourceId value.
+ */
+ public String defaultDataCollectionRuleResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().defaultDataCollectionRuleResourceId();
}
- /** {@inheritDoc} */
- @Override
- public WorkspaceInner withTags(Map tags) {
- super.withTags(tags);
+ /**
+ * Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use
+ * for this workspace. Expected format is -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
+ *
+ * @param defaultDataCollectionRuleResourceId the defaultDataCollectionRuleResourceId value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspaceProperties();
+ }
+ this.innerProperties().withDefaultDataCollectionRuleResourceId(defaultDataCollectionRuleResourceId);
return this;
}
@@ -343,14 +331,11 @@ public WorkspaceInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (sku() != null) {
- sku().validate();
- }
- if (workspaceCapping() != null) {
- workspaceCapping().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
- if (privateLinkScopedResources() != null) {
- privateLinkScopedResources().forEach(e -> e.validate());
+ if (systemData() != null) {
+ systemData().validate();
}
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java
new file mode 100644
index 000000000000..6891c10c0cc8
--- /dev/null
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java
@@ -0,0 +1,334 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.loganalytics.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource;
+import com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceCapping;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures;
+import com.azure.resourcemanager.loganalytics.models.WorkspaceSku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Workspace properties. */
+@Fluent
+public final class WorkspaceProperties {
+ /*
+ * The provisioning state of the workspace.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private WorkspaceEntityStatus provisioningState;
+
+ /*
+ * This is a read-only property. Represents the ID associated with the
+ * workspace.
+ */
+ @JsonProperty(value = "customerId", access = JsonProperty.Access.WRITE_ONLY)
+ private String customerId;
+
+ /*
+ * The SKU of the workspace.
+ */
+ @JsonProperty(value = "sku")
+ private WorkspaceSku sku;
+
+ /*
+ * The workspace data retention in days. Allowed values are per pricing
+ * plan. See pricing tiers documentation for details.
+ */
+ @JsonProperty(value = "retentionInDays")
+ private Integer retentionInDays;
+
+ /*
+ * The daily volume cap for ingestion.
+ */
+ @JsonProperty(value = "workspaceCapping")
+ private WorkspaceCapping workspaceCapping;
+
+ /*
+ * Workspace creation date.
+ */
+ @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdDate;
+
+ /*
+ * Workspace modification date.
+ */
+ @JsonProperty(value = "modifiedDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String modifiedDate;
+
+ /*
+ * The network access type for accessing Log Analytics ingestion.
+ */
+ @JsonProperty(value = "publicNetworkAccessForIngestion")
+ private PublicNetworkAccessType publicNetworkAccessForIngestion;
+
+ /*
+ * The network access type for accessing Log Analytics query.
+ */
+ @JsonProperty(value = "publicNetworkAccessForQuery")
+ private PublicNetworkAccessType publicNetworkAccessForQuery;
+
+ /*
+ * Indicates whether customer managed storage is mandatory for query
+ * management.
+ */
+ @JsonProperty(value = "forceCmkForQuery")
+ private Boolean forceCmkForQuery;
+
+ /*
+ * List of linked private link scope resources.
+ */
+ @JsonProperty(value = "privateLinkScopedResources", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateLinkScopedResources;
+
+ /*
+ * Workspace features.
+ */
+ @JsonProperty(value = "features")
+ private WorkspaceFeatures features;
+
+ /*
+ * The resource ID of the default Data Collection Rule to use for this
+ * workspace. Expected format is -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
+ */
+ @JsonProperty(value = "defaultDataCollectionRuleResourceId")
+ private String defaultDataCollectionRuleResourceId;
+
+ /**
+ * Get the provisioningState property: The provisioning state of the workspace.
+ *
+ * @return the provisioningState value.
+ */
+ public WorkspaceEntityStatus provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the customerId property: This is a read-only property. Represents the ID associated with the workspace.
+ *
+ * @return the customerId value.
+ */
+ public String customerId() {
+ return this.customerId;
+ }
+
+ /**
+ * Get the sku property: The SKU of the workspace.
+ *
+ * @return the sku value.
+ */
+ public WorkspaceSku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The SKU of the workspace.
+ *
+ * @param sku the sku value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withSku(WorkspaceSku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * 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.
+ */
+ public Integer retentionInDays() {
+ return this.retentionInDays;
+ }
+
+ /**
+ * 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 WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withRetentionInDays(Integer retentionInDays) {
+ this.retentionInDays = retentionInDays;
+ return this;
+ }
+
+ /**
+ * Get the workspaceCapping property: The daily volume cap for ingestion.
+ *
+ * @return the workspaceCapping value.
+ */
+ public WorkspaceCapping workspaceCapping() {
+ return this.workspaceCapping;
+ }
+
+ /**
+ * Set the workspaceCapping property: The daily volume cap for ingestion.
+ *
+ * @param workspaceCapping the workspaceCapping value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withWorkspaceCapping(WorkspaceCapping workspaceCapping) {
+ this.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.
+ *
+ * @return the publicNetworkAccessForIngestion value.
+ */
+ public PublicNetworkAccessType publicNetworkAccessForIngestion() {
+ return this.publicNetworkAccessForIngestion;
+ }
+
+ /**
+ * Set the publicNetworkAccessForIngestion property: The network access type for accessing Log Analytics ingestion.
+ *
+ * @param publicNetworkAccessForIngestion the publicNetworkAccessForIngestion value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withPublicNetworkAccessForIngestion(
+ PublicNetworkAccessType publicNetworkAccessForIngestion) {
+ this.publicNetworkAccessForIngestion = publicNetworkAccessForIngestion;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.
+ *
+ * @return the publicNetworkAccessForQuery value.
+ */
+ public PublicNetworkAccessType publicNetworkAccessForQuery() {
+ return this.publicNetworkAccessForQuery;
+ }
+
+ /**
+ * Set the publicNetworkAccessForQuery property: The network access type for accessing Log Analytics query.
+ *
+ * @param publicNetworkAccessForQuery the publicNetworkAccessForQuery value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withPublicNetworkAccessForQuery(PublicNetworkAccessType publicNetworkAccessForQuery) {
+ this.publicNetworkAccessForQuery = publicNetworkAccessForQuery;
+ 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 WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withForceCmkForQuery(Boolean forceCmkForQuery) {
+ this.forceCmkForQuery = forceCmkForQuery;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkScopedResources property: List of linked private link scope resources.
+ *
+ * @return the privateLinkScopedResources value.
+ */
+ public List privateLinkScopedResources() {
+ return this.privateLinkScopedResources;
+ }
+
+ /**
+ * Get the features property: Workspace features.
+ *
+ * @return the features value.
+ */
+ public WorkspaceFeatures features() {
+ return this.features;
+ }
+
+ /**
+ * Set the features property: Workspace features.
+ *
+ * @param features the features value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withFeatures(WorkspaceFeatures features) {
+ this.features = features;
+ return this;
+ }
+
+ /**
+ * Get the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use
+ * for this workspace. Expected format is -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
+ *
+ * @return the defaultDataCollectionRuleResourceId value.
+ */
+ public String defaultDataCollectionRuleResourceId() {
+ return this.defaultDataCollectionRuleResourceId;
+ }
+
+ /**
+ * Set the defaultDataCollectionRuleResourceId property: The resource ID of the default Data Collection Rule to use
+ * for this workspace. Expected format is -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
+ *
+ * @param defaultDataCollectionRuleResourceId the defaultDataCollectionRuleResourceId value to set.
+ * @return the WorkspaceProperties object itself.
+ */
+ public WorkspaceProperties withDefaultDataCollectionRuleResourceId(String defaultDataCollectionRuleResourceId) {
+ this.defaultDataCollectionRuleResourceId = defaultDataCollectionRuleResourceId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (workspaceCapping() != null) {
+ workspaceCapping().validate();
+ }
+ if (privateLinkScopedResources() != null) {
+ privateLinkScopedResources().forEach(e -> e.validate());
+ }
+ if (features() != null) {
+ features().validate();
+ }
+ }
+}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java
index 4e2c6552bc25..6da7d0706834 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java
@@ -6,14 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Response containing operationId for a specific purge action. */
@Fluent
public final class WorkspacePurgeResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacePurgeResponseInner.class);
-
/*
* Id to use when querying for status for a particular purge operation.
*/
@@ -47,10 +44,12 @@ public WorkspacePurgeResponseInner withOperationId(String operationId) {
*/
public void validate() {
if (operationId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property operationId in model WorkspacePurgeResponseInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(WorkspacePurgeResponseInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java
index f7890495f6e5..cb977373d861 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java
@@ -7,14 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.models.PurgeState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Response containing status for a specific purge operation. */
@Fluent
public final class WorkspacePurgeStatusResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacePurgeStatusResponseInner.class);
-
/*
* Status of the operation represented by the requested Id.
*/
@@ -48,10 +45,12 @@ public WorkspacePurgeStatusResponseInner withStatus(PurgeState status) {
*/
public void validate() {
if (status() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property status in model WorkspacePurgeStatusResponseInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(WorkspacePurgeStatusResponseInner.class);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java
index 57f13aa48eeb..198b411da98f 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
@@ -21,7 +21,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient;
import com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner;
import java.util.List;
@@ -29,8 +28,6 @@
/** An instance of this class provides access to all the operations defined in AvailableServiceTiersClient. */
public final class AvailableServiceTiersClientImpl implements AvailableServiceTiersClient {
- private final ClientLogger logger = new ClientLogger(AvailableServiceTiersClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AvailableServiceTiersService service;
@@ -80,7 +77,8 @@ Mono>> listByWorkspace(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> listByWorkspaceWithResponseAsync(
@@ -104,6 +102,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 +113,7 @@ private Mono>> listByWorkspaceWithRespo
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -129,7 +128,8 @@ private Mono>> listByWorkspaceWithRespo
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> listByWorkspaceWithResponseAsync(
@@ -153,6 +153,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 +162,7 @@ private Mono>> listByWorkspaceWithRespo
this.client.getSubscriptionId(),
resourceGroupName,
workspaceName,
- this.client.getApiVersion(),
+ apiVersion,
accept,
context);
}
@@ -174,7 +175,7 @@ private Mono>> listByWorkspaceWithRespo
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByWorkspaceAsync(String resourceGroupName, String workspaceName) {
@@ -213,7 +214,7 @@ public List listByWorkspace(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response> listByWorkspaceWithResponse(
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java
index 6366cf421e15..42572aaa7e5f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java
@@ -12,13 +12,12 @@
import com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner;
import com.azure.resourcemanager.loganalytics.models.AvailableServiceTier;
import com.azure.resourcemanager.loganalytics.models.AvailableServiceTiers;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public final class AvailableServiceTiersImpl implements AvailableServiceTiers {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableServiceTiersImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AvailableServiceTiersImpl.class);
private final AvailableServiceTiersClient innerClient;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
index fdb30b089399..4257dfae682d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
@@ -7,6 +7,9 @@
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner;
+import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace;
+import com.azure.resourcemanager.loganalytics.models.BillingType;
+import com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties;
import com.azure.resourcemanager.loganalytics.models.Cluster;
import com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus;
import com.azure.resourcemanager.loganalytics.models.ClusterPatch;
@@ -14,6 +17,7 @@
import com.azure.resourcemanager.loganalytics.models.Identity;
import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update {
@@ -54,10 +58,6 @@ public ClusterSku sku() {
return this.innerModel().sku();
}
- public String nextLink() {
- return this.innerModel().nextLink();
- }
-
public String clusterId() {
return this.innerModel().clusterId();
}
@@ -66,10 +66,43 @@ public ClusterEntityStatus provisioningState() {
return this.innerModel().provisioningState();
}
+ public Boolean isDoubleEncryptionEnabled() {
+ return this.innerModel().isDoubleEncryptionEnabled();
+ }
+
+ public Boolean isAvailabilityZonesEnabled() {
+ return this.innerModel().isAvailabilityZonesEnabled();
+ }
+
+ public BillingType billingType() {
+ return this.innerModel().billingType();
+ }
+
public KeyVaultProperties keyVaultProperties() {
return this.innerModel().keyVaultProperties();
}
+ public String lastModifiedDate() {
+ return this.innerModel().lastModifiedDate();
+ }
+
+ public String createdDate() {
+ return this.innerModel().createdDate();
+ }
+
+ public List associatedWorkspaces() {
+ List inner = this.innerModel().associatedWorkspaces();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CapacityReservationProperties capacityReservationProperties() {
+ return this.innerModel().capacityReservationProperties();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -131,8 +164,7 @@ public Cluster apply() {
serviceManager
.serviceClient()
.getClusters()
- .updateWithResponse(resourceGroupName, clusterName, updateParameters, Context.NONE)
- .getValue();
+ .update(resourceGroupName, clusterName, updateParameters, Context.NONE);
return this;
}
@@ -141,8 +173,7 @@ public Cluster apply(Context context) {
serviceManager
.serviceClient()
.getClusters()
- .updateWithResponse(resourceGroupName, clusterName, updateParameters, context)
- .getValue();
+ .update(resourceGroupName, clusterName, updateParameters, context);
return this;
}
@@ -194,8 +225,13 @@ public ClusterImpl withTags(Map tags) {
}
public ClusterImpl withIdentity(Identity identity) {
- this.innerModel().withIdentity(identity);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ } else {
+ this.updateParameters.withIdentity(identity);
+ return this;
+ }
}
public ClusterImpl withSku(ClusterSku sku) {
@@ -208,11 +244,26 @@ public ClusterImpl withSku(ClusterSku sku) {
}
}
- public ClusterImpl withNextLink(String nextLink) {
- this.innerModel().withNextLink(nextLink);
+ public ClusterImpl withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) {
+ this.innerModel().withIsDoubleEncryptionEnabled(isDoubleEncryptionEnabled);
return this;
}
+ public ClusterImpl withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) {
+ this.innerModel().withIsAvailabilityZonesEnabled(isAvailabilityZonesEnabled);
+ return this;
+ }
+
+ public ClusterImpl withBillingType(BillingType billingType) {
+ if (isInCreateMode()) {
+ this.innerModel().withBillingType(billingType);
+ return this;
+ } else {
+ this.updateParameters.withBillingType(billingType);
+ return this;
+ }
+ }
+
public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties) {
if (isInCreateMode()) {
this.innerModel().withKeyVaultProperties(keyVaultProperties);
@@ -223,6 +274,16 @@ public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties)
}
}
+ public ClusterImpl withAssociatedWorkspaces(List associatedWorkspaces) {
+ this.innerModel().withAssociatedWorkspaces(associatedWorkspaces);
+ return this;
+ }
+
+ public ClusterImpl withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties) {
+ this.innerModel().withCapacityReservationProperties(capacityReservationProperties);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java
index d9baac701372..0843137d4f8b 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
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.loganalytics.fluent.ClustersClient;
@@ -43,8 +42,6 @@
/** An instance of this class provides access to all the operations defined in ClustersClient. */
public final class ClustersClientImpl implements ClustersClient {
- private final ClientLogger logger = new ClientLogger(ClustersClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ClustersService service;
@@ -113,7 +110,7 @@ Mono>> createOrUpdate(
@Delete(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
+ "/clusters/{clusterName}")
- @ExpectedResponses({200, 204})
+ @ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@HostParam("$host") String endpoint,
@@ -145,7 +142,7 @@ Mono> getByResourceGroup(
+ "/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
+ Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("clusterName") String clusterName,
@@ -183,7 +180,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group.
+ * @return log Analytics clusters in a resource group along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -203,6 +201,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ final String apiVersion = "2021-06-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -211,7 +210,7 @@ private Mono