diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9dafd777faae..ae308a91b7ba 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -312,7 +312,7 @@ com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.5.0;1.6.0
com.azure.resourcemanager:azure-resourcemanager-kusto;1.2.0;1.3.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-loganalytics;2.1.0;2.2.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-loganalytics;2.1.0;2.2.0
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.2.0;1.3.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0
com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.2
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
index 15ece4ee2c48..1271137bf647 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md
@@ -1,14 +1,416 @@
# Release History
-## 2.2.0-beta.1 (Unreleased)
+## 2.2.0 (2026-05-09)
-### Features Added
+- Azure Resource Manager LogAnalytics client library for Java. This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Provides NSP operations for working with Log Analytics. Package api-version 2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.WorkspaceListResult` was removed
+
+#### `models.LinkedServiceListResult` was removed
+
+#### `models.SummaryLogsListResult` was removed
+
+#### `models.StorageInsightListResult` was removed
+
+#### `models.ClusterListResult` was removed
+
+#### `models.NetworkSecurityPerimeterConfigurationListResult` was removed
+
+#### `models.WorkspaceListManagementGroupsResult` was removed
+
+#### `models.DataExportListResult` was removed
+
+#### `models.WorkspaceListUsagesResult` was removed
+
+#### `models.TablesListResult` was removed
+
+#### `models.LogAnalyticsQueryPackQueryListResult` was removed
+
+#### `models.LogAnalyticsQueryPackListResult` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.DataSourceListResult` was removed
+
+#### `models.LinkedStorageAccountsListResult` was removed
+
+#### `models.StorageInsight$Definition` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.StorageInsight` was modified
+
+* `etag()` was removed
+
+#### `models.WorkspaceReplicationProperties` was modified
+
+* `validate()` was removed
+
+#### `models.AccessRulePropertiesSubscriptionsItem` was modified
+
+* `AccessRulePropertiesSubscriptionsItem()` was changed to private access
+* `withId(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.Tag` was modified
+
+* `validate()` was removed
+
+#### `models.WorkspaceFailoverProperties` was modified
+
+* `validate()` was removed
+
+#### `models.LogAnalyticsQueryPackQuerySearchPropertiesRelated` was modified
+
+* `validate()` was removed
+
+#### `models.ManagedServiceIdentity` was modified
+
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `validate()` was removed
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+
+#### `models.UserIdentityProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ProvisioningIssue` was modified
+
+* `ProvisioningIssue()` was changed to private access
+* `validate()` was removed
+
+#### `models.AzureEntityResource` was modified
+
+* `validate()` was removed
+
+#### `models.AccessRuleProperties` was modified
+
+* `AccessRuleProperties()` was changed to private access
+* `withFullyQualifiedDomainNames(java.util.List)` was removed
+* `withAddressPrefixes(java.util.List)` was removed
+* `withNetworkSecurityPerimeters(java.util.List)` was removed
+* `withDirection(models.AccessRuleDirection)` was removed
+* `withEmailAddresses(java.util.List)` was removed
+* `withSubscriptions(java.util.List)` was removed
+* `withPhoneNumbers(java.util.List)` was removed
+* `validate()` was removed
+
+#### `models.PrivateLinkScopedResource` was modified
+
+* `PrivateLinkScopedResource()` was changed to private access
+* `validate()` was removed
+* `withScopeId(java.lang.String)` was removed
+* `withResourceId(java.lang.String)` was removed
+
+#### `models.ClusterReplicationProperties` was modified
+
+* `validate()` was removed
+
+#### `models.Column` was modified
+
+* `validate()` was removed
+
+#### `models.AccessRule` was modified
+
+* `AccessRule()` was changed to private access
+* `withProperties(models.AccessRuleProperties)` was removed
+* `validate()` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.StorageInsight$Update` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.SearchResults` was modified
+
+* `validate()` was removed
+
+#### `models.RuleDefinition` was modified
+
+* `validate()` was removed
+
+#### `models.WorkspaceFeatures` was modified
+
+* `validate()` was removed
+
+#### `models.NetworkSecurityPerimeter` was modified
+
+* `NetworkSecurityPerimeter()` was changed to private access
+* `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()`
+* `withPerimeterGuid(java.util.UUID)` was removed
+* `validate()` was removed
+* `withId(java.lang.String)` was removed
+* `withLocation(java.lang.String)` was removed
+
+#### `models.CapacityReservationProperties` was modified
+
+* `validate()` was removed
+
+#### `models.Identity` was modified
+
+* `validate()` was removed
+
+#### `models.WorkspacePurgeBodyFilters` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterPatch` was modified
+
+* `validate()` was removed
+
+#### `models.MetricName` was modified
+
+* `MetricName()` was changed to private access
+* `withLocalizedValue(java.lang.String)` was removed
+* `withValue(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.WorkspacePatch` was modified
+
+* `validate()` was removed
+
+#### `models.StorageAccount` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceAssociation` was modified
+
+* `ResourceAssociation()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `validate()` was removed
+* `withAccessMode(models.ResourceAssociationAccessMode)` was removed
+
+#### `models.RestoredLogs` was modified
+
+* `validate()` was removed
+
+#### `models.LogAnalyticsQueryPackQueryPropertiesRelated` was modified
+
+* `validate()` was removed
+
+#### `models.ResultStatistics` was modified
+
+* `ResultStatistics()` was changed to private access
+* `validate()` was removed
+* `java.lang.Float progress()` -> `java.lang.Double progress()`
+* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()`
+
+#### `models.WorkspaceCapping` was modified
+
+* `validate()` was removed
+
+#### `models.CoreSummary` was modified
+
+* `CoreSummary()` was changed to private access
+* `validate()` was removed
+* `withNumberOfDocuments(long)` was removed
+* `withStatus(java.lang.String)` was removed
+
+#### `models.LinkedServices` was modified
-### Other Changes
+* `models.LinkedService deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.LinkedService deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)`
+* `models.LinkedService delete(java.lang.String,java.lang.String,java.lang.String)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+* `models.LinkedService delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.NetworkSecurityProfile` was modified
+
+* `NetworkSecurityProfile()` was changed to private access
+* `withEnabledLogCategories(java.util.List)` was removed
+* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed
+* `withAccessRulesVersion(java.lang.Integer)` was removed
+* `withName(java.lang.String)` was removed
+* `validate()` was removed
+* `withAccessRules(java.util.List)` was removed
+
+#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified
+
+* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access
+* `withResourceAssociation(models.ResourceAssociation)` was removed
+* `validate()` was removed
+* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed
+* `withProfile(models.NetworkSecurityProfile)` was removed
+
+#### `models.SummaryLogsRetryBin` was modified
+
+* `validate()` was removed
+
+#### `models.SearchMetadataSchema` was modified
+
+* `SearchMetadataSchema()` was changed to private access
+* `withVersion(java.lang.Integer)` was removed
+* `validate()` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.KeyVaultProperties` was modified
+
+* `validate()` was removed
+
+#### `models.UserAssignedIdentity` was modified
+
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `java.util.UUID clientId()` -> `java.lang.String clientId()`
+* `validate()` was removed
+
+#### `models.WorkspaceSku` was modified
+
+* `validate()` was removed
+
+#### `models.LogAnalyticsQueryPackQuerySearchProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `withProvider(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+* `validate()` was removed
+* `withResource(java.lang.String)` was removed
+* `withOperation(java.lang.String)` was removed
+
+#### `models.ProvisioningIssueProperties` was modified
+
+* `ProvisioningIssueProperties()` was changed to private access
+* `validate()` was removed
+
+#### `models.AssociatedWorkspace` was modified
+
+* `validate()` was removed
+* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()`
+
+#### `models.TagsResource` was modified
+
+* `validate()` was removed
+
+#### `models.SearchSchemaValue` was modified
+
+* `SearchSchemaValue()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `withStored(boolean)` was removed
+* `validate()` was removed
+* `withIndexed(boolean)` was removed
+* `withFacet(boolean)` was removed
+* `withDisplayName(java.lang.String)` was removed
+* `withOwnerType(java.util.List)` was removed
+* `withType(java.lang.String)` was removed
+
+#### `models.SearchMetadata` was modified
+
+* `SearchMetadata()` was changed to private access
+* `withResultType(java.lang.String)` was removed
+* `withStartTime(java.time.OffsetDateTime)` was removed
+* `withSearchId(java.lang.String)` was removed
+* `withStatus(java.lang.String)` was removed
+* `withTop(java.lang.Long)` was removed
+* `withEtag(java.lang.String)` was removed
+* `validate()` was removed
+* `withSort(java.util.List)` was removed
+* `withId(java.lang.String)` was removed
+* `withAggregatedGroupingFields(java.lang.String)` was removed
+* `withMax(java.lang.Long)` was removed
+* `withSchema(models.SearchMetadataSchema)` was removed
+* `withTotal(java.lang.Long)` was removed
+* `withLastUpdated(java.time.OffsetDateTime)` was removed
+* `withRequestTime(java.lang.Long)` was removed
+* `withAggregatedValueField(java.lang.String)` was removed
+* `withCoreSummaries(java.util.List)` was removed
+* `withSum(java.lang.Long)` was removed
+
+#### `models.SummaryLogsRetryBinProperties` was modified
+
+* `validate()` was removed
+
+#### `models.SummaryLogs` was modified
+
+* `models.ProvisioningStateEnum provisioningState()` -> `models.SummaryLogsProvisioningState provisioningState()`
+
+#### `models.WorkspacePurgesPurgeHeaders` was modified
+
+* `validate()` was removed
+* `withXMsStatusLocation(java.lang.String)` was removed
+
+#### `models.StorageInsightStatus` was modified
+
+* `StorageInsightStatus()` was changed to private access
+* `validate()` was removed
+* `withDescription(java.lang.String)` was removed
+* `withState(models.StorageInsightState)` was removed
+
+#### `models.WorkspacePurgeBody` was modified
+
+* `validate()` was removed
+
+#### `models.Schema` was modified
+
+* `validate()` was removed
+
+#### `models.SearchSort` was modified
+
+* `SearchSort()` was changed to private access
+* `validate()` was removed
+* `withOrder(models.SearchSortEnum)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.ClusterSku` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.SummaryLogsProvisioningState` was added
+
+#### `models.StorageInsight$Definition` was modified
+
+* `withETag(java.lang.String)` was added
+
+#### `models.StorageInsight` was modified
+
+* `systemData()` was added
+* `eTag()` was added
+
+#### `models.AzureEntityResource` was modified
+
+* `systemData()` was added
+
+#### `models.LinkedStorageAccountsResource` was modified
+
+* `systemData()` was added
+
+#### `models.DataSource` was modified
+
+* `systemData()` was added
+
+#### `models.DataExport` was modified
+
+* `systemData()` was added
+
+#### `models.StorageInsight$Update` was modified
+
+* `withETag(java.lang.String)` was added
+
+#### `models.WorkspacePatch` was modified
+
+* `systemData()` was added
+
+#### `models.SavedSearch` was modified
+
+* `systemData()` was added
+
+#### `models.LinkedService` was modified
+
+* `systemData()` was added
+
+#### `models.Workspace` was modified
+
+* `failback()` was added
+* `failback(com.azure.core.util.Context)` was added
+
+#### `models.Cluster` was modified
+
+* `systemData()` was added
## 2.1.0 (2026-01-05)
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
index 93f9f6139e3f..8298be991b85 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager LogAnalytics client library for Java.
-This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Provides NSP operations for working with Log Analytics. Package api-version 2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-loganalytics
- 2.1.0
+ 2.2.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/SAMPLE.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/SAMPLE.md
index 794a73c07638..c45ad8dfdcb4 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/SAMPLE.md
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/SAMPLE.md
@@ -161,9 +161,7 @@
*/
public final class AvailableServiceTiersListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesAvailableServiceTiers.json
+ * x-ms-original-file: 2025-07-01/WorkspacesAvailableServiceTiers.json
*/
/**
* Sample code: AvailableServiceTiers.
@@ -190,9 +188,7 @@ import java.util.Map;
*/
public final class ClustersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersCreate.json
+ * x-ms-original-file: 2025-07-01/ClustersCreate.json
*/
/**
* Sample code: ClustersCreate.
@@ -231,9 +227,7 @@ public final class ClustersCreateOrUpdateSamples {
*/
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersDelete.json
+ * x-ms-original-file: 2025-07-01/ClustersDelete.json
*/
/**
* Sample code: ClustersDelete.
@@ -254,9 +248,7 @@ public final class ClustersDeleteSamples {
*/
public final class ClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersGet.json
+ * x-ms-original-file: 2025-07-01/ClustersGet.json
*/
/**
* Sample code: ClustersGet.
@@ -278,9 +270,7 @@ public final class ClustersGetByResourceGroupSamples {
*/
public final class ClustersListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersSubscriptionList.json
+ * x-ms-original-file: 2025-07-01/ClustersSubscriptionList.json
*/
/**
* Sample code: ClustersSubscriptionList.
@@ -301,9 +291,7 @@ public final class ClustersListSamples {
*/
public final class ClustersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersListByResourceGroup.json
+ * x-ms-original-file: 2025-07-01/ClustersListByResourceGroup.json
*/
/**
* Sample code: ClustersGet.
@@ -334,9 +322,7 @@ import java.util.Map;
*/
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/ClustersUpdate.json
+ * x-ms-original-file: 2025-07-01/ClustersUpdate.json
*/
/**
* Sample code: ClustersPatch.
@@ -385,9 +371,7 @@ import java.util.Arrays;
*/
public final class DataExportsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataExportCreateOrUpdate.json
+ * x-ms-original-file: 2025-07-01/DataExportCreateOrUpdate.json
*/
/**
* Sample code: DataExportCreate.
@@ -414,9 +398,7 @@ public final class DataExportsCreateOrUpdateSamples {
*/
public final class DataExportsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataExportDelete.json
+ * x-ms-original-file: 2025-07-01/DataExportDelete.json
*/
/**
* Sample code: DataExportDelete.
@@ -438,9 +420,7 @@ public final class DataExportsDeleteSamples {
*/
public final class DataExportsGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataExportGet.json
+ * x-ms-original-file: 2025-07-01/DataExportGet.json
*/
/**
* Sample code: DataExportGet.
@@ -461,9 +441,7 @@ public final class DataExportsGetSamples {
*/
public final class DataExportsListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataExportListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/DataExportListByWorkspace.json
*/
/**
* Sample code: DataExportGet.
@@ -489,9 +467,7 @@ import java.io.IOException;
*/
public final class DataSourcesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataSourcesCreate.json
+ * x-ms-original-file: 2025-07-01/DataSourcesCreate.json
*/
/**
* Sample code: DataSourcesCreate.
@@ -505,7 +481,7 @@ public final class DataSourcesCreateOrUpdateSamples {
.withExistingWorkspace("OIAutoRest5123", "AzTest9724")
.withProperties(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize(
- "{\"LinkedResourceId\":\"/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management\"}",
+ "{\"LinkedResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/eventtypes/management\"}",
Object.class, SerializerEncoding.JSON))
.withKind(DataSourceKind.AZURE_ACTIVITY_LOG)
.create();
@@ -521,9 +497,7 @@ public final class DataSourcesCreateOrUpdateSamples {
*/
public final class DataSourcesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataSourcesDelete.json
+ * x-ms-original-file: 2025-07-01/DataSourcesDelete.json
*/
/**
* Sample code: DataSourcesDelete.
@@ -545,9 +519,7 @@ public final class DataSourcesDeleteSamples {
*/
public final class DataSourcesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataSourcesGet.json
+ * x-ms-original-file: 2025-07-01/DataSourcesGet.json
*/
/**
* Sample code: DataSourcesGet.
@@ -569,9 +541,7 @@ public final class DataSourcesGetSamples {
*/
public final class DataSourcesListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/DataSourcesListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/DataSourcesListByWorkspace.json
*/
/**
* Sample code: DataSourcesListByWorkspace.
@@ -594,9 +564,7 @@ public final class DataSourcesListByWorkspaceSamples {
*/
public final class DeletedWorkspacesListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesSubscriptionList.json
+ * x-ms-original-file: 2025-07-01/WorkspacesSubscriptionList.json
*/
/**
* Sample code: WorkspacesSubscriptionList.
@@ -617,9 +585,7 @@ public final class DeletedWorkspacesListSamples {
*/
public final class DeletedWorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesListByResourceGroup.json
+ * x-ms-original-file: 2025-07-01/WorkspacesListByResourceGroupForDeleted.json
*/
/**
* Sample code: WorkspacesGet.
@@ -640,9 +606,7 @@ public final class DeletedWorkspacesListByResourceGroupSamples {
*/
public final class GatewaysDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesGatewaysDelete.json
+ * x-ms-original-file: 2025-07-01/WorkspacesGatewaysDelete.json
*/
/**
* Sample code: DeleteGateways.
@@ -651,7 +615,7 @@ public final class GatewaysDeleteSamples {
*/
public static void deleteGateways(com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager) {
manager.gateways()
- .deleteWithResponse("OIAutoRest5123", "aztest5048", "00000000-0000-0000-0000-00000000000",
+ .deleteWithResponse("OIAutoRest5123", "aztest5048", "00000000-0000-0000-0000-000000000000",
com.azure.core.util.Context.NONE);
}
}
@@ -665,9 +629,7 @@ public final class GatewaysDeleteSamples {
*/
public final class IntelligencePacksDisableSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesDisableIntelligencePack.json
+ * x-ms-original-file: 2025-07-01/WorkspacesDisableIntelligencePack.json
*/
/**
* Sample code: IntelligencePacksDisable.
@@ -689,9 +651,7 @@ public final class IntelligencePacksDisableSamples {
*/
public final class IntelligencePacksEnableSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesEnableIntelligencePack.json
+ * x-ms-original-file: 2025-07-01/WorkspacesEnableIntelligencePack.json
*/
/**
* Sample code: IntelligencePacksEnable.
@@ -713,9 +673,7 @@ public final class IntelligencePacksEnableSamples {
*/
public final class IntelligencePacksListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesListIntelligencePacks.json
+ * x-ms-original-file: 2025-07-01/WorkspacesListIntelligencePacks.json
*/
/**
* Sample code: IntelligencePacksList.
@@ -736,9 +694,7 @@ public final class IntelligencePacksListSamples {
*/
public final class LinkedServicesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedServicesCreate.json
+ * x-ms-original-file: 2025-07-01/LinkedServicesCreate.json
*/
/**
* Sample code: LinkedServicesCreate.
@@ -750,7 +706,7 @@ public final class LinkedServicesCreateOrUpdateSamples {
.define("Cluster")
.withExistingWorkspace("mms-eus", "TestLinkWS")
.withWriteAccessResourceId(
- "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster")
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster")
.create();
}
}
@@ -764,9 +720,7 @@ public final class LinkedServicesCreateOrUpdateSamples {
*/
public final class LinkedServicesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedServicesDelete.json
+ * x-ms-original-file: 2025-07-01/LinkedServicesDelete.json
*/
/**
* Sample code: LinkedServicesDelete.
@@ -787,9 +741,7 @@ public final class LinkedServicesDeleteSamples {
*/
public final class LinkedServicesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedServicesGet.json
+ * x-ms-original-file: 2025-07-01/LinkedServicesGet.json
*/
/**
* Sample code: LinkedServicesGet.
@@ -810,9 +762,7 @@ public final class LinkedServicesGetSamples {
*/
public final class LinkedServicesListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedServicesListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/LinkedServicesListByWorkspace.json
*/
/**
* Sample code: LinkedServicesListByWorkspace.
@@ -837,9 +787,7 @@ import java.util.Arrays;
*/
public final class LinkedStorageAccountsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedStorageAccountsCreate.json
+ * x-ms-original-file: 2025-07-01/LinkedStorageAccountsCreate.json
*/
/**
* Sample code: LinkedStorageAccountsCreate.
@@ -851,8 +799,8 @@ public final class LinkedStorageAccountsCreateOrUpdateSamples {
.define(DataSourceType.CUSTOM_LOGS)
.withExistingWorkspace("mms-eus", "testLinkStorageAccountsWS")
.withStorageAccountIds(Arrays.asList(
- "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
- "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB"))
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB"))
.create();
}
}
@@ -868,9 +816,7 @@ import com.azure.resourcemanager.loganalytics.models.DataSourceType;
*/
public final class LinkedStorageAccountsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedStorageAccountsDelete.json
+ * x-ms-original-file: 2025-07-01/LinkedStorageAccountsDelete.json
*/
/**
* Sample code: LinkedStorageAccountsDelete.
@@ -895,9 +841,7 @@ import com.azure.resourcemanager.loganalytics.models.DataSourceType;
*/
public final class LinkedStorageAccountsGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedStorageAccountsGet.json
+ * x-ms-original-file: 2025-07-01/LinkedStorageAccountsGet.json
*/
/**
* Sample code: LinkedStorageAccountsGet.
@@ -920,9 +864,7 @@ public final class LinkedStorageAccountsGetSamples {
*/
public final class LinkedStorageAccountsListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/LinkedStorageAccountsListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/LinkedStorageAccountsListByWorkspace.json
*/
/**
* Sample code: Gets list of linked storage accounts on a workspace.
@@ -945,9 +887,7 @@ public final class LinkedStorageAccountsListByWorkspaceSamples {
*/
public final class ManagementGroupsListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesListManagementGroups.json
+ * x-ms-original-file: 2025-07-01/WorkspacesListManagementGroups.json
*/
/**
* Sample code: WorkspacesListManagementGroups.
@@ -969,9 +909,7 @@ public final class ManagementGroupsListSamples {
*/
public final class OperationStatusesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/OperationStatusesGet.json
+ * x-ms-original-file: 2025-07-01/OperationStatusesGet.json
*/
/**
* Sample code: Get specific operation status.
@@ -993,9 +931,7 @@ public final class OperationStatusesGetSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/OperationsListByTenant.json
+ * x-ms-original-file: 2025-07-01/OperationsListByTenant.json
*/
/**
* Sample code: Get specific operation status.
@@ -1016,9 +952,7 @@ public final class OperationsListSamples {
*/
public final class QueriesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesDelete.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesDelete.json
*/
/**
* Sample code: QueryDelete.
@@ -1041,9 +975,7 @@ public final class QueriesDeleteSamples {
*/
public final class QueriesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesGet.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesGet.json
*/
/**
* Sample code: QueryGet.
@@ -1066,9 +998,7 @@ public final class QueriesGetSamples {
*/
public final class QueriesListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesList.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesList.json
*/
/**
* Sample code: QueryList.
@@ -1094,9 +1024,7 @@ import java.util.Map;
*/
public final class QueriesPutSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesPut.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesPut.json
*/
/**
* Sample code: QueryPut.
@@ -1144,9 +1072,7 @@ import java.util.Map;
*/
public final class QueriesSearchSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesSearch.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesSearch.json
*/
/**
* Sample code: QuerySearch.
@@ -1191,9 +1117,7 @@ import java.util.Map;
*/
public final class QueriesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackQueriesUpdate.json
+ * x-ms-original-file: 2025-07-01/QueryPackQueriesUpdate.json
*/
/**
* Sample code: QueryPatch.
@@ -1240,9 +1164,7 @@ import java.util.Map;
*/
public final class QueryPacksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksCreate.json
+ * x-ms-original-file: 2025-07-01/QueryPacksCreate.json
*/
/**
* Sample code: QueryPackCreate.
@@ -1258,9 +1180,7 @@ public final class QueryPacksCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksUpdate.json
+ * x-ms-original-file: 2025-07-01/QueryPacksUpdate.json
*/
/**
* Sample code: QueryPackUpdate.
@@ -1302,9 +1222,7 @@ import java.util.Map;
*/
public final class QueryPacksCreateOrUpdateWithoutNameSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksCreateNoName.json
+ * x-ms-original-file: 2025-07-01/QueryPacksCreateNoName.json
*/
/**
* Sample code: QueryPackCreateNoName.
@@ -1318,9 +1236,7 @@ public final class QueryPacksCreateOrUpdateWithoutNameSamples {
}
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPackUpdateNoName.json
+ * x-ms-original-file: 2025-07-01/QueryPackUpdateNoName.json
*/
/**
* Sample code: QueryPackUpdateNoName.
@@ -1356,9 +1272,7 @@ public final class QueryPacksCreateOrUpdateWithoutNameSamples {
*/
public final class QueryPacksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksDelete.json
+ * x-ms-original-file: 2025-07-01/QueryPacksDelete.json
*/
/**
* Sample code: QueryPacksDelete.
@@ -1380,9 +1294,7 @@ public final class QueryPacksDeleteSamples {
*/
public final class QueryPacksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksGet.json
+ * x-ms-original-file: 2025-07-01/QueryPacksGet.json
*/
/**
* Sample code: QueryPackGet.
@@ -1404,9 +1316,7 @@ public final class QueryPacksGetByResourceGroupSamples {
*/
public final class QueryPacksListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksList.json
+ * x-ms-original-file: 2025-07-01/QueryPacksList.json
*/
/**
* Sample code: QueryPacksList.
@@ -1427,9 +1337,7 @@ public final class QueryPacksListSamples {
*/
public final class QueryPacksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksListByResourceGroup.json
+ * x-ms-original-file: 2025-07-01/QueryPacksListByResourceGroup.json
*/
/**
* Sample code: QueryPackListByResourceGroup.
@@ -1455,9 +1363,7 @@ import java.util.Map;
*/
public final class QueryPacksUpdateTagsSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/QueryPacksUpdateTagsOnly.json
+ * x-ms-original-file: 2025-07-01/QueryPacksUpdateTagsOnly.json
*/
/**
* Sample code: QueryPackUpdateTagsOnly.
@@ -1496,9 +1402,7 @@ import java.util.Arrays;
*/
public final class SavedSearchesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesSavedSearchesCreateOrUpdate.json
+ * x-ms-original-file: 2025-07-01/WorkspacesSavedSearchesCreateOrUpdate.json
*/
/**
* Sample code: SavedSearchCreateOrUpdate.
@@ -1507,7 +1411,7 @@ public final class SavedSearchesCreateOrUpdateSamples {
*/
public static void savedSearchCreateOrUpdate(com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager) {
manager.savedSearches()
- .define("00000000-0000-0000-0000-00000000000")
+ .define("00000000-0000-0000-0000-000000000000")
.withExistingWorkspace("TestRG", "TestWS")
.withCategory("Saved Search Test Category")
.withDisplayName("Create or Update Saved Search Test")
@@ -1529,9 +1433,7 @@ public final class SavedSearchesCreateOrUpdateSamples {
*/
public final class SavedSearchesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesDeleteSavedSearches.json
+ * x-ms-original-file: 2025-07-01/WorkspacesDeleteSavedSearches.json
*/
/**
* Sample code: SavedSearchesDelete.
@@ -1540,7 +1442,7 @@ public final class SavedSearchesDeleteSamples {
*/
public static void savedSearchesDelete(com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager) {
manager.savedSearches()
- .deleteWithResponse("TestRG", "TestWS", "00000000-0000-0000-0000-00000000000",
+ .deleteWithResponse("TestRG", "TestWS", "00000000-0000-0000-0000-000000000000",
com.azure.core.util.Context.NONE);
}
}
@@ -1554,9 +1456,7 @@ public final class SavedSearchesDeleteSamples {
*/
public final class SavedSearchesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesSavedSearchesGet.json
+ * x-ms-original-file: 2025-07-01/WorkspacesSavedSearchesGet.json
*/
/**
* Sample code: SavedSearchesGet.
@@ -1565,7 +1465,7 @@ public final class SavedSearchesGetSamples {
*/
public static void savedSearchesGet(com.azure.resourcemanager.loganalytics.LogAnalyticsManager manager) {
manager.savedSearches()
- .getWithResponse("TestRG", "TestWS", "00000000-0000-0000-0000-00000000000",
+ .getWithResponse("TestRG", "TestWS", "00000000-0000-0000-0000-000000000000",
com.azure.core.util.Context.NONE);
}
}
@@ -1579,9 +1479,7 @@ public final class SavedSearchesGetSamples {
*/
public final class SavedSearchesListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SavedSearchesListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/SavedSearchesListByWorkspace.json
*/
/**
* Sample code: SavedSearchesList.
@@ -1602,9 +1500,7 @@ public final class SavedSearchesListByWorkspaceSamples {
*/
public final class SchemaGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SavedSearchesGetSchema.json
+ * x-ms-original-file: 2025-07-01/SavedSearchesGetSchema.json
*/
/**
* Sample code: WorkspacesGetSchema.
@@ -1625,9 +1521,7 @@ public final class SchemaGetSamples {
*/
public final class SharedKeysOperationGetSharedKeysSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesGetSharedKeys.json
+ * x-ms-original-file: 2025-07-01/WorkspacesGetSharedKeys.json
*/
/**
* Sample code: SharedKeysList.
@@ -1648,9 +1542,7 @@ public final class SharedKeysOperationGetSharedKeysSamples {
*/
public final class SharedKeysOperationRegenerateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesRegenerateSharedKeys.json
+ * x-ms-original-file: 2025-07-01/WorkspacesRegenerateSharedKeys.json
*/
/**
* Sample code: RegenerateSharedKeys.
@@ -1674,9 +1566,7 @@ import java.util.Arrays;
*/
public final class StorageInsightConfigsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/StorageInsightsCreateOrUpdate.json
+ * x-ms-original-file: 2025-07-01/StorageInsightsCreateOrUpdate.json
*/
/**
* Sample code: StorageInsightsCreate.
@@ -1705,9 +1595,7 @@ public final class StorageInsightConfigsCreateOrUpdateSamples {
*/
public final class StorageInsightConfigsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/StorageInsightsDelete.json
+ * x-ms-original-file: 2025-07-01/StorageInsightsDelete.json
*/
/**
* Sample code: StorageInsightsDelete.
@@ -1729,9 +1617,7 @@ public final class StorageInsightConfigsDeleteSamples {
*/
public final class StorageInsightConfigsGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/StorageInsightsGet.json
+ * x-ms-original-file: 2025-07-01/StorageInsightsGet.json
*/
/**
* Sample code: StorageInsightsGet.
@@ -1753,9 +1639,7 @@ public final class StorageInsightConfigsGetSamples {
*/
public final class StorageInsightConfigsListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/StorageInsightsListByWorkspace.json
+ * x-ms-original-file: 2025-07-01/StorageInsightsListByWorkspace.json
*/
/**
* Sample code: StorageInsightsList.
@@ -1781,9 +1665,7 @@ import java.time.OffsetDateTime;
*/
public final class SummaryLogsOperationCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsUpsert.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsUpsert.json
*/
/**
* Sample code: SummaryLogsUpsert.
@@ -1813,9 +1695,7 @@ public final class SummaryLogsOperationCreateOrUpdateSamples {
*/
public final class SummaryLogsOperationDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsDelete.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsDelete.json
*/
/**
* Sample code: SummaryLogsDelete.
@@ -1837,9 +1717,7 @@ public final class SummaryLogsOperationDeleteSamples {
*/
public final class SummaryLogsOperationGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsGet.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsGet.json
*/
/**
* Sample code: SummaryLogsGet.
@@ -1861,9 +1739,7 @@ public final class SummaryLogsOperationGetSamples {
*/
public final class SummaryLogsOperationListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsList.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsList.json
*/
/**
* Sample code: SummaryLogsListByWorkspace.
@@ -1889,9 +1765,7 @@ import java.time.OffsetDateTime;
*/
public final class SummaryLogsOperationRetryBinSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsRetryBin.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsRetryBin.json
*/
/**
* Sample code: SummaryLogsRetryBin.
@@ -1916,9 +1790,7 @@ public final class SummaryLogsOperationRetryBinSamples {
*/
public final class SummaryLogsOperationStartSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsStart.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsStart.json
*/
/**
* Sample code: SummaryLogsStart.
@@ -1940,9 +1812,7 @@ public final class SummaryLogsOperationStartSamples {
*/
public final class SummaryLogsOperationStopSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/SummaryLogsStop.json
+ * x-ms-original-file: 2025-07-01/SummaryLogsStop.json
*/
/**
* Sample code: SummaryLogsStop.
@@ -1964,9 +1834,7 @@ public final class SummaryLogsOperationStopSamples {
*/
public final class TablesCancelSearchSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesSearchCancel.json
+ * x-ms-original-file: 2025-07-01/TablesSearchCancel.json
*/
/**
* Sample code: TablesSearchCancel.
@@ -1994,9 +1862,7 @@ import java.util.Arrays;
*/
public final class TablesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesUpsert.json
+ * x-ms-original-file: 2025-07-01/TablesUpsertForTable.json
*/
/**
* Sample code: TablesUpsert.
@@ -2024,9 +1890,7 @@ public final class TablesCreateOrUpdateSamples {
*/
public final class TablesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesDelete.json
+ * x-ms-original-file: 2025-07-01/TablesDelete.json
*/
/**
* Sample code: TablesDelete.
@@ -2047,9 +1911,7 @@ public final class TablesDeleteSamples {
*/
public final class TablesGetSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesGet.json
+ * x-ms-original-file: 2025-07-01/TablesGet.json
*/
/**
* Sample code: TablesGet.
@@ -2071,9 +1933,7 @@ public final class TablesGetSamples {
*/
public final class TablesListByWorkspaceSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesList.json
+ * x-ms-original-file: 2025-07-01/TablesList.json
*/
/**
* Sample code: TablesListByWorkspace.
@@ -2094,9 +1954,7 @@ public final class TablesListByWorkspaceSamples {
*/
public final class TablesMigrateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesMigrate.json
+ * x-ms-original-file: 2025-07-01/TablesMigrate.json
*/
/**
* Sample code: TablesMigrate.
@@ -2124,9 +1982,7 @@ import java.util.Arrays;
*/
public final class TablesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/TablesUpsert.json
+ * x-ms-original-file: 2025-07-01/TablesUpsert.json
*/
/**
* Sample code: TablesUpsert.
@@ -2155,9 +2011,7 @@ public final class TablesUpdateSamples {
*/
public final class UsagesListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesListUsages.json
+ * x-ms-original-file: 2025-07-01/WorkspacesListUsages.json
*/
/**
* Sample code: UsagesList.
@@ -2178,9 +2032,7 @@ public final class UsagesListSamples {
*/
public final class WorkspacePurgeGetPurgeStatusSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesPurgeOperation.json
+ * x-ms-original-file: 2025-07-01/WorkspacesPurgeOperation.json
*/
/**
* Sample code: WorkspacePurgeOperation.
@@ -2207,9 +2059,7 @@ import java.util.Arrays;
*/
public final class WorkspacePurgePurgeSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesPurgeResourceId.json
+ * x-ms-original-file: 2025-07-01/WorkspacesPurgeResourceId.json
*/
/**
* Sample code: WorkspacePurgeResourceId.
@@ -2227,9 +2077,7 @@ public final class WorkspacePurgePurgeSamples {
}
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesPurge.json
+ * x-ms-original-file: 2025-07-01/WorkspacesPurge.json
*/
/**
* Sample code: WorkspacePurge.
@@ -2261,9 +2109,7 @@ import java.util.Map;
*/
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesCreate.json
+ * x-ms-original-file: 2025-07-01/WorkspacesCreate.json
*/
/**
* Sample code: WorkspacesCreate.
@@ -2303,9 +2149,7 @@ public final class WorkspacesCreateOrUpdateSamples {
*/
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesDelete.json
+ * x-ms-original-file: 2025-07-01/WorkspacesDelete.json
*/
/**
* Sample code: WorkspacesDelete.
@@ -2326,9 +2170,7 @@ public final class WorkspacesDeleteSamples {
*/
public final class WorkspacesFailbackSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesFailback.json
+ * x-ms-original-file: 2025-07-01/WorkspacesFailback.json
*/
/**
* Sample code: WorkspacesFailover.
@@ -2349,9 +2191,7 @@ public final class WorkspacesFailbackSamples {
*/
public final class WorkspacesFailoverSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesFailover.json
+ * x-ms-original-file: 2025-07-01/WorkspacesFailover.json
*/
/**
* Sample code: WorkspacesFailover.
@@ -2372,9 +2212,7 @@ public final class WorkspacesFailoverSamples {
*/
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesGet.json
+ * x-ms-original-file: 2025-07-01/WorkspacesGet.json
*/
/**
* Sample code: WorkspaceGet.
@@ -2396,9 +2234,7 @@ public final class WorkspacesGetByResourceGroupSamples {
*/
public final class WorkspacesGetNspSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/NSPForWorkspaces_Get.json
+ * x-ms-original-file: 2025-07-01/NSPForWorkspaces_Get.json
*/
/**
* Sample code: Get NSP config by name for Scheduled Query Rule.
@@ -2422,9 +2258,7 @@ public final class WorkspacesGetNspSamples {
*/
public final class WorkspacesListSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesSubscriptionList.json
+ * x-ms-original-file: 2025-07-01/WorkspacesSubscriptionListForWorkSpace.json
*/
/**
* Sample code: WorkspacesSubscriptionList.
@@ -2445,9 +2279,7 @@ public final class WorkspacesListSamples {
*/
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesListByResourceGroup.json
+ * x-ms-original-file: 2025-07-01/WorkspacesListByResourceGroup.json
*/
/**
* Sample code: WorkspacesGet.
@@ -2468,9 +2300,7 @@ public final class WorkspacesListByResourceGroupSamples {
*/
public final class WorkspacesListNspSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/NSPForWorkspaces_List.json
+ * x-ms-original-file: 2025-07-01/NSPForWorkspaces_List.json
*/
/**
* Sample code: List NSP configs by Scheduled Query Rule.
@@ -2492,9 +2322,7 @@ public final class WorkspacesListNspSamples {
*/
public final class WorkspacesReconcileNspSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/NSPForWorkspaces_Reconcile.json
+ * x-ms-original-file: 2025-07-01/NSPForWorkspaces_Reconcile.json
*/
/**
* Sample code: Reconcile NSP config for Scheduled Query Rule.
@@ -2522,9 +2350,7 @@ import com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum;
*/
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/stable/2025-
- * 07-01/examples/WorkspacesUpdate.json
+ * x-ms-original-file: 2025-07-01/WorkspacesUpdate.json
*/
/**
* Sample code: WorkspacesPatch.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
index 0371fb6ba0b7..59e2c98f7913 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-loganalytics
- 2.2.0-beta.1
+ 2.2.0
jar
Microsoft Azure SDK for LogAnalytics Management
- This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Operational Insights Client. Package tag package-2025-07-01.
+ This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Provides NSP operations for working with Log Analytics. Package api-version 2025-07-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
index 67e3a361ae94..8d410aa7eb11 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics;
@@ -82,55 +82,55 @@
/**
* Entry point to LogAnalyticsManager.
- * Operational Insights Client.
+ * Provides NSP operations for working with Log Analytics.
*/
public final class LogAnalyticsManager {
- private AvailableServiceTiers availableServiceTiers;
+ private Operations operations;
private Clusters clusters;
private DataExports dataExports;
- private DataSources dataSources;
-
- private Gateways gateways;
+ private Workspaces workspaces;
- private IntelligencePacks intelligencePacks;
+ private DataSources dataSources;
private LinkedServices linkedServices;
- private LinkedStorageAccounts linkedStorageAccounts;
-
- private ManagementGroups managementGroups;
+ private SavedSearches savedSearches;
- private Operations operations;
+ private Tables tables;
- private OperationStatuses operationStatuses;
+ private AvailableServiceTiers availableServiceTiers;
- private Queries queries;
+ private Gateways gateways;
- private QueryPacks queryPacks;
+ private IntelligencePacks intelligencePacks;
- private SavedSearches savedSearches;
+ private ManagementGroups managementGroups;
private Schemas schemas;
private SharedKeysOperations sharedKeysOperations;
- private StorageInsightConfigs storageInsightConfigs;
-
- private Tables tables;
-
private Usages usages;
private WorkspacePurges workspacePurges;
- private Workspaces workspaces;
+ private LinkedStorageAccounts linkedStorageAccounts;
- private DeletedWorkspaces deletedWorkspaces;
+ private Queries queries;
+
+ private QueryPacks queryPacks;
+
+ private StorageInsightConfigs storageInsightConfigs;
private SummaryLogsOperations summaryLogsOperations;
+ private OperationStatuses operationStatuses;
+
+ private DeletedWorkspaces deletedWorkspaces;
+
private final OperationalInsightsManagementClient clientObject;
private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -347,15 +347,15 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
}
/**
- * Gets the resource collection API of AvailableServiceTiers.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of AvailableServiceTiers.
+ * @return Resource collection API of Operations.
*/
- public AvailableServiceTiers availableServiceTiers() {
- if (this.availableServiceTiers == null) {
- this.availableServiceTiers = new AvailableServiceTiersImpl(clientObject.getAvailableServiceTiers(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return availableServiceTiers;
+ return operations;
}
/**
@@ -383,39 +383,27 @@ public DataExports dataExports() {
}
/**
- * Gets the resource collection API of DataSources. It manages DataSource.
- *
- * @return Resource collection API of DataSources.
- */
- public DataSources dataSources() {
- if (this.dataSources == null) {
- this.dataSources = new DataSourcesImpl(clientObject.getDataSources(), this);
- }
- return dataSources;
- }
-
- /**
- * Gets the resource collection API of Gateways.
+ * Gets the resource collection API of Workspaces. It manages Workspace.
*
- * @return Resource collection API of Gateways.
+ * @return Resource collection API of Workspaces.
*/
- public Gateways gateways() {
- if (this.gateways == null) {
- this.gateways = new GatewaysImpl(clientObject.getGateways(), this);
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
}
- return gateways;
+ return workspaces;
}
/**
- * Gets the resource collection API of IntelligencePacks.
+ * Gets the resource collection API of DataSources. It manages DataSource.
*
- * @return Resource collection API of IntelligencePacks.
+ * @return Resource collection API of DataSources.
*/
- public IntelligencePacks intelligencePacks() {
- if (this.intelligencePacks == null) {
- this.intelligencePacks = new IntelligencePacksImpl(clientObject.getIntelligencePacks(), this);
+ public DataSources dataSources() {
+ if (this.dataSources == null) {
+ this.dataSources = new DataSourcesImpl(clientObject.getDataSources(), this);
}
- return intelligencePacks;
+ return dataSources;
}
/**
@@ -431,87 +419,75 @@ public LinkedServices linkedServices() {
}
/**
- * Gets the resource collection API of LinkedStorageAccounts. It manages LinkedStorageAccountsResource.
- *
- * @return Resource collection API of LinkedStorageAccounts.
- */
- public LinkedStorageAccounts linkedStorageAccounts() {
- if (this.linkedStorageAccounts == null) {
- this.linkedStorageAccounts = new LinkedStorageAccountsImpl(clientObject.getLinkedStorageAccounts(), this);
- }
- return linkedStorageAccounts;
- }
-
- /**
- * Gets the resource collection API of ManagementGroups.
+ * Gets the resource collection API of SavedSearches. It manages SavedSearch.
*
- * @return Resource collection API of ManagementGroups.
+ * @return Resource collection API of SavedSearches.
*/
- public ManagementGroups managementGroups() {
- if (this.managementGroups == null) {
- this.managementGroups = new ManagementGroupsImpl(clientObject.getManagementGroups(), this);
+ public SavedSearches savedSearches() {
+ if (this.savedSearches == null) {
+ this.savedSearches = new SavedSearchesImpl(clientObject.getSavedSearches(), this);
}
- return managementGroups;
+ return savedSearches;
}
/**
- * Gets the resource collection API of Operations.
+ * Gets the resource collection API of Tables. It manages Table.
*
- * @return Resource collection API of Operations.
+ * @return Resource collection API of Tables.
*/
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ public Tables tables() {
+ if (this.tables == null) {
+ this.tables = new TablesImpl(clientObject.getTables(), this);
}
- return operations;
+ return tables;
}
/**
- * Gets the resource collection API of OperationStatuses.
+ * Gets the resource collection API of AvailableServiceTiers.
*
- * @return Resource collection API of OperationStatuses.
+ * @return Resource collection API of AvailableServiceTiers.
*/
- public OperationStatuses operationStatuses() {
- if (this.operationStatuses == null) {
- this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
+ public AvailableServiceTiers availableServiceTiers() {
+ if (this.availableServiceTiers == null) {
+ this.availableServiceTiers = new AvailableServiceTiersImpl(clientObject.getAvailableServiceTiers(), this);
}
- return operationStatuses;
+ return availableServiceTiers;
}
/**
- * Gets the resource collection API of Queries. It manages LogAnalyticsQueryPackQuery.
+ * Gets the resource collection API of Gateways.
*
- * @return Resource collection API of Queries.
+ * @return Resource collection API of Gateways.
*/
- public Queries queries() {
- if (this.queries == null) {
- this.queries = new QueriesImpl(clientObject.getQueries(), this);
+ public Gateways gateways() {
+ if (this.gateways == null) {
+ this.gateways = new GatewaysImpl(clientObject.getGateways(), this);
}
- return queries;
+ return gateways;
}
/**
- * Gets the resource collection API of QueryPacks. It manages LogAnalyticsQueryPack.
+ * Gets the resource collection API of IntelligencePacks.
*
- * @return Resource collection API of QueryPacks.
+ * @return Resource collection API of IntelligencePacks.
*/
- public QueryPacks queryPacks() {
- if (this.queryPacks == null) {
- this.queryPacks = new QueryPacksImpl(clientObject.getQueryPacks(), this);
+ public IntelligencePacks intelligencePacks() {
+ if (this.intelligencePacks == null) {
+ this.intelligencePacks = new IntelligencePacksImpl(clientObject.getIntelligencePacks(), this);
}
- return queryPacks;
+ return intelligencePacks;
}
/**
- * Gets the resource collection API of SavedSearches. It manages SavedSearch.
+ * Gets the resource collection API of ManagementGroups.
*
- * @return Resource collection API of SavedSearches.
+ * @return Resource collection API of ManagementGroups.
*/
- public SavedSearches savedSearches() {
- if (this.savedSearches == null) {
- this.savedSearches = new SavedSearchesImpl(clientObject.getSavedSearches(), this);
+ public ManagementGroups managementGroups() {
+ if (this.managementGroups == null) {
+ this.managementGroups = new ManagementGroupsImpl(clientObject.getManagementGroups(), this);
}
- return savedSearches;
+ return managementGroups;
}
/**
@@ -538,30 +514,6 @@ public SharedKeysOperations sharedKeysOperations() {
return sharedKeysOperations;
}
- /**
- * Gets the resource collection API of StorageInsightConfigs. It manages StorageInsight.
- *
- * @return Resource collection API of StorageInsightConfigs.
- */
- public StorageInsightConfigs storageInsightConfigs() {
- if (this.storageInsightConfigs == null) {
- this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
- }
- return storageInsightConfigs;
- }
-
- /**
- * Gets the resource collection API of Tables. It manages Table.
- *
- * @return Resource collection API of Tables.
- */
- public Tables tables() {
- if (this.tables == null) {
- this.tables = new TablesImpl(clientObject.getTables(), this);
- }
- return tables;
- }
-
/**
* Gets the resource collection API of Usages.
*
@@ -587,27 +539,51 @@ public WorkspacePurges workspacePurges() {
}
/**
- * Gets the resource collection API of Workspaces. It manages Workspace.
+ * Gets the resource collection API of LinkedStorageAccounts. It manages LinkedStorageAccountsResource.
*
- * @return Resource collection API of Workspaces.
+ * @return Resource collection API of LinkedStorageAccounts.
*/
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ public LinkedStorageAccounts linkedStorageAccounts() {
+ if (this.linkedStorageAccounts == null) {
+ this.linkedStorageAccounts = new LinkedStorageAccountsImpl(clientObject.getLinkedStorageAccounts(), this);
}
- return workspaces;
+ return linkedStorageAccounts;
}
/**
- * Gets the resource collection API of DeletedWorkspaces.
+ * Gets the resource collection API of Queries. It manages LogAnalyticsQueryPackQuery.
*
- * @return Resource collection API of DeletedWorkspaces.
+ * @return Resource collection API of Queries.
*/
- public DeletedWorkspaces deletedWorkspaces() {
- if (this.deletedWorkspaces == null) {
- this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
+ public Queries queries() {
+ if (this.queries == null) {
+ this.queries = new QueriesImpl(clientObject.getQueries(), this);
}
- return deletedWorkspaces;
+ return queries;
+ }
+
+ /**
+ * Gets the resource collection API of QueryPacks. It manages LogAnalyticsQueryPack.
+ *
+ * @return Resource collection API of QueryPacks.
+ */
+ public QueryPacks queryPacks() {
+ if (this.queryPacks == null) {
+ this.queryPacks = new QueryPacksImpl(clientObject.getQueryPacks(), this);
+ }
+ return queryPacks;
+ }
+
+ /**
+ * Gets the resource collection API of StorageInsightConfigs. It manages StorageInsight.
+ *
+ * @return Resource collection API of StorageInsightConfigs.
+ */
+ public StorageInsightConfigs storageInsightConfigs() {
+ if (this.storageInsightConfigs == null) {
+ this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
+ }
+ return storageInsightConfigs;
}
/**
@@ -622,6 +598,30 @@ public SummaryLogsOperations summaryLogsOperations() {
return summaryLogsOperations;
}
+ /**
+ * Gets the resource collection API of OperationStatuses.
+ *
+ * @return Resource collection API of OperationStatuses.
+ */
+ public OperationStatuses operationStatuses() {
+ if (this.operationStatuses == null) {
+ this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
+ }
+ return operationStatuses;
+ }
+
+ /**
+ * Gets the resource collection API of DeletedWorkspaces.
+ *
+ * @return Resource collection API of DeletedWorkspaces.
+ */
+ public DeletedWorkspaces deletedWorkspaces() {
+ if (this.deletedWorkspaces == null) {
+ this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
+ }
+ return deletedWorkspaces;
+ }
+
/**
* Gets wrapped service client OperationalInsightsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
index d855f3a52bb9..6aabe21afa95 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
index 9e16be7599ee..6fc9fb4562eb 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -19,57 +19,38 @@
*/
public interface ClustersClient {
/**
- * Gets Log Analytics clusters in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Gets Log Analytics clusters in a resource group.
+ * Gets a Log Analytics cluster instance.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Gets the Log Analytics clusters in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
+ * @return a Log Analytics cluster instance along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
+ Context context);
/**
- * Gets the Log Analytics clusters in a subscription.
+ * Gets a Log Analytics cluster instance.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName Name of the Log Analytics Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
+ * @return a Log Analytics cluster instance.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
* Create or update a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Log Analytics cluster.
+ * @param clusterName Name of the Log Analytics Cluster.
* @param parameters The parameters required to create or update a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -84,7 +65,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
* Create or update a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Log Analytics cluster.
+ * @param clusterName Name of the Log Analytics Cluster.
* @param parameters The parameters required to create or update a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -100,7 +81,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
* Create or update a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Log Analytics cluster.
+ * @param clusterName Name of the Log Analytics Cluster.
* @param parameters The parameters required to create or update a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -114,7 +95,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
* Create or update a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Log Analytics cluster.
+ * @param clusterName Name of the Log Analytics Cluster.
* @param parameters The parameters required to create or update a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -126,142 +107,161 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, Context context);
/**
- * Deletes a cluster instance.
+ * Updates a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
+ ClusterPatch parameters);
/**
- * Deletes a cluster instance.
+ * Updates a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
+ ClusterPatch parameters, Context context);
/**
- * Deletes a cluster instance.
+ * Updates a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the top level Log Analytics cluster resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName);
+ ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters);
/**
- * Deletes a cluster instance.
+ * Updates a Log Analytics cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
+ * @param parameters The parameters required to patch a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the top level Log Analytics cluster resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String clusterName, Context context);
+ ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, Context context);
/**
- * Gets a Log Analytics cluster instance.
+ * Deletes a cluster instance.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics cluster instance along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
/**
- * Gets a Log Analytics cluster instance.
+ * Deletes a cluster instance.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics cluster instance.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
/**
- * Updates a Log Analytics cluster.
+ * Deletes a cluster instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
- ClusterPatch parameters);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName);
/**
- * Updates a Log Analytics cluster.
+ * Deletes a cluster instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
- ClusterPatch parameters, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String clusterName, Context context);
/**
- * Updates a Log Analytics cluster.
+ * Gets Log Analytics clusters in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Log Analytics cluster resource container.
+ * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Updates a Log Analytics cluster.
+ * Gets Log Analytics clusters in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Log Analytics cluster resource container.
+ * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Gets the Log Analytics clusters in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets the Log Analytics clusters in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
index 7abf0a117c49..c26253f6b320 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -16,31 +16,34 @@
*/
public interface DataExportsClient {
/**
- * Lists the data export instances within a workspace.
+ * Gets a data export instance.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
+ * @return a data export instance along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String dataExportName,
+ Context context);
/**
- * Lists the data export instances within a workspace.
+ * Gets a data export instance.
*
* @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.
+ * @param dataExportName The data export rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
+ * @return a data export instance.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName);
/**
* Create or update a data export.
@@ -76,7 +79,7 @@ DataExportInner createOrUpdate(String resourceGroupName, String workspaceName, S
DataExportInner parameters);
/**
- * Gets a data export instance.
+ * Deletes the specified data export in a given workspace..
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -85,14 +88,14 @@ DataExportInner createOrUpdate(String resourceGroupName, String workspaceName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a data export instance along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String dataExportName,
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataExportName,
Context context);
/**
- * Gets a data export instance.
+ * Deletes the specified data export in a given workspace..
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -100,37 +103,34 @@ Response getWithResponse(String resourceGroupName, String works
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a data export instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName);
+ void delete(String resourceGroupName, String workspaceName, String dataExportName);
/**
- * Deletes the specified data export in a given workspace..
+ * Lists the data export instances within a workspace.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataExportName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
/**
- * Deletes the specified data export in a given workspace..
+ * Lists the data export instances within a workspace.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list data exports as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String dataExportName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
index 5e2de3b323f3..e6f0400a9287 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -16,69 +16,70 @@
*/
public interface DataSourcesClient {
/**
- * Create or update a data source.
+ * Gets a datasource instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 dataSourceName Name of the datasource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return datasources under OMS Workspace along with {@link Response}.
+ * @return a datasource instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
- String dataSourceName, DataSourceInner parameters, Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName, String dataSourceName,
+ Context context);
/**
- * Create or update a data source.
+ * Gets a datasource instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 dataSourceName Name of the datasource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return datasources under OMS Workspace.
+ * @return a datasource instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataSourceInner createOrUpdate(String resourceGroupName, String workspaceName, String dataSourceName,
- DataSourceInner parameters);
+ DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName);
/**
- * Deletes a data source instance.
+ * Create or update a data source.
*
* @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 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return datasources under OMS Workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String dataSourceName, DataSourceInner parameters, Context context);
/**
- * Deletes a data source instance.
+ * Create or update a data source.
*
* @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 parameters The parameters required to create or update a datasource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return datasources under OMS Workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String dataSourceName);
+ DataSourceInner createOrUpdate(String resourceGroupName, String workspaceName, String dataSourceName,
+ DataSourceInner parameters);
/**
- * Gets a datasource instance.
+ * Deletes a data source instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -87,14 +88,14 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a datasource instance along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String dataSourceName,
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName,
Context context);
/**
- * Gets a datasource instance.
+ * Deletes a data source instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -102,10 +103,9 @@ Response getWithResponse(String resourceGroupName, String works
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a datasource instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName);
+ void delete(String resourceGroupName, String workspaceName, String dataSourceName);
/**
* Gets the first page of data source instances in a workspace with the link to the next page.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
index b355723e2838..6692fd3a3921 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
index 3928fecd4dce..1c281912e39f 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
index a8416922e9c1..225ac65e85fe 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -20,7 +20,7 @@ public interface IntelligencePacksClient {
*
* @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 intelligencePackName The name of the intelligence pack.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -36,7 +36,7 @@ Response disableWithResponse(String resourceGroupName, String workspaceNam
*
* @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 intelligencePackName The name of the intelligence pack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -49,7 +49,7 @@ Response disableWithResponse(String resourceGroupName, String workspaceNam
*
* @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 intelligencePackName The name of the intelligence pack.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -65,7 +65,7 @@ Response enableWithResponse(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 enabled.
+ * @param intelligencePackName The name of the intelligence pack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -82,7 +82,7 @@ Response enableWithResponse(String resourceGroupName, String workspaceName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of IntelligencePack along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response> listWithResponse(String resourceGroupName, String workspaceName,
@@ -96,7 +96,7 @@ Response> listWithResponse(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of IntelligencePack.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
List list(String resourceGroupName, String workspaceName);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
index f92d321e4ca8..c990b1809800 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -17,12 +17,42 @@
* An instance of this class provides access to all the operations defined in LinkedServicesClient.
*/
public interface LinkedServicesClient {
+ /**
+ * Gets a linked service instance.
+ *
+ * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a linked service instance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String linkedServiceName, Context context);
+
+ /**
+ * Gets a linked service instance.
+ *
+ * @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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a linked service instance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName);
+
/**
* Create or update a linked service.
*
* @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 linkedServices resource.
+ * @param linkedServiceName Name of the linked service.
* @param parameters The parameters required to create or update a linked service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -38,7 +68,7 @@ SyncPoller, LinkedServiceInner> beginCreateOrUpda
*
* @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 linkedServices resource.
+ * @param linkedServiceName Name of the linked service.
* @param parameters The parameters required to create or update a linked service.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -55,7 +85,7 @@ SyncPoller, LinkedServiceInner> beginCreateOrUpda
*
* @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 linkedServices resource.
+ * @param linkedServiceName Name of the linked service.
* @param parameters The parameters required to create or update a linked service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -71,7 +101,7 @@ LinkedServiceInner createOrUpdate(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 linkedServiceName Name of the linkedServices resource.
+ * @param linkedServiceName Name of the linked service.
* @param parameters The parameters required to create or update a linked service.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -95,8 +125,8 @@ LinkedServiceInner createOrUpdate(String resourceGroupName, String workspaceName
* @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkedServiceInner> beginDelete(String resourceGroupName,
- String workspaceName, String linkedServiceName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String linkedServiceName);
/**
* Deletes a linked service instance.
@@ -111,8 +141,8 @@ SyncPoller, LinkedServiceInner> beginDelete(Strin
* @return the {@link SyncPoller} for polling of the top level Linked service resource container.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LinkedServiceInner> beginDelete(String resourceGroupName,
- String workspaceName, String linkedServiceName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String linkedServiceName, Context context);
/**
* Deletes a linked service instance.
@@ -123,10 +153,9 @@ SyncPoller, LinkedServiceInner> beginDelete(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LinkedServiceInner delete(String resourceGroupName, String workspaceName, String linkedServiceName);
+ void delete(String resourceGroupName, String workspaceName, String linkedServiceName);
/**
* Deletes a linked service instance.
@@ -138,41 +167,9 @@ SyncPoller, LinkedServiceInner> beginDelete(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Linked service resource container.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LinkedServiceInner delete(String resourceGroupName, String workspaceName, String linkedServiceName,
- Context context);
-
- /**
- * Gets a linked service instance.
- *
- * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a linked service instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName,
- String linkedServiceName, Context context);
-
- /**
- * Gets a linked service instance.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a linked service instance.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName);
+ void delete(String resourceGroupName, String workspaceName, String linkedServiceName, Context context);
/**
* Gets the linked services instances in a workspace.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
index 5579a110fcc0..df57e27c304c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -17,72 +17,75 @@
*/
public interface LinkedStorageAccountsClient {
/**
- * Create or Update a link relation between current workspace and a group of storage accounts of a specific data
- * source type.
+ * Gets all linked storage account of a specific data source type associated with the specified workspace.
*
* @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 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked storage accounts top level resource container along with {@link Response}.
+ * @return all linked storage account of a specific data source type associated with the specified workspace along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName,
- String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters,
- Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ DataSourceType dataSourceType, Context context);
/**
- * Create or Update a link relation between current workspace and a group of storage accounts of a specific data
- * source type.
+ * Gets all linked storage account of a specific data source type associated with the specified workspace.
*
* @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 parameters The parameters required to create or update linked storage accounts.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return linked storage accounts top level resource container.
+ * @return all linked storage account of a specific data source type associated with the specified workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LinkedStorageAccountsResourceInner createOrUpdate(String resourceGroupName, String workspaceName,
- DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters);
+ LinkedStorageAccountsResourceInner get(String resourceGroupName, String workspaceName,
+ DataSourceType dataSourceType);
/**
- * Deletes all linked storage accounts of a specific data source type associated with the specified workspace.
+ * Create or Update a link relation between current workspace and a group of storage accounts of a specific data
+ * source type.
*
* @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 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return linked storage accounts top level resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, DataSourceType dataSourceType,
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters,
Context context);
/**
- * Deletes all linked storage accounts of a specific data source type associated with the specified workspace.
+ * Create or Update a link relation between current workspace and a group of storage accounts of a specific data
+ * source type.
*
* @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 parameters The parameters required to create or update linked storage accounts.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return linked storage accounts top level resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType);
+ LinkedStorageAccountsResourceInner createOrUpdate(String resourceGroupName, String workspaceName,
+ DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters);
/**
- * Gets all linked storage account of a specific data source type associated with the specified workspace.
+ * Deletes all linked storage accounts of a specific data source type associated with the specified workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -91,15 +94,14 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all linked storage account of a specific data source type associated with the specified workspace along
- * with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName,
- DataSourceType dataSourceType, Context context);
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, DataSourceType dataSourceType,
+ Context context);
/**
- * Gets all linked storage account of a specific data source type associated with the specified workspace.
+ * Deletes all linked storage accounts of a specific data source type associated with the specified workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -107,11 +109,9 @@ Response getWithResponse(String resourceGrou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all linked storage account of a specific data source type associated with the specified workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LinkedStorageAccountsResourceInner get(String resourceGroupName, String workspaceName,
- DataSourceType dataSourceType);
+ void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType);
/**
* Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
index 99fa3ff18c99..94c9e8c4cc70 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
index 177c5c74045b..4b85eff7ee26 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -17,7 +17,7 @@ public interface OperationStatusesClient {
/**
* Get the status of a long running azure asynchronous operation.
*
- * @param location The region name of operation.
+ * @param location The name of the Azure region.
* @param asyncOperationId The operation Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -31,7 +31,7 @@ public interface OperationStatusesClient {
/**
* Get the status of a long running azure asynchronous operation.
*
- * @param location The region name of operation.
+ * @param location The name of the Azure region.
* @param asyncOperationId The operation Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
index 876719a127c7..264aa40573c1 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -12,26 +12,26 @@
*/
public interface OperationalInsightsManagementClient {
/**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -47,11 +47,11 @@ public interface OperationalInsightsManagementClient {
Duration getDefaultPollInterval();
/**
- * Gets the AvailableServiceTiersClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the AvailableServiceTiersClient object.
+ * @return the OperationsClient object.
*/
- AvailableServiceTiersClient getAvailableServiceTiers();
+ OperationsClient getOperations();
/**
* Gets the ClustersClient object to access its operations.
@@ -68,25 +68,18 @@ public interface OperationalInsightsManagementClient {
DataExportsClient getDataExports();
/**
- * Gets the DataSourcesClient object to access its operations.
- *
- * @return the DataSourcesClient object.
- */
- DataSourcesClient getDataSources();
-
- /**
- * Gets the GatewaysClient object to access its operations.
+ * Gets the WorkspacesClient object to access its operations.
*
- * @return the GatewaysClient object.
+ * @return the WorkspacesClient object.
*/
- GatewaysClient getGateways();
+ WorkspacesClient getWorkspaces();
/**
- * Gets the IntelligencePacksClient object to access its operations.
+ * Gets the DataSourcesClient object to access its operations.
*
- * @return the IntelligencePacksClient object.
+ * @return the DataSourcesClient object.
*/
- IntelligencePacksClient getIntelligencePacks();
+ DataSourcesClient getDataSources();
/**
* Gets the LinkedServicesClient object to access its operations.
@@ -96,53 +89,46 @@ public interface OperationalInsightsManagementClient {
LinkedServicesClient getLinkedServices();
/**
- * Gets the LinkedStorageAccountsClient object to access its operations.
- *
- * @return the LinkedStorageAccountsClient object.
- */
- LinkedStorageAccountsClient getLinkedStorageAccounts();
-
- /**
- * Gets the ManagementGroupsClient object to access its operations.
+ * Gets the SavedSearchesClient object to access its operations.
*
- * @return the ManagementGroupsClient object.
+ * @return the SavedSearchesClient object.
*/
- ManagementGroupsClient getManagementGroups();
+ SavedSearchesClient getSavedSearches();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the TablesClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the TablesClient object.
*/
- OperationsClient getOperations();
+ TablesClient getTables();
/**
- * Gets the OperationStatusesClient object to access its operations.
+ * Gets the AvailableServiceTiersClient object to access its operations.
*
- * @return the OperationStatusesClient object.
+ * @return the AvailableServiceTiersClient object.
*/
- OperationStatusesClient getOperationStatuses();
+ AvailableServiceTiersClient getAvailableServiceTiers();
/**
- * Gets the QueriesClient object to access its operations.
+ * Gets the GatewaysClient object to access its operations.
*
- * @return the QueriesClient object.
+ * @return the GatewaysClient object.
*/
- QueriesClient getQueries();
+ GatewaysClient getGateways();
/**
- * Gets the QueryPacksClient object to access its operations.
+ * Gets the IntelligencePacksClient object to access its operations.
*
- * @return the QueryPacksClient object.
+ * @return the IntelligencePacksClient object.
*/
- QueryPacksClient getQueryPacks();
+ IntelligencePacksClient getIntelligencePacks();
/**
- * Gets the SavedSearchesClient object to access its operations.
+ * Gets the ManagementGroupsClient object to access its operations.
*
- * @return the SavedSearchesClient object.
+ * @return the ManagementGroupsClient object.
*/
- SavedSearchesClient getSavedSearches();
+ ManagementGroupsClient getManagementGroups();
/**
* Gets the SchemasClient object to access its operations.
@@ -159,46 +145,46 @@ public interface OperationalInsightsManagementClient {
SharedKeysOperationsClient getSharedKeysOperations();
/**
- * Gets the StorageInsightConfigsClient object to access its operations.
+ * Gets the UsagesClient object to access its operations.
*
- * @return the StorageInsightConfigsClient object.
+ * @return the UsagesClient object.
*/
- StorageInsightConfigsClient getStorageInsightConfigs();
+ UsagesClient getUsages();
/**
- * Gets the TablesClient object to access its operations.
+ * Gets the WorkspacePurgesClient object to access its operations.
*
- * @return the TablesClient object.
+ * @return the WorkspacePurgesClient object.
*/
- TablesClient getTables();
+ WorkspacePurgesClient getWorkspacePurges();
/**
- * Gets the UsagesClient object to access its operations.
+ * Gets the LinkedStorageAccountsClient object to access its operations.
*
- * @return the UsagesClient object.
+ * @return the LinkedStorageAccountsClient object.
*/
- UsagesClient getUsages();
+ LinkedStorageAccountsClient getLinkedStorageAccounts();
/**
- * Gets the WorkspacePurgesClient object to access its operations.
+ * Gets the QueriesClient object to access its operations.
*
- * @return the WorkspacePurgesClient object.
+ * @return the QueriesClient object.
*/
- WorkspacePurgesClient getWorkspacePurges();
+ QueriesClient getQueries();
/**
- * Gets the WorkspacesClient object to access its operations.
+ * Gets the QueryPacksClient object to access its operations.
*
- * @return the WorkspacesClient object.
+ * @return the QueryPacksClient object.
*/
- WorkspacesClient getWorkspaces();
+ QueryPacksClient getQueryPacks();
/**
- * Gets the DeletedWorkspacesClient object to access its operations.
+ * Gets the StorageInsightConfigsClient object to access its operations.
*
- * @return the DeletedWorkspacesClient object.
+ * @return the StorageInsightConfigsClient object.
*/
- DeletedWorkspacesClient getDeletedWorkspaces();
+ StorageInsightConfigsClient getStorageInsightConfigs();
/**
* Gets the SummaryLogsOperationsClient object to access its operations.
@@ -206,4 +192,18 @@ public interface OperationalInsightsManagementClient {
* @return the SummaryLogsOperationsClient object.
*/
SummaryLogsOperationsClient getSummaryLogsOperations();
+
+ /**
+ * Gets the OperationStatusesClient object to access its operations.
+ *
+ * @return the OperationStatusesClient object.
+ */
+ OperationStatusesClient getOperationStatuses();
+
+ /**
+ * Gets the DeletedWorkspacesClient object to access its operations.
+ *
+ * @return the DeletedWorkspacesClient object.
+ */
+ DeletedWorkspacesClient getDeletedWorkspaces();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
index 6dd406b28a20..ac6ca7bde37b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -19,7 +19,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list solution operations as paginated response with {@link PagedIterable}.
+ * @return paged collection of Operation items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -31,7 +31,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list solution operations as paginated response with {@link PagedIterable}.
+ * @return paged collection of Operation items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java
index d91aba255310..7cce75b0afe6 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -16,78 +16,6 @@
* An instance of this class provides access to all the operations defined in QueriesClient.
*/
public interface QueriesClient {
- /**
- * Gets a list of Queries defined within a Log Analytics QueryPack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String queryPackName);
-
- /**
- * Gets a list of Queries defined within a Log Analytics QueryPack.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param top Maximum items returned in page.
- * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
- * return the query information.
- * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String queryPackName, Long top,
- Boolean includeBody, String skipToken, Context context);
-
- /**
- * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable search(String resourceGroupName, String queryPackName,
- LogAnalyticsQueryPackQuerySearchProperties querySearchProperties);
-
- /**
- * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
- * @param top Maximum items returned in page.
- * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
- * return the query information.
- * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable search(String resourceGroupName, String queryPackName,
- LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody,
- String skipToken, Context context);
-
/**
* Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.
*
@@ -215,4 +143,76 @@ LogAnalyticsQueryPackQueryInner update(String resourceGroupName, String queryPac
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String queryPackName, String id);
+
+ /**
+ * Gets a list of Queries defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String queryPackName);
+
+ /**
+ * Gets a list of Queries defined within a Log Analytics QueryPack.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param top Maximum items returned in page.
+ * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
+ * return the query information.
+ * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String queryPackName, Long top,
+ Boolean includeBody, String skipToken, Context context);
+
+ /**
+ * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable search(String resourceGroupName, String queryPackName,
+ LogAnalyticsQueryPackQuerySearchProperties querySearchProperties);
+
+ /**
+ * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack.
+ * @param top Maximum items returned in page.
+ * @param includeBody Flag indicating whether or not to return the body of each applicable query. If false, only
+ * return the query information.
+ * @param skipToken Base64 encoded token used to fetch the next page of items. Default is null.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable search(String resourceGroupName, String queryPackName,
+ LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody,
+ String skipToken, Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java
index ea43800b837c..9fefbc25a541 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -17,63 +17,74 @@
*/
public interface QueryPacksClient {
/**
- * Gets a list of all Log Analytics QueryPacks within a subscription.
+ * Returns a Log Analytics QueryPack.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with
- * {@link PagedIterable}.
+ * @return an Log Analytics QueryPack definition along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String queryPackName,
+ Context context);
/**
- * Gets a list of all Log Analytics QueryPacks within a subscription.
+ * Returns a Log Analytics QueryPack.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with
- * {@link PagedIterable}.
+ * @return an Log Analytics QueryPack definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackInner getByResourceGroup(String resourceGroupName, String queryPackName);
/**
- * Gets a list of Log Analytics QueryPacks within a resource group.
+ * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
+ * nor AppId in the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
+ * QueryPack.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Log Analytics QueryPacks within a resource group as paginated response with
- * {@link PagedIterable}.
+ * @return an Log Analytics QueryPack definition along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String queryPackName,
+ LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context);
/**
- * Gets a list of Log Analytics QueryPacks within a resource group.
+ * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
+ * nor AppId in the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
+ * QueryPack.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Log Analytics QueryPacks within a resource group as paginated response with
- * {@link PagedIterable}.
+ * @return an Log Analytics QueryPack definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String queryPackName,
+ LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload);
/**
- * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in
- * the Put operation.
+ * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
- * QueryPack.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param queryPackTags Updated tag information to set into the QueryPack instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -81,24 +92,22 @@ public interface QueryPacksClient {
* @return an Log Analytics QueryPack definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithoutNameWithResponse(String resourceGroupName,
- LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context);
+ Response updateTagsWithResponse(String resourceGroupName, String queryPackName,
+ TagsResource queryPackTags, Context context);
/**
- * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in
- * the Put operation.
+ * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
- * QueryPack.
+ * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param queryPackTags Updated tag information to set into the QueryPack instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Log Analytics QueryPack definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogAnalyticsQueryPackInner createOrUpdateWithoutName(String resourceGroupName,
- LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload);
+ LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, TagsResource queryPackTags);
/**
* Deletes a Log Analytics QueryPack.
@@ -127,74 +136,62 @@ LogAnalyticsQueryPackInner createOrUpdateWithoutName(String resourceGroupName,
void delete(String resourceGroupName, String queryPackName);
/**
- * Returns a Log Analytics QueryPack.
+ * Gets a list of Log Analytics QueryPacks within a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Log Analytics QueryPack definition along with {@link Response}.
+ * @return a list of Log Analytics QueryPacks within a resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String queryPackName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Returns a Log Analytics QueryPack.
+ * Gets a list of Log Analytics QueryPacks within a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Log Analytics QueryPack definition.
+ * @return a list of Log Analytics QueryPacks within a resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- LogAnalyticsQueryPackInner getByResourceGroup(String resourceGroupName, String queryPackName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
- * nor AppId in the Put operation.
+ * Gets a list of all Log Analytics QueryPacks within a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
- * QueryPack.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Log Analytics QueryPack definition along with {@link Response}.
+ * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String queryPackName,
- LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey
- * nor AppId in the Put operation.
+ * Gets a list of all Log Analytics QueryPacks within a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics
- * QueryPack.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Log Analytics QueryPack definition.
+ * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String queryPackName,
- LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
- * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
+ * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in
+ * the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param queryPackTags Updated tag information to set into the QueryPack instance.
+ * @param logAnalyticsQueryPackPayload The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -202,20 +199,21 @@ LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String query
* @return an Log Analytics QueryPack definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateTagsWithResponse(String resourceGroupName, String queryPackName,
- TagsResource queryPackTags, Context context);
+ Response createOrUpdateWithoutNameWithResponse(String resourceGroupName,
+ LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context);
/**
- * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
+ * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in
+ * the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param queryPackName The name of the Log Analytics QueryPack resource.
- * @param queryPackTags Updated tag information to set into the QueryPack instance.
+ * @param logAnalyticsQueryPackPayload The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Log Analytics QueryPack definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, TagsResource queryPackTags);
+ LogAnalyticsQueryPackInner createOrUpdateWithoutName(String resourceGroupName,
+ LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
index 624d7c1bb615..f1ed289f7c3e 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -16,7 +16,7 @@
*/
public interface SavedSearchesClient {
/**
- * Deletes the specified saved search in a given workspace.
+ * Gets the specified saved search for a given workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -25,14 +25,14 @@ public interface SavedSearchesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return the specified saved search for a given workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId,
+ Response getWithResponse(String resourceGroupName, String workspaceName, String savedSearchId,
Context context);
/**
- * Deletes the specified saved search in a given workspace.
+ * Gets the specified saved search for a given workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -40,9 +40,10 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified saved search for a given workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String savedSearchId);
+ SavedSearchInner get(String resourceGroupName, String workspaceName, String savedSearchId);
/**
* Creates or updates a saved search for a given workspace.
@@ -78,7 +79,7 @@ SavedSearchInner createOrUpdate(String resourceGroupName, String workspaceName,
SavedSearchInner parameters);
/**
- * Gets the specified saved search for a given workspace.
+ * Deletes the specified saved search in a given workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -87,14 +88,14 @@ SavedSearchInner createOrUpdate(String resourceGroupName, String workspaceName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified saved search for a given workspace along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String savedSearchId,
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId,
Context context);
/**
- * Gets the specified saved search for a given workspace.
+ * Deletes the specified saved search in a given workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -102,10 +103,9 @@ Response getWithResponse(String resourceGroupName, String work
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified saved search for a given workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SavedSearchInner get(String resourceGroupName, String workspaceName, String savedSearchId);
+ void delete(String resourceGroupName, String workspaceName, String savedSearchId);
/**
* Gets the saved searches for a given Log Analytics Workspace.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
index 11f22d026a32..fca4cf1b8726 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
index 163dd1c0829e..1b4de68d0a4b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
index 5bd083be09ec..c87e014e5dd5 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -16,67 +16,67 @@
*/
public interface StorageInsightConfigsClient {
/**
- * Create or update a storage insight.
+ * Gets a storage insight instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param storageInsightName Name of the storageInsightsConfigs resource.
- * @param parameters The parameters required to create or update a storage insight.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level storage insight resource container along with {@link Response}.
+ * @return a storage insight instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
- String storageInsightName, StorageInsightInner parameters, Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String storageInsightName, Context context);
/**
- * Create or update a storage insight.
+ * Gets a storage insight instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param storageInsightName Name of the storageInsightsConfigs resource.
- * @param parameters The parameters required to create or update a storage insight.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level storage insight resource container.
+ * @return a storage insight instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- StorageInsightInner createOrUpdate(String resourceGroupName, String workspaceName, String storageInsightName,
- StorageInsightInner parameters);
+ StorageInsightInner get(String resourceGroupName, String workspaceName, String storageInsightName);
/**
- * Gets a storage insight instance.
+ * Create or update a storage insight.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param storageInsightName Name of the storageInsightsConfigs resource.
+ * @param parameters The parameters required to create or update a storage insight.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a storage insight instance along with {@link Response}.
+ * @return the top level storage insight resource container along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName,
- String storageInsightName, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String storageInsightName, StorageInsightInner parameters, Context context);
/**
- * Gets a storage insight instance.
+ * Create or update a storage insight.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param storageInsightName Name of the storageInsightsConfigs resource.
+ * @param parameters The parameters required to create or update a storage insight.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a storage insight instance.
+ * @return the top level storage insight resource container.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- StorageInsightInner get(String resourceGroupName, String workspaceName, String storageInsightName);
+ StorageInsightInner createOrUpdate(String resourceGroupName, String workspaceName, String storageInsightName,
+ StorageInsightInner parameters);
/**
* Deletes a storageInsightsConfigs resource.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java
index e00c3ef2b116..b59cc7eeb8b3 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -19,33 +19,34 @@
*/
public interface SummaryLogsOperationsClient {
/**
- * Gets all summary rules for the specified Log Analytics workspace.
+ * Gets Log Analytics workspace Summary rules.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param summaryLogsName The name of the summary logs. Must not contain '/'.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all summary rules for the specified Log Analytics workspace as paginated response with
- * {@link PagedIterable}.
+ * @return log Analytics workspace Summary rules along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName,
+ Context context);
/**
- * Gets all summary rules for the specified Log Analytics workspace.
+ * Gets Log Analytics workspace Summary rules.
*
* @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.
+ * @param summaryLogsName The name of the summary logs. Must not contain '/'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all summary rules for the specified Log Analytics workspace as paginated response with
- * {@link PagedIterable}.
+ * @return log Analytics workspace Summary rules.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SummaryLogsInner get(String resourceGroupName, String workspaceName, String summaryLogsName);
/**
* Creates or updates Log Analytics workspace Summary rules.
@@ -114,34 +115,35 @@ SummaryLogsInner createOrUpdate(String resourceGroupName, String workspaceName,
SummaryLogsInner parameters, Context context);
/**
- * Gets Log Analytics workspace Summary rules.
+ * Deletes Log Analytics workspace Summary rules.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param summaryLogsName The name of the summary logs. Must not contain '/'.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics workspace Summary rules along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String summaryLogsName);
/**
- * Gets Log Analytics workspace Summary rules.
+ * Deletes Log Analytics workspace Summary rules.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param summaryLogsName The name of the summary logs. Must not contain '/'.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics workspace Summary rules.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- SummaryLogsInner get(String resourceGroupName, String workspaceName, String summaryLogsName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String summaryLogsName, Context context);
/**
* Deletes Log Analytics workspace Summary rules.
@@ -152,11 +154,9 @@ Response getWithResponse(String resourceGroupName, String work
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
- String summaryLogsName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String summaryLogsName);
/**
* Deletes Log Analytics workspace Summary rules.
@@ -168,38 +168,38 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
- String summaryLogsName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String summaryLogsName, Context context);
/**
- * Deletes Log Analytics workspace Summary rules.
+ * Gets all summary rules for the specified Log Analytics workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param summaryLogsName The name of the summary logs. Must not contain '/'.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all summary rules for the specified Log Analytics workspace as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String summaryLogsName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
/**
- * Deletes Log Analytics workspace Summary rules.
+ * Gets all summary rules for the specified Log Analytics workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param summaryLogsName The name of the summary logs. Must not contain '/'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all summary rules for the specified Log Analytics workspace as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String summaryLogsName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
/**
* Starts an inactive Summary rule.
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
index 3a559980ebfc..50dd3d3df623 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -18,33 +18,34 @@
*/
public interface TablesClient {
/**
- * Gets all the tables for the specified Log Analytics workspace.
+ * Gets a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param tableName The name of the table.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the tables for the specified Log Analytics workspace as paginated response with
- * {@link PagedIterable}.
+ * @return a Log Analytics workspace table along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String tableName,
+ Context context);
/**
- * Gets all the tables for the specified Log Analytics workspace.
+ * Gets a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
+ * @param tableName The name of the table.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the tables for the specified Log Analytics workspace as paginated response with
- * {@link PagedIterable}.
+ * @return a Log Analytics workspace table.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableInner get(String resourceGroupName, String workspaceName, String tableName);
/**
* Update or Create a Log Analytics workspace table.
@@ -177,34 +178,34 @@ TableInner update(String resourceGroupName, String workspaceName, String tableNa
Context context);
/**
- * Gets a Log Analytics workspace table.
+ * Delete a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param tableName The name of the table.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics workspace table along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName, String tableName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName);
/**
- * Gets a Log Analytics workspace table.
+ * Delete a Log Analytics workspace table.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param tableName The name of the table.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Log Analytics workspace table.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- TableInner get(String resourceGroupName, String workspaceName, String tableName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName,
+ Context context);
/**
* Delete a Log Analytics workspace table.
@@ -215,10 +216,9 @@ Response getWithResponse(String resourceGroupName, String workspaceN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String tableName);
/**
* Delete a Log Analytics workspace table.
@@ -230,38 +230,38 @@ Response getWithResponse(String resourceGroupName, String workspaceN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String tableName, Context context);
/**
- * Delete a Log Analytics workspace table.
+ * Gets all the tables for the specified Log Analytics workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the tables for the specified Log Analytics workspace as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String tableName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
/**
- * Delete a Log Analytics workspace table.
+ * Gets all the tables for the specified Log Analytics workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param tableName The name of the table.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the tables for the specified Log Analytics workspace as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String tableName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context);
/**
* Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
index 060166fa2bbd..5b9d4d72c406 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
index effbdac5f6a9..557e83d31eef 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
index 03ec9dd954ce..1a4f813505ae 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent;
@@ -20,51 +20,32 @@
*/
public interface WorkspacesClient {
/**
- * Gets the workspaces in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Gets the workspaces in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Gets workspaces in a resource group.
+ * Gets a workspace instance.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
+ * @return a workspace instance along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName,
+ Context context);
/**
- * Gets workspaces in a resource group.
+ * Gets a workspace instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
+ * @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
+ * @return a workspace instance.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
/**
* Create or update a workspace.
@@ -127,6 +108,36 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate(Strin
WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters,
Context context);
+ /**
+ * Updates a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param parameters The parameters required to patch a workspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the top level Workspace resource container along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String workspaceName,
+ WorkspacePatch parameters, Context context);
+
+ /**
+ * Updates a workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the workspace.
+ * @param parameters The parameters required to patch a workspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the top level Workspace resource container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatch parameters);
+
/**
* Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same
* subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace.
@@ -193,72 +204,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String workspaceName, Boolean force, Context context);
/**
- * Gets a workspace instance.
+ * Gets workspaces in a resource group.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a workspace instance along with {@link Response}.
+ * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Gets a workspace instance.
+ * Gets workspaces in a resource group.
*
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a workspace instance.
+ * @return workspaces in a resource group as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Updates a workspace.
+ * Gets the workspaces in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param parameters The parameters required to patch a workspace.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Workspace resource container along with {@link Response}.
+ * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String workspaceName,
- WorkspacePatch parameters, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Updates a workspace.
+ * Gets the workspaces in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param parameters The parameters required to patch a workspace.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the top level Workspace resource container.
+ * @return the workspaces in a subscription as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatch parameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
- * Activates failover for the specified workspace.
+ * Deactivates failover for the specified workspace.
*
- * The specified replication location must match the location of the enabled replication for this workspace. The
- * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
- * checked using the operationId returned in the response.
+ * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
+ * be checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param location The name of the Azure region.
* @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -266,17 +264,15 @@ Response updateWithResponse(String resourceGroupName, String wor
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailover(String resourceGroupName, String location, String workspaceName);
+ SyncPoller, Void> beginFailback(String resourceGroupName, String workspaceName);
/**
- * Activates failover for the specified workspace.
+ * Deactivates failover for the specified workspace.
*
- * The specified replication location must match the location of the enabled replication for this workspace. The
- * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
- * checked using the operationId returned in the response.
+ * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
+ * be checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param location The name of the Azure region.
* @param workspaceName The name of the workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -285,35 +281,30 @@ Response updateWithResponse(String resourceGroupName, String wor
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailover(String resourceGroupName, String location, String workspaceName,
- Context context);
+ SyncPoller, Void> beginFailback(String resourceGroupName, String workspaceName, Context context);
/**
- * Activates failover for the specified workspace.
+ * Deactivates failover for the specified workspace.
*
- * The specified replication location must match the location of the enabled replication for this workspace. The
- * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
- * checked using the operationId returned in the response.
+ * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
+ * be checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param location The name of the Azure region.
* @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void failover(String resourceGroupName, String location, String workspaceName);
+ void failback(String resourceGroupName, String workspaceName);
/**
- * Activates failover for the specified workspace.
+ * Deactivates failover for the specified workspace.
*
- * The specified replication location must match the location of the enabled replication for this workspace. The
- * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
- * checked using the operationId returned in the response.
+ * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
+ * be checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param location The name of the Azure region.
* @param workspaceName The name of the workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -321,61 +312,54 @@ SyncPoller, Void> beginFailover(String resourceGroupName, Strin
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void failover(String resourceGroupName, String location, String workspaceName, Context context);
+ void failback(String resourceGroupName, String workspaceName, Context context);
/**
- * Deactivates failover for the specified workspace.
- *
- * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
- * be checked using the operationId returned in the response.
+ * Gets a network security perimeter configuration.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return a network security perimeter configuration along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailback(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getNspWithResponse(String resourceGroupName,
+ String workspaceName, String networkSecurityPerimeterConfigurationName, Context context);
/**
- * Deactivates failover for the specified workspace.
- *
- * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
- * be checked using the operationId returned in the response.
+ * Gets a network security perimeter configuration.
*
* @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.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return a network security perimeter configuration.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailback(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkSecurityPerimeterConfigurationInner getNsp(String resourceGroupName, String workspaceName,
+ String networkSecurityPerimeterConfigurationName);
/**
- * Deactivates failover for the specified workspace.
- *
- * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
- * be checked using the operationId returned in the response.
+ * Gets a list of NSP configurations for specified workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of NSP configurations for specified workspace as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void failback(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listNsp(String resourceGroupName, String workspaceName);
/**
- * Deactivates failover for the specified workspace.
- *
- * The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can
- * be checked using the operationId returned in the response.
+ * Gets a list of NSP configurations for specified workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
@@ -383,90 +367,99 @@ SyncPoller, Void> beginFailover(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of NSP configurations for specified workspace as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void failback(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listNsp(String resourceGroupName, String workspaceName,
+ Context context);
/**
- * Gets a list of NSP configurations for specified workspace.
+ * Reconcile network security perimeter configuration for Workspace resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of NSP configurations for specified workspace as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listNsp(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName,
+ String networkSecurityPerimeterConfigurationName);
/**
- * Gets a list of NSP configurations for specified workspace.
+ * Reconcile network security perimeter configuration for Workspace resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of NSP configurations for specified workspace as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listNsp(String resourceGroupName, String workspaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName,
+ String networkSecurityPerimeterConfigurationName, Context context);
/**
- * Gets a network security perimeter configuration.
+ * Reconcile network security perimeter configuration for Workspace resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network security perimeter configuration along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getNspWithResponse(String resourceGroupName,
- String workspaceName, String networkSecurityPerimeterConfigurationName, Context context);
+ void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName);
/**
- * Gets a network security perimeter configuration.
+ * Reconcile network security perimeter configuration for Workspace resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a network security perimeter configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner getNsp(String resourceGroupName, String workspaceName,
- String networkSecurityPerimeterConfigurationName);
+ void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName,
+ Context context);
/**
- * Reconcile network security perimeter configuration for Workspace resource.
+ * Activates failover for the specified workspace.
+ *
+ * The specified replication location must match the location of the enabled replication for this workspace. The
+ * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
+ * checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
* @param workspaceName The name of the workspace.
- * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName,
- String networkSecurityPerimeterConfigurationName);
+ SyncPoller, Void> beginFailover(String resourceGroupName, String location, String workspaceName);
/**
- * Reconcile network security perimeter configuration for Workspace resource.
+ * Activates failover for the specified workspace.
+ *
+ * The specified replication location must match the location of the enabled replication for this workspace. The
+ * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
+ * checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
* @param workspaceName The name of the workspace.
- * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -474,34 +467,41 @@ SyncPoller, Void> beginReconcileNsp(String resourceGroupName, S
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName,
- String networkSecurityPerimeterConfigurationName, Context context);
+ SyncPoller, Void> beginFailover(String resourceGroupName, String location, String workspaceName,
+ Context context);
/**
- * Reconcile network security perimeter configuration for Workspace resource.
+ * Activates failover for the specified workspace.
+ *
+ * The specified replication location must match the location of the enabled replication for this workspace. The
+ * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
+ * checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
* @param workspaceName The name of the workspace.
- * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName);
+ void failover(String resourceGroupName, String location, String workspaceName);
/**
- * Reconcile network security perimeter configuration for Workspace resource.
+ * Activates failover for the specified workspace.
+ *
+ * The specified replication location must match the location of the enabled replication for this workspace. The
+ * failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be
+ * checked using the operationId returned in the response.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
* @param workspaceName The name of the workspace.
- * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName,
- Context context);
+ void failover(String resourceGroupName, String location, String workspaceName, Context context);
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
index 6d8acbd84942..818df3a3a1cd 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -55,7 +55,7 @@ public final class AvailableServiceTierInner implements JsonSerializable writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
jsonWriter.writeJsonField("identity", this.identity);
jsonWriter.writeJsonField("sku", this.sku);
- jsonWriter.writeJsonField("properties", this.innerProperties);
return jsonWriter.writeEndObject();
}
@@ -421,12 +419,14 @@ public static ClusterInner fromJson(JsonReader jsonReader) throws IOException {
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedClusterInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedClusterInner.identity = ManagedServiceIdentity.fromJson(reader);
} else if ("sku".equals(fieldName)) {
deserializedClusterInner.sku = ClusterSku.fromJson(reader);
- } else if ("properties".equals(fieldName)) {
- deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedClusterInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java
index 2793c7f11f81..f782c350981c 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -74,17 +74,6 @@ public ClusterPatchProperties withBillingType(BillingType billingType) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (keyVaultProperties() != null) {
- keyVaultProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java
index 4e83811ad839..7ca9294b12c8 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -272,26 +272,6 @@ public ClusterProperties withReplication(ClusterReplicationProperties replicatio
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (keyVaultProperties() != null) {
- keyVaultProperties().validate();
- }
- if (associatedWorkspaces() != null) {
- associatedWorkspaces().forEach(e -> e.validate());
- }
- if (capacityReservationProperties() != null) {
- capacityReservationProperties().validate();
- }
- if (replication() != null) {
- replication().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
index ecc5d33437fe..1de5df324b5a 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -23,6 +24,11 @@ public final class DataExportInner extends ProxyResource {
*/
private DataExportProperties innerProperties;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -53,6 +59,15 @@ private DataExportProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -257,17 +272,6 @@ public DataExportInner withEventHubName(String eventHubName) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -302,6 +306,8 @@ public static DataExportInner fromJson(JsonReader jsonReader) throws IOException
deserializedDataExportInner.type = reader.getString();
} else if ("properties".equals(fieldName)) {
deserializedDataExportInner.innerProperties = DataExportProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDataExportInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java
index eecd8f062e72..543c761187c4 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -223,24 +222,6 @@ public DataExportProperties withEventHubName(String eventHubName) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (tableNames() == null) {
- throw LOGGER.atError()
- .log(
- new IllegalArgumentException("Missing required property tableNames in model DataExportProperties"));
- }
- if (innerDestination() != null) {
- innerDestination().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DataExportProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
index e4a073336360..f0875032e7ff 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -39,6 +39,11 @@ public final class DataSourceInner extends ProxyResource {
*/
private Map tags;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -142,6 +147,15 @@ public DataSourceInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -172,24 +186,6 @@ public String id() {
return this.id;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property properties in model DataSourceInner"));
- }
- if (kind() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property kind in model DataSourceInner"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DataSourceInner.class);
-
/**
* {@inheritDoc}
*/
@@ -234,6 +230,8 @@ public static DataSourceInner fromJson(JsonReader jsonReader) throws IOException
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedDataSourceInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDataSourceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java
index 887228e41da3..f5a3dbfd721b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -31,7 +30,7 @@ public final class Destination implements JsonSerializable {
/*
* destination meta data.
*/
- private DestinationMetadata innerMetadata;
+ private DestinationMetadata innerMetaData;
/**
* Creates an instance of Destination class.
@@ -71,12 +70,12 @@ public Type type() {
}
/**
- * Get the innerMetadata property: destination meta data.
+ * Get the innerMetaData property: destination meta data.
*
- * @return the innerMetadata value.
+ * @return the innerMetaData value.
*/
- private DestinationMetadata innerMetadata() {
- return this.innerMetadata;
+ private DestinationMetadata innerMetaData() {
+ return this.innerMetaData;
}
/**
@@ -86,7 +85,7 @@ private DestinationMetadata innerMetadata() {
* @return the eventHubName value.
*/
public String eventHubName() {
- return this.innerMetadata() == null ? null : this.innerMetadata().eventHubName();
+ return this.innerMetaData() == null ? null : this.innerMetaData().eventHubName();
}
/**
@@ -97,30 +96,13 @@ public String eventHubName() {
* @return the Destination object itself.
*/
public Destination withEventHubName(String eventHubName) {
- if (this.innerMetadata() == null) {
- this.innerMetadata = new DestinationMetadata();
+ if (this.innerMetaData() == null) {
+ this.innerMetaData = new DestinationMetadata();
}
- this.innerMetadata().withEventHubName(eventHubName);
+ this.innerMetaData().withEventHubName(eventHubName);
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (resourceId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property resourceId in model Destination"));
- }
- if (innerMetadata() != null) {
- innerMetadata().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(Destination.class);
-
/**
* {@inheritDoc}
*/
@@ -128,7 +110,7 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("resourceId", this.resourceId);
- jsonWriter.writeJsonField("metaData", this.innerMetadata);
+ jsonWriter.writeJsonField("metaData", this.innerMetaData);
return jsonWriter.writeEndObject();
}
@@ -153,7 +135,7 @@ public static Destination fromJson(JsonReader jsonReader) throws IOException {
} else if ("type".equals(fieldName)) {
deserializedDestination.type = Type.fromString(reader.getString());
} else if ("metaData".equals(fieldName)) {
- deserializedDestination.innerMetadata = DestinationMetadata.fromJson(reader);
+ deserializedDestination.innerMetaData = DestinationMetadata.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java
index 56c47e9e1243..5964c63b9345 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -49,14 +49,6 @@ public DestinationMetadata withEventHubName(String eventHubName) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
index 6c274e7d310d..c76f406cde91 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* Intelligence Pack containing a string name and boolean indicating if it's enabled.
*/
-@Fluent
+@Immutable
public final class IntelligencePackInner implements JsonSerializable {
/*
* The name of the intelligence pack.
@@ -34,7 +34,7 @@ public final class IntelligencePackInner implements JsonSerializable tags;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -79,6 +84,15 @@ public LinkedServiceInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -182,23 +196,6 @@ public LinkedServiceInner withProvisioningState(LinkedServiceEntityStatus provis
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model LinkedServiceInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(LinkedServiceInner.class);
-
/**
* {@inheritDoc}
*/
@@ -237,6 +234,8 @@ public static LinkedServiceInner fromJson(JsonReader jsonReader) throws IOExcept
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedLinkedServiceInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLinkedServiceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java
index f57addd8e3d0..b1a685bf422d 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -104,14 +104,6 @@ public LinkedServiceProperties withProvisioningState(LinkedServiceEntityStatus p
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java
index a9dcb5abc4c9..c81df1627093 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -63,14 +63,6 @@ public LinkedStorageAccountsProperties withStorageAccountIds(List storag
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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 e7bd83aa381e..c636508744b1 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
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -24,6 +24,11 @@ public final class LinkedStorageAccountsResourceInner extends ProxyResource {
*/
private LinkedStorageAccountsProperties innerProperties = new LinkedStorageAccountsProperties();
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -54,6 +59,15 @@ private LinkedStorageAccountsProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -116,23 +130,6 @@ public LinkedStorageAccountsResourceInner withStorageAccountIds(List sto
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model LinkedStorageAccountsResourceInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(LinkedStorageAccountsResourceInner.class);
-
/**
* {@inheritDoc}
*/
@@ -169,6 +166,8 @@ public static LinkedStorageAccountsResourceInner fromJson(JsonReader jsonReader)
} else if ("properties".equals(fieldName)) {
deserializedLinkedStorageAccountsResourceInner.innerProperties
= LinkedStorageAccountsProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLinkedStorageAccountsResourceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 855631fc4208..a9bc8757d7db 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
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -155,23 +154,6 @@ public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model LogAnalyticsQueryPackInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackInner.class);
-
/**
* {@inheritDoc}
*/
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 ce4854da9089..683cd01fea85 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -84,14 +84,6 @@ public String provisioningState() {
return this.provisioningState;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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 baf421ce5d1b..0a7f13911ddb 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -274,17 +274,6 @@ public LogAnalyticsQueryPackQueryInner withProperties(Object properties) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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 81de1a33625d..3d2ac9c22c57 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
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -235,29 +234,6 @@ public LogAnalyticsQueryPackQueryProperties withProperties(Object properties) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (displayName() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property displayName in model LogAnalyticsQueryPackQueryProperties"));
- }
- if (body() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property body in model LogAnalyticsQueryPackQueryProperties"));
- }
- if (related() != null) {
- related().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackQueryProperties.class);
-
/**
* {@inheritDoc}
*/
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 8ed0008e3a58..c0a638f50760 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* A management group that is connected to a workspace.
*/
-@Fluent
+@Immutable
public final class ManagementGroupInner implements JsonSerializable {
/*
* The properties of the management group.
@@ -25,7 +25,7 @@ public final class ManagementGroupInner implements JsonSerializable {
/*
* The number of servers connected to the management group.
@@ -62,7 +62,7 @@ public final class ManagementGroupProperties implements JsonSerializable {
/*
* Operation name: {provider}/{resource}/{operation}
@@ -30,7 +30,7 @@ public final class OperationInner implements JsonSerializable {
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
@@ -42,17 +42,6 @@ public String name() {
return this.name;
}
- /**
- * Set the name property: Operation name: {provider}/{resource}/{operation}.
- *
- * @param name the name value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withName(String name) {
- this.name = name;
- return this;
- }
-
/**
* Get the display property: Display metadata associated with the operation.
*
@@ -62,28 +51,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: Display metadata associated with the operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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 48c6b2714b7c..d1d2e9dbf300 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.exception.ManagementError;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
@@ -15,7 +15,7 @@
/**
* The status of operation.
*/
-@Fluent
+@Immutable
public final class OperationStatusInner implements JsonSerializable {
/*
* The operation Id.
@@ -50,7 +50,7 @@ public final class OperationStatusInner implements JsonSerializable tags) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model SavedSearchInner"));
- } else {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(SavedSearchInner.class);
-
/**
* {@inheritDoc}
*/
@@ -332,6 +329,8 @@ public static SavedSearchInner fromJson(JsonReader jsonReader) throws IOExceptio
deserializedSavedSearchInner.innerProperties = SavedSearchProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedSavedSearchInner.etag = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedSavedSearchInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 fb1b14e74268..dfe1bb35b40c 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
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -208,32 +207,6 @@ public SavedSearchProperties withTags(List tags) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (category() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property category in model SavedSearchProperties"));
- }
- if (displayName() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property displayName in model SavedSearchProperties"));
- }
- if (query() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property query in model SavedSearchProperties"));
- }
- if (tags() != null) {
- tags().forEach(e -> e.validate());
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(SavedSearchProperties.class);
-
/**
* {@inheritDoc}
*/
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 d8f70e930bcf..230106a42348 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* The saved search list operation response.
*/
-@Fluent
+@Immutable
public final class SavedSearchesListResultInner implements JsonSerializable {
/*
* The array of result values.
@@ -25,7 +25,7 @@ public final class SavedSearchesListResultInner implements JsonSerializable value() {
return this.value;
}
- /**
- * Set the value property: The array of result values.
- *
- * @param value the value value to set.
- * @return the SavedSearchesListResultInner object itself.
- */
- public SavedSearchesListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
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 dffe0a361ce5..075a472f1c19 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -17,7 +17,7 @@
/**
* The get schema operation response.
*/
-@Fluent
+@Immutable
public final class SearchGetSchemaResponseInner implements JsonSerializable {
/*
* The metadata from search results.
@@ -32,7 +32,7 @@ public final class SearchGetSchemaResponseInner implements JsonSerializable value() {
return this.value;
}
- /**
- * Set the value property: The array of result values.
- *
- * @param value the value value to set.
- * @return the SearchGetSchemaResponseInner object itself.
- */
- public SearchGetSchemaResponseInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (metadata() != null) {
- metadata().validate();
- }
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
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 503cc1671040..fceb3857f789 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* The shared keys for a workspace.
*/
-@Fluent
+@Immutable
public final class SharedKeysInner implements JsonSerializable {
/*
* The primary shared key of a workspace.
@@ -29,7 +29,7 @@ public final class SharedKeysInner implements JsonSerializable
/**
* Creates an instance of SharedKeysInner class.
*/
- public SharedKeysInner() {
+ private SharedKeysInner() {
}
/**
@@ -41,17 +41,6 @@ public String primarySharedKey() {
return this.primarySharedKey;
}
- /**
- * Set the primarySharedKey property: The primary shared key of a workspace.
- *
- * @param primarySharedKey the primarySharedKey value to set.
- * @return the SharedKeysInner object itself.
- */
- public SharedKeysInner withPrimarySharedKey(String primarySharedKey) {
- this.primarySharedKey = primarySharedKey;
- return this;
- }
-
/**
* Get the secondarySharedKey property: The secondary shared key of a workspace.
*
@@ -61,25 +50,6 @@ public String secondarySharedKey() {
return this.secondarySharedKey;
}
- /**
- * Set the secondarySharedKey property: The secondary shared key of a workspace.
- *
- * @param secondarySharedKey the secondarySharedKey value to set.
- * @return the SharedKeysInner object itself.
- */
- public SharedKeysInner withSecondarySharedKey(String secondarySharedKey) {
- this.secondarySharedKey = secondarySharedKey;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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 b78adb60f2d5..275aedab8339 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
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -28,13 +29,18 @@ public final class StorageInsightInner extends ProxyResource {
/*
* The ETag of the storage insight.
*/
- private String etag;
+ private String eTag;
/*
* Resource tags.
*/
private Map tags;
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -66,22 +72,22 @@ private StorageInsightProperties innerProperties() {
}
/**
- * Get the etag property: The ETag of the storage insight.
+ * Get the eTag property: The ETag of the storage insight.
*
- * @return the etag value.
+ * @return the eTag value.
*/
- public String etag() {
- return this.etag;
+ public String eTag() {
+ return this.eTag;
}
/**
- * Set the etag property: The ETag of the storage insight.
+ * Set the eTag property: The ETag of the storage insight.
*
- * @param etag the etag value to set.
+ * @param eTag the eTag value to set.
* @return the StorageInsightInner object itself.
*/
- public StorageInsightInner withEtag(String etag) {
- this.etag = etag;
+ public StorageInsightInner withETag(String eTag) {
+ this.eTag = eTag;
return this;
}
@@ -105,6 +111,15 @@ public StorageInsightInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -213,17 +228,6 @@ public StorageInsightStatus status() {
return this.innerProperties() == null ? null : this.innerProperties().status();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@@ -231,7 +235,7 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeStringField("eTag", this.etag);
+ jsonWriter.writeStringField("eTag", this.eTag);
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -261,10 +265,12 @@ public static StorageInsightInner fromJson(JsonReader jsonReader) throws IOExcep
} else if ("properties".equals(fieldName)) {
deserializedStorageInsightInner.innerProperties = StorageInsightProperties.fromJson(reader);
} else if ("eTag".equals(fieldName)) {
- deserializedStorageInsightInner.etag = reader.getString();
+ deserializedStorageInsightInner.eTag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedStorageInsightInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedStorageInsightInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 61a51d34f959..d6f62804bc47 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
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -115,26 +114,6 @@ public StorageInsightStatus status() {
return this.status;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (storageAccount() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property storageAccount in model StorageInsightProperties"));
- } else {
- storageAccount().validate();
- }
- if (status() != null) {
- status().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(StorageInsightProperties.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java
index dac9c5b8294c..97809cfcc9d2 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -10,10 +10,10 @@
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum;
import com.azure.resourcemanager.loganalytics.models.RuleDefinition;
import com.azure.resourcemanager.loganalytics.models.RuleTypeEnum;
import com.azure.resourcemanager.loganalytics.models.StatusCodeEnum;
+import com.azure.resourcemanager.loganalytics.models.SummaryLogsProvisioningState;
import java.io.IOException;
/**
@@ -194,7 +194,7 @@ public StatusCodeEnum statusCode() {
*
* @return the provisioningState value.
*/
- public ProvisioningStateEnum provisioningState() {
+ public SummaryLogsProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
@@ -221,17 +221,6 @@ public SummaryLogsInner withRuleDefinition(RuleDefinition ruleDefinition) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java
index 0f151e746cdb..e67f2bdf1111 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
@@ -9,10 +9,10 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum;
import com.azure.resourcemanager.loganalytics.models.RuleDefinition;
import com.azure.resourcemanager.loganalytics.models.RuleTypeEnum;
import com.azure.resourcemanager.loganalytics.models.StatusCodeEnum;
+import com.azure.resourcemanager.loganalytics.models.SummaryLogsProvisioningState;
import java.io.IOException;
/**
@@ -49,7 +49,7 @@ public final class SummaryLogsProperties implements JsonSerializable {
/*
* The name of the metric.
@@ -53,7 +53,7 @@ public final class UsageMetricInner implements JsonSerializable e.validate());
- }
- if (features() != null) {
- features().validate();
- }
- if (replication() != null) {
- replication().validate();
- }
- if (failover() != null) {
- failover().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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 68d44633727c..15ffd562d9ee 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
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.fluent.models;
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +14,7 @@
/**
* Response containing operationId for a specific purge action.
*/
-@Fluent
+@Immutable
public final class WorkspacePurgeResponseInner implements JsonSerializable {
/*
* Id to use when querying for status for a particular purge operation.
@@ -25,7 +24,7 @@ public final class WorkspacePurgeResponseInner implements JsonSerializable {
/*
* Status of the operation represented by the requested Id.
@@ -26,7 +25,7 @@ public final class WorkspacePurgeStatusResponseInner implements JsonSerializable
/**
* Creates an instance of WorkspacePurgeStatusResponseInner class.
*/
- public WorkspacePurgeStatusResponseInner() {
+ private WorkspacePurgeStatusResponseInner() {
}
/**
@@ -38,32 +37,6 @@ public PurgeState status() {
return this.status;
}
- /**
- * Set the status property: Status of the operation represented by the requested Id.
- *
- * @param status the status value to set.
- * @return the WorkspacePurgeStatusResponseInner object itself.
- */
- public WorkspacePurgeStatusResponseInner withStatus(PurgeState status) {
- this.status = status;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (status() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property status in model WorkspacePurgeStatusResponseInner"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(WorkspacePurgeStatusResponseInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java
index 46a7d3d3306b..e624022c1d5b 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for OperationalInsightsManagementClient.
- * Operational Insights Client.
+ * Package containing the inner data models for LogAnalytics.
+ * Provides NSP operations for working with Log Analytics.
*/
package com.azure.resourcemanager.loganalytics.fluent.models;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java
index 167aad5512dc..51dc6b2b9945 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for OperationalInsightsManagementClient.
- * Operational Insights Client.
+ * Package containing the service clients for LogAnalytics.
+ * Provides NSP operations for working with Log Analytics.
*/
package com.azure.resourcemanager.loganalytics.fluent;
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java
index 216058169e1d..75a5bb52b476 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.implementation;
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 79cc76334190..a24758b713b8 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.implementation;
@@ -21,7 +21,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient;
import com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner;
import java.util.List;
@@ -56,26 +55,26 @@ public final class AvailableServiceTiersClientImpl implements AvailableServiceTi
* The interface defining all the services for OperationalInsightsManagementClientAvailableServiceTiers to be used
* by the proxy service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "OperationalInsightsManagementClientAvailableServiceTiers")
public interface AvailableServiceTiersService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> listByWorkspace(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono>> listByWorkspace(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response> listByWorkspaceSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Response> listByWorkspaceSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -92,25 +91,10 @@ Response> listByWorkspaceSync(@HostParam("$host"
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> listByWorkspaceWithResponseAsync(String resourceGroupName,
String workspaceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (workspaceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -144,27 +128,9 @@ private Mono> listByWorkspaceAsync(String resour
@ServiceMethod(returns = ReturnType.SINGLE)
public Response> listByWorkspaceWithResponse(String resourceGroupName,
String workspaceName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (workspaceName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
- }
final String accept = "application/json";
- return service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context);
+ return service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context);
}
/**
@@ -181,6 +147,4 @@ public Response> listByWorkspaceWithResponse(Str
public List listByWorkspace(String resourceGroupName, String workspaceName) {
return listByWorkspaceWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue();
}
-
- private static final ClientLogger LOGGER = new ClientLogger(AvailableServiceTiersClientImpl.class);
}
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 35c6518e501e..1a713e29aa3a 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.implementation;
@@ -33,15 +33,11 @@ public Response> listByWorkspaceWithResponse(String r
String workspaceName, Context context) {
Response> inner
= this.serviceClient().listByWorkspaceWithResponse(resourceGroupName, workspaceName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- inner.getValue()
- .stream()
- .map(inner1 -> new AvailableServiceTierImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return null;
- }
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ inner.getValue()
+ .stream()
+ .map(inner1 -> new AvailableServiceTierImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
}
public List listByWorkspace(String resourceGroupName, String workspaceName) {
diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
index 39cc9a799e6f..289a3dbb1175 100644
--- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
+++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java
@@ -1,10 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.implementation;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner;
import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace;
@@ -60,6 +61,10 @@ public ClusterSku sku() {
return this.innerModel().sku();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String clusterId() {
return this.innerModel().clusterId();
}
@@ -182,7 +187,7 @@ public Cluster apply(Context context) {
ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.loganalytics.LogAnalyticsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourcegroups");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters");
}
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 bd4e395d2728..4d930d9499a3 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.loganalytics.implementation;
@@ -31,12 +31,11 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.loganalytics.fluent.ClustersClient;
import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner;
-import com.azure.resourcemanager.loganalytics.models.ClusterListResult;
+import com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult;
import com.azure.resourcemanager.loganalytics.models.ClusterPatch;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -70,123 +69,121 @@ public final class ClustersClientImpl implements ClustersClient {
* The interface defining all the services for OperationalInsightsManagementClientClusters to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
+ @Host("{endpoint}")
@ServiceInterface(name = "OperationalInsightsManagementClientClusters")
public interface ClustersService {
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context);
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listByResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context);
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters")
- @ExpectedResponses({ 200 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ClusterInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters")
- @ExpectedResponses({ 200 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("$host") String endpoint,
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ClusterInner parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterInner parameters, @HeaderParam("Accept") String accept,
- Context context);
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ClusterPatch parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateSync(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @PathParam("clusterName") String clusterName,
- @BodyParam("application/json") ClusterInner parameters, @HeaderParam("Accept") String accept,
- Context context);
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ClusterPatch parameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
@ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context);
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getByResourceGroupSync(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context);
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
- @ExpectedResponses({ 200, 202 })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ClusterPatch parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}")
- @ExpectedResponses({ 200, 202 })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response updateSync(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName,
+ Response listSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ClusterPatch parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -194,7 +191,7 @@ Mono> listByResourceGroupNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByResourceGroupNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -202,285 +199,269 @@ Response listByResourceGroupNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
- * Gets Log Analytics clusters in a resource group.
+ * Gets a Log Analytics cluster instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName Name of the Log Analytics Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return a Log Analytics cluster instance along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String clusterName) {
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
- res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets Log Analytics clusters in a resource group.
+ * Gets a Log Analytics cluster instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName Name of the Log Analytics Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group as paginated response with {@link PagedFlux}.
+ * @return a Log Analytics cluster instance on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Gets Log Analytics clusters in a resource group.
+ * Gets a Log Analytics cluster instance.
*
* @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 log Analytics clusters in a resource group along with {@link PagedResponse}.
+ * @return a Log Analytics cluster instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName,
+ Context context) {
final String accept = "application/json";
- Response res = service.listByResourceGroupSync(this.client.getEndpoint(), resourceGroupName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context);
}
/**
- * Gets Log Analytics clusters in a resource group.
+ * Gets a Log Analytics cluster instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
+ * @param clusterName Name of the Log Analytics Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return log Analytics clusters in a resource group along with {@link PagedResponse}.
+ * @return a Log Analytics cluster instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- Response