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..8e36bda6c755 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,7 +52,7 @@ 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"
@@ -188,14 +188,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 +205,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..2aab720f34bd 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,7 +64,7 @@ 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"
@@ -646,7 +646,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 +664,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 +887,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 +904,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 +1086,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 +1103,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 +1284,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 +1302,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 +1379,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 +1417,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 +1455,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 +1492,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..b5d72117edc8 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,7 +58,7 @@ 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"
@@ -446,15 +446,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 +470,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 +611,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 +629,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 +768,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 +786,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..f05db3fb330e 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,7 +58,7 @@ 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"
@@ -285,15 +285,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 +309,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 +446,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 +464,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 +602,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 +620,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 +866,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 +903,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..31177b312816 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})
@@ -104,7 +104,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 +142,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 +237,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 +287,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..2c5c263c606c 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,7 +47,7 @@ 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"
@@ -188,13 +188,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 +206,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..b0c91fabd919 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,7 +52,7 @@ 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"
@@ -226,13 +226,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 +244,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 +380,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 +398,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 +523,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 +540,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..5c1559c5ca90 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,7 +63,7 @@ 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"
@@ -328,7 +328,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 +353,8 @@ public SyncPoller, LinkedServiceInner> beginCreat
String linkedServiceName,
LinkedServiceInner parameters,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, linkedServiceName, parameters, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, linkedServiceName, parameters, context)
.getSyncPoller();
}
@@ -616,7 +618,7 @@ private PollerFlux, LinkedServiceInner> beginDele
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, LinkedServiceInner> beginDelete(
String resourceGroupName, String workspaceName, String linkedServiceName) {
- return beginDeleteAsync(resourceGroupName, workspaceName, linkedServiceName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, workspaceName, linkedServiceName).getSyncPoller();
}
/**
@@ -634,7 +636,7 @@ public SyncPoller, LinkedServiceInner> beginDelet
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, LinkedServiceInner> beginDelete(
String resourceGroupName, String workspaceName, String linkedServiceName, Context context) {
- return beginDeleteAsync(resourceGroupName, workspaceName, linkedServiceName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, workspaceName, linkedServiceName, context).getSyncPoller();
}
/**
@@ -842,14 +844,16 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param linkedServiceName Name of the linked service.
+ * @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 linked service instance.
+ * @return a linked service instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName) {
- return getAsync(resourceGroupName, workspaceName, linkedServiceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, String linkedServiceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, linkedServiceName, context).block();
}
/**
@@ -858,16 +862,14 @@ public LinkedServiceInner get(String resourceGroupName, String workspaceName, St
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param linkedServiceName Name of the linked service.
- * @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 linked service instance along with {@link Response}.
+ * @return a linked service instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, String linkedServiceName, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, linkedServiceName, context).block();
+ public LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName) {
+ return getWithResponse(resourceGroupName, workspaceName, linkedServiceName, Context.NONE).getValue();
}
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
index d73159139a97..9c8cb73f4b38 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java
@@ -47,15 +47,6 @@ public LinkedService delete(
}
}
- public LinkedService get(String resourceGroupName, String workspaceName, String linkedServiceName) {
- LinkedServiceInner inner = this.serviceClient().get(resourceGroupName, workspaceName, linkedServiceName);
- if (inner != null) {
- return new LinkedServiceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String workspaceName, String linkedServiceName, Context context) {
Response inner =
@@ -71,6 +62,15 @@ public Response getWithResponse(
}
}
+ public LinkedService get(String resourceGroupName, String workspaceName, String linkedServiceName) {
+ LinkedServiceInner inner = this.serviceClient().get(resourceGroupName, workspaceName, linkedServiceName);
+ if (inner != null) {
+ return new LinkedServiceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner =
this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
index 4e90a99217d6..b8df59156f19 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java
@@ -60,7 +60,7 @@ public final class LinkedStorageAccountsClientImpl implements LinkedStorageAccou
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface LinkedStorageAccountsService {
+ public interface LinkedStorageAccountsService {
@Headers({"Content-Type: application/json"})
@Put(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
@@ -287,18 +287,21 @@ private Mono createOrUpdateAsync(
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
* @param parameters The parameters required to create or update linked storage accounts.
+ * @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 linked storage accounts top level resource container.
+ * @return linked storage accounts top level resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public LinkedStorageAccountsResourceInner createOrUpdate(
+ public Response createOrUpdateWithResponse(
String resourceGroupName,
String workspaceName,
DataSourceType dataSourceType,
- LinkedStorageAccountsResourceInner parameters) {
- return createOrUpdateAsync(resourceGroupName, workspaceName, dataSourceType, parameters).block();
+ LinkedStorageAccountsResourceInner parameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, parameters, context)
+ .block();
}
/**
@@ -309,21 +312,19 @@ public LinkedStorageAccountsResourceInner createOrUpdate(
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
* @param parameters The parameters required to create or update linked storage accounts.
- * @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 linked storage accounts top level resource container along with {@link Response}.
+ * @return linked storage accounts top level resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
+ public LinkedStorageAccountsResourceInner createOrUpdate(
String resourceGroupName,
String workspaceName,
DataSourceType dataSourceType,
- LinkedStorageAccountsResourceInner parameters,
- Context context) {
- return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, parameters, context)
- .block();
+ LinkedStorageAccountsResourceInner parameters) {
+ return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceType, parameters, Context.NONE)
+ .getValue();
}
/**
@@ -451,13 +452,16 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, D
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
+ * @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, DataSourceType dataSourceType) {
- deleteAsync(resourceGroupName, workspaceName, dataSourceType).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String workspaceName, DataSourceType dataSourceType, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, context).block();
}
/**
@@ -466,16 +470,13 @@ public void delete(String resourceGroupName, String workspaceName, DataSourceTyp
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
- * @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, DataSourceType dataSourceType, Context context) {
- return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, context).block();
+ public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
+ deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE);
}
/**
@@ -611,15 +612,17 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all linked storage account of a specific data source type associated with the specified workspace.
+ * @return all linked storage account of a specific data source type associated with the specified workspace along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public LinkedStorageAccountsResourceInner get(
- String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
- return getAsync(resourceGroupName, workspaceName, dataSourceType).block();
+ public Response getWithResponse(
+ String resourceGroupName, String workspaceName, DataSourceType dataSourceType, Context context) {
+ return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, context).block();
}
/**
@@ -628,17 +631,15 @@ public LinkedStorageAccountsResourceInner get(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceType Linked storage accounts type.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all linked storage account of a specific data source type associated with the specified workspace along
- * with {@link Response}.
+ * @return all linked storage account of a specific data source type associated with the specified workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String workspaceName, DataSourceType dataSourceType, Context context) {
- return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, context).block();
+ public LinkedStorageAccountsResourceInner get(
+ String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
+ return getWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE).getValue();
}
/**
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
index 51e986a614e1..393a46a8b5ba 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java
@@ -29,24 +29,13 @@ public LinkedStorageAccountsImpl(
this.serviceManager = serviceManager;
}
- public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
- this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceType);
- }
-
public Response deleteWithResponse(
String resourceGroupName, String workspaceName, DataSourceType dataSourceType, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, context);
}
- public LinkedStorageAccountsResource get(
- String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
- LinkedStorageAccountsResourceInner inner =
- this.serviceClient().get(resourceGroupName, workspaceName, dataSourceType);
- if (inner != null) {
- return new LinkedStorageAccountsResourceImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
+ this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceType);
}
public Response getWithResponse(
@@ -64,6 +53,17 @@ public Response getWithResponse(
}
}
+ public LinkedStorageAccountsResource get(
+ String resourceGroupName, String workspaceName, DataSourceType dataSourceType) {
+ LinkedStorageAccountsResourceInner inner =
+ this.serviceClient().get(resourceGroupName, workspaceName, dataSourceType);
+ if (inner != null) {
+ return new LinkedStorageAccountsResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable listByWorkspace(
String resourceGroupName, String workspaceName) {
PagedIterable inner =
@@ -94,9 +94,8 @@ public LinkedStorageAccountsResource getById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
}
- DataSourceType dataSourceType =
- DataSourceType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
- if (dataSourceType == null) {
+ String dataSourceTypeLocal = Utils.getValueFromIdByName(id, "linkedStorageAccounts");
+ if (dataSourceTypeLocal == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
@@ -105,6 +104,7 @@ public LinkedStorageAccountsResource getById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'linkedStorageAccounts'.",
id)));
}
+ DataSourceType dataSourceType = DataSourceType.fromString(dataSourceTypeLocal);
return this.getWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE).getValue();
}
@@ -124,9 +124,8 @@ public Response getByIdWithResponse(String id, Co
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
}
- DataSourceType dataSourceType =
- DataSourceType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
- if (dataSourceType == null) {
+ String dataSourceTypeLocal = Utils.getValueFromIdByName(id, "linkedStorageAccounts");
+ if (dataSourceTypeLocal == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
@@ -135,6 +134,7 @@ public Response getByIdWithResponse(String id, Co
"The resource ID '%s' is not valid. Missing path segment 'linkedStorageAccounts'.",
id)));
}
+ DataSourceType dataSourceType = DataSourceType.fromString(dataSourceTypeLocal);
return this.getWithResponse(resourceGroupName, workspaceName, dataSourceType, context);
}
@@ -154,9 +154,8 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
}
- DataSourceType dataSourceType =
- DataSourceType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
- if (dataSourceType == null) {
+ String dataSourceTypeLocal = Utils.getValueFromIdByName(id, "linkedStorageAccounts");
+ if (dataSourceTypeLocal == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
@@ -165,6 +164,7 @@ public void deleteById(String id) {
"The resource ID '%s' is not valid. Missing path segment 'linkedStorageAccounts'.",
id)));
}
+ DataSourceType dataSourceType = DataSourceType.fromString(dataSourceTypeLocal);
this.deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE);
}
@@ -184,9 +184,8 @@ public Response deleteByIdWithResponse(String id, Context context) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
}
- DataSourceType dataSourceType =
- DataSourceType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
- if (dataSourceType == null) {
+ String dataSourceTypeLocal = Utils.getValueFromIdByName(id, "linkedStorageAccounts");
+ if (dataSourceTypeLocal == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
@@ -195,6 +194,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
"The resource ID '%s' is not valid. Missing path segment 'linkedStorageAccounts'.",
id)));
}
+ DataSourceType dataSourceType = DataSourceType.fromString(dataSourceTypeLocal);
return this.deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
index 1ce366640bca..15db3091030d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java
@@ -55,7 +55,7 @@ public final class ManagementGroupsClientImpl implements ManagementGroupsClient
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface ManagementGroupsService {
+ public interface ManagementGroupsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights"
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
index 2aa3d7a45eab..a596c0634b8d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java
@@ -50,7 +50,7 @@ public final class OperationStatusesClientImpl implements OperationStatusesClien
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface OperationStatusesService {
+ public interface OperationStatusesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}"
@@ -184,14 +184,15 @@ private Mono getAsync(String location, String asyncOperati
*
* @param location The region name of operation.
* @param asyncOperationId The operation 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 status of a long running azure asynchronous operation.
+ * @return the status of a long running azure asynchronous operation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public OperationStatusInner get(String location, String asyncOperationId) {
- return getAsync(location, asyncOperationId).block();
+ public Response getWithResponse(String location, String asyncOperationId, Context context) {
+ return getWithResponseAsync(location, asyncOperationId, context).block();
}
/**
@@ -199,14 +200,13 @@ public OperationStatusInner get(String location, String asyncOperationId) {
*
* @param location The region name of operation.
* @param asyncOperationId The operation 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 status of a long running azure asynchronous operation along with {@link Response}.
+ * @return the status of a long running azure asynchronous operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String location, String asyncOperationId, Context context) {
- return getWithResponseAsync(location, asyncOperationId, context).block();
+ public OperationStatusInner get(String location, String asyncOperationId) {
+ return getWithResponse(location, asyncOperationId, Context.NONE).getValue();
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java
index 0cf021749ca2..93e65b9b72b8 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java
@@ -27,15 +27,6 @@ public OperationStatusesImpl(
this.serviceManager = serviceManager;
}
- public OperationStatus get(String location, String asyncOperationId) {
- OperationStatusInner inner = this.serviceClient().get(location, asyncOperationId);
- if (inner != null) {
- return new OperationStatusImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(String location, String asyncOperationId, Context context) {
Response inner =
this.serviceClient().getWithResponse(location, asyncOperationId, context);
@@ -50,6 +41,15 @@ public Response getWithResponse(String location, String asyncOp
}
}
+ public OperationStatus get(String location, String asyncOperationId) {
+ OperationStatusInner inner = this.serviceClient().get(location, asyncOperationId);
+ if (inner != null) {
+ return new OperationStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private OperationStatusesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java
index e75f5332e0b5..980586ce24e0 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java
@@ -119,24 +119,26 @@ public OperationalInsightsManagementClientBuilder serializerAdapter(SerializerAd
* @return an instance of OperationalInsightsManagementClientImpl.
*/
public OperationalInsightsManagementClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
OperationalInsightsManagementClientImpl client =
new OperationalInsightsManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
index bb310d8b851b..bc9a1273ab36 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java
@@ -55,7 +55,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "OperationalInsightsM")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.OperationalInsights/operations")
@ExpectedResponses({200})
@@ -93,7 +93,7 @@ private Mono> listSinglePageAsync() {
new IllegalArgumentException(
"Parameter this.client.getEndpoint() 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(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context))
@@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Context context)
new IllegalArgumentException(
"Parameter this.client.getEndpoint() 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
@@ -199,7 +199,8 @@ public PagedIterable