storageAccountIds;
+ /** Creates an instance of LinkedStorageAccountsProperties class. */
+ public LinkedStorageAccountsProperties() {
+ }
+
/**
* Get the dataSourceType property: Linked storage accounts type.
*
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 555598d1846f..ce18fc699452 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
@@ -20,6 +20,10 @@ public final class LinkedStorageAccountsResourceInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private LinkedStorageAccountsProperties innerProperties = new LinkedStorageAccountsProperties();
+ /** Creates an instance of LinkedStorageAccountsResourceInner class. */
+ public LinkedStorageAccountsResourceInner() {
+ }
+
/**
* Get the innerProperties property: Linked storage accounts properties.
*
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
index 7d670653ab79..e111cbbedc2e 100644
--- 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
@@ -20,6 +20,10 @@ public final class LogAnalyticsQueryPackInner extends QueryPacksResource {
@JsonProperty(value = "properties", required = true)
private LogAnalyticsQueryPackProperties innerProperties = new LogAnalyticsQueryPackProperties();
+ /** Creates an instance of LogAnalyticsQueryPackInner class. */
+ public LogAnalyticsQueryPackInner() {
+ }
+
/**
* Get the innerProperties property: Properties that define a Log Analytics QueryPack resource.
*
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
index d569862c247e..b89381493b02 100644
--- 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
@@ -30,14 +30,17 @@ public final class LogAnalyticsQueryPackProperties {
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.
+ * 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;
+ /** Creates an instance of LogAnalyticsQueryPackProperties class. */
+ public LogAnalyticsQueryPackProperties() {
+ }
+
/**
* Get the queryPackId property: The unique ID of your application. This field cannot be changed.
*
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
index 74711b47452f..08b281fdfc99 100644
--- 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
@@ -21,6 +21,10 @@ public final class LogAnalyticsQueryPackQueryInner extends AzureResourceProperti
@JsonProperty(value = "properties")
private LogAnalyticsQueryPackQueryProperties innerProperties;
+ /** Creates an instance of LogAnalyticsQueryPackQueryInner class. */
+ public LogAnalyticsQueryPackQueryInner() {
+ }
+
/**
* Get the innerProperties property: Properties that define an Log Analytics QueryPack-Query resource.
*
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
index 97579626b26d..23713b8245b9 100644
--- 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
@@ -77,6 +77,10 @@ public final class LogAnalyticsQueryPackQueryProperties {
@JsonProperty(value = "properties")
private Object properties;
+ /** Creates an instance of LogAnalyticsQueryPackQueryProperties class. */
+ public LogAnalyticsQueryPackQueryProperties() {
+ }
+
/**
* Get the id property: The unique ID of your application. This field cannot be changed.
*
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 6817f85dbcd3..88c9e777a53d 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
@@ -17,6 +17,10 @@ public final class ManagementGroupInner {
@JsonProperty(value = "properties")
private ManagementGroupProperties innerProperties;
+ /** Creates an instance of ManagementGroupInner class. */
+ public ManagementGroupInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the management group.
*
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
index f9f02fa9fa50..566b9feb29c1 100644
--- 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
@@ -18,8 +18,7 @@ public final class ManagementGroupProperties {
private Integer serverCount;
/*
- * Gets or sets a value indicating whether the management group is a
- * gateway.
+ * Gets or sets a value indicating whether the management group is a gateway.
*/
@JsonProperty(value = "isGateway")
private Boolean isGateway;
@@ -60,6 +59,10 @@ public final class ManagementGroupProperties {
@JsonProperty(value = "sku")
private String sku;
+ /** Creates an instance of ManagementGroupProperties class. */
+ public ManagementGroupProperties() {
+ }
+
/**
* Get the serverCount property: The number of servers connected to the management group.
*
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 2a2c31edd633..659a335a92b5 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
@@ -23,6 +23,10 @@ public final class OperationInner {
@JsonProperty(value = "display")
private OperationDisplay display;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: 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 191eee031c03..e159ebd4d5f0 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
@@ -42,11 +42,17 @@ public final class OperationStatusInner {
private String status;
/*
- * Error response The error detail of the operation if any.
+ * Error response
+ *
+ * The error detail of the operation if any.
*/
@JsonProperty(value = "error")
private ManagementError error;
+ /** Creates an instance of OperationStatusInner class. */
+ public OperationStatusInner() {
+ }
+
/**
* Get the id property: The operation Id.
*
@@ -148,7 +154,9 @@ public OperationStatusInner withStatus(String status) {
}
/**
- * Get the error property: Error response 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.
*/
@@ -157,7 +165,9 @@ public ManagementError error() {
}
/**
- * Set the error property: Error response 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 3a6bd818875c..c9aa876c5556 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
@@ -15,8 +15,7 @@
@Fluent
public final class SavedSearchInner extends ProxyResource {
/*
- * The ETag of the saved search. To override an existing saved search, use
- * "*" or specify the current Etag
+ * The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag
*/
@JsonProperty(value = "etag")
private String etag;
@@ -27,6 +26,10 @@ public final class SavedSearchInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private SavedSearchProperties innerProperties = new SavedSearchProperties();
+ /** Creates an instance of SavedSearchInner class. */
+ public SavedSearchInner() {
+ }
+
/**
* Get the etag property: The ETag of the saved search. To override an existing saved search, use "*" or specify the
* current Etag.
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
index 5bf7644a8ee6..f9afdfa34b8c 100644
--- 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
@@ -14,8 +14,7 @@
@Fluent
public final class SavedSearchProperties {
/*
- * The category of the saved search. This helps the user to find a saved
- * search faster.
+ * The category of the saved search. This helps the user to find a saved search faster.
*/
@JsonProperty(value = "category", required = true)
private String category;
@@ -39,18 +38,15 @@ public final class SavedSearchProperties {
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.
+ * 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.
+ * The version number of the query language. The current version is 2 and is the default.
*/
@JsonProperty(value = "version")
private Long version;
@@ -61,6 +57,10 @@ public final class SavedSearchProperties {
@JsonProperty(value = "tags")
private List tags;
+ /** Creates an instance of SavedSearchProperties class. */
+ public SavedSearchProperties() {
+ }
+
/**
* Get the category property: The category of the saved search. This helps the user to find a saved search faster.
*
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 32adb847cef1..a8106ffc56dc 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
@@ -17,6 +17,10 @@ public final class SavedSearchesListResultInner {
@JsonProperty(value = "value")
private List value;
+ /** Creates an instance of SavedSearchesListResultInner class. */
+ public SavedSearchesListResultInner() {
+ }
+
/**
* Get the value property: 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 7f4a2de48647..a40804920c04 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
@@ -25,6 +25,10 @@ public final class SearchGetSchemaResponseInner {
@JsonProperty(value = "value")
private List value;
+ /** Creates an instance of SearchGetSchemaResponseInner class. */
+ public SearchGetSchemaResponseInner() {
+ }
+
/**
* Get the metadata property: 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 8409043f1466..90428991ddbd 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
@@ -22,6 +22,10 @@ public final class SharedKeysInner {
@JsonProperty(value = "secondarySharedKey")
private String secondarySharedKey;
+ /** Creates an instance of SharedKeysInner class. */
+ public SharedKeysInner() {
+ }
+
/**
* Get the primarySharedKey property: 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 ff67299ddb48..ad515cd47604 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
@@ -35,6 +35,10 @@ public final class StorageInsightInner extends ProxyResource {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
+ /** Creates an instance of StorageInsightInner class. */
+ public StorageInsightInner() {
+ }
+
/**
* Get the innerProperties property: Storage insight properties.
*
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
index f3cf405b44c8..45bc7652ec79 100644
--- 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
@@ -38,6 +38,10 @@ public final class StorageInsightProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private StorageInsightStatus status;
+ /** Creates an instance of StorageInsightProperties class. */
+ public StorageInsightProperties() {
+ }
+
/**
* Get the containers property: The names of the blob containers that the workspace should read.
*
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 c45415a51ff6..9823036cc0bc 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
@@ -30,6 +30,10 @@ public final class TableInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemDataAutoGenerated systemData;
+ /** Creates an instance of TableInner class. */
+ public TableInner() {
+ }
+
/**
* Get the innerProperties property: Table's properties.
*
@@ -163,20 +167,6 @@ 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.
*
@@ -243,6 +233,26 @@ public ProvisioningStateEnum provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the retentionInDaysAsDefault property: True - Value originates from workspace retention in days, False -
+ * Customer specific.
+ *
+ * @return the retentionInDaysAsDefault value.
+ */
+ public Boolean retentionInDaysAsDefault() {
+ return this.innerProperties() == null ? null : this.innerProperties().retentionInDaysAsDefault();
+ }
+
+ /**
+ * Get the totalRetentionInDaysAsDefault property: True - Value originates from retention in days, False - Customer
+ * specific.
+ *
+ * @return the totalRetentionInDaysAsDefault value.
+ */
+ public Boolean totalRetentionInDaysAsDefault() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalRetentionInDaysAsDefault();
+ }
+
/**
* Validates the instance.
*
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
index cae44b73dc3d..c8d185b75df6 100644
--- 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
@@ -17,22 +17,21 @@
@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.
+ * 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.
+ * 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)
+ * The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
*/
@JsonProperty(value = "archiveRetentionInDays", access = JsonProperty.Access.WRITE_ONLY)
private Integer archiveRetentionInDays;
@@ -52,12 +51,11 @@ public final class TableProperties {
/*
* Search job execution statistics.
*/
- @JsonProperty(value = "resultStatistics")
+ @JsonProperty(value = "resultStatistics", access = JsonProperty.Access.WRITE_ONLY)
private ResultStatistics resultStatistics;
/*
- * Instruct the system how to handle and charge the logs ingested to this
- * table.
+ * Instruct the system how to handle and charge the logs ingested to this table.
*/
@JsonProperty(value = "plan")
private TablePlanEnum plan;
@@ -75,13 +73,28 @@ public final class TableProperties {
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.
+ * 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;
+ /*
+ * True - Value originates from workspace retention in days, False - Customer specific.
+ */
+ @JsonProperty(value = "retentionInDaysAsDefault", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean retentionInDaysAsDefault;
+
+ /*
+ * True - Value originates from retention in days, False - Customer specific.
+ */
+ @JsonProperty(value = "totalRetentionInDaysAsDefault", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean totalRetentionInDaysAsDefault;
+
+ /** Creates an instance of TableProperties class. */
+ public TableProperties() {
+ }
+
/**
* Get the retentionInDays property: The table retention in days, between 4 and 730. Setting this property to -1
* will default to the workspace retention.
@@ -185,17 +198,6 @@ 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.
*
@@ -256,6 +258,26 @@ public ProvisioningStateEnum provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the retentionInDaysAsDefault property: True - Value originates from workspace retention in days, False -
+ * Customer specific.
+ *
+ * @return the retentionInDaysAsDefault value.
+ */
+ public Boolean retentionInDaysAsDefault() {
+ return this.retentionInDaysAsDefault;
+ }
+
+ /**
+ * Get the totalRetentionInDaysAsDefault property: True - Value originates from retention in days, False - Customer
+ * specific.
+ *
+ * @return the totalRetentionInDaysAsDefault value.
+ */
+ public Boolean totalRetentionInDaysAsDefault() {
+ return this.totalRetentionInDaysAsDefault;
+ }
+
/**
* Validates the instance.
*
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 2eaa34c2b61c..297cc0e91859 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
@@ -43,12 +43,15 @@ public final class UsageMetricInner {
private OffsetDateTime nextResetTime;
/*
- * The quota period that determines the length of time between value
- * resets.
+ * The quota period that determines the length of time between value resets.
*/
@JsonProperty(value = "quotaPeriod")
private String quotaPeriod;
+ /** Creates an instance of UsageMetricInner class. */
+ public UsageMetricInner() {
+ }
+
/**
* Get the name property: 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 67b245e380ca..596df080d4e0 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
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.resourcemanager.loganalytics.models.Identity;
import com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource;
import com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType;
import com.azure.resourcemanager.loganalytics.models.SystemDataAutoGenerated;
@@ -26,6 +27,12 @@ public final class WorkspaceInner extends Resource {
@JsonProperty(value = "properties")
private WorkspaceProperties innerProperties;
+ /*
+ * The identity of the resource.
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -33,11 +40,15 @@ public final class WorkspaceInner extends Resource {
private SystemDataAutoGenerated systemData;
/*
- * The ETag of the workspace.
+ * The etag of the workspace.
*/
- @JsonProperty(value = "eTag")
+ @JsonProperty(value = "etag")
private String etag;
+ /** Creates an instance of WorkspaceInner class. */
+ public WorkspaceInner() {
+ }
+
/**
* Get the innerProperties property: Workspace properties.
*
@@ -47,6 +58,26 @@ private WorkspaceProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -57,7 +88,7 @@ public SystemDataAutoGenerated systemData() {
}
/**
- * Get the etag property: The ETag of the workspace.
+ * Get the etag property: The etag of the workspace.
*
* @return the etag value.
*/
@@ -66,7 +97,7 @@ public String etag() {
}
/**
- * Set the etag property: The ETag of the workspace.
+ * Set the etag property: The etag of the workspace.
*
* @param etag the etag value to set.
* @return the WorkspaceInner object itself.
@@ -334,6 +365,9 @@ public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
+ if (identity() != null) {
+ identity().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
index 6891c10c0cc8..74b976aa3078 100644
--- 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
@@ -24,8 +24,7 @@ public final class WorkspaceProperties {
private WorkspaceEntityStatus provisioningState;
/*
- * This is a read-only property. Represents the ID associated with the
- * workspace.
+ * This is a read-only property. Represents the ID associated with the workspace.
*/
@JsonProperty(value = "customerId", access = JsonProperty.Access.WRITE_ONLY)
private String customerId;
@@ -37,8 +36,8 @@ public final class WorkspaceProperties {
private WorkspaceSku sku;
/*
- * The workspace data retention in days. Allowed values are per pricing
- * plan. See pricing tiers documentation for details.
+ * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for
+ * details.
*/
@JsonProperty(value = "retentionInDays")
private Integer retentionInDays;
@@ -74,8 +73,7 @@ public final class WorkspaceProperties {
private PublicNetworkAccessType publicNetworkAccessForQuery;
/*
- * Indicates whether customer managed storage is mandatory for query
- * management.
+ * Indicates whether customer managed storage is mandatory for query management.
*/
@JsonProperty(value = "forceCmkForQuery")
private Boolean forceCmkForQuery;
@@ -93,13 +91,16 @@ public final class WorkspaceProperties {
private WorkspaceFeatures features;
/*
- * The resource ID of the default Data Collection Rule to use for this
- * workspace. Expected format is -
+ * 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;
+ /** Creates an instance of WorkspaceProperties class. */
+ public WorkspaceProperties() {
+ }
+
/**
* Get the provisioningState property: The provisioning state of the workspace.
*
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 6da7d0706834..8fb347367da9 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
@@ -17,6 +17,10 @@ public final class WorkspacePurgeResponseInner {
@JsonProperty(value = "operationId", required = true)
private String operationId;
+ /** Creates an instance of WorkspacePurgeResponseInner class. */
+ public WorkspacePurgeResponseInner() {
+ }
+
/**
* Get the operationId property: Id to use when querying for status for a particular purge operation.
*
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 cb977373d861..a12fa03a5037 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
@@ -18,6 +18,10 @@ public final class WorkspacePurgeStatusResponseInner {
@JsonProperty(value = "status", required = true)
private PurgeState status;
+ /** Creates an instance of WorkspacePurgeStatusResponseInner class. */
+ public WorkspacePurgeStatusResponseInner() {
+ }
+
/**
* Get the status property: Status of the operation represented by the requested Id.
*
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 c90b10a29682..32c3b4c2e847 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
@@ -52,11 +52,10 @@ public final class AvailableServiceTiersClientImpl implements AvailableServiceTi
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface AvailableServiceTiersService {
+ public interface AvailableServiceTiersService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/availableServiceTiers")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> listByWorkspace(
@@ -188,14 +187,16 @@ private Mono> listByWorkspaceAsync(String resour
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace.
+ * @return the available service tiers for the workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public List listByWorkspace(String resourceGroupName, String workspaceName) {
- return listByWorkspaceAsync(resourceGroupName, workspaceName).block();
+ public Response> listByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, Context context) {
+ return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block();
}
/**
@@ -203,15 +204,13 @@ public List listByWorkspace(String resourceGroupName,
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available service tiers for the workspace along with {@link Response}.
+ * @return the available service tiers for the workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response> listByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, Context context) {
- return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block();
+ public List listByWorkspace(String resourceGroupName, String workspaceName) {
+ return listByWorkspaceWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue();
}
}
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 42572aaa7e5f..f8de2dfa0472 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
@@ -30,20 +30,6 @@ public AvailableServiceTiersImpl(
this.serviceManager = serviceManager;
}
- public List listByWorkspace(String resourceGroupName, String workspaceName) {
- List inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new AvailableServiceTierImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
- }
-
public Response> listByWorkspaceWithResponse(
String resourceGroupName, String workspaceName, Context context) {
Response> inner =
@@ -63,6 +49,20 @@ public Response> listByWorkspaceWithResponse(
}
}
+ public List listByWorkspace(String resourceGroupName, String workspaceName) {
+ List inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new AvailableServiceTierImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
private AvailableServiceTiersClient serviceClient() {
return this.innerClient;
}
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 3c1b58fdce40..9fa195c78795 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
@@ -64,11 +64,10 @@ public final class ClustersClientImpl implements ClustersClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface ClustersService {
+ public interface ClustersService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/clusters")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -92,8 +91,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -108,8 +106,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -123,8 +120,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@@ -138,8 +134,7 @@ Mono> getByResourceGroup(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/clusters/{clusterName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@@ -646,7 +641,7 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
}
/**
@@ -664,7 +659,7 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
+ return this.beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
}
/**
@@ -887,7 +882,7 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) {
- return beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller();
}
/**
@@ -904,7 +899,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String clusterName, Context context) {
- return beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller();
}
/**
@@ -1086,14 +1081,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics cluster instance.
+ * @return a Log Analytics cluster instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
- return getByResourceGroupAsync(resourceGroupName, clusterName).block();
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String clusterName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName, context).block();
}
/**
@@ -1101,16 +1098,14 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics cluster instance along with {@link Response}.
+ * @return a Log Analytics cluster instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String clusterName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName, context).block();
+ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue();
}
/**
@@ -1284,7 +1279,7 @@ private PollerFlux, ClusterInner> beginUpdateAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterPatch parameters) {
- return beginUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, clusterName, parameters).getSyncPoller();
}
/**
@@ -1302,7 +1297,7 @@ public SyncPoller, ClusterInner> beginUpdate(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterPatch parameters, Context context) {
- return beginUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, clusterName, parameters, context).getSyncPoller();
}
/**
@@ -1379,7 +1374,8 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1416,7 +1412,8 @@ private Mono> listByResourceGroupNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1453,7 +1450,8 @@ private Mono> listByResourceGroupNextSinglePageAsync
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1489,7 +1487,8 @@ private Mono> listNextSinglePageAsync(String nextLin
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
index 5ff0cdf56838..58a8394c06f9 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java
@@ -55,15 +55,6 @@ public void delete(String resourceGroupName, String clusterName, Context context
this.serviceClient().delete(resourceGroupName, clusterName, context);
}
- public Cluster getByResourceGroup(String resourceGroupName, String clusterName) {
- ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName);
- if (inner != null) {
- return new ClusterImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context) {
Response inner =
@@ -79,6 +70,15 @@ public Response getByResourceGroupWithResponse(
}
}
+ public Cluster getByResourceGroup(String resourceGroupName, String clusterName) {
+ ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName);
+ if (inner != null) {
+ return new ClusterImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Cluster getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
if (resourceGroupName == null) {
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
index be43d7ff9cc1..2205346d4c07 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java
@@ -58,11 +58,10 @@ public final class DataExportsClientImpl implements DataExportsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface DataExportsService {
+ public interface DataExportsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataExports")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByWorkspace(
@@ -76,8 +75,7 @@ Mono> listByWorkspace(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataExports/{dataExportName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
@@ -93,8 +91,7 @@ Mono> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataExports/{dataExportName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -109,8 +106,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataExports/{dataExportName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}")
@ExpectedResponses({200, 404})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -446,15 +442,21 @@ private Mono createOrUpdateAsync(
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
* @param parameters The parameters required to create or update a data export.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level data export resource container.
+ * @return the top level data export resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataExportInner createOrUpdate(
- String resourceGroupName, String workspaceName, String dataExportName, DataExportInner parameters) {
- return createOrUpdateAsync(resourceGroupName, workspaceName, dataExportName, parameters).block();
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String dataExportName,
+ DataExportInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataExportName, parameters, context)
+ .block();
}
/**
@@ -464,21 +466,16 @@ public DataExportInner createOrUpdate(
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
* @param parameters The parameters required to create or update a data export.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level data export resource container along with {@link Response}.
+ * @return the top level data export resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String workspaceName,
- String dataExportName,
- DataExportInner parameters,
- Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataExportName, parameters, context)
- .block();
+ public DataExportInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String dataExportName, DataExportInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataExportName, parameters, Context.NONE)
+ .getValue();
}
/**
@@ -610,14 +607,16 @@ private Mono getAsync(String resourceGroupName, String workspac
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a data export instance.
+ * @return a data export instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName) {
- return getAsync(resourceGroupName, workspaceName, dataExportName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String dataExportName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, dataExportName, context).block();
}
/**
@@ -626,16 +625,14 @@ public DataExportInner get(String resourceGroupName, String workspaceName, Strin
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a data export instance along with {@link Response}.
+ * @return a data export instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String dataExportName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, dataExportName, context).block();
+ public DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName) {
+ return getWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE).getValue();
}
/**
@@ -767,13 +764,16 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String workspaceName, String dataExportName) {
- deleteAsync(resourceGroupName, workspaceName, dataExportName).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String dataExportName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, dataExportName, context).block();
}
/**
@@ -782,15 +782,12 @@ public void delete(String resourceGroupName, String workspaceName, String dataEx
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String dataExportName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, workspaceName, dataExportName, context).block();
+ public void delete(String resourceGroupName, String workspaceName, String dataExportName) {
+ deleteWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE);
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
index 4dd71cdbc75e..a74341381016 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java
@@ -38,15 +38,6 @@ public PagedIterable listByWorkspace(String resourceGroupName, Strin
return Utils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager()));
}
- public DataExport get(String resourceGroupName, String workspaceName, String dataExportName) {
- DataExportInner inner = this.serviceClient().get(resourceGroupName, workspaceName, dataExportName);
- if (inner != null) {
- return new DataExportImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String workspaceName, String dataExportName, Context context) {
Response inner =
@@ -62,8 +53,13 @@ public Response getWithResponse(
}
}
- public void delete(String resourceGroupName, String workspaceName, String dataExportName) {
- this.serviceClient().delete(resourceGroupName, workspaceName, dataExportName);
+ public DataExport get(String resourceGroupName, String workspaceName, String dataExportName) {
+ DataExportInner inner = this.serviceClient().get(resourceGroupName, workspaceName, dataExportName);
+ if (inner != null) {
+ return new DataExportImpl(inner, this.manager());
+ } else {
+ return null;
+ }
}
public Response deleteWithResponse(
@@ -71,6 +67,10 @@ public Response deleteWithResponse(
return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataExportName, context);
}
+ public void delete(String resourceGroupName, String workspaceName, String dataExportName) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, dataExportName);
+ }
+
public DataExport getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourcegroups");
if (resourceGroupName == null) {
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
index bfa155ced4b8..a87c2d4fa8c7 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java
@@ -58,11 +58,10 @@ public final class DataSourcesClientImpl implements DataSourcesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface DataSourcesService {
+ public interface DataSourcesService {
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataSources/{dataSourceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
@@ -78,8 +77,7 @@ Mono> createOrUpdate(
@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataSources/{dataSourceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -93,8 +91,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataSources/{dataSourceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -109,8 +106,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/dataSources")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByWorkspace(
@@ -285,15 +281,21 @@ private Mono createOrUpdateAsync(
* @param workspaceName The name of the workspace.
* @param dataSourceName The name of the datasource resource.
* @param parameters The parameters required to create or update a datasource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return datasources under OMS Workspace.
+ * @return datasources under OMS Workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataSourceInner createOrUpdate(
- String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters) {
- return createOrUpdateAsync(resourceGroupName, workspaceName, dataSourceName, parameters).block();
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String workspaceName,
+ String dataSourceName,
+ DataSourceInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, parameters, context)
+ .block();
}
/**
@@ -303,21 +305,16 @@ public DataSourceInner createOrUpdate(
* @param workspaceName The name of the workspace.
* @param dataSourceName The name of the datasource resource.
* @param parameters The parameters required to create or update a datasource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return datasources under OMS Workspace along with {@link Response}.
+ * @return datasources under OMS Workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String workspaceName,
- String dataSourceName,
- DataSourceInner parameters,
- Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, parameters, context)
- .block();
+ public DataSourceInner createOrUpdate(
+ String resourceGroupName, String workspaceName, String dataSourceName, DataSourceInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceName, parameters, Context.NONE)
+ .getValue();
}
/**
@@ -445,13 +442,16 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String workspaceName, String dataSourceName) {
- deleteAsync(resourceGroupName, workspaceName, dataSourceName).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String dataSourceName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, context).block();
}
/**
@@ -460,16 +460,13 @@ public void delete(String resourceGroupName, String workspaceName, String dataSo
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String dataSourceName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, context).block();
+ public void delete(String resourceGroupName, String workspaceName, String dataSourceName) {
+ deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE);
}
/**
@@ -601,14 +598,16 @@ private Mono getAsync(String resourceGroupName, String workspac
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a datasource instance.
+ * @return a datasource instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName) {
- return getAsync(resourceGroupName, workspaceName, dataSourceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String dataSourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, context).block();
}
/**
@@ -617,16 +616,14 @@ public DataSourceInner get(String resourceGroupName, String workspaceName, Strin
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a datasource instance along with {@link Response}.
+ * @return a datasource instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String dataSourceName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, context).block();
+ public DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName) {
+ return getWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE).getValue();
}
/**
@@ -865,7 +862,8 @@ public PagedIterable listByWorkspace(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -901,7 +899,8 @@ private Mono> listByWorkspaceNextSinglePageAsync(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
index 35598f6b96fd..b7f253e931fc 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java
@@ -27,22 +27,13 @@ public DataSourcesImpl(
this.serviceManager = serviceManager;
}
- public void delete(String resourceGroupName, String workspaceName, String dataSourceName) {
- this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceName);
- }
-
public Response deleteWithResponse(
String resourceGroupName, String workspaceName, String dataSourceName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, context);
}
- public DataSource get(String resourceGroupName, String workspaceName, String dataSourceName) {
- DataSourceInner inner = this.serviceClient().get(resourceGroupName, workspaceName, dataSourceName);
- if (inner != null) {
- return new DataSourceImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void delete(String resourceGroupName, String workspaceName, String dataSourceName) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceName);
}
public Response getWithResponse(
@@ -60,6 +51,15 @@ public Response getWithResponse(
}
}
+ public DataSource get(String resourceGroupName, String workspaceName, String dataSourceName) {
+ DataSourceInner inner = this.serviceClient().get(resourceGroupName, workspaceName, dataSourceName);
+ if (inner != null) {
+ return new DataSourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, String filter) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, filter);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
index 173adfd4c54a..012fcfd3fea5 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java
@@ -55,7 +55,7 @@ public final class DeletedWorkspacesClientImpl implements DeletedWorkspacesClien
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface DeletedWorkspacesService {
+ public interface DeletedWorkspacesService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces")
@ExpectedResponses({200})
@@ -69,8 +69,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/deletedWorkspaces")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -104,7 +103,7 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2021-12-01-preview";
+ final String apiVersion = "2022-10-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -142,7 +141,7 @@ private Mono> listSinglePageAsync(Context context)
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2021-12-01-preview";
+ final String apiVersion = "2022-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -237,7 +236,7 @@ private Mono> listByResourceGroupSinglePageAsync(S
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2021-12-01-preview";
+ final String apiVersion = "2022-10-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -287,7 +286,7 @@ private Mono> listByResourceGroupSinglePageAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2021-12-01-preview";
+ final String apiVersion = "2022-10-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
index c6840162bcb7..fca41a651966 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java
@@ -47,11 +47,10 @@ public final class GatewaysClientImpl implements GatewaysClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface GatewaysService {
+ public interface GatewaysService {
@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/gateways/{gatewayId}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -188,13 +187,16 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param gatewayId The Log Analytics gateway Id.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String workspaceName, String gatewayId) {
- deleteAsync(resourceGroupName, workspaceName, gatewayId).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, String gatewayId, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, gatewayId, context).block();
}
/**
@@ -203,15 +205,12 @@ public void delete(String resourceGroupName, String workspaceName, String gatewa
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param gatewayId The Log Analytics gateway Id.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String gatewayId, Context context) {
- return deleteWithResponseAsync(resourceGroupName, workspaceName, gatewayId, context).block();
+ public void delete(String resourceGroupName, String workspaceName, String gatewayId) {
+ deleteWithResponse(resourceGroupName, workspaceName, gatewayId, Context.NONE);
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java
index 3c553b69f09a..523987cbc6ec 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java
@@ -23,15 +23,15 @@ public GatewaysImpl(
this.serviceManager = serviceManager;
}
- public void delete(String resourceGroupName, String workspaceName, String gatewayId) {
- this.serviceClient().delete(resourceGroupName, workspaceName, gatewayId);
- }
-
public Response deleteWithResponse(
String resourceGroupName, String workspaceName, String gatewayId, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, gatewayId, context);
}
+ public void delete(String resourceGroupName, String workspaceName, String gatewayId) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, gatewayId);
+ }
+
private GatewaysClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
index 457ff0f3d307..aa16719efab2 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java
@@ -52,11 +52,10 @@ public final class IntelligencePacksClientImpl implements IntelligencePacksClien
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface IntelligencePacksService {
+ public interface IntelligencePacksService {
@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> disable(
@@ -70,8 +69,7 @@ Mono> disable(
@Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
@Post(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> enable(
@@ -85,8 +83,7 @@ Mono> enable(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/intelligencePacks")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> list(
@@ -226,13 +223,16 @@ private Mono disableAsync(String resourceGroupName, String workspaceName,
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param intelligencePackName The name of the intelligence pack to be disabled.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void disable(String resourceGroupName, String workspaceName, String intelligencePackName) {
- disableAsync(resourceGroupName, workspaceName, intelligencePackName).block();
+ public Response disableWithResponse(
+ String resourceGroupName, String workspaceName, String intelligencePackName, Context context) {
+ return disableWithResponseAsync(resourceGroupName, workspaceName, intelligencePackName, context).block();
}
/**
@@ -241,16 +241,13 @@ public void disable(String resourceGroupName, String workspaceName, String intel
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param intelligencePackName The name of the intelligence pack to be disabled.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response disableWithResponse(
- String resourceGroupName, String workspaceName, String intelligencePackName, Context context) {
- return disableWithResponseAsync(resourceGroupName, workspaceName, intelligencePackName, context).block();
+ public void disable(String resourceGroupName, String workspaceName, String intelligencePackName) {
+ disableWithResponse(resourceGroupName, workspaceName, intelligencePackName, Context.NONE);
}
/**
@@ -380,13 +377,16 @@ private Mono enableAsync(String resourceGroupName, String workspaceName, S
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param intelligencePackName The name of the intelligence pack to be enabled.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void enable(String resourceGroupName, String workspaceName, String intelligencePackName) {
- enableAsync(resourceGroupName, workspaceName, intelligencePackName).block();
+ public Response enableWithResponse(
+ String resourceGroupName, String workspaceName, String intelligencePackName, Context context) {
+ return enableWithResponseAsync(resourceGroupName, workspaceName, intelligencePackName, context).block();
}
/**
@@ -395,16 +395,13 @@ public void enable(String resourceGroupName, String workspaceName, String intell
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param intelligencePackName The name of the intelligence pack to be enabled.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response enableWithResponse(
- String resourceGroupName, String workspaceName, String intelligencePackName, Context context) {
- return enableWithResponseAsync(resourceGroupName, workspaceName, intelligencePackName, context).block();
+ public void enable(String resourceGroupName, String workspaceName, String intelligencePackName) {
+ enableWithResponse(resourceGroupName, workspaceName, intelligencePackName, Context.NONE);
}
/**
@@ -523,14 +520,16 @@ private Mono> listAsync(String resourceGroupName, St
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of IntelligencePack.
+ * @return array of IntelligencePack along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public List list(String resourceGroupName, String workspaceName) {
- return listAsync(resourceGroupName, workspaceName).block();
+ public Response> listWithResponse(
+ String resourceGroupName, String workspaceName, Context context) {
+ return listWithResponseAsync(resourceGroupName, workspaceName, context).block();
}
/**
@@ -538,15 +537,13 @@ public List list(String resourceGroupName, String workspa
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of IntelligencePack along with {@link Response}.
+ * @return array of IntelligencePack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response> listWithResponse(
- String resourceGroupName, String workspaceName, Context context) {
- return listWithResponseAsync(resourceGroupName, workspaceName, context).block();
+ public List list(String resourceGroupName, String workspaceName) {
+ return listWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue();
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java
index 98ab039e04fa..329af57adabd 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java
@@ -30,10 +30,6 @@ public IntelligencePacksImpl(
this.serviceManager = serviceManager;
}
- public void disable(String resourceGroupName, String workspaceName, String intelligencePackName) {
- this.serviceClient().disable(resourceGroupName, workspaceName, intelligencePackName);
- }
-
public Response disableWithResponse(
String resourceGroupName, String workspaceName, String intelligencePackName, Context context) {
return this
@@ -41,8 +37,8 @@ public Response disableWithResponse(
.disableWithResponse(resourceGroupName, workspaceName, intelligencePackName, context);
}
- public void enable(String resourceGroupName, String workspaceName, String intelligencePackName) {
- this.serviceClient().enable(resourceGroupName, workspaceName, intelligencePackName);
+ public void disable(String resourceGroupName, String workspaceName, String intelligencePackName) {
+ this.serviceClient().disable(resourceGroupName, workspaceName, intelligencePackName);
}
public Response enableWithResponse(
@@ -50,18 +46,8 @@ public Response enableWithResponse(
return this.serviceClient().enableWithResponse(resourceGroupName, workspaceName, intelligencePackName, context);
}
- public List list(String resourceGroupName, String workspaceName) {
- List inner = this.serviceClient().list(resourceGroupName, workspaceName);
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new IntelligencePackImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
+ public void enable(String resourceGroupName, String workspaceName, String intelligencePackName) {
+ this.serviceClient().enable(resourceGroupName, workspaceName, intelligencePackName);
}
public Response> listWithResponse(
@@ -83,6 +69,20 @@ public Response> listWithResponse(
}
}
+ public List list(String resourceGroupName, String workspaceName) {
+ List inner = this.serviceClient().list(resourceGroupName, workspaceName);
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new IntelligencePackImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
private IntelligencePacksClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
index a2f412fa6ec4..ffc4586edd2a 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java
@@ -63,11 +63,10 @@ public final class LinkedServicesClientImpl implements LinkedServicesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface LinkedServicesService {
+ public interface LinkedServicesService {
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
@ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -83,8 +82,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -99,8 +97,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -115,8 +112,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
- + "/workspaces/{workspaceName}/linkedServices")
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByWorkspace(
@@ -328,7 +324,8 @@ private PollerFlux, LinkedServiceInner> beginCrea
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, LinkedServiceInner> beginCreateOrUpdate(
String resourceGroupName, String workspaceName, String linkedServiceName, LinkedServiceInner parameters) {
- return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, linkedServiceName, parameters)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, linkedServiceName, parameters)
.getSyncPoller();
}
@@ -352,7 +349,8 @@ public SyncPoller