From a015c4cb4f2dd7d4869756862d5b5cd2db674cfe Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 02:43:42 +0000 Subject: [PATCH 1/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '61ef1085014acf8197d8b44e9dec699ef635a750' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6273916 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 424 +++- .../README.md | 4 +- .../SAMPLE.md | 364 +-- .../pom.xml | 9 +- .../loganalytics/LogAnalyticsManager.java | 270 +-- .../fluent/AvailableServiceTiersClient.java | 2 +- .../loganalytics/fluent/ClustersClient.java | 160 +- .../fluent/DataExportsClient.java | 54 +- .../fluent/DataSourcesClient.java | 50 +- .../fluent/DeletedWorkspacesClient.java | 2 +- .../loganalytics/fluent/GatewaysClient.java | 2 +- .../fluent/IntelligencePacksClient.java | 14 +- .../fluent/LinkedServicesClient.java | 85 +- .../fluent/LinkedStorageAccountsClient.java | 56 +- .../fluent/ManagementGroupsClient.java | 2 +- .../fluent/OperationStatusesClient.java | 6 +- .../OperationalInsightsManagementClient.java | 138 +- .../loganalytics/fluent/OperationsClient.java | 6 +- .../loganalytics/fluent/QueriesClient.java | 146 +- .../loganalytics/fluent/QueryPacksClient.java | 154 +- .../fluent/SavedSearchesClient.java | 24 +- .../loganalytics/fluent/SchemasClient.java | 2 +- .../fluent/SharedKeysOperationsClient.java | 2 +- .../fluent/StorageInsightConfigsClient.java | 36 +- .../fluent/SummaryLogsOperationsClient.java | 76 +- .../loganalytics/fluent/TablesClient.java | 74 +- .../loganalytics/fluent/UsagesClient.java | 2 +- .../fluent/WorkspacePurgesClient.java | 2 +- .../loganalytics/fluent/WorkspacesClient.java | 292 +-- .../models/AvailableServiceTierInner.java | 12 +- .../fluent/models/ClusterInner.java | 60 +- .../fluent/models/ClusterPatchProperties.java | 13 +- .../fluent/models/ClusterProperties.java | 22 +- .../fluent/models/DataExportInner.java | 30 +- .../fluent/models/DataExportProperties.java | 21 +- .../fluent/models/DataSourceInner.java | 38 +- .../fluent/models/Destination.java | 42 +- .../fluent/models/DestinationMetadata.java | 10 +- .../fluent/models/IntelligencePackInner.java | 49 +- .../fluent/models/LinkedServiceInner.java | 37 +- .../models/LinkedServiceProperties.java | 10 +- .../LinkedStorageAccountsProperties.java | 10 +- .../LinkedStorageAccountsResourceInner.java | 37 +- .../models/LogAnalyticsQueryPackInner.java | 20 +- .../LogAnalyticsQueryPackProperties.java | 10 +- .../LogAnalyticsQueryPackQueryInner.java | 13 +- .../LogAnalyticsQueryPackQueryProperties.java | 26 +- .../fluent/models/ManagementGroupInner.java | 131 +- .../models/ManagementGroupProperties.java | 104 +- ...rkSecurityPerimeterConfigurationInner.java | 35 +- .../fluent/models/OperationInner.java | 41 +- .../fluent/models/OperationStatusInner.java | 82 +- .../fluent/models/SavedSearchInner.java | 49 +- .../fluent/models/SavedSearchProperties.java | 29 +- .../models/SavedSearchesListResultInner.java | 30 +- .../models/SearchGetSchemaResponseInner.java | 44 +- .../fluent/models/SharedKeysInner.java | 38 +- .../fluent/models/StorageInsightInner.java | 52 +- .../models/StorageInsightProperties.java | 23 +- .../fluent/models/SummaryLogsInner.java | 13 +- .../fluent/models/SummaryLogsProperties.java | 13 +- .../fluent/models/TableInner.java | 21 +- .../fluent/models/TableProperties.java | 30 +- .../fluent/models/UsageMetricInner.java | 85 +- .../fluent/models/WorkspaceInner.java | 46 +- .../fluent/models/WorkspaceProperties.java | 28 +- .../models/WorkspacePurgeResponseInner.java | 35 +- .../WorkspacePurgeStatusResponseInner.java | 35 +- .../fluent/models/package-info.java | 6 +- .../loganalytics/fluent/package-info.java | 6 +- .../AvailableServiceTierImpl.java | 2 +- .../AvailableServiceTiersClientImpl.java | 64 +- .../AvailableServiceTiersImpl.java | 16 +- .../implementation/ClusterImpl.java | 9 +- .../implementation/ClustersClientImpl.java | 1049 +++------ .../implementation/ClustersImpl.java | 72 +- .../implementation/DataExportImpl.java | 9 +- .../implementation/DataExportsClientImpl.java | 568 ++--- .../implementation/DataExportsImpl.java | 48 +- .../implementation/DataSourceImpl.java | 9 +- .../implementation/DataSourcesClientImpl.java | 480 ++-- .../implementation/DataSourcesImpl.java | 44 +- .../DeletedWorkspacesClientImpl.java | 275 ++- .../implementation/DeletedWorkspacesImpl.java | 2 +- .../implementation/GatewaysClientImpl.java | 69 +- .../implementation/GatewaysImpl.java | 2 +- .../implementation/IntelligencePackImpl.java | 2 +- .../IntelligencePacksClientImpl.java | 218 +- .../implementation/IntelligencePacksImpl.java | 16 +- .../implementation/LinkedServiceImpl.java | 9 +- .../LinkedServicesClientImpl.java | 651 ++---- .../implementation/LinkedServicesImpl.java | 62 +- .../LinkedStorageAccountsClientImpl.java | 534 ++--- .../LinkedStorageAccountsImpl.java | 44 +- .../LinkedStorageAccountsResourceImpl.java | 9 +- .../LogAnalyticsQueryPackImpl.java | 2 +- .../LogAnalyticsQueryPackQueryImpl.java | 2 +- .../implementation/ManagementGroupImpl.java | 2 +- .../ManagementGroupsClientImpl.java | 169 +- .../implementation/ManagementGroupsImpl.java | 2 +- ...orkSecurityPerimeterConfigurationImpl.java | 2 +- .../implementation/OperationImpl.java | 2 +- .../implementation/OperationStatusImpl.java | 2 +- .../OperationStatusesClientImpl.java | 66 +- .../implementation/OperationStatusesImpl.java | 10 +- ...tionalInsightsManagementClientBuilder.java | 28 +- ...erationalInsightsManagementClientImpl.java | 306 +-- .../implementation/OperationsClientImpl.java | 78 +- .../implementation/OperationsImpl.java | 2 +- .../implementation/QueriesClientImpl.java | 1186 ++++------ .../implementation/QueriesImpl.java | 58 +- .../implementation/QueryPacksClientImpl.java | 1082 ++++----- .../implementation/QueryPacksImpl.java | 78 +- .../implementation/ResourceManagerUtils.java | 2 +- .../implementation/SavedSearchImpl.java | 9 +- .../SavedSearchesClientImpl.java | 352 +-- .../implementation/SavedSearchesImpl.java | 52 +- .../SavedSearchesListResultImpl.java | 2 +- .../implementation/SchemasClientImpl.java | 60 +- .../implementation/SchemasImpl.java | 10 +- .../SearchGetSchemaResponseImpl.java | 2 +- .../implementation/SharedKeysImpl.java | 2 +- .../SharedKeysOperationsClientImpl.java | 117 +- .../SharedKeysOperationsImpl.java | 18 +- .../StorageInsightConfigsClientImpl.java | 423 +--- .../StorageInsightConfigsImpl.java | 26 +- .../implementation/StorageInsightImpl.java | 17 +- .../implementation/SummaryLogsImpl.java | 2 +- .../SummaryLogsOperationsClientImpl.java | 959 +++----- .../SummaryLogsOperationsImpl.java | 32 +- .../implementation/TableImpl.java | 6 +- .../implementation/TablesClientImpl.java | 943 +++----- .../implementation/TablesImpl.java | 32 +- .../implementation/UsageMetricImpl.java | 2 +- .../implementation/UsagesClientImpl.java | 170 +- .../implementation/UsagesImpl.java | 2 +- .../implementation/WorkspaceImpl.java | 20 +- .../WorkspacePurgeResponseImpl.java | 2 +- .../WorkspacePurgeStatusResponseImpl.java | 2 +- .../WorkspacePurgesClientImpl.java | 142 +- .../implementation/WorkspacePurgesImpl.java | 10 +- .../implementation/WorkspacesClientImpl.java | 1968 +++++++---------- .../implementation/WorkspacesImpl.java | 128 +- .../models/ClusterListResult.java | 72 +- .../models/DataExportListResult.java | 39 +- .../models/DataSourceListResult.java | 54 +- .../models/LinkedServiceListResult.java | 39 +- .../LinkedStorageAccountsListResult.java | 39 +- .../LogAnalyticsQueryPackListResult.java | 63 +- .../LogAnalyticsQueryPackQueryListResult.java | 63 +- ...urityPerimeterConfigurationListResult.java | 44 +- .../models/OperationListResult.java | 44 +- .../models/StorageInsightListResult.java | 43 +- .../models/SummaryLogsListResult.java | 44 +- .../models/TablesListResult.java | 39 +- .../WorkspaceListManagementGroupsResult.java | 39 +- .../models/WorkspaceListResult.java | 39 +- .../models/WorkspaceListUsagesResult.java | 39 +- .../implementation/package-info.java | 6 +- .../loganalytics/models/AccessRule.java | 45 +- .../models/AccessRuleDirection.java | 6 +- .../models/AccessRuleProperties.java | 104 +- ...AccessRulePropertiesSubscriptionsItem.java | 30 +- .../models/AssociatedWorkspace.java | 18 +- .../models/AvailableServiceTier.java | 2 +- .../models/AvailableServiceTiers.java | 2 +- .../models/AzureEntityResource.java | 38 +- .../loganalytics/models/BillingType.java | 6 +- .../models/CapacityReservationProperties.java | 10 +- .../loganalytics/models/Cluster.java | 16 +- .../models/ClusterEntityStatus.java | 16 +- .../loganalytics/models/ClusterPatch.java | 19 +- .../models/ClusterReplicationProperties.java | 10 +- .../models/ClusterReplicationState.java | 20 +- .../loganalytics/models/ClusterSku.java | 10 +- .../models/ClusterSkuNameEnum.java | 4 +- .../loganalytics/models/Clusters.java | 64 +- .../loganalytics/models/Column.java | 10 +- .../models/ColumnDataTypeHintEnum.java | 12 +- .../loganalytics/models/ColumnTypeEnum.java | 18 +- .../loganalytics/models/CoreSummary.java | 38 +- .../loganalytics/models/DataExport.java | 10 +- .../loganalytics/models/DataExports.java | 46 +- .../models/DataIngestionStatus.java | 14 +- .../loganalytics/models/DataSource.java | 10 +- .../loganalytics/models/DataSourceKind.java | 68 +- .../loganalytics/models/DataSourceType.java | 12 +- .../loganalytics/models/DataSources.java | 24 +- .../models/DeletedWorkspaces.java | 2 +- .../loganalytics/models/Gateways.java | 2 +- .../loganalytics/models/Identity.java | 24 +- .../loganalytics/models/IdentityType.java | 8 +- .../loganalytics/models/IntelligencePack.java | 2 +- .../models/IntelligencePacks.java | 14 +- .../loganalytics/models/IssueType.java | 13 +- .../models/KeyVaultProperties.java | 10 +- .../loganalytics/models/LinkedService.java | 10 +- .../models/LinkedServiceEntityStatus.java | 10 +- .../loganalytics/models/LinkedServices.java | 36 +- .../models/LinkedStorageAccounts.java | 30 +- .../models/LinkedStorageAccountsResource.java | 10 +- .../models/LogAnalyticsQueryPack.java | 2 +- .../models/LogAnalyticsQueryPackQuery.java | 2 +- ...lyticsQueryPackQueryPropertiesRelated.java | 10 +- ...alyticsQueryPackQuerySearchProperties.java | 13 +- ...QueryPackQuerySearchPropertiesRelated.java | 10 +- .../models/ManagedServiceIdentity.java | 62 +- .../models/ManagedServiceIdentityType.java | 10 +- .../loganalytics/models/ManagementGroup.java | 2 +- .../loganalytics/models/ManagementGroups.java | 2 +- .../loganalytics/models/MetricName.java | 38 +- .../models/NetworkSecurityPerimeter.java | 60 +- ...NetworkSecurityPerimeterConfiguration.java | 4 +- ...urityPerimeterConfigurationProperties.java | 80 +- ...rimeterConfigurationProvisioningState.java | 2 +- .../models/NetworkSecurityProfile.java | 74 +- .../loganalytics/models/Operation.java | 2 +- .../loganalytics/models/OperationDisplay.java | 60 +- .../loganalytics/models/OperationStatus.java | 2 +- .../models/OperationStatuses.java | 6 +- ...ationalInsightsTableProvisioningState.java | 64 + .../loganalytics/models/Operations.java | 6 +- .../models/PrivateLinkScopedResource.java | 38 +- .../models/ProvisioningIssue.java | 24 +- .../models/ProvisioningIssueProperties.java | 15 +- .../models/ProvisioningStateEnum.java | 22 +- .../models/PublicNetworkAccessType.java | 9 +- .../loganalytics/models/PurgeState.java | 6 +- .../loganalytics/models/Queries.java | 102 +- .../loganalytics/models/QueryPacks.java | 102 +- .../models/ResourceAssociation.java | 42 +- .../models/ResourceAssociationAccessMode.java | 8 +- .../loganalytics/models/RestoredLogs.java | 10 +- .../loganalytics/models/ResultStatistics.java | 24 +- .../loganalytics/models/RuleDefinition.java | 10 +- .../loganalytics/models/RuleTypeEnum.java | 4 +- .../loganalytics/models/SavedSearch.java | 14 +- .../loganalytics/models/SavedSearches.java | 24 +- .../models/SavedSearchesListResult.java | 2 +- .../loganalytics/models/Schema.java | 16 +- .../loganalytics/models/Schemas.java | 2 +- .../models/SearchGetSchemaResponse.java | 2 +- .../loganalytics/models/SearchMetadata.java | 226 +- .../models/SearchMetadataSchema.java | 38 +- .../loganalytics/models/SearchResults.java | 10 +- .../models/SearchSchemaValue.java | 93 +- .../loganalytics/models/SearchSort.java | 38 +- .../loganalytics/models/SearchSortEnum.java | 6 +- .../loganalytics/models/Severity.java | 2 +- .../loganalytics/models/SharedKeys.java | 2 +- .../models/SharedKeysOperations.java | 2 +- .../loganalytics/models/SkuNameEnum.java | 16 +- .../loganalytics/models/SourceEnum.java | 7 +- .../loganalytics/models/StatusCodeEnum.java | 6 +- .../loganalytics/models/StorageAccount.java | 21 +- .../loganalytics/models/StorageInsight.java | 40 +- .../models/StorageInsightConfigs.java | 2 +- .../models/StorageInsightState.java | 6 +- .../models/StorageInsightStatus.java | 45 +- .../loganalytics/models/SummaryLogs.java | 2 +- .../models/SummaryLogsOperations.java | 48 +- .../models/SummaryLogsRetryBin.java | 13 +- .../models/SummaryLogsRetryBinProperties.java | 18 +- .../loganalytics/models/Table.java | 6 +- .../loganalytics/models/TablePlanEnum.java | 8 +- .../loganalytics/models/TableSubTypeEnum.java | 11 +- .../loganalytics/models/TableTypeEnum.java | 10 +- .../loganalytics/models/Tables.java | 46 +- .../loganalytics/models/Tag.java | 19 +- .../loganalytics/models/TagsResource.java | 10 +- .../loganalytics/models/TimeSelectorEnum.java | 4 +- .../loganalytics/models/Type.java | 6 +- .../loganalytics/models/UsageMetric.java | 2 +- .../loganalytics/models/Usages.java | 2 +- .../models/UserAssignedIdentity.java | 25 +- .../models/UserIdentityProperties.java | 10 +- .../loganalytics/models/Workspace.java | 38 +- .../loganalytics/models/WorkspaceCapping.java | 10 +- .../models/WorkspaceEntityStatus.java | 16 +- .../models/WorkspaceFailoverProperties.java | 10 +- .../models/WorkspaceFailoverState.java | 12 +- .../models/WorkspaceFeatures.java | 10 +- .../loganalytics/models/WorkspacePatch.java | 35 +- .../models/WorkspacePurgeBody.java | 23 +- .../models/WorkspacePurgeBodyFilters.java | 10 +- .../models/WorkspacePurgeResponse.java | 2 +- .../models/WorkspacePurgeStatusResponse.java | 2 +- .../loganalytics/models/WorkspacePurges.java | 2 +- .../models/WorkspacePurgesPurgeHeaders.java | 27 +- .../models/WorkspacePurgesPurgeResponse.java | 2 +- .../WorkspaceReplicationProperties.java | 10 +- .../models/WorkspaceReplicationState.java | 20 +- .../loganalytics/models/WorkspaceSku.java | 17 +- .../models/WorkspaceSkuNameEnum.java | 18 +- .../loganalytics/models/Workspaces.java | 144 +- .../loganalytics/models/package-info.java | 6 +- .../loganalytics/package-info.java | 6 +- .../src/main/java/module-info.java | 3 +- ...resourcemanager-loganalytics_metadata.json | 1 + ...bleServiceTiersListByWorkspaceSamples.java | 6 +- .../ClustersCreateOrUpdateSamples.java | 6 +- .../generated/ClustersDeleteSamples.java | 6 +- .../ClustersGetByResourceGroupSamples.java | 6 +- .../ClustersListByResourceGroupSamples.java | 6 +- .../generated/ClustersListSamples.java | 6 +- .../generated/ClustersUpdateSamples.java | 6 +- .../DataExportsCreateOrUpdateSamples.java | 6 +- .../generated/DataExportsDeleteSamples.java | 6 +- .../generated/DataExportsGetSamples.java | 6 +- .../DataExportsListByWorkspaceSamples.java | 6 +- .../DataSourcesCreateOrUpdateSamples.java | 8 +- .../generated/DataSourcesDeleteSamples.java | 6 +- .../generated/DataSourcesGetSamples.java | 6 +- .../DataSourcesListByWorkspaceSamples.java | 6 +- ...dWorkspacesListByResourceGroupSamples.java | 6 +- .../DeletedWorkspacesListSamples.java | 6 +- .../generated/GatewaysDeleteSamples.java | 8 +- .../IntelligencePacksDisableSamples.java | 6 +- .../IntelligencePacksEnableSamples.java | 6 +- .../IntelligencePacksListSamples.java | 6 +- .../LinkedServicesCreateOrUpdateSamples.java | 8 +- .../LinkedServicesDeleteSamples.java | 6 +- .../generated/LinkedServicesGetSamples.java | 6 +- .../LinkedServicesListByWorkspaceSamples.java | 6 +- ...dStorageAccountsCreateOrUpdateSamples.java | 10 +- .../LinkedStorageAccountsDeleteSamples.java | 6 +- .../LinkedStorageAccountsGetSamples.java | 6 +- ...StorageAccountsListByWorkspaceSamples.java | 6 +- .../ManagementGroupsListSamples.java | 6 +- .../OperationStatusesGetSamples.java | 6 +- .../generated/OperationsListSamples.java | 6 +- .../generated/QueriesDeleteSamples.java | 6 +- .../generated/QueriesGetSamples.java | 6 +- .../generated/QueriesListSamples.java | 6 +- .../generated/QueriesPutSamples.java | 6 +- .../generated/QueriesSearchSamples.java | 6 +- .../generated/QueriesUpdateSamples.java | 6 +- .../QueryPacksCreateOrUpdateSamples.java | 10 +- ...PacksCreateOrUpdateWithoutNameSamples.java | 10 +- .../generated/QueryPacksDeleteSamples.java | 6 +- .../QueryPacksGetByResourceGroupSamples.java | 6 +- .../QueryPacksListByResourceGroupSamples.java | 6 +- .../generated/QueryPacksListSamples.java | 6 +- .../QueryPacksUpdateTagsSamples.java | 6 +- .../SavedSearchesCreateOrUpdateSamples.java | 8 +- .../generated/SavedSearchesDeleteSamples.java | 8 +- .../generated/SavedSearchesGetSamples.java | 8 +- .../SavedSearchesListByWorkspaceSamples.java | 6 +- .../generated/SchemaGetSamples.java | 6 +- ...aredKeysOperationGetSharedKeysSamples.java | 6 +- .../SharedKeysOperationRegenerateSamples.java | 6 +- ...geInsightConfigsCreateOrUpdateSamples.java | 6 +- .../StorageInsightConfigsDeleteSamples.java | 6 +- .../StorageInsightConfigsGetSamples.java | 6 +- ...eInsightConfigsListByWorkspaceSamples.java | 6 +- ...aryLogsOperationCreateOrUpdateSamples.java | 6 +- .../SummaryLogsOperationDeleteSamples.java | 6 +- .../SummaryLogsOperationGetSamples.java | 6 +- ...ryLogsOperationListByWorkspaceSamples.java | 6 +- .../SummaryLogsOperationRetryBinSamples.java | 6 +- .../SummaryLogsOperationStartSamples.java | 6 +- .../SummaryLogsOperationStopSamples.java | 6 +- .../generated/TablesCancelSearchSamples.java | 6 +- .../TablesCreateOrUpdateSamples.java | 6 +- .../generated/TablesDeleteSamples.java | 6 +- .../generated/TablesGetSamples.java | 6 +- .../TablesListByWorkspaceSamples.java | 6 +- .../generated/TablesMigrateSamples.java | 6 +- .../generated/TablesUpdateSamples.java | 6 +- .../generated/UsagesListSamples.java | 6 +- .../WorkspacePurgeGetPurgeStatusSamples.java | 6 +- .../generated/WorkspacePurgePurgeSamples.java | 10 +- .../WorkspacesCreateOrUpdateSamples.java | 6 +- .../generated/WorkspacesDeleteSamples.java | 6 +- .../generated/WorkspacesFailbackSamples.java | 6 +- .../generated/WorkspacesFailoverSamples.java | 6 +- .../WorkspacesGetByResourceGroupSamples.java | 6 +- .../generated/WorkspacesGetNspSamples.java | 6 +- .../WorkspacesListByResourceGroupSamples.java | 6 +- .../generated/WorkspacesListNspSamples.java | 6 +- .../generated/WorkspacesListSamples.java | 6 +- .../WorkspacesReconcileNspSamples.java | 6 +- .../generated/WorkspacesUpdateSamples.java | 6 +- ...sRulePropertiesSubscriptionsItemTests.java | 14 +- .../generated/AccessRulePropertiesTests.java | 59 +- .../generated/AccessRuleTests.java | 66 +- .../generated/AssociatedWorkspaceTests.java | 4 +- .../AvailableServiceTierInnerTests.java | 10 +- ...sListByWorkspaceWithResponseMockTests.java | 6 +- .../generated/AzureEntityResourceTests.java | 9 +- .../CapacityReservationPropertiesTests.java | 4 +- .../ClusterReplicationPropertiesTests.java | 22 +- .../generated/ClusterSkuTests.java | 10 +- .../generated/ClustersDeleteMockTests.java | 4 +- .../loganalytics/generated/ColumnTests.java | 34 +- .../generated/CoreSummaryTests.java | 16 +- .../generated/DataExportInnerTests.java | 40 +- .../generated/DataExportListResultTests.java | 62 +- .../generated/DataExportPropertiesTests.java | 40 +- ...tsCreateOrUpdateWithResponseMockTests.java | 36 +- ...ataExportsDeleteWithResponseMockTests.java | 4 +- .../DataExportsGetWithResponseMockTests.java | 20 +- .../DataExportsListByWorkspaceMockTests.java | 20 +- .../generated/DataSourceInnerTests.java | 24 +- .../generated/DataSourceListResultTests.java | 54 +- ...esCreateOrUpdateWithResponseMockTests.java | 22 +- ...ataSourcesDeleteWithResponseMockTests.java | 5 +- .../DataSourcesGetWithResponseMockTests.java | 12 +- .../DataSourcesListByWorkspaceMockTests.java | 10 +- ...orkspacesListByResourceGroupMockTests.java | 32 +- .../DeletedWorkspacesListMockTests.java | 30 +- .../generated/DestinationMetadataTests.java | 10 +- .../generated/DestinationTests.java | 16 +- .../GatewaysDeleteWithResponseMockTests.java | 4 +- .../loganalytics/generated/IdentityTests.java | 14 +- .../generated/IntelligencePackInnerTests.java | 18 +- ...encePacksDisableWithResponseMockTests.java | 5 +- ...gencePacksEnableWithResponseMockTests.java | 4 +- ...ligencePacksListWithResponseMockTests.java | 13 +- .../generated/LinkedServiceInnerTests.java | 31 +- .../LinkedServiceListResultTests.java | 57 +- .../LinkedServicePropertiesTests.java | 25 +- ...LinkedServicesCreateOrUpdateMockTests.java | 22 +- .../LinkedServicesDeleteMockTests.java | 15 +- ...inkedServicesGetWithResponseMockTests.java | 14 +- ...inkedServicesListByWorkspaceMockTests.java | 15 +- ...tsCreateOrUpdateWithResponseMockTests.java | 12 +- ...geAccountsDeleteWithResponseMockTests.java | 4 +- ...orageAccountsGetWithResponseMockTests.java | 8 +- ...orageAccountsListByWorkspaceMockTests.java | 8 +- .../LinkedStorageAccountsListResultTests.java | 21 +- .../LinkedStorageAccountsPropertiesTests.java | 10 +- ...nkedStorageAccountsResourceInnerTests.java | 12 +- .../LogAnalyticsQueryPackInnerTests.java | 17 +- .../LogAnalyticsQueryPackListResultTests.java | 43 +- .../LogAnalyticsQueryPackPropertiesTests.java | 4 +- .../LogAnalyticsQueryPackQueryInnerTests.java | 50 +- ...nalyticsQueryPackQueryListResultTests.java | 65 +- ...sQueryPackQueryPropertiesRelatedTests.java | 24 +- ...nalyticsQueryPackQueryPropertiesTests.java | 51 +- ...PackQuerySearchPropertiesRelatedTests.java | 22 +- ...csQueryPackQuerySearchPropertiesTests.java | 30 +- .../ManagedServiceIdentityTests.java | 14 +- .../generated/ManagementGroupInnerTests.java | 39 +- .../ManagementGroupPropertiesTests.java | 41 +- .../ManagementGroupsListMockTests.java | 20 +- .../generated/MetricNameTests.java | 18 +- ...urityPerimeterConfigurationInnerTests.java | 117 +- ...PerimeterConfigurationListResultTests.java | 97 +- ...PerimeterConfigurationPropertiesTests.java | 107 +- .../NetworkSecurityPerimeterTests.java | 23 +- .../NetworkSecurityProfileTests.java | 107 +- .../generated/OperationDisplayTests.java | 25 +- .../generated/OperationInnerTests.java | 30 +- .../generated/OperationListResultTests.java | 46 +- .../generated/OperationsListMockTests.java | 14 +- .../PrivateLinkScopedResourceTests.java | 19 +- .../ProvisioningIssuePropertiesTests.java | 10 +- .../generated/ProvisioningIssueTests.java | 10 +- .../QueriesDeleteWithResponseMockTests.java | 5 +- .../QueriesGetWithResponseMockTests.java | 23 +- .../generated/QueriesListMockTests.java | 21 +- .../QueriesPutWithResponseMockTests.java | 39 +- .../generated/QueriesSearchMockTests.java | 39 +- ...ksCreateOrUpdateWithResponseMockTests.java | 17 +- ...pdateWithoutNameWithResponseMockTests.java | 15 +- ...eByResourceGroupWithResponseMockTests.java | 4 +- ...tByResourceGroupWithResponseMockTests.java | 10 +- ...ueryPacksListByResourceGroupMockTests.java | 10 +- .../generated/QueryPacksListMockTests.java | 8 +- .../generated/ResourceAssociationTests.java | 15 +- .../generated/RestoredLogsTests.java | 22 +- .../generated/ResultStatisticsTests.java | 15 +- .../generated/RuleDefinitionTests.java | 34 +- .../generated/SavedSearchInnerTests.java | 56 +- .../generated/SavedSearchPropertiesTests.java | 52 +- ...esCreateOrUpdateWithResponseMockTests.java | 48 +- ...edSearchesDeleteWithResponseMockTests.java | 4 +- ...SavedSearchesGetWithResponseMockTests.java | 27 +- ...sListByWorkspaceWithResponseMockTests.java | 24 +- .../SavedSearchesListResultInnerTests.java | 58 +- .../loganalytics/generated/SchemaTests.java | 63 +- .../SchemasGetWithResponseMockTests.java | 59 +- .../SearchGetSchemaResponseInnerTests.java | 141 +- .../generated/SearchMetadataSchemaTests.java | 16 +- .../generated/SearchMetadataTests.java | 93 +- .../generated/SearchResultsTests.java | 34 +- .../generated/SearchSchemaValueTests.java | 34 +- .../generated/SearchSortTests.java | 15 +- ...ghtConfigsDeleteWithResponseMockTests.java | 4 +- .../generated/StorageInsightStatusTests.java | 15 +- ...gsOperationsStopWithResponseMockTests.java | 4 +- .../SummaryLogsRetryBinPropertiesTests.java | 10 +- .../generated/SummaryLogsRetryBinTests.java | 10 +- .../generated/TableInnerTests.java | 126 +- .../generated/TablePropertiesTests.java | 141 +- ...blesCancelSearchWithResponseMockTests.java | 4 +- .../TablesCreateOrUpdateMockTests.java | 100 +- .../generated/TablesDeleteMockTests.java | 4 +- .../TablesGetWithResponseMockTests.java | 44 +- .../TablesListByWorkspaceMockTests.java | 44 +- .../generated/TablesListResultTests.java | 95 +- .../TablesMigrateWithResponseMockTests.java | 5 +- .../loganalytics/generated/TagTests.java | 14 +- .../generated/TagsResourceTests.java | 14 +- .../generated/UsageMetricInnerTests.java | 38 +- .../generated/UsagesListMockTests.java | 20 +- .../generated/UserAssignedIdentityTests.java | 5 +- .../UserIdentityPropertiesTests.java | 4 +- .../generated/WorkspaceCappingTests.java | 10 +- .../WorkspaceFailoverPropertiesTests.java | 4 +- .../generated/WorkspaceFeaturesTests.java | 29 +- .../generated/WorkspaceInnerTests.java | 116 +- ...kspaceListManagementGroupsResultTests.java | 53 +- .../generated/WorkspaceListResultTests.java | 141 +- .../WorkspaceListUsagesResultTests.java | 61 +- .../generated/WorkspacePatchTests.java | 97 +- .../generated/WorkspacePropertiesTests.java | 87 +- .../WorkspacePurgeResponseInnerTests.java | 13 +- ...orkspacePurgeStatusResponseInnerTests.java | 10 +- ...esGetPurgeStatusWithResponseMockTests.java | 4 +- .../WorkspaceReplicationPropertiesTests.java | 14 +- .../generated/WorkspaceSkuTests.java | 16 +- .../WorkspacesCreateOrUpdateMockTests.java | 102 +- .../generated/WorkspacesDeleteMockTests.java | 4 +- ...tByResourceGroupWithResponseMockTests.java | 35 +- ...WorkspacesGetNspWithResponseMockTests.java | 28 +- ...orkspacesListByResourceGroupMockTests.java | 36 +- .../generated/WorkspacesListMockTests.java | 36 +- .../generated/WorkspacesListNspMockTests.java | 28 +- .../tsp-location.yaml | 4 + 532 files changed, 9310 insertions(+), 16420 deletions(-) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/ClusterListResult.java (62%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/DataExportListResult.java (76%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/DataSourceListResult.java (65%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/LinkedServiceListResult.java (76%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/LinkedStorageAccountsListResult.java (77%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/LogAnalyticsQueryPackListResult.java (58%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/LogAnalyticsQueryPackQueryListResult.java (58%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/NetworkSecurityPerimeterConfigurationListResult.java (73%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/OperationListResult.java (66%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/StorageInsightListResult.java (72%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/SummaryLogsListResult.java (70%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/TablesListResult.java (76%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/WorkspaceListManagementGroupsResult.java (77%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/WorkspaceListResult.java (76%) rename sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/{ => implementation}/models/WorkspaceListUsagesResult.java (76%) create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml 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..a022d6da7e2f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -1,14 +1,430 @@ # 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 +* `validate()` was removed +* `withId(java.lang.String)` 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 tenantId()` -> `java.lang.String tenantId()` +* `validate()` was removed +* `java.util.UUID principalId()` -> `java.lang.String principalId()` + +#### `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 +* `withSubscriptions(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withEmailAddresses(java.util.List)` was removed +* `withNetworkSecurityPerimeters(java.util.List)` was removed +* `validate()` was removed +* `withPhoneNumbers(java.util.List)` was removed +* `withDirection(models.AccessRuleDirection)` was removed +* `withAddressPrefixes(java.util.List)` was removed + +#### `models.PrivateLinkScopedResource` was modified + +* `PrivateLinkScopedResource()` was changed to private access +* `validate()` was removed +* `withResourceId(java.lang.String)` was removed +* `withScopeId(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 +* `validate()` was removed +* `withName(java.lang.String)` was removed +* `withProperties(models.AccessRuleProperties)` 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 +* `withLocation(java.lang.String)` was removed +* `withPerimeterGuid(java.util.UUID)` was removed +* `withId(java.lang.String)` was removed +* `validate()` was removed +* `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` + +#### `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 +* `validate()` was removed +* `withValue(java.lang.String)` was removed +* `withLocalizedValue(java.lang.String)` 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 +* `validate()` was removed +* `withAccessMode(models.ResourceAssociationAccessMode)` was removed +* `withName(java.lang.String)` 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 +* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()` +* `java.lang.Float progress()` -> `java.lang.Double progress()` +* `validate()` was removed + +#### `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 + +* `models.LinkedService deleteById(java.lang.String)` -> `void deleteById(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.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.NetworkSecurityProfile` was modified + +* `NetworkSecurityProfile()` was changed to private access +* `validate()` was removed +* `withAccessRules(java.util.List)` was removed +* `withAccessRulesVersion(java.lang.Integer)` was removed +* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed +* `withEnabledLogCategories(java.util.List)` was removed +* `withName(java.lang.String)` was removed + +#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified -### Other Changes +* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access +* `validate()` was removed +* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed +* `withResourceAssociation(models.ResourceAssociation)` was removed +* `withProfile(models.NetworkSecurityProfile)` was removed + +#### `models.SummaryLogsRetryBin` was modified + +* `validate()` was removed + +#### `models.SearchMetadataSchema` was modified + +* `SearchMetadataSchema()` was changed to private access +* `validate()` was removed +* `withName(java.lang.String)` was removed +* `withVersion(java.lang.Integer)` was removed + +#### `models.KeyVaultProperties` was modified + +* `validate()` was removed + +#### `models.UserAssignedIdentity` was modified + +* `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `validate()` was removed +* `java.util.UUID principalId()` -> `java.lang.String principalId()` + +#### `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 +* `withOperation(java.lang.String)` was removed +* `validate()` was removed +* `withDescription(java.lang.String)` was removed +* `withResource(java.lang.String)` was removed + +#### `models.ProvisioningIssueProperties` was modified + +* `ProvisioningIssueProperties()` was changed to private access +* `validate()` was removed + +#### `models.AssociatedWorkspace` was modified + +* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` +* `validate()` was removed + +#### `models.Table` was modified + +* `models.ProvisioningStateEnum provisioningState()` -> `models.OperationalInsightsTableProvisioningState provisioningState()` + +#### `models.TagsResource` was modified + +* `validate()` was removed + +#### `models.SearchSchemaValue` was modified + +* `SearchSchemaValue()` was changed to private access +* `withFacet(boolean)` was removed +* `withOwnerType(java.util.List)` was removed +* `withStored(boolean)` was removed +* `withDisplayName(java.lang.String)` was removed +* `withType(java.lang.String)` was removed +* `withIndexed(boolean)` was removed +* `validate()` was removed +* `withName(java.lang.String)` was removed + +#### `models.SearchMetadata` was modified + +* `SearchMetadata()` was changed to private access +* `withResultType(java.lang.String)` was removed +* `etag()` was removed +* `withTop(java.lang.Long)` was removed +* `withSum(java.lang.Long)` was removed +* `withId(java.lang.String)` was removed +* `withLastUpdated(java.time.OffsetDateTime)` was removed +* `withTotal(java.lang.Long)` was removed +* `withSchema(models.SearchMetadataSchema)` was removed +* `withSort(java.util.List)` was removed +* `withMax(java.lang.Long)` was removed +* `withRequestTime(java.lang.Long)` was removed +* `withStatus(java.lang.String)` was removed +* `validate()` was removed +* `withSearchId(java.lang.String)` was removed +* `withStartTime(java.time.OffsetDateTime)` was removed +* `withAggregatedGroupingFields(java.lang.String)` was removed +* `withCoreSummaries(java.util.List)` was removed +* `withEtag(java.lang.String)` was removed +* `withAggregatedValueField(java.lang.String)` was removed + +#### `models.SummaryLogsRetryBinProperties` was modified + +* `validate()` was removed + +#### `models.ProvisioningStateEnum` was modified + +* `IN_PROGRESS` was removed + +#### `models.WorkspacePurgesPurgeHeaders` was modified + +* `withXMsStatusLocation(java.lang.String)` was removed +* `validate()` 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 +* `withName(java.lang.String)` was removed +* `withOrder(models.SearchSortEnum)` was removed + +#### `models.ClusterSku` was modified + +* `validate()` was removed + +### Features Added + +* `models.OperationalInsightsTableProvisioningState` was added + +#### `models.StorageInsight$Definition` was modified + +* `withETag(java.lang.String)` was added + +#### `models.StorageInsight` was modified + +* `eTag()` was added +* `systemData()` 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.SearchMetadata` was modified + +* `eTag()` was added + +#### `models.ProvisioningStateEnum` was modified + +* `FAILED` was added +* `CANCELED` 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..88162a211072 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 + false 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..7a08fda73809 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; @@ -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..e4f1e2de739b 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; @@ -171,17 +171,6 @@ public SummaryLogsProperties withRuleDefinition(RuleDefinition ruleDefinition) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (ruleDefinition() != null) { - ruleDefinition().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java index f9163289ea32..86db61e9e2b4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java @@ -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,7 +10,7 @@ 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.OperationalInsightsTableProvisioningState; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -29,7 +29,7 @@ public final class TableInner extends ProxyResource { private TableProperties innerProperties; /* - * Metadata pertaining to creation and last modification of the resource. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ private SystemData systemData; @@ -64,7 +64,7 @@ private TableProperties innerProperties() { } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * * @return the systemData value. */ @@ -281,7 +281,7 @@ public TableInner withSchema(Schema schema) { * * @return the provisioningState value. */ - public ProvisioningStateEnum provisioningState() { + public OperationalInsightsTableProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } @@ -305,17 +305,6 @@ public Boolean totalRetentionInDaysAsDefault() { return this.innerProperties() == null ? null : this.innerProperties().totalRetentionInDaysAsDefault(); } - /** - * 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/TableProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java index f3c825511b70..fa0cbf1cd391 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java @@ -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,7 +9,7 @@ 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.OperationalInsightsTableProvisioningState; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -73,7 +73,7 @@ public final class TableProperties implements JsonSerializable * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, * forbidding any update to the table until the ongoing operation is concluded. */ - private ProvisioningStateEnum provisioningState; + private OperationalInsightsTableProvisioningState provisioningState; /* * True - Value originates from workspace retention in days, False - Customer specific. @@ -252,7 +252,7 @@ public TableProperties withSchema(Schema schema) { * * @return the provisioningState value. */ - public ProvisioningStateEnum provisioningState() { + public OperationalInsightsTableProvisioningState provisioningState() { return this.provisioningState; } @@ -276,26 +276,6 @@ public Boolean totalRetentionInDaysAsDefault() { return this.totalRetentionInDaysAsDefault; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (searchResults() != null) { - searchResults().validate(); - } - if (restoredLogs() != null) { - restoredLogs().validate(); - } - if (resultStatistics() != null) { - resultStatistics().validate(); - } - if (schema() != null) { - schema().validate(); - } - } - /** * {@inheritDoc} */ @@ -346,7 +326,7 @@ public static TableProperties fromJson(JsonReader jsonReader) throws IOException deserializedTableProperties.schema = Schema.fromJson(reader); } else if ("provisioningState".equals(fieldName)) { deserializedTableProperties.provisioningState - = ProvisioningStateEnum.fromString(reader.getString()); + = OperationalInsightsTableProvisioningState.fromString(reader.getString()); } else if ("retentionInDaysAsDefault".equals(fieldName)) { deserializedTableProperties.retentionInDaysAsDefault = reader.getNullable(JsonReader::getBoolean); } else if ("totalRetentionInDaysAsDefault".equals(fieldName)) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java index b065f8b7cd72..1b389bf03936 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java @@ -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.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * A metric describing the usage of a resource. */ -@Fluent +@Immutable public final class UsageMetricInner 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 res = service.listByResourceGroupSync(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { + return getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); } /** - * Gets Log Analytics clusters in a resource group. + * Create or update 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 create or update a 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 PagedIterable}. + * @return the top level Log Analytics cluster resource container along with {@link Response} on successful + * completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String clusterName, ClusterInner parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets Log Analytics clusters in a resource group. + * Create or update a Log Analytics cluster. * * @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. + * @param parameters The parameters required to create or update a 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 PagedIterable}. + * @return the top level Log Analytics cluster resource container along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, + ClusterInner parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, + Context.NONE); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update 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 create or update a 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 the Log Analytics clusters in a subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return the top level Log Analytics cluster resource container along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - 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.")); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, + ClusterInner parameters, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), 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)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, context); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update 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 create or update a 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 the Log Analytics clusters in a subscription as paginated response with {@link PagedFlux}. + * @return the {@link PollerFlux} for polling of the top level Log Analytics cluster resource container. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, + String clusterName, ClusterInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update 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 create or update a 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 the Log Analytics clusters in a subscription along with {@link PagedResponse}. + * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - 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.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), 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); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ClusterInner> beginCreateOrUpdate(String resourceGroupName, + String clusterName, ClusterInner parameters) { + Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, parameters); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + Context.NONE); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update 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 create or update a 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 the Log Analytics clusters in a subscription along with {@link PagedResponse}. + * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(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.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ClusterInner> beginCreateOrUpdate(String resourceGroupName, + String clusterName, ClusterInner parameters, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, parameters, context); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + context); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update 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 create or update a 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 the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. + * @return the top level Log Analytics cluster resource container on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, + ClusterInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the Log Analytics clusters in a subscription. + * Create or update a Log Analytics cluster. * - * @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. + * @param parameters The parameters required to create or update a 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 the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. + * @return the top level Log Analytics cluster resource container. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) { + return beginCreateOrUpdate(resourceGroupName, clusterName, parameters).getFinalResult(); } /** * 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. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the top level Log Analytics cluster resource container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, + Context context) { + return beginCreateOrUpdate(resourceGroupName, clusterName, parameters, context).getFinalResult(); + } + + /** + * 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -488,84 +469,42 @@ public PagedIterable list(Context context) { * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String clusterName, ClusterInner parameters) { - 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.")); - } - if (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + ClusterPatch parameters) { + final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), clusterName, parameters, accept, context)) + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 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 along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - ClusterInner parameters) { - 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.")); - } - if (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Response updateWithResponse(String resourceGroupName, String clusterName, + ClusterPatch parameters) { + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), clusterName, parameters, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, + Context.NONE); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 ManagementException thrown if the request is rejected by server. @@ -573,82 +512,58 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the top level Log Analytics cluster resource container along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - ClusterInner parameters, 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.")); - } - if (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Response updateWithResponse(String resourceGroupName, String clusterName, + ClusterPatch parameters, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), clusterName, parameters, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, parameters, context); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 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 PollerFlux} for polling of the top level Log Analytics cluster resource container. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, - String clusterName, ClusterInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, parameters); + private PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, + String clusterName, ClusterPatch parameters) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, parameters); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 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) - public SyncPoller, ClusterInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, ClusterInner parameters) { - Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, parameters); + public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterPatch parameters) { + Response response = updateWithResponse(resourceGroupName, clusterName, parameters); return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, Context.NONE); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 ManagementException thrown if the request is rejected by server. @@ -656,53 +571,52 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate(St * @return the {@link SyncPoller} for polling of the top level Log Analytics cluster resource container. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ClusterInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, ClusterInner parameters, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, parameters, context); + public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterPatch parameters, Context context) { + Response response = updateWithResponse(resourceGroupName, clusterName, parameters, context); return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, context); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - ClusterInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters).last() + private Mono updateAsync(String resourceGroupName, String clusterName, ClusterPatch parameters) { + return beginUpdateAsync(resourceGroupName, clusterName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 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) - public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) { - return beginCreateOrUpdate(resourceGroupName, clusterName, parameters).getFinalResult(); + public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters) { + return beginUpdate(resourceGroupName, clusterName, parameters).getFinalResult(); } /** - * Create or update a Log Analytics cluster. + * Updates 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 parameters The parameters required to create or update a Log Analytics cluster. + * @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 ManagementException thrown if the request is rejected by server. @@ -710,9 +624,8 @@ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, * @return the top level Log Analytics cluster resource container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters, - Context context) { - return beginCreateOrUpdate(resourceGroupName, clusterName, parameters, context).getFinalResult(); + public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, Context context) { + return beginUpdate(resourceGroupName, clusterName, parameters, context).getFinalResult(); } /** @@ -727,25 +640,9 @@ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName) { - 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 (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName 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.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -761,27 +658,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String clusterName) { - 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 (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, Context.NONE); } /** @@ -797,27 +675,8 @@ private Response deleteWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String clusterName, 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 (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, context); } /** @@ -916,344 +775,198 @@ public void delete(String resourceGroupName, String clusterName, Context context } /** - * Gets a Log Analytics cluster instance. + * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics cluster instance along with {@link Response} on successful completion of {@link Mono}. + * @return log Analytics clusters in a resource group along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String clusterName) { - 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 (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, this.client.getApiVersion(), clusterName, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a Log Analytics cluster instance. + * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics cluster instance on successful completion of {@link Mono}. + * @return log Analytics clusters in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Gets a Log Analytics cluster instance. + * 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics cluster instance along with {@link Response}. + * @return log Analytics clusters in a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, - 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 (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); - } + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, this.client.getApiVersion(), clusterName, accept, context); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Gets a Log Analytics cluster instance. + * 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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics cluster instance. + * @return log Analytics clusters in a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { - return getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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 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 along with {@link Response} on successful - * completion of {@link Mono}. + * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, - ClusterPatch parameters) { - 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 (clusterName == null) { - return Mono.error(new IllegalArgumentException("Parameter clusterName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); } /** - * 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 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 along with {@link Response}. + * @return log Analytics clusters in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String clusterName, - ClusterPatch parameters) { - 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 (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, Context.NONE); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 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 along with {@link Response}. + * @return the Log Analytics clusters in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String clusterName, - ClusterPatch parameters, 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 (clusterName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter clusterName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Mono> listSinglePageAsync() { final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context); + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), 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)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 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 PollerFlux} for polling of the top level Log Analytics cluster resource container. + * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, - String clusterName, ClusterPatch parameters) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ClusterInner.class, ClusterInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 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. + * @return the Log Analytics clusters in a subscription along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, - ClusterPatch parameters) { - Response response = updateWithResponse(resourceGroupName, clusterName, parameters); - return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, - Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), 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); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 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) - public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, - ClusterPatch parameters, Context context) { - Response response = updateWithResponse(resourceGroupName, clusterName, parameters, context); - return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, - context); - } - - /** - * Updates a Log Analytics cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Name of the Log Analytics Cluster. - * @param parameters The parameters required to patch a Log Analytics cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 on successful completion of {@link Mono}. + * @return the Log Analytics clusters in a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String clusterName, ClusterPatch parameters) { - return beginUpdateAsync(resourceGroupName, clusterName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Log Analytics cluster resource container. + * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters) { - return beginUpdate(resourceGroupName, clusterName, parameters).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** - * Updates a Log Analytics cluster. + * Gets the Log Analytics clusters in a subscription. * - * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Log Analytics cluster resource container. + * @return the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterInner update(String resourceGroupName, String clusterName, ClusterPatch parameters, Context context) { - return beginUpdate(resourceGroupName, clusterName, parameters, context).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -1268,13 +981,6 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -1295,15 +1001,6 @@ private Mono> listByResourceGroupNextSinglePageAsync */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -1323,15 +1020,6 @@ private PagedResponse listByResourceGroupNextSinglePage(String nex */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); @@ -1351,13 +1039,6 @@ private PagedResponse listByResourceGroupNextSinglePage(String nex */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -1376,15 +1057,6 @@ private Mono> listNextSinglePageAsync(String nextLin */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -1404,20 +1076,9 @@ private PagedResponse listNextSinglePage(String nextLink) { */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(ClustersClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java index 146f250a14d6..687a985d00b7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java @@ -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; @@ -27,6 +27,31 @@ public ClustersImpl(ClustersClient innerClient, this.serviceManager = serviceManager; } + public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, clusterName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ClusterImpl(inner.getValue(), this.manager())); + } + + public Cluster getByResourceGroup(String resourceGroupName, String clusterName) { + ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName); + if (inner != null) { + return new ClusterImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String clusterName) { + this.serviceClient().delete(resourceGroupName, clusterName); + } + + public void delete(String resourceGroupName, String clusterName, Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, context); + } + public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); @@ -47,40 +72,11 @@ public PagedIterable list(Context context) { return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } - public void deleteByResourceGroup(String resourceGroupName, String clusterName) { - this.serviceClient().delete(resourceGroupName, clusterName); - } - - public void delete(String resourceGroupName, String clusterName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, context); - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, - Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, clusterName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ClusterImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public Cluster getByResourceGroup(String resourceGroupName, String clusterName) { - ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName); - if (inner != null) { - return new ClusterImpl(inner, this.manager()); - } else { - return null; - } - } - public Cluster getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { @@ -91,10 +87,10 @@ public Cluster getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { @@ -105,10 +101,10 @@ public Response getByIdWithResponse(String id, Context context) { } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { @@ -119,10 +115,10 @@ public void deleteById(String id) { } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); if (clusterName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java index f6f58e71a71a..a8d780f04904 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner; import com.azure.resourcemanager.loganalytics.models.DataExport; @@ -28,6 +29,10 @@ public String type() { return this.innerModel().type(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String dataExportId() { return this.innerModel().dataExportId(); } @@ -137,7 +142,7 @@ public DataExport apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.dataExportName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dataExports"); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java index 30251c939268..fb582b917376 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java @@ -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; @@ -28,10 +28,9 @@ 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.DataExportsClient; import com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner; -import com.azure.resourcemanager.loganalytics.models.DataExportListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult; import reactor.core.publisher.Mono; /** @@ -63,251 +62,172 @@ public final class DataExportsClientImpl implements DataExportsClient { * The interface defining all the services for OperationalInsightsManagementClientDataExports to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientDataExports") public interface DataExportsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@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); + @PathParam("dataExportName") String dataExportName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@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); + @PathParam("dataExportName") String dataExportName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataExportInner parameters, @HeaderParam("Accept") String accept, + @PathParam("dataExportName") String dataExportName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") DataExportInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataExportInner parameters, @HeaderParam("Accept") String accept, + @PathParam("dataExportName") String dataExportName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") DataExportInner parameters, Context context); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @ExpectedResponses({ 200, 404 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dataExportName") String dataExportName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @ExpectedResponses({ 200, 404 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dataExportName") String dataExportName, Context context); + @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@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, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@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, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") - @ExpectedResponses({ 200, 404 }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, + Mono> listByWorkspaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}") - @ExpectedResponses({ 200, 404 }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataExportName") String dataExportName, @QueryParam("api-version") String apiVersion, + Response listByWorkspaceNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, 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 dataExportName The data export rule name. * @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 result of the request to list data exports along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return a data export instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync(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.")); - } + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String dataExportName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataExportName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. - * @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 result of the request to list data exports as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName)); - } - - /** - * 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. * @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 result of the request to list data exports along with {@link PagedResponse}. + * @return a data export instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + private Mono getAsync(String resourceGroupName, String workspaceName, String dataExportName) { + return getWithResponseAsync(resourceGroupName, workspaceName, dataExportName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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 along with {@link PagedResponse}. + * @return a data export instance along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(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.")); - } + public Response getWithResponse(String resourceGroupName, String workspaceName, + String dataExportName, Context context) { final String accept = "application/json"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } - - /** - * 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. - * @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 result of the request to list data exports as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName)); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, dataExportName, accept, 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 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) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, - Context context) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName) { + return getWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE).getValue(); } /** @@ -326,34 +246,12 @@ public PagedIterable listByWorkspace(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, String dataExportName, DataExportInner parameters) { - 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.")); - } - if (dataExportName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, dataExportName, this.client.getApiVersion(), parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataExportName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -392,37 +290,11 @@ private Mono createOrUpdateAsync(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String dataExportName, DataExportInner parameters, 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.")); - } - if (dataExportName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, dataExportName, this.client.getApiVersion(), parameters, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataExportName, contentType, accept, + parameters, context); } /** @@ -445,7 +317,7 @@ public DataExportInner createOrUpdate(String resourceGroupName, String workspace } /** - * 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. @@ -453,38 +325,19 @@ public DataExportInner createOrUpdate(String resourceGroupName, String workspace * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data export instance along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String dataExportName) { - 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.")); - } - if (dataExportName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, dataExportName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataExportName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -492,16 +345,16 @@ private Mono> getWithResponseAsync(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data export instance on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String dataExportName) { - return getWithResponseAsync(resourceGroupName, workspaceName, dataExportName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String dataExportName) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, dataExportName) + .flatMap(ignored -> Mono.empty()); } /** - * 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. @@ -510,40 +363,17 @@ private Mono getAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data export instance along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String dataExportName, 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.")); - } - if (dataExportName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, dataExportName, this.client.getApiVersion(), accept, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataExportName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataExportName, 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. @@ -551,125 +381,181 @@ public Response getWithResponse(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a data export instance. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataExportInner get(String resourceGroupName, String workspaceName, String dataExportName) { - return getWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String workspaceName, String dataExportName) { + deleteWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return result of the request to list data exports along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String dataExportName) { - 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.")); - } - if (dataExportName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, dataExportName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return result of the request to list data exports as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); + } + + /** + * 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. + * @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 result of the request to list data exports along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String dataExportName) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, dataExportName) - .flatMap(ignored -> Mono.empty()); + private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataExportName, + private PagedResponse listByWorkspaceSinglePage(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.")); - } - if (dataExportName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); - } final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, dataExportName, this.client.getApiVersion(), accept, context); + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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. * @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 result of the request to list data exports as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePage(nextLink)); + } + + /** + * 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 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 result of the request to list data exports as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of the request to list data exports along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String dataExportName) { - deleteWithResponse(resourceGroupName, workspaceName, dataExportName, Context.NONE); + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of the request to list data exports along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } - private static final ClientLogger LOGGER = new ClientLogger(DataExportsClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of the request to list data exports along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java index 5f6105c15271..866dbb4ea375 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java @@ -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; @@ -27,27 +27,12 @@ public DataExportsImpl(DataExportsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager())); - } - - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner - = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String workspaceName, String dataExportName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, dataExportName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DataExportImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DataExportImpl(inner.getValue(), this.manager())); } public DataExport get(String resourceGroupName, String workspaceName, String dataExportName) { @@ -68,11 +53,22 @@ public void delete(String resourceGroupName, String workspaceName, String dataEx this.serviceClient().delete(resourceGroupName, workspaceName, dataExportName); } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager())); + } + + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataExportImpl(inner1, this.manager())); + } + public DataExport getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -88,10 +84,10 @@ public DataExport getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -107,10 +103,10 @@ public Response getByIdWithResponse(String id, Context context) { } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -126,10 +122,10 @@ public void deleteById(String id) { } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java index a1964425bee9..f94bb0f8934a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner; import com.azure.resourcemanager.loganalytics.models.DataSource; @@ -49,6 +50,10 @@ public Map tags() { } } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String resourceGroupName() { return resourceGroupName; } @@ -121,7 +126,7 @@ public DataSource apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.dataSourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dataSources"); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java index f1f8487cacb5..5c79540724c0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java @@ -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; @@ -28,10 +28,9 @@ 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.DataSourcesClient; import com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner; -import com.azure.resourcemanager.loganalytics.models.DataSourceListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult; import reactor.core.publisher.Mono; /** @@ -63,85 +62,83 @@ public final class DataSourcesClientImpl implements DataSourcesClient { * The interface defining all the services for OperationalInsightsManagementClientDataSources to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientDataSources") public interface DataSourcesService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") DataSourceInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("dataSourceName") String dataSourceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dataSourceName") String dataSourceName, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") DataSourceInner parameters, @HeaderParam("Accept") String accept, + @PathParam("dataSourceName") String dataSourceName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") DataSourceInner parameters, Context context); - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") - @ExpectedResponses({ 200, 204 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); + @PathParam("dataSourceName") String dataSourceName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") DataSourceInner parameters, + Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("dataSourceName") String dataSourceName, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceName") String dataSourceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("dataSourceName") String dataSourceName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, + Mono> listByWorkspace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @QueryParam("$filter") String filter, @QueryParam("$skiptoken") String skiptoken, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, + Response listByWorkspaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @QueryParam("$filter") String filter, @QueryParam("$skiptoken") String skiptoken, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -149,7 +146,7 @@ Response listByWorkspaceSync(@HostParam("$host") String en @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @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" }) @@ -157,256 +154,171 @@ Mono> listByWorkspaceNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByWorkspaceNextSync( - @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); } /** - * 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 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} on successful completion of {@link Mono}. + * @return a datasource instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String dataSourceName, DataSourceInner parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String dataSourceName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 on successful completion of {@link Mono}. + * @return a datasource instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String dataSourceName, DataSourceInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, parameters) + private Mono getAsync(String resourceGroupName, String workspaceName, String dataSourceName) { + return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, - String dataSourceName, DataSourceInner parameters, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + public Response getWithResponse(String resourceGroupName, String workspaceName, + String dataSourceName, Context context) { final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, dataSourceName, accept, 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 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) - public DataSourceInner createOrUpdate(String resourceGroupName, String workspaceName, String dataSourceName, - DataSourceInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceName, parameters, Context.NONE) - .getValue(); + public DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName) { + return getWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE).getValue(); } /** - * 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 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} on successful completion of {@link Mono}. + * @return datasources under OMS Workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - String dataSourceName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceName 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> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String dataSourceName, DataSourceInner parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceName, this.client.getApiVersion(), this.client.getSubscriptionId(), context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 {@link Mono} that completes when a successful response is received. + * @return datasources under OMS Workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String dataSourceName) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceName) - .flatMap(ignored -> Mono.empty()); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String dataSourceName, DataSourceInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceName 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.")); - } - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), context); + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String dataSourceName, DataSourceInner parameters, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceName, contentType, accept, + parameters, 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 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) - public void delete(String resourceGroupName, String workspaceName, String dataSourceName) { - deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE); + public DataSourceInner createOrUpdate(String resourceGroupName, String workspaceName, String dataSourceName, + DataSourceInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceName, parameters, Context.NONE) + .getValue(); } /** - * 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. @@ -414,38 +326,19 @@ public void delete(String resourceGroupName, String workspaceName, String dataSo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a datasource instance along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String dataSourceName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceName 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.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -453,16 +346,16 @@ private Mono> getWithResponseAsync(String resourceGrou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a datasource instance on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String dataSourceName) { - return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String dataSourceName) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceName) + .flatMap(ignored -> Mono.empty()); } /** - * 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. @@ -471,40 +364,17 @@ private Mono getAsync(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a datasource instance along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String dataSourceName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceName 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"; - return service.getSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceName, 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. @@ -512,11 +382,10 @@ public Response getWithResponse(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a datasource instance. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataSourceInner get(String resourceGroupName, String workspaceName, String dataSourceName) { - return getWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String workspaceName, String dataSourceName) { + deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, Context.NONE); } /** @@ -535,28 +404,10 @@ public DataSourceInner get(String resourceGroupName, String workspaceName, Strin @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, String filter, String skiptoken) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (filter == null) { - return Mono.error(new IllegalArgumentException("Parameter filter 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.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), resourceGroupName, workspaceName, - filter, skiptoken, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, filter, skiptoken, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -620,32 +471,10 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName, String filter, String skiptoken) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (filter == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filter 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, filter, - skiptoken, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + Response res = service.listByWorkspaceSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, filter, + skiptoken, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -667,32 +496,10 @@ private PagedResponse listByWorkspaceSinglePage(String resource @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName, String filter, String skiptoken, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (filter == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter filter 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, filter, - skiptoken, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, filter, skiptoken, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -751,13 +558,6 @@ public PagedIterable listByWorkspace(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) @@ -778,15 +578,6 @@ private Mono> listByWorkspaceNextSinglePageAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -807,21 +598,10 @@ private PagedResponse listByWorkspaceNextSinglePage(String next */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(DataSourcesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java index 2a8522271595..a925532e98a0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java @@ -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; @@ -27,25 +27,12 @@ public DataSourcesImpl(DataSourcesClient innerClient, this.serviceManager = serviceManager; } - public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, context); - } - - public void delete(String resourceGroupName, String workspaceName, String dataSourceName) { - this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceName); - } - public Response getWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, dataSourceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new DataSourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DataSourceImpl(inner.getValue(), this.manager())); } public DataSource get(String resourceGroupName, String workspaceName, String dataSourceName) { @@ -57,6 +44,15 @@ public DataSource get(String resourceGroupName, String workspaceName, String dat } } + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceName, context); + } + + public void delete(String resourceGroupName, String workspaceName, String dataSourceName) { + this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceName); + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, String filter) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, filter); @@ -71,10 +67,10 @@ public PagedIterable listByWorkspace(String resourceGroupName, Strin } public DataSource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -90,10 +86,10 @@ public DataSource getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -109,10 +105,10 @@ public Response getByIdWithResponse(String id, Context context) { } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -128,10 +124,10 @@ public void deleteById(String id) { } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java index 41aa645c5021..6c487eeeda53 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java @@ -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; @@ -25,10 +25,9 @@ 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.DeletedWorkspacesClient; import com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult; import reactor.core.publisher.Mono; /** @@ -60,14 +59,14 @@ public final class DeletedWorkspacesClientImpl implements DeletedWorkspacesClien * The interface defining all the services for OperationalInsightsManagementClientDeletedWorkspaces to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientDeletedWorkspaces") public interface DeletedWorkspacesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -75,25 +74,57 @@ Mono> list(@HostParam("$host") String endpoint, @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces") @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> 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/deletedWorkspaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces") @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 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" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @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("endpoint") String endpoint, @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("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -106,20 +137,12 @@ Response listByResourceGroupSync(@HostParam("$host") String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { - 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.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -133,7 +156,7 @@ private Mono> listSinglePageAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync()); + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -145,21 +168,11 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage() { - 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.")); - } final String accept = "application/json"; Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -173,21 +186,11 @@ private PagedResponse listSinglePage() { */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(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.")); - } final String accept = "application/json"; Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -200,7 +203,7 @@ private PagedResponse listSinglePage(Context context) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage()); + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** @@ -215,7 +218,7 @@ public PagedIterable list() { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context)); + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -230,24 +233,12 @@ public PagedIterable list(Context context) { */ @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.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -263,7 +254,8 @@ private Mono> listByResourceGroupSinglePageAsync(S */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName)); + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** @@ -277,25 +269,11 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN */ @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.")); - } final String accept = "application/json"; Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -310,25 +288,11 @@ private PagedResponse listByResourceGroupSinglePage(String resou */ @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 res = service.listByResourceGroupSync(this.client.getEndpoint(), - resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -343,7 +307,8 @@ private PagedResponse listByResourceGroupSinglePage(String resou */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName)); + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); } /** @@ -359,8 +324,120 @@ public PagedIterable listByResourceGroup(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context)); + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a subscription, available for recovery along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a subscription, available for recovery along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a subscription, available for recovery along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a resource group, available for recovery along with {@link PagedResponse} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - private static final ClientLogger LOGGER = new ClientLogger(DeletedWorkspacesClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a resource group, available for recovery along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 recently deleted workspaces in a resource group, available for recovery along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java index bf8b6bdca468..24fa49a1a947 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java @@ -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/GatewaysClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java index def0f096476d..13d06dff8b27 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java @@ -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; @@ -20,7 +20,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.GatewaysClient; import reactor.core.publisher.Mono; @@ -52,26 +51,26 @@ public final class GatewaysClientImpl implements GatewaysClient { * The interface defining all the services for OperationalInsightsManagementClientGateways to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientGateways") public interface GatewaysService { @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("gatewayId") String gatewayId, @QueryParam("api-version") String apiVersion, Context context); + @PathParam("gatewayId") String gatewayId, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("gatewayId") String gatewayId, @QueryParam("api-version") String apiVersion, Context context); + @PathParam("gatewayId") String gatewayId, Context context); } /** @@ -88,27 +87,9 @@ Response deleteSync(@HostParam("$host") String endpoint, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String gatewayId) { - 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.")); - } - if (gatewayId == null) { - return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); - } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, gatewayId, this.client.getApiVersion(), context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, gatewayId, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -143,30 +124,8 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String workspaceName, String gatewayId, 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.")); - } - if (gatewayId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, gatewayId, this.client.getApiVersion(), context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, gatewayId, context); } /** @@ -183,6 +142,4 @@ public Response deleteWithResponse(String resourceGroupName, String worksp public void delete(String resourceGroupName, String workspaceName, String gatewayId) { deleteWithResponse(resourceGroupName, workspaceName, gatewayId, Context.NONE); } - - private static final ClientLogger LOGGER = new ClientLogger(GatewaysClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java index b8404c49880c..64f8aefe21d9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java @@ -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/IntelligencePackImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java index 2b05446cd5f4..549b8fa88450 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.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/IntelligencePacksClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java index 34dd79cae562..f233f24e04cf 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java @@ -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; @@ -22,7 +22,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.IntelligencePacksClient; import com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner; import java.util.List; @@ -57,65 +56,61 @@ public final class IntelligencePacksClientImpl implements IntelligencePacksClien * The interface defining all the services for OperationalInsightsManagementClientIntelligencePacks to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientIntelligencePacks") public interface IntelligencePacksService { @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> disable(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("intelligencePackName") String intelligencePackName, + Mono> disable(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("intelligencePackName") String intelligencePackName, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response disableSync(@HostParam("$host") String endpoint, + Response disableSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("intelligencePackName") String intelligencePackName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - Context context); + @PathParam("intelligencePackName") String intelligencePackName, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> enable(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("intelligencePackName") String intelligencePackName, + Mono> enable(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("intelligencePackName") String intelligencePackName, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response enableSync(@HostParam("$host") String endpoint, + Response enableSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("intelligencePackName") String intelligencePackName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - Context context); + @PathParam("intelligencePackName") String intelligencePackName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono>> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response> listSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response> listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); } @@ -124,7 +119,7 @@ Response> listSync(@HostParam("$host") String endpoi * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -133,28 +128,9 @@ Response> listSync(@HostParam("$host") String endpoi @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disableWithResponseAsync(String resourceGroupName, String workspaceName, String intelligencePackName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (intelligencePackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter intelligencePackName 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.")); - } return FluxUtil - .withContext(context -> service.disable(this.client.getEndpoint(), resourceGroupName, workspaceName, - intelligencePackName, this.client.getApiVersion(), this.client.getSubscriptionId(), context)) + .withContext(context -> service.disable(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, intelligencePackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -163,7 +139,7 @@ private Mono> disableWithResponseAsync(String resourceGroupName, * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -180,7 +156,7 @@ private Mono disableAsync(String resourceGroupName, String workspaceName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param intelligencePackName The name of the intelligence pack to be disabled. + * @param 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 ManagementException thrown if the request is rejected by server. @@ -190,30 +166,8 @@ private Mono disableAsync(String resourceGroupName, String workspaceName, @ServiceMethod(returns = ReturnType.SINGLE) public Response disableWithResponse(String resourceGroupName, String workspaceName, String intelligencePackName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (intelligencePackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter intelligencePackName 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.")); - } - return service.disableSync(this.client.getEndpoint(), resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), this.client.getSubscriptionId(), context); + return service.disableSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, intelligencePackName, context); } /** @@ -221,7 +175,7 @@ public Response disableWithResponse(String resourceGroupName, String works * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -236,7 +190,7 @@ public void disable(String resourceGroupName, String workspaceName, String intel * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param intelligencePackName The name of the intelligence pack to be enabled. + * @param intelligencePackName The name of the intelligence pack. * @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. @@ -245,28 +199,9 @@ public void disable(String resourceGroupName, String workspaceName, String intel @ServiceMethod(returns = ReturnType.SINGLE) private Mono> enableWithResponseAsync(String resourceGroupName, String workspaceName, String intelligencePackName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (intelligencePackName == null) { - return Mono - .error(new IllegalArgumentException("Parameter intelligencePackName 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.")); - } return FluxUtil - .withContext(context -> service.enable(this.client.getEndpoint(), resourceGroupName, workspaceName, - intelligencePackName, this.client.getApiVersion(), this.client.getSubscriptionId(), context)) + .withContext(context -> service.enable(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, intelligencePackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -275,7 +210,7 @@ private Mono> enableWithResponseAsync(String resourceGroupName, S * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param intelligencePackName The name of the intelligence pack to be enabled. + * @param intelligencePackName The name of the intelligence pack. * @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. @@ -292,7 +227,7 @@ private Mono enableAsync(String resourceGroupName, String workspaceName, S * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param intelligencePackName The name of the intelligence pack to be enabled. + * @param 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 ManagementException thrown if the request is rejected by server. @@ -302,30 +237,8 @@ private Mono enableAsync(String resourceGroupName, String workspaceName, S @ServiceMethod(returns = ReturnType.SINGLE) public Response enableWithResponse(String resourceGroupName, String workspaceName, String intelligencePackName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (intelligencePackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter intelligencePackName 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.")); - } - return service.enableSync(this.client.getEndpoint(), resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), this.client.getSubscriptionId(), context); + return service.enableSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, intelligencePackName, context); } /** @@ -333,7 +246,7 @@ public Response enableWithResponse(String resourceGroupName, String worksp * * @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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -351,30 +264,15 @@ public void enable(String resourceGroupName, String workspaceName, String intell * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return array of IntelligencePack along with {@link Response} on successful completion of {@link Mono}. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listWithResponseAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -386,7 +284,7 @@ private Mono>> listWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return array of IntelligencePack on successful completion of {@link Mono}. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listAsync(String resourceGroupName, String workspaceName) { @@ -402,32 +300,14 @@ private Mono> listAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return array of IntelligencePack along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response> listWithResponse(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 (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.")); - } - 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"; - return service.listSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -438,12 +318,10 @@ public Response> listWithResponse(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return array of IntelligencePack. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public List list(String resourceGroupName, String workspaceName) { return listWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(IntelligencePacksClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java index 5f7982e48dc8..fef4832b38fb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java @@ -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; @@ -52,15 +52,11 @@ public Response> listWithResponse(String resourceGroupNam Context context) { Response> inner = this.serviceClient().listWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - inner.getValue() - .stream() - .map(inner1 -> new IntelligencePackImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + inner.getValue() + .stream() + .map(inner1 -> new IntelligencePackImpl(inner1, this.manager())) + .collect(Collectors.toList())); } public List list(String resourceGroupName, String workspaceName) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java index fbe7b3a62038..5e918594bfd4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner; import com.azure.resourcemanager.loganalytics.models.LinkedService; @@ -37,6 +38,10 @@ public Map tags() { } } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String resourceId() { return this.innerModel().resourceId(); } @@ -115,7 +120,7 @@ public LinkedService apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.linkedServiceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "linkedServices"); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java index bf10d55b3740..fa4aa23eeb4a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java @@ -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; @@ -30,12 +30,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.LinkedServicesClient; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner; -import com.azure.resourcemanager.loganalytics.models.LinkedServiceListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -69,92 +68,185 @@ public final class LinkedServicesClientImpl implements LinkedServicesClient { * The interface defining all the services for OperationalInsightsManagementClientLinkedServices to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientLinkedServices") public interface LinkedServicesService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") - @ExpectedResponses({ 200, 201, 202 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedServiceInner parameters, @HeaderParam("Accept") String accept, + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @ExpectedResponses({ 200, 201, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LinkedServiceInner parameters, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedServiceInner parameters, @HeaderParam("Accept") String accept, + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LinkedServiceInner parameters, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("linkedServiceName") String linkedServiceName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> listByWorkspace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @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}/linkedServices/{linkedServiceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, + Response listByWorkspaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("linkedServiceName") String linkedServiceName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @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}/linkedServices") + @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Mono> listByWorkspaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices") + @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Response listByWorkspaceNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, 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 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} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String linkedServiceName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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 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 on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String workspaceName, + String linkedServiceName) { + return getWithResponseAsync(resourceGroupName, workspaceName, linkedServiceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * 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 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) + public Response getWithResponse(String resourceGroupName, String workspaceName, + String linkedServiceName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, linkedServiceName, accept, 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 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) + public LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName) { + return getWithResponse(resourceGroupName, workspaceName, linkedServiceName, Context.NONE).getValue(); + } + /** * 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 ManagementException thrown if the request is rejected by server. @@ -165,35 +257,12 @@ Response listByWorkspaceSync(@HostParam("$host") String @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, String linkedServiceName, LinkedServiceInner parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, workspaceName, - linkedServiceName, this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -202,7 +271,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @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 ManagementException thrown if the request is rejected by server. @@ -212,38 +281,11 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, LinkedServiceInner parameters) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - linkedServiceName, this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, - Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, contentType, accept, + parameters, Context.NONE); } /** @@ -251,7 +293,7 @@ private Response createOrUpdateWithResponse(String resourceGroupName * * @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. @@ -262,38 +304,11 @@ private Response createOrUpdateWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, LinkedServiceInner parameters, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - linkedServiceName, this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, - context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, contentType, accept, + parameters, context); } /** @@ -301,7 +316,7 @@ private Response createOrUpdateWithResponse(String resourceGroupName * * @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 ManagementException thrown if the request is rejected by server. @@ -322,7 +337,7 @@ private PollerFlux, LinkedServiceInner> beginCrea * * @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 ManagementException thrown if the request is rejected by server. @@ -343,7 +358,7 @@ public SyncPoller, LinkedServiceInner> beginCreat * * @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. @@ -365,7 +380,7 @@ public SyncPoller, LinkedServiceInner> beginCreat * * @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 ManagementException thrown if the request is rejected by server. @@ -384,7 +399,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S * * @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 ManagementException thrown if the request is rejected by server. @@ -402,7 +417,7 @@ public LinkedServiceInner createOrUpdate(String resourceGroupName, String worksp * * @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. @@ -432,29 +447,10 @@ public LinkedServiceInner createOrUpdate(String resourceGroupName, String worksp @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String linkedServiceName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName 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.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, workspaceName, - linkedServiceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -472,31 +468,9 @@ private Mono>> deleteWithResponseAsync(String resource @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, accept, Context.NONE); } /** @@ -514,31 +488,9 @@ private Response deleteWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, linkedServiceName, accept, context); } /** @@ -553,12 +505,12 @@ private Response deleteWithResponse(String resourceGroupName, String * @return the {@link PollerFlux} for polling of the top level Linked service resource container. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, LinkedServiceInner> beginDeleteAsync(String resourceGroupName, - String workspaceName, String linkedServiceName) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String linkedServiceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, linkedServiceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - LinkedServiceInner.class, LinkedServiceInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -573,11 +525,10 @@ private PollerFlux, LinkedServiceInner> beginDele * @return the {@link SyncPoller} for polling of the top level Linked service resource container. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, LinkedServiceInner> beginDelete(String resourceGroupName, - String workspaceName, String linkedServiceName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String linkedServiceName) { Response response = deleteWithResponse(resourceGroupName, workspaceName, linkedServiceName); - return this.client.getLroResult(response, LinkedServiceInner.class, - LinkedServiceInner.class, Context.NONE); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -593,12 +544,11 @@ public SyncPoller, LinkedServiceInner> beginDelet * @return the {@link SyncPoller} for polling of the top level Linked service resource container. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, LinkedServiceInner> beginDelete(String resourceGroupName, - String workspaceName, String linkedServiceName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String linkedServiceName, Context context) { Response response = deleteWithResponse(resourceGroupName, workspaceName, linkedServiceName, context); - return this.client.getLroResult(response, LinkedServiceInner.class, - LinkedServiceInner.class, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -613,8 +563,7 @@ public SyncPoller, LinkedServiceInner> beginDelet * @return the top level Linked service resource container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, - String linkedServiceName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String linkedServiceName) { return beginDeleteAsync(resourceGroupName, workspaceName, linkedServiceName).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -628,11 +577,10 @@ private Mono deleteAsync(String resourceGroupName, String wo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Linked service resource container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LinkedServiceInner delete(String resourceGroupName, String workspaceName, String linkedServiceName) { - return beginDelete(resourceGroupName, workspaceName, linkedServiceName).getFinalResult(); + public void delete(String resourceGroupName, String workspaceName, String linkedServiceName) { + beginDelete(resourceGroupName, workspaceName, linkedServiceName).getFinalResult(); } /** @@ -645,128 +593,10 @@ public LinkedServiceInner delete(String resourceGroupName, String workspaceName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Linked service resource container. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LinkedServiceInner delete(String resourceGroupName, String workspaceName, String linkedServiceName, - Context context) { - return beginDelete(resourceGroupName, workspaceName, linkedServiceName, context).getFinalResult(); - } - - /** - * 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 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} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String linkedServiceName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter linkedServiceName 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.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, workspaceName, - linkedServiceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * 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 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 on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, - String linkedServiceName) { - return getWithResponseAsync(resourceGroupName, workspaceName, linkedServiceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * 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 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) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String linkedServiceName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (linkedServiceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter linkedServiceName 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"; - return service.getSync(this.client.getEndpoint(), resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, 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 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) - public LinkedServiceInner get(String resourceGroupName, String workspaceName, String linkedServiceName) { - return getWithResponse(resourceGroupName, workspaceName, linkedServiceName, Context.NONE).getValue(); + public void delete(String resourceGroupName, String workspaceName, String linkedServiceName, Context context) { + beginDelete(resourceGroupName, workspaceName, linkedServiceName, context).getFinalResult(); } /** @@ -783,27 +613,12 @@ public LinkedServiceInner get(String resourceGroupName, String workspaceName, St @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceSinglePageAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -819,7 +634,8 @@ private Mono> listByWorkspaceSinglePageAsync(S */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName)); + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** @@ -835,30 +651,12 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -875,30 +673,12 @@ private PagedResponse listByWorkspaceSinglePage(String resou @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(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 (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.")); - } - 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -913,7 +693,8 @@ private PagedResponse listByWorkspaceSinglePage(String resou */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName)); + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePage(nextLink)); } /** @@ -930,8 +711,64 @@ public PagedIterable listByWorkspace(String resourceGroupNam @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context)); + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the linked services instances in a workspace along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } - private static final ClientLogger LOGGER = new ClientLogger(LinkedServicesClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the linked services instances in a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the linked services instances in a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java index 3d3a01627dda..76953c2b18fe 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java @@ -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; @@ -27,36 +27,12 @@ public LinkedServicesImpl(LinkedServicesClient innerClient, this.serviceManager = serviceManager; } - public LinkedService delete(String resourceGroupName, String workspaceName, String linkedServiceName) { - LinkedServiceInner inner = this.serviceClient().delete(resourceGroupName, workspaceName, linkedServiceName); - if (inner != null) { - return new LinkedServiceImpl(inner, this.manager()); - } else { - return null; - } - } - - public LinkedService delete(String resourceGroupName, String workspaceName, String linkedServiceName, - Context context) { - LinkedServiceInner inner - = this.serviceClient().delete(resourceGroupName, workspaceName, linkedServiceName, context); - if (inner != null) { - return new LinkedServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, linkedServiceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new LinkedServiceImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LinkedServiceImpl(inner.getValue(), this.manager())); } public LinkedService get(String resourceGroupName, String workspaceName, String linkedServiceName) { @@ -68,6 +44,14 @@ public LinkedService get(String resourceGroupName, String workspaceName, String } } + public void delete(String resourceGroupName, String workspaceName, String linkedServiceName) { + this.serviceClient().delete(resourceGroupName, workspaceName, linkedServiceName); + } + + public void delete(String resourceGroupName, String workspaceName, String linkedServiceName, Context context) { + this.serviceClient().delete(resourceGroupName, workspaceName, linkedServiceName, context); + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); @@ -82,10 +66,10 @@ public PagedIterable listByWorkspace(String resourceGroupName, St } public LinkedService getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -101,10 +85,10 @@ public LinkedService getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -119,11 +103,11 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, workspaceName, linkedServiceName, context); } - public LinkedService deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -135,14 +119,14 @@ public LinkedService deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServices'.", id))); } - return this.delete(resourceGroupName, workspaceName, linkedServiceName, Context.NONE); + this.delete(resourceGroupName, workspaceName, linkedServiceName, Context.NONE); } - public LinkedService deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -154,7 +138,7 @@ public LinkedService deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'linkedServices'.", id))); } - return this.delete(resourceGroupName, workspaceName, linkedServiceName, context); + this.delete(resourceGroupName, workspaceName, linkedServiceName, context); } private LinkedServicesClient serviceClient() { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java index 4fc3b5dbc3fe..4420838e1cf2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java @@ -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; @@ -28,11 +28,10 @@ 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.LinkedStorageAccountsClient; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner; +import com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult; import com.azure.resourcemanager.loganalytics.models.DataSourceType; -import com.azure.resourcemanager.loganalytics.models.LinkedStorageAccountsListResult; import reactor.core.publisher.Mono; /** @@ -64,338 +63,274 @@ public final class LinkedStorageAccountsClientImpl implements LinkedStorageAccou * The interface defining all the services for OperationalInsightsManagementClientLinkedStorageAccounts to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientLinkedStorageAccounts") public interface LinkedStorageAccountsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedStorageAccountsResourceInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("dataSourceType") DataSourceType dataSourceType, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, - @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LinkedStorageAccountsResourceInner parameters, - @HeaderParam("Accept") String accept, Context context); + @PathParam("dataSourceType") DataSourceType dataSourceType, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dataSourceType") DataSourceType dataSourceType, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LinkedStorageAccountsResourceInner parameters, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dataSourceType") DataSourceType dataSourceType, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LinkedStorageAccountsResourceInner parameters, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); + @PathParam("dataSourceType") DataSourceType dataSourceType, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); + @PathParam("dataSourceType") DataSourceType dataSourceType, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> listByWorkspace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @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}/linkedStorageAccounts/{dataSourceType}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, + Response listByWorkspaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("dataSourceType") DataSourceType dataSourceType, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @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}/linkedStorageAccounts") + @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); + Mono> listByWorkspaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts") + @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); + Response listByWorkspaceNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, 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 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} on successful completion - * of {@link Mono}. + * @return all linked storage account of a specific data source type associated with the specified workspace along + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceType 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, DataSourceType dataSourceType) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceType, this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceType, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 on successful completion of {@link Mono}. + * @return all linked storage account of a specific data source type associated with the specified workspace on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, parameters) + private Mono getAsync(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType) { + return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceType) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response createOrUpdateWithResponse(String resourceGroupName, - String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters, - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceType 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + public Response getWithResponse(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType, Context context) { final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceType, - this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, dataSourceType, accept, 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 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) - public LinkedStorageAccountsResourceInner createOrUpdate(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceType, parameters, Context.NONE) - .getValue(); + public LinkedStorageAccountsResourceInner get(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType) { + return getWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE).getValue(); } /** - * 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 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} on successful completion of {@link Mono}. + * @return linked storage accounts top level resource container along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceType 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> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceType, this.client.getApiVersion(), this.client.getSubscriptionId(), context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceType, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 {@link Mono} that completes when a successful response is received. + * @return linked storage accounts top level resource container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceType) - .flatMap(ignored -> Mono.empty()); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, dataSourceType, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response deleteWithResponse(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceType 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.")); - } - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), this.client.getSubscriptionId(), context); + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters, + Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceType, contentType, accept, + parameters, 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 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) - public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { - deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE); + public LinkedStorageAccountsResourceInner createOrUpdate(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType, LinkedStorageAccountsResourceInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, dataSourceType, parameters, Context.NONE) + .getValue(); } /** - * 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. @@ -403,39 +338,19 @@ public void delete(String resourceGroupName, String workspaceName, DataSourceTyp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all linked storage account of a specific data source type associated with the specified workspace along - * with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String workspaceName, DataSourceType dataSourceType) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - return Mono.error(new IllegalArgumentException("Parameter dataSourceType 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.")); - } - final String accept = "application/json"; + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType) { return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, workspaceName, - dataSourceType, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceType, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -443,18 +358,16 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all linked storage account of a specific data source type associated with the specified workspace on - * successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType) { - return getWithResponseAsync(resourceGroupName, workspaceName, dataSourceType) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, dataSourceType) + .flatMap(ignored -> Mono.empty()); } /** - * 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. @@ -463,41 +376,17 @@ private Mono getAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all linked storage account of a specific data source type associated with the specified workspace along - * with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, + public Response deleteWithResponse(String resourceGroupName, String workspaceName, DataSourceType dataSourceType, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (dataSourceType == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter dataSourceType 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"; - return service.getSync(this.client.getEndpoint(), resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, dataSourceType, 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. @@ -505,12 +394,10 @@ public Response getWithResponse(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all linked storage account of a specific data source type associated with the specified workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LinkedStorageAccountsResourceInner get(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType) { - return getWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE).getValue(); + public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { + deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, Context.NONE); } /** @@ -528,27 +415,12 @@ public LinkedStorageAccountsResourceInner get(String resourceGroupName, String w @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceSinglePageAsync(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, this.client.getApiVersion(), workspaceName, accept, context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -567,7 +439,8 @@ public LinkedStorageAccountsResourceInner get(String resourceGroupName, String w @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName)); + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** @@ -585,30 +458,12 @@ private PagedFlux listByWorkspaceAsync(Strin @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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"; Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), workspaceName, accept, Context.NONE); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -627,30 +482,12 @@ private PagedResponse listByWorkspaceSingleP @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(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"; Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), workspaceName, accept, context); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -668,7 +505,8 @@ private PagedResponse listByWorkspaceSingleP @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName)); + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePage(nextLink)); } /** @@ -687,8 +525,68 @@ public PagedIterable listByWorkspace(String @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context)); + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all linked storage accounts associated with the specified workspace, storage accounts will be sorted by + * their data source type along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByWorkspaceNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all linked storage accounts associated with the specified workspace, storage accounts will be sorted by + * their data source type along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } - private static final ClientLogger LOGGER = new ClientLogger(LinkedStorageAccountsClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all linked storage accounts associated with the specified workspace, storage accounts will be sorted by + * their data source type along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java index 8d310c09f0bf..28fd622382da 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java @@ -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; @@ -28,25 +28,12 @@ public LinkedStorageAccountsImpl(LinkedStorageAccountsClient innerClient, this.serviceManager = serviceManager; } - public Response deleteWithResponse(String resourceGroupName, String workspaceName, - DataSourceType dataSourceType, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, context); - } - - public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { - this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceType); - } - public Response getWithResponse(String resourceGroupName, String workspaceName, DataSourceType dataSourceType, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, dataSourceType, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new LinkedStorageAccountsResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LinkedStorageAccountsResourceImpl(inner.getValue(), this.manager())); } public LinkedStorageAccountsResource get(String resourceGroupName, String workspaceName, @@ -60,6 +47,15 @@ public LinkedStorageAccountsResource get(String resourceGroupName, String worksp } } + public Response deleteWithResponse(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, dataSourceType, context); + } + + public void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType) { + this.serviceClient().delete(resourceGroupName, workspaceName, dataSourceType); + } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner @@ -77,10 +73,10 @@ public PagedIterable listByWorkspace(String resou } public LinkedStorageAccountsResource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -97,10 +93,10 @@ public LinkedStorageAccountsResource getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -117,10 +113,10 @@ public Response getByIdWithResponse(String id, Co } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -137,10 +133,10 @@ public void deleteById(String id) { } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java index 01b8c5626a95..73cf1e225e43 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner; import com.azure.resourcemanager.loganalytics.models.DataSourceType; @@ -29,6 +30,10 @@ public String type() { return this.innerModel().type(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public DataSourceType dataSourceType() { return this.innerModel().dataSourceType(); } @@ -115,7 +120,7 @@ public LinkedStorageAccountsResource apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.dataSourceType = DataSourceType .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "linkedStorageAccounts")); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java index f2dfcbe42f25..48915cf4c234 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.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/LogAnalyticsQueryPackQueryImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java index 772f71cc366e..9b289a3e40fe 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.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/ManagementGroupImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java index 6d659e146e46..298ae1cfc902 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.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/ManagementGroupsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java index e7b959814944..012747bbeb0c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java @@ -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; @@ -25,10 +25,9 @@ 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.ManagementGroupsClient; import com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListManagementGroupsResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult; import reactor.core.publisher.Mono; /** @@ -60,25 +59,41 @@ public final class ManagementGroupsClientImpl implements ManagementGroupsClient * The interface defining all the services for OperationalInsightsManagementClientManagementGroups to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientManagementGroups") public interface ManagementGroupsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/managementGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @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("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -96,27 +111,12 @@ Response listSync(@HostParam("$host") Strin @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -132,7 +132,8 @@ private Mono> listSinglePageAsync(String res */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -147,30 +148,12 @@ private PagedFlux listAsync(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(String resourceGroupName, String workspaceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 res - = service.listSync(this.client.getEndpoint(), resourceGroupName, workspaceName, this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, Context.NONE); + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -187,30 +170,12 @@ private PagedResponse listSinglePage(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(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 (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.")); - } - 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 res - = service.listSync(this.client.getEndpoint(), resourceGroupName, workspaceName, this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context); + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -225,7 +190,8 @@ private PagedResponse listSinglePage(String resourceGroupN */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName)); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName), + nextLink -> listNextSinglePage(nextLink)); } /** @@ -241,8 +207,63 @@ public PagedIterable list(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName, context)); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of management groups connected to a workspace along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of management groups connected to a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } - private static final ClientLogger LOGGER = new ClientLogger(ManagementGroupsClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of management groups connected to a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java index 245b06fa89c2..35d26cd3018e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java @@ -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/NetworkSecurityPerimeterConfigurationImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java index ae651a8b7628..acc9011d63af 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.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/OperationImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java index 54edbf79398f..c91ddbcadad1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.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/OperationStatusImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java index 804185f366ec..09f7e99e8260 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.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/OperationStatusesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java index 9f3f7c2ae27c..83ae6c5ec8ca 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java @@ -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.OperationStatusesClient; import com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner; import reactor.core.publisher.Mono; @@ -55,32 +54,32 @@ public final class OperationStatusesClientImpl implements OperationStatusesClien * The interface defining all the services for OperationalInsightsManagementClientOperationStatuses to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientOperationStatuses") public interface OperationStatusesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("location") String location, + @PathParam("asyncOperationId") String asyncOperationId, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("location") String location, + @PathParam("asyncOperationId") String asyncOperationId, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); } /** * 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 ManagementException thrown if the request is rejected by server. @@ -90,32 +89,17 @@ Response getSync(@HostParam("$host") String endpoint, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String location, String asyncOperationId) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (asyncOperationId == null) { - return Mono - .error(new IllegalArgumentException("Parameter asyncOperationId 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.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), location, asyncOperationId, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), location, + asyncOperationId, this.client.getSubscriptionId(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * 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 ManagementException thrown if the request is rejected by server. @@ -130,7 +114,7 @@ private Mono getAsync(String location, String asyncOperati /** * 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. @@ -140,33 +124,15 @@ private Mono getAsync(String location, String asyncOperati */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String location, String asyncOperationId, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (location == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (asyncOperationId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter asyncOperationId 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"; - return service.getSync(this.client.getEndpoint(), location, asyncOperationId, this.client.getApiVersion(), + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), location, asyncOperationId, this.client.getSubscriptionId(), accept, context); } /** * 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 ManagementException thrown if the request is rejected by server. @@ -177,6 +143,4 @@ public Response getWithResponse(String location, String as public OperationStatusInner get(String location, String asyncOperationId) { return getWithResponse(location, asyncOperationId, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(OperationStatusesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java index 9570cca52e5a..1372574f7fd4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java @@ -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; @@ -29,12 +29,8 @@ public OperationStatusesImpl(OperationStatusesClient innerClient, public Response getWithResponse(String location, String asyncOperationId, Context context) { Response inner = this.serviceClient().getWithResponse(location, asyncOperationId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new OperationStatusImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new OperationStatusImpl(inner.getValue(), this.manager())); } public OperationStatus get(String location, String asyncOperationId) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java index e15dba4af34c..7bb3bcd07463 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java @@ -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; @@ -20,34 +20,34 @@ @ServiceClientBuilder(serviceClients = { OperationalInsightsManagementClientImpl.class }) public final class OperationalInsightsManagementClientBuilder { /* - * The ID of the target subscription. + * Service host */ - private String subscriptionId; + private String endpoint; /** - * Sets The ID of the target subscription. + * Sets Service host. * - * @param subscriptionId the subscriptionId value. + * @param endpoint the endpoint value. * @return the OperationalInsightsManagementClientBuilder. */ - public OperationalInsightsManagementClientBuilder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public OperationalInsightsManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } /* - * server parameter + * The ID of the target subscription. The value must be an UUID. */ - private String endpoint; + private String subscriptionId; /** - * Sets server parameter. + * Sets The ID of the target subscription. The value must be an UUID. * - * @param endpoint the endpoint value. + * @param subscriptionId the subscriptionId value. * @return the OperationalInsightsManagementClientBuilder. */ - public OperationalInsightsManagementClientBuilder endpoint(String endpoint) { - this.endpoint = endpoint; + public OperationalInsightsManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @@ -132,7 +132,7 @@ public OperationalInsightsManagementClientImpl buildClient() { ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); OperationalInsightsManagementClientImpl client = new OperationalInsightsManagementClientImpl(localPipeline, - localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java index 558e2b218eee..16158e285fd2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java @@ -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; @@ -65,26 +65,12 @@ @ServiceClient(builder = OperationalInsightsManagementClientBuilder.class) public final class OperationalInsightsManagementClientImpl implements OperationalInsightsManagementClient { /** - * The ID of the target subscription. - */ - private final String subscriptionId; - - /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * server parameter. + * Service host. */ private final String endpoint; /** - * Gets server parameter. + * Gets Service host. * * @return the endpoint value. */ @@ -93,12 +79,12 @@ public String getEndpoint() { } /** - * Api Version. + * Version parameter. */ private final String apiVersion; /** - * Gets Api Version. + * Gets Version parameter. * * @return the apiVersion value. */ @@ -106,6 +92,20 @@ public String getApiVersion() { return this.apiVersion; } + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * The HTTP pipeline to send requests through. */ @@ -149,17 +149,17 @@ public Duration getDefaultPollInterval() { } /** - * The AvailableServiceTiersClient object to access its operations. + * The OperationsClient object to access its operations. */ - private final AvailableServiceTiersClient availableServiceTiers; + private final OperationsClient operations; /** - * Gets the AvailableServiceTiersClient object to access its operations. + * Gets the OperationsClient object to access its operations. * - * @return the AvailableServiceTiersClient object. + * @return the OperationsClient object. */ - public AvailableServiceTiersClient getAvailableServiceTiers() { - return this.availableServiceTiers; + public OperationsClient getOperations() { + return this.operations; } /** @@ -191,45 +191,31 @@ public DataExportsClient getDataExports() { } /** - * The DataSourcesClient object to access its operations. - */ - private final DataSourcesClient dataSources; - - /** - * Gets the DataSourcesClient object to access its operations. - * - * @return the DataSourcesClient object. - */ - public DataSourcesClient getDataSources() { - return this.dataSources; - } - - /** - * The GatewaysClient object to access its operations. + * The WorkspacesClient object to access its operations. */ - private final GatewaysClient gateways; + private final WorkspacesClient workspaces; /** - * Gets the GatewaysClient object to access its operations. + * Gets the WorkspacesClient object to access its operations. * - * @return the GatewaysClient object. + * @return the WorkspacesClient object. */ - public GatewaysClient getGateways() { - return this.gateways; + public WorkspacesClient getWorkspaces() { + return this.workspaces; } /** - * The IntelligencePacksClient object to access its operations. + * The DataSourcesClient object to access its operations. */ - private final IntelligencePacksClient intelligencePacks; + private final DataSourcesClient dataSources; /** - * Gets the IntelligencePacksClient object to access its operations. + * Gets the DataSourcesClient object to access its operations. * - * @return the IntelligencePacksClient object. + * @return the DataSourcesClient object. */ - public IntelligencePacksClient getIntelligencePacks() { - return this.intelligencePacks; + public DataSourcesClient getDataSources() { + return this.dataSources; } /** @@ -247,101 +233,87 @@ public LinkedServicesClient getLinkedServices() { } /** - * The LinkedStorageAccountsClient object to access its operations. - */ - private final LinkedStorageAccountsClient linkedStorageAccounts; - - /** - * Gets the LinkedStorageAccountsClient object to access its operations. - * - * @return the LinkedStorageAccountsClient object. - */ - public LinkedStorageAccountsClient getLinkedStorageAccounts() { - return this.linkedStorageAccounts; - } - - /** - * The ManagementGroupsClient object to access its operations. + * The SavedSearchesClient object to access its operations. */ - private final ManagementGroupsClient managementGroups; + private final SavedSearchesClient savedSearches; /** - * Gets the ManagementGroupsClient object to access its operations. + * Gets the SavedSearchesClient object to access its operations. * - * @return the ManagementGroupsClient object. + * @return the SavedSearchesClient object. */ - public ManagementGroupsClient getManagementGroups() { - return this.managementGroups; + public SavedSearchesClient getSavedSearches() { + return this.savedSearches; } /** - * The OperationsClient object to access its operations. + * The TablesClient object to access its operations. */ - private final OperationsClient operations; + private final TablesClient tables; /** - * Gets the OperationsClient object to access its operations. + * Gets the TablesClient object to access its operations. * - * @return the OperationsClient object. + * @return the TablesClient object. */ - public OperationsClient getOperations() { - return this.operations; + public TablesClient getTables() { + return this.tables; } /** - * The OperationStatusesClient object to access its operations. + * The AvailableServiceTiersClient object to access its operations. */ - private final OperationStatusesClient operationStatuses; + private final AvailableServiceTiersClient availableServiceTiers; /** - * Gets the OperationStatusesClient object to access its operations. + * Gets the AvailableServiceTiersClient object to access its operations. * - * @return the OperationStatusesClient object. + * @return the AvailableServiceTiersClient object. */ - public OperationStatusesClient getOperationStatuses() { - return this.operationStatuses; + public AvailableServiceTiersClient getAvailableServiceTiers() { + return this.availableServiceTiers; } /** - * The QueriesClient object to access its operations. + * The GatewaysClient object to access its operations. */ - private final QueriesClient queries; + private final GatewaysClient gateways; /** - * Gets the QueriesClient object to access its operations. + * Gets the GatewaysClient object to access its operations. * - * @return the QueriesClient object. + * @return the GatewaysClient object. */ - public QueriesClient getQueries() { - return this.queries; + public GatewaysClient getGateways() { + return this.gateways; } /** - * The QueryPacksClient object to access its operations. + * The IntelligencePacksClient object to access its operations. */ - private final QueryPacksClient queryPacks; + private final IntelligencePacksClient intelligencePacks; /** - * Gets the QueryPacksClient object to access its operations. + * Gets the IntelligencePacksClient object to access its operations. * - * @return the QueryPacksClient object. + * @return the IntelligencePacksClient object. */ - public QueryPacksClient getQueryPacks() { - return this.queryPacks; + public IntelligencePacksClient getIntelligencePacks() { + return this.intelligencePacks; } /** - * The SavedSearchesClient object to access its operations. + * The ManagementGroupsClient object to access its operations. */ - private final SavedSearchesClient savedSearches; + private final ManagementGroupsClient managementGroups; /** - * Gets the SavedSearchesClient object to access its operations. + * Gets the ManagementGroupsClient object to access its operations. * - * @return the SavedSearchesClient object. + * @return the ManagementGroupsClient object. */ - public SavedSearchesClient getSavedSearches() { - return this.savedSearches; + public ManagementGroupsClient getManagementGroups() { + return this.managementGroups; } /** @@ -373,87 +345,87 @@ public SharedKeysOperationsClient getSharedKeysOperations() { } /** - * The StorageInsightConfigsClient object to access its operations. + * The UsagesClient object to access its operations. */ - private final StorageInsightConfigsClient storageInsightConfigs; + private final UsagesClient usages; /** - * Gets the StorageInsightConfigsClient object to access its operations. + * Gets the UsagesClient object to access its operations. * - * @return the StorageInsightConfigsClient object. + * @return the UsagesClient object. */ - public StorageInsightConfigsClient getStorageInsightConfigs() { - return this.storageInsightConfigs; + public UsagesClient getUsages() { + return this.usages; } /** - * The TablesClient object to access its operations. + * The WorkspacePurgesClient object to access its operations. */ - private final TablesClient tables; + private final WorkspacePurgesClient workspacePurges; /** - * Gets the TablesClient object to access its operations. + * Gets the WorkspacePurgesClient object to access its operations. * - * @return the TablesClient object. + * @return the WorkspacePurgesClient object. */ - public TablesClient getTables() { - return this.tables; + public WorkspacePurgesClient getWorkspacePurges() { + return this.workspacePurges; } /** - * The UsagesClient object to access its operations. + * The LinkedStorageAccountsClient object to access its operations. */ - private final UsagesClient usages; + private final LinkedStorageAccountsClient linkedStorageAccounts; /** - * Gets the UsagesClient object to access its operations. + * Gets the LinkedStorageAccountsClient object to access its operations. * - * @return the UsagesClient object. + * @return the LinkedStorageAccountsClient object. */ - public UsagesClient getUsages() { - return this.usages; + public LinkedStorageAccountsClient getLinkedStorageAccounts() { + return this.linkedStorageAccounts; } /** - * The WorkspacePurgesClient object to access its operations. + * The QueriesClient object to access its operations. */ - private final WorkspacePurgesClient workspacePurges; + private final QueriesClient queries; /** - * Gets the WorkspacePurgesClient object to access its operations. + * Gets the QueriesClient object to access its operations. * - * @return the WorkspacePurgesClient object. + * @return the QueriesClient object. */ - public WorkspacePurgesClient getWorkspacePurges() { - return this.workspacePurges; + public QueriesClient getQueries() { + return this.queries; } /** - * The WorkspacesClient object to access its operations. + * The QueryPacksClient object to access its operations. */ - private final WorkspacesClient workspaces; + private final QueryPacksClient queryPacks; /** - * Gets the WorkspacesClient object to access its operations. + * Gets the QueryPacksClient object to access its operations. * - * @return the WorkspacesClient object. + * @return the QueryPacksClient object. */ - public WorkspacesClient getWorkspaces() { - return this.workspaces; + public QueryPacksClient getQueryPacks() { + return this.queryPacks; } /** - * The DeletedWorkspacesClient object to access its operations. + * The StorageInsightConfigsClient object to access its operations. */ - private final DeletedWorkspacesClient deletedWorkspaces; + private final StorageInsightConfigsClient storageInsightConfigs; /** - * Gets the DeletedWorkspacesClient object to access its operations. + * Gets the StorageInsightConfigsClient object to access its operations. * - * @return the DeletedWorkspacesClient object. + * @return the StorageInsightConfigsClient object. */ - public DeletedWorkspacesClient getDeletedWorkspaces() { - return this.deletedWorkspaces; + public StorageInsightConfigsClient getStorageInsightConfigs() { + return this.storageInsightConfigs; } /** @@ -470,6 +442,34 @@ public SummaryLogsOperationsClient getSummaryLogsOperations() { return this.summaryLogsOperations; } + /** + * The OperationStatusesClient object to access its operations. + */ + private final OperationStatusesClient operationStatuses; + + /** + * Gets the OperationStatusesClient object to access its operations. + * + * @return the OperationStatusesClient object. + */ + public OperationStatusesClient getOperationStatuses() { + return this.operationStatuses; + } + + /** + * The DeletedWorkspacesClient object to access its operations. + */ + private final DeletedWorkspacesClient deletedWorkspaces; + + /** + * Gets the DeletedWorkspacesClient object to access its operations. + * + * @return the DeletedWorkspacesClient object. + */ + public DeletedWorkspacesClient getDeletedWorkspaces() { + return this.deletedWorkspaces; + } + /** * Initializes an instance of OperationalInsightsManagementClient client. * @@ -477,40 +477,40 @@ public SummaryLogsOperationsClient getSummaryLogsOperations() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The ID of the target subscription. - * @param endpoint server parameter. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ OperationalInsightsManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, - Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; - this.subscriptionId = subscriptionId; this.endpoint = endpoint; + this.subscriptionId = subscriptionId; this.apiVersion = "2025-07-01"; - this.availableServiceTiers = new AvailableServiceTiersClientImpl(this); + this.operations = new OperationsClientImpl(this); this.clusters = new ClustersClientImpl(this); this.dataExports = new DataExportsClientImpl(this); + this.workspaces = new WorkspacesClientImpl(this); this.dataSources = new DataSourcesClientImpl(this); + this.linkedServices = new LinkedServicesClientImpl(this); + this.savedSearches = new SavedSearchesClientImpl(this); + this.tables = new TablesClientImpl(this); + this.availableServiceTiers = new AvailableServiceTiersClientImpl(this); this.gateways = new GatewaysClientImpl(this); this.intelligencePacks = new IntelligencePacksClientImpl(this); - this.linkedServices = new LinkedServicesClientImpl(this); - this.linkedStorageAccounts = new LinkedStorageAccountsClientImpl(this); this.managementGroups = new ManagementGroupsClientImpl(this); - this.operations = new OperationsClientImpl(this); - this.operationStatuses = new OperationStatusesClientImpl(this); - this.queries = new QueriesClientImpl(this); - this.queryPacks = new QueryPacksClientImpl(this); - this.savedSearches = new SavedSearchesClientImpl(this); this.schemas = new SchemasClientImpl(this); this.sharedKeysOperations = new SharedKeysOperationsClientImpl(this); - this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this); - this.tables = new TablesClientImpl(this); this.usages = new UsagesClientImpl(this); this.workspacePurges = new WorkspacePurgesClientImpl(this); - this.workspaces = new WorkspacesClientImpl(this); - this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this); + this.linkedStorageAccounts = new LinkedStorageAccountsClientImpl(this); + this.queries = new QueriesClientImpl(this); + this.queryPacks = new QueryPacksClientImpl(this); + this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this); this.summaryLogsOperations = new SummaryLogsOperationsClientImpl(this); + this.operationStatuses = new OperationStatusesClientImpl(this); + this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this); } /** diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java index 555a84184171..541012c68699 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java @@ -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; @@ -25,10 +25,9 @@ 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.OperationsClient; import com.azure.resourcemanager.loganalytics.fluent.models.OperationInner; -import com.azure.resourcemanager.loganalytics.models.OperationListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult; import reactor.core.publisher.Mono; /** @@ -60,21 +59,21 @@ public final class OperationsClientImpl implements OperationsClient { * The interface defining all the services for OperationalInsightsManagementClientOperations to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientOperations") public interface OperationsService { @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.OperationalInsights/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.OperationalInsights/operations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -82,14 +81,14 @@ Response listSync(@HostParam("$host") String endpoint, @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); } /** @@ -97,15 +96,11 @@ Response listNextSync(@PathParam(value = "nextLink", encode * * @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 result of the request to list solution operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext( @@ -120,7 +115,7 @@ private Mono> listSinglePageAsync() { * * @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 result of the request to list solution operations as paginated response with {@link PagedFlux}. + * @return paged collection of Operation items as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -132,15 +127,10 @@ private PagedFlux listAsync() { * * @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 result of the request to list solution operations along with {@link PagedResponse}. + * @return paged collection of Operation items along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage() { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE); @@ -155,15 +145,10 @@ private PagedResponse listSinglePage() { * @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 result of the request to list solution operations along with {@link PagedResponse}. + * @return paged collection of Operation items along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); @@ -176,7 +161,7 @@ private PagedResponse listSinglePage(Context context) { * * @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 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) public PagedIterable list() { @@ -190,7 +175,7 @@ public PagedIterable list() { * @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 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) public PagedIterable list(Context context) { @@ -204,18 +189,11 @@ public PagedIterable list(Context context) { * @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 result of the request to list solution operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return paged collection of Operation items along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -230,19 +208,10 @@ private Mono> listNextSinglePageAsync(String nextL * @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 result of the request to list solution operations along with {@link PagedResponse}. + * @return paged collection of Operation items along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -258,24 +227,13 @@ private PagedResponse listNextSinglePage(String nextLink) { * @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 result of the request to list solution operations along with {@link PagedResponse}. + * @return paged collection of Operation items along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(OperationsClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java index bf0acfc8e0a5..d8275eedc733 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java @@ -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/QueriesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java index bb2500b9b4d2..6d290223d639 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.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; @@ -30,10 +30,9 @@ 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.QueriesClient; import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner; -import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult; import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties; import reactor.core.publisher.Mono; @@ -65,145 +64,135 @@ public final class QueriesClientImpl implements QueriesClient { * The interface defining all the services for OperationalInsightsManagementClientQueries to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientQueries") public interface QueriesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Long top, - @QueryParam("includeBody") Boolean includeBody, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Long top, - @QueryParam("includeBody") Boolean includeBody, @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/search") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> search(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> put(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Long top, - @QueryParam("includeBody") Boolean includeBody, @QueryParam("$skipToken") String skipToken, - @BodyParam("application/json") LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/search") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response searchSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response putSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @QueryParam("api-version") String apiVersion, @QueryParam("$top") Long top, - @QueryParam("includeBody") Boolean includeBody, @QueryParam("$skipToken") String skipToken, - @BodyParam("application/json") LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> put(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response putSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, - @HeaderParam("Accept") String accept, Context context); + @PathParam("id") String id, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Long top, @QueryParam("includeBody") Boolean includeBody, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") LogAnalyticsQueryPackQueryInner queryPayload, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Long top, @QueryParam("includeBody") Boolean includeBody, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") - @ExpectedResponses({ 200, 204 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/search") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> search(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Long top, @QueryParam("includeBody") Boolean includeBody, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, + Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}") - @ExpectedResponses({ 200, 204 }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/search") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response searchSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, - @PathParam("id") String id, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("$top") Long top, @QueryParam("includeBody") Boolean includeBody, + @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, + Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @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" }) @@ -211,7 +200,7 @@ Mono> listNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNextSync( - @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" }) @@ -219,7 +208,7 @@ Response listNextSync( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> searchNext( - @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" }) @@ -227,513 +216,319 @@ Mono> searchNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response searchNextSync( - @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); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Queries defined within a Log Analytics QueryPack along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String queryPackName, Long top, Boolean includeBody, String skipToken) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } + private Mono> getWithResponseAsync(String resourceGroupName, + String queryPackName, String id) { final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, this.client.getApiVersion(), top, includeBody, skipToken, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link PagedFlux}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String queryPackName, - Long top, Boolean includeBody, String skipToken) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, queryPackName, top, includeBody, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String queryPackName, String id) { + return getWithResponseAsync(resourceGroupName, queryPackName, id) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String queryPackName) { - final Long top = null; - final Boolean includeBody = null; - final String skipToken = null; - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, queryPackName, top, includeBody, skipToken), - nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String queryPackName, + String id, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, queryPackName, id, accept, context); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Queries defined within a Log Analytics QueryPack along with {@link PagedResponse}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, - String queryPackName, Long top, Boolean includeBody, String skipToken) { - 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, this.client.getApiVersion(), top, includeBody, skipToken, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + public LogAnalyticsQueryPackQueryInner get(String resourceGroupName, String queryPackName, String id) { + return getWithResponse(resourceGroupName, queryPackName, id, Context.NONE).getValue(); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse}. + * @return a Log Analytics QueryPack-Query definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, - String queryPackName, Long top, Boolean includeBody, String skipToken, 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } + private Mono> putWithResponseAsync(String resourceGroupName, + String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) { + final String contentType = "application/json"; final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, this.client.getApiVersion(), top, includeBody, skipToken, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return FluxUtil + .withContext(context -> service.put(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, contentType, accept, + queryPayload, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return a Log Analytics QueryPack-Query definition on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String queryPackName) { - final Long top = null; - final Boolean includeBody = null; - final String skipToken = null; - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, queryPackName, top, includeBody, skipToken), - nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono putAsync(String resourceGroupName, String queryPackName, String id, + LogAnalyticsQueryPackQueryInner queryPayload) { + return putWithResponseAsync(resourceGroupName, queryPackName, id, queryPayload) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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}. + * @return a Log Analytics QueryPack-Query definition along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String queryPackName, Long top, - Boolean includeBody, String skipToken, Context context) { - return new PagedIterable<>( - () -> listSinglePage(resourceGroupName, queryPackName, top, includeBody, skipToken, context), - nextLink -> listNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response putWithResponse(String resourceGroupName, String queryPackName, + String id, LogAnalyticsQueryPackQueryInner queryPayload, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.putSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, queryPackName, id, contentType, accept, queryPayload, context); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a Log Analytics QueryPack-Query definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> searchSinglePageAsync(String resourceGroupName, - String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, - Boolean includeBody, String skipToken) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (querySearchProperties == null) { - return Mono - .error(new IllegalArgumentException("Parameter querySearchProperties is required and cannot be null.")); - } else { - querySearchProperties.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.search(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, queryPackName, this.client.getApiVersion(), top, includeBody, skipToken, - querySearchProperties, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public LogAnalyticsQueryPackQueryInner put(String resourceGroupName, String queryPackName, String id, + LogAnalyticsQueryPackQueryInner queryPayload) { + return putWithResponse(resourceGroupName, queryPackName, id, queryPayload, Context.NONE).getValue(); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. + * @return a Log Analytics QueryPack-Query definition along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux searchAsync(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, - String skipToken) { - return new PagedFlux<>(() -> searchSinglePageAsync(resourceGroupName, queryPackName, querySearchProperties, top, - includeBody, skipToken), nextLink -> searchNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, contentType, accept, + queryPayload, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. + * @return a Log Analytics QueryPack-Query definition on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux searchAsync(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) { - final Long top = null; - final Boolean includeBody = null; - final String skipToken = null; - return new PagedFlux<>(() -> searchSinglePageAsync(resourceGroupName, queryPackName, querySearchProperties, top, - includeBody, skipToken), nextLink -> searchNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String queryPackName, String id, + LogAnalyticsQueryPackQueryInner queryPayload) { + return updateWithResponseAsync(resourceGroupName, queryPackName, id, queryPayload) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse}. + * @return a Log Analytics QueryPack-Query definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse searchSinglePage(String resourceGroupName, - String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, - Boolean includeBody, String skipToken) { - 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (querySearchProperties == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter querySearchProperties is required and cannot be null.")); - } else { - querySearchProperties.validate(); - } + public Response updateWithResponse(String resourceGroupName, String queryPackName, + String id, LogAnalyticsQueryPackQueryInner queryPayload, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - Response res = service.searchSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, queryPackName, this.client.getApiVersion(), top, - includeBody, skipToken, querySearchProperties, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, contentType, accept, queryPayload, + context); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Adds or Updates a specific Query within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics + * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse}. + * @return a Log Analytics QueryPack-Query definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse searchSinglePage(String resourceGroupName, - String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, - Boolean includeBody, String skipToken, 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (querySearchProperties == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter querySearchProperties is required and cannot be null.")); - } else { - querySearchProperties.validate(); - } - final String accept = "application/json"; - Response res = service.searchSync(this.client.getEndpoint(), - this.client.getSubscriptionId(), resourceGroupName, queryPackName, this.client.getApiVersion(), top, - includeBody, skipToken, querySearchProperties, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + public LogAnalyticsQueryPackQueryInner update(String resourceGroupName, String queryPackName, String id, + LogAnalyticsQueryPackQueryInner queryPayload) { + return updateWithResponse(resourceGroupName, queryPackName, id, queryPayload, Context.NONE).getValue(); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack. + * @param id The id of a specific query defined in the Log Analytics QueryPack. * @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 describes the list of Log Analytics QueryPack-Query resources as paginated response with - * {@link PagedIterable}. + * @return the {@link Response} on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable search(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) { - final Long top = null; - final Boolean includeBody = null; - final String skipToken = null; - return new PagedIterable<>(() -> searchSinglePage(resourceGroupName, queryPackName, querySearchProperties, top, - includeBody, skipToken), nextLink -> searchNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String queryPackName, String id) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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. + * @param id The id of a specific query defined in the Log Analytics QueryPack. * @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 describes the list of Log Analytics QueryPack-Query resources as paginated response with - * {@link PagedIterable}. + * @return A {@link Mono} that completes when a successful response is received. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable search(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, - String skipToken, Context context) { - return new PagedIterable<>(() -> searchSinglePage(resourceGroupName, queryPackName, querySearchProperties, top, - includeBody, skipToken, context), nextLink -> searchNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String queryPackName, String id) { + return deleteWithResponseAsync(resourceGroupName, queryPackName, id).flatMap(ignored -> Mono.empty()); } /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response} on - * successful completion of {@link Mono}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String queryPackName, String id) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, queryPackName, id, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, id, context); } /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. @@ -741,450 +536,349 @@ private Mono> getWithResponseAsync(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Log Analytics Query defined within a Log Analytics QueryPack on successful completion of - * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String queryPackName, String id) { - return getWithResponseAsync(resourceGroupName, queryPackName, id) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public void delete(String resourceGroupName, String queryPackName, String id) { + deleteWithResponse(resourceGroupName, queryPackName, id, Context.NONE); } /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param context The context to associate with this operation. + * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}. + * @return a list of Queries defined within a Log Analytics QueryPack along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String queryPackName, - String id, 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } + private Mono> listSinglePageAsync(String resourceGroupName, + String queryPackName, Long top, Boolean includeBody, String skipToken) { final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, id, this.client.getApiVersion(), accept, context); + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, top, includeBody, skipToken, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Log Analytics Query defined within a Log Analytics QueryPack. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LogAnalyticsQueryPackQueryInner get(String resourceGroupName, String queryPackName, String id) { - return getWithResponse(resourceGroupName, queryPackName, id, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String queryPackName, + Long top, Boolean includeBody, String skipToken) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, queryPackName, top, includeBody, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> putWithResponseAsync(String resourceGroupName, - String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - if (queryPayload == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPayload is required and cannot be null.")); - } else { - queryPayload.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.put(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, queryPackName, id, this.client.getApiVersion(), queryPayload, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String queryPackName) { + final Long top = null; + final Boolean includeBody = null; + final String skipToken = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, queryPackName, top, includeBody, skipToken), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. + * @param 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition on successful completion of {@link Mono}. + * @return a list of Queries defined within a Log Analytics QueryPack along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync(String resourceGroupName, String queryPackName, String id, - LogAnalyticsQueryPackQueryInner queryPayload) { - return putWithResponseAsync(resourceGroupName, queryPackName, id, queryPayload) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private PagedResponse listSinglePage(String resourceGroupName, + String queryPackName, Long top, Boolean includeBody, String skipToken) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, queryPackName, top, includeBody, skipToken, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. + * @param 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition along with {@link Response}. + * @return a list of Queries defined within a Log Analytics QueryPack along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response putWithResponse(String resourceGroupName, String queryPackName, - String id, LogAnalyticsQueryPackQueryInner queryPayload, 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - if (queryPayload == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPayload is required and cannot be null.")); - } else { - queryPayload.validate(); - } + private PagedResponse listSinglePage(String resourceGroupName, + String queryPackName, Long top, Boolean includeBody, String skipToken, Context context) { final String accept = "application/json"; - return service.putSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, id, this.client.getApiVersion(), queryPayload, accept, context); + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, queryPackName, top, includeBody, skipToken, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LogAnalyticsQueryPackQueryInner put(String resourceGroupName, String queryPackName, String id, - LogAnalyticsQueryPackQueryInner queryPayload) { - return putWithResponse(resourceGroupName, queryPackName, id, queryPayload, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String queryPackName) { + final Long top = null; + final Boolean includeBody = null; + final String skipToken = null; + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, queryPackName, top, includeBody, skipToken), + nextLink -> listNextSinglePage(nextLink)); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. + * @param 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - if (queryPayload == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPayload is required and cannot be null.")); - } else { - queryPayload.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, queryPackName, id, this.client.getApiVersion(), queryPayload, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String queryPackName, Long top, + Boolean includeBody, String skipToken, Context context) { + return new PagedIterable<>( + () -> listSinglePage(resourceGroupName, queryPackName, top, includeBody, skipToken, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. + * @param 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition on successful completion of {@link Mono}. + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String queryPackName, String id, - LogAnalyticsQueryPackQueryInner queryPayload) { - return updateWithResponseAsync(resourceGroupName, queryPackName, id, queryPayload) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono> searchSinglePageAsync(String resourceGroupName, + String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, + Boolean includeBody, String skipToken) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.search(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, top, includeBody, skipToken, accept, + querySearchProperties, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. - * @param context The context to associate with this operation. + * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition along with {@link Response}. + * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, String queryPackName, - String id, LogAnalyticsQueryPackQueryInner queryPayload, 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - if (queryPayload == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPayload is required and cannot be null.")); - } else { - queryPayload.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, id, this.client.getApiVersion(), queryPayload, accept, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux searchAsync(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, + String skipToken) { + return new PagedFlux<>(() -> searchSinglePageAsync(resourceGroupName, queryPackName, querySearchProperties, top, + includeBody, skipToken), nextLink -> searchNextSinglePageAsync(nextLink)); } /** - * Adds or Updates a specific Query within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param queryPayload Properties that need to be specified to create a new query and add it to a Log Analytics - * QueryPack. + * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics QueryPack-Query definition. + * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LogAnalyticsQueryPackQueryInner update(String resourceGroupName, String queryPackName, String id, - LogAnalyticsQueryPackQueryInner queryPayload) { - return updateWithResponse(resourceGroupName, queryPackName, id, queryPayload, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux searchAsync(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) { + final Long top = null; + final Boolean includeBody = null; + final String skipToken = null; + return new PagedFlux<>(() -> searchSinglePageAsync(resourceGroupName, queryPackName, querySearchProperties, top, + includeBody, skipToken), nextLink -> searchNextSinglePageAsync(nextLink)); } /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String queryPackName, String id) { - 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 (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - return Mono.error(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } + private PagedResponse searchSinglePage(String resourceGroupName, + String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, + Boolean includeBody, String skipToken) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, queryPackName, id, this.client.getApiVersion(), accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.searchSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, queryPackName, top, + includeBody, skipToken, accept, querySearchProperties, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @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 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 {@link Mono} that completes when a successful response is received. + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String queryPackName, String id) { - return deleteWithResponseAsync(resourceGroupName, queryPackName, id).flatMap(ignored -> Mono.empty()); + private PagedResponse searchSinglePage(String resourceGroupName, + String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, + Boolean includeBody, String skipToken, Context context) { + final String accept = "application/json"; + Response res = service.searchSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, queryPackName, top, + includeBody, skipToken, accept, querySearchProperties, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param context The context to associate with this operation. + * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, - 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 (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (id == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter id is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - queryPackName, id, this.client.getApiVersion(), accept, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable search(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) { + final Long top = null; + final Boolean includeBody = null; + final String skipToken = null; + return new PagedIterable<>(() -> searchSinglePage(resourceGroupName, queryPackName, querySearchProperties, top, + includeBody, skipToken), nextLink -> searchNextSinglePage(nextLink)); } /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @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 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.SINGLE) - public void delete(String resourceGroupName, String queryPackName, String id) { - deleteWithResponse(resourceGroupName, queryPackName, id, Context.NONE); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable search(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, + String skipToken, Context context) { + return new PagedIterable<>(() -> searchSinglePage(resourceGroupName, queryPackName, querySearchProperties, top, + includeBody, skipToken, context), nextLink -> searchNextSinglePage(nextLink, context)); } /** @@ -1199,13 +893,6 @@ public void delete(String resourceGroupName, String queryPackName, String id) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -1224,15 +911,6 @@ private Mono> listNextSinglePageA */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -1252,15 +930,6 @@ private PagedResponse listNextSinglePage(String */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); @@ -1275,18 +944,11 @@ private PagedResponse listNextSinglePage(String * @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 describes the list of Log Analytics QueryPack-Query resources along with {@link PagedResponse} on + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> searchNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil.withContext(context -> service.searchNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -1301,19 +963,10 @@ private Mono> searchNextSinglePag * @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 describes the list of Log Analytics QueryPack-Query resources along with {@link PagedResponse}. + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse searchNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.searchNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -1329,25 +982,14 @@ private PagedResponse searchNextSinglePage(Stri * @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 describes the list of Log Analytics QueryPack-Query resources along with {@link PagedResponse}. + * @return the response of a LogAnalyticsQueryPackQuery list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse searchNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.searchNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(QueriesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java index b1333ccc2135..14f6d7df901d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.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; @@ -28,6 +28,32 @@ public QueriesImpl(QueriesClient innerClient, this.serviceManager = serviceManager; } + public Response getWithResponse(String resourceGroupName, String queryPackName, + String id, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, queryPackName, id, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogAnalyticsQueryPackQueryImpl(inner.getValue(), this.manager())); + } + + public LogAnalyticsQueryPackQuery get(String resourceGroupName, String queryPackName, String id) { + LogAnalyticsQueryPackQueryInner inner = this.serviceClient().get(resourceGroupName, queryPackName, id); + if (inner != null) { + return new LogAnalyticsQueryPackQueryImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, queryPackName, id, context); + } + + public void delete(String resourceGroupName, String queryPackName, String id) { + this.serviceClient().delete(resourceGroupName, queryPackName, id); + } + public PagedIterable list(String resourceGroupName, String queryPackName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, queryPackName); @@ -60,36 +86,6 @@ public PagedIterable search(String resourceGroupName inner1 -> new LogAnalyticsQueryPackQueryImpl(inner1, this.manager())); } - public Response getWithResponse(String resourceGroupName, String queryPackName, - String id, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, queryPackName, id, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new LogAnalyticsQueryPackQueryImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public LogAnalyticsQueryPackQuery get(String resourceGroupName, String queryPackName, String id) { - LogAnalyticsQueryPackQueryInner inner = this.serviceClient().get(resourceGroupName, queryPackName, id); - if (inner != null) { - return new LogAnalyticsQueryPackQueryImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, queryPackName, id, context); - } - - public void delete(String resourceGroupName, String queryPackName, String id) { - this.serviceClient().delete(resourceGroupName, queryPackName, id); - } - public LogAnalyticsQueryPackQuery getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java index 3819c5d7c940..130ede8087fa 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.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; @@ -29,10 +29,9 @@ 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.QueryPacksClient; import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner; -import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult; import com.azure.resourcemanager.loganalytics.models.TagsResource; import reactor.core.publisher.Mono; @@ -65,905 +64,680 @@ public final class QueryPacksClientImpl implements QueryPacksClient { * The interface defining all the services for OperationalInsightsManagementClientQueryPacks to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientQueryPacks") public interface QueryPacksService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @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> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @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 createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") - @ExpectedResponses({ 201 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdateWithoutName(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, - @HeaderParam("Accept") String accept, Context context); + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsResource queryPackTags, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") - @ExpectedResponses({ 201 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateWithoutNameSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, - @HeaderParam("Accept") String accept, Context context); + Response updateTagsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsResource queryPackTags, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @HeaderParam("Accept") String accept, Context context); + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @HeaderParam("Accept") String accept, Context context); + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("queryPackName") String queryPackName, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @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/queryPacks/{queryPackName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @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" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") + @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateTags(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @BodyParam("application/json") TagsResource queryPackTags, @HeaderParam("Accept") String accept, - Context context); + Mono> createOrUpdateWithoutName(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); - @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks") + @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateTagsSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("queryPackName") String queryPackName, - @BodyParam("application/json") TagsResource queryPackTags, @HeaderParam("Accept") String accept, - Context context); + Response createOrUpdateWithoutNameSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @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, + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @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, + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return an Log Analytics QueryPack definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - 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.")); - } + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String queryPackName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), 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, queryPackName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with - * {@link PagedFlux}. + * @return an Log Analytics QueryPack definition on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String queryPackName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, queryPackName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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 along with {@link PagedResponse}. + * @return an Log Analytics QueryPack definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - 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.")); - } + public Response getByResourceGroupWithResponse(String resourceGroupName, + String queryPackName, Context context) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - 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, queryPackName, accept, 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 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 along with {@link PagedResponse}. + * @return an Log Analytics QueryPack definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(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.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + public LogAnalyticsQueryPackInner getByResourceGroup(String resourceGroupName, String queryPackName) { + return getByResourceGroupWithResponse(resourceGroupName, queryPackName, Context.NONE).getValue(); } /** - * Gets a list of all Log Analytics QueryPacks within a subscription. + * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey + * nor AppId in the Put operation. * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log Analytics + * QueryPack. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, contentType, accept, + logAnalyticsQueryPackPayload, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of all Log Analytics QueryPacks within a subscription. + * Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey + * nor AppId in the Put operation. * - * @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. + * @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 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 on successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + return createOrUpdateWithResponseAsync(resourceGroupName, queryPackName, logAnalyticsQueryPackPayload) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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 along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return an Log Analytics QueryPack definition along with {@link Response}. */ @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.")); - } + public Response createOrUpdateWithResponse(String resourceGroupName, + String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context) { + final String contentType = "application/json"; 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)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, contentType, accept, + logAnalyticsQueryPackPayload, 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 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 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 PagedFlux}. + * @return an Log Analytics QueryPack definition. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + return createOrUpdateWithResponse(resourceGroupName, queryPackName, logAnalyticsQueryPackPayload, Context.NONE) + .getValue(); } /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param queryPackTags Updated tag information to set into the QueryPack instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse}. + * @return an Log Analytics QueryPack definition along with {@link Response} on successful completion of + * {@link Mono}. */ @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.")); - } + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String queryPackName, TagsResource queryPackTags) { + final String contentType = "application/json"; 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 FluxUtil + .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, contentType, accept, queryPackTags, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * 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 context The context to associate with this operation. + * @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 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 along with {@link PagedResponse}. + * @return an Log Analytics QueryPack definition on successful completion of {@link Mono}. */ @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 res = service.listByResourceGroupSync(this.client.getEndpoint(), - resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + private Mono updateTagsAsync(String resourceGroupName, String queryPackName, + TagsResource queryPackTags) { + return updateTagsWithResponseAsync(resourceGroupName, queryPackName, queryPackTags) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param queryPackTags Updated tag information to set into the QueryPack instance. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, String queryPackName, + TagsResource queryPackTags, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateTagsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, contentType, accept, queryPackTags, + context); } /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * 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 context The context to associate with this operation. + * @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 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) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, + TagsResource queryPackTags) { + return updateTagsWithResponse(resourceGroupName, queryPackName, queryPackTags, Context.NONE).getValue(); } /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * Deletes a Log Analytics QueryPack. * * @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. * @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 an Log Analytics QueryPack definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithoutNameWithResponseAsync( - String resourceGroupName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - 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.")); - } - if (logAnalyticsQueryPackPayload == null) { - return Mono.error( - new IllegalArgumentException("Parameter logAnalyticsQueryPackPayload is required and cannot be null.")); - } else { - logAnalyticsQueryPackPayload.validate(); - } - final String accept = "application/json"; + private Mono> deleteWithResponseAsync(String resourceGroupName, String queryPackName) { return FluxUtil - .withContext(context -> service.createOrUpdateWithoutName(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), logAnalyticsQueryPackPayload, accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * Deletes a Log Analytics QueryPack. * * @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. * @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 an Log Analytics QueryPack definition on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateWithoutNameAsync(String resourceGroupName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - return createOrUpdateWithoutNameWithResponseAsync(resourceGroupName, logAnalyticsQueryPackPayload) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String queryPackName) { + return deleteWithResponseAsync(resourceGroupName, queryPackName).flatMap(ignored -> Mono.empty()); } /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * Deletes a Log Analytics QueryPack. * * @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 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 an Log Analytics QueryPack definition along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithoutNameWithResponse(String resourceGroupName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, 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.")); - } - if (logAnalyticsQueryPackPayload == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter logAnalyticsQueryPackPayload is required and cannot be null.")); - } else { - logAnalyticsQueryPackPayload.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateWithoutNameSync(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), logAnalyticsQueryPackPayload, accept, - context); + public Response deleteWithResponse(String resourceGroupName, String queryPackName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, queryPackName, context); } /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * Deletes a Log Analytics QueryPack. * * @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. * @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 an Log Analytics QueryPack definition. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LogAnalyticsQueryPackInner createOrUpdateWithoutName(String resourceGroupName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - return createOrUpdateWithoutNameWithResponse(resourceGroupName, logAnalyticsQueryPackPayload, Context.NONE) - .getValue(); + public void delete(String resourceGroupName, String queryPackName) { + deleteWithResponse(resourceGroupName, queryPackName, Context.NONE); } /** - * Deletes 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String queryPackName) { - 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.")); - } - if (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), queryPackName, accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return a list of Log Analytics QueryPacks within a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String queryPackName) { - return deleteWithResponseAsync(resourceGroupName, queryPackName).flatMap(ignored -> Mono.empty()); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * Deletes 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 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 a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String queryPackName, 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.")); - } - if (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), queryPackName, accept, context); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Deletes 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String queryPackName) { - deleteWithResponse(resourceGroupName, queryPackName, Context.NONE); + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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. * @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 an Log Analytics QueryPack definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return a list of Log Analytics QueryPacks within a resource group as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String queryPackName) { - 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.")); - } - if (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), queryPackName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); } /** - * 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 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 on successful completion of {@link Mono}. + * @return a list of Log Analytics QueryPacks within a resource group as paginated response with + * {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String queryPackName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, queryPackName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } /** - * Returns a Log Analytics QueryPack. + * 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 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 an Log Analytics QueryPack definition along with {@link Response}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String queryPackName, 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.")); - } - if (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } + private Mono> listSinglePageAsync() { final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), queryPackName, accept, context); + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), 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)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Returns a Log Analytics QueryPack. + * 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. - * @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 an Log Analytics QueryPack definition. + * @return a list of all Log Analytics QueryPacks within a subscription as paginated response with + * {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LogAnalyticsQueryPackInner getByResourceGroup(String resourceGroupName, String queryPackName) { - return getByResourceGroupWithResponse(resourceGroupName, queryPackName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * 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. - * @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 an Log Analytics QueryPack definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - 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.")); - } - if (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (logAnalyticsQueryPackPayload == null) { - return Mono.error( - new IllegalArgumentException("Parameter logAnalyticsQueryPackPayload is required and cannot be null.")); - } else { - logAnalyticsQueryPackPayload.validate(); - } + private PagedResponse listSinglePage() { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), queryPackName, - logAnalyticsQueryPackPayload, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.listSync(this.client.getEndpoint(), + 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); } /** - * 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 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 on successful completion of {@link Mono}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - return createOrUpdateWithResponseAsync(resourceGroupName, queryPackName, logAnalyticsQueryPackPayload) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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 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) - public Response createOrUpdateWithResponse(String resourceGroupName, - String queryPackName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, 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.")); - } - if (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (logAnalyticsQueryPackPayload == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter logAnalyticsQueryPackPayload is required and cannot be null.")); - } else { - logAnalyticsQueryPackPayload.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), queryPackName, logAnalyticsQueryPackPayload, accept, context); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** - * 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 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) - public LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { - return createOrUpdateWithResponse(resourceGroupName, queryPackName, logAnalyticsQueryPackPayload, Context.NONE) - .getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -971,60 +745,41 @@ public LogAnalyticsQueryPackInner createOrUpdate(String resourceGroupName, Strin * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateTagsWithResponseAsync(String resourceGroupName, - String queryPackName, TagsResource queryPackTags) { - 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.")); - } - if (queryPackName == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (queryPackTags == null) { - return Mono.error(new IllegalArgumentException("Parameter queryPackTags is required and cannot be null.")); - } else { - queryPackTags.validate(); - } + private Mono> createOrUpdateWithoutNameWithResponseAsync( + String resourceGroupName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), queryPackName, queryPackTags, accept, context)) + .withContext(context -> service.createOrUpdateWithoutName(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, contentType, accept, + logAnalyticsQueryPackPayload, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateTagsAsync(String resourceGroupName, String queryPackName, - TagsResource queryPackTags) { - return updateTagsWithResponseAsync(resourceGroupName, queryPackName, queryPackTags) + private Mono createOrUpdateWithoutNameAsync(String resourceGroupName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + return createOrUpdateWithoutNameWithResponseAsync(resourceGroupName, logAnalyticsQueryPackPayload) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 ManagementException thrown if the request is rejected by server. @@ -1032,52 +787,31 @@ private Mono updateTagsAsync(String resourceGroupNam * @return an Log Analytics QueryPack definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateTagsWithResponse(String resourceGroupName, String queryPackName, - TagsResource queryPackTags, 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.")); - } - if (queryPackName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackName is required and cannot be null.")); - } - if (queryPackTags == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter queryPackTags is required and cannot be null.")); - } else { - queryPackTags.validate(); - } + public Response createOrUpdateWithoutNameWithResponse(String resourceGroupName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateTagsSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), queryPackName, queryPackTags, accept, context); + return service.createOrUpdateWithoutNameSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, contentType, accept, logAnalyticsQueryPackPayload, + 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 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) - public LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String queryPackName, - TagsResource queryPackTags) { - return updateTagsWithResponse(resourceGroupName, queryPackName, queryPackTags, Context.NONE).getValue(); + public LogAnalyticsQueryPackInner createOrUpdateWithoutName(String resourceGroupName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload) { + return createOrUpdateWithoutNameWithResponse(resourceGroupName, logAnalyticsQueryPackPayload, Context.NONE) + .getValue(); } /** @@ -1087,20 +821,15 @@ public LogAnalyticsQueryPackInner updateTags(String resourceGroupName, String qu * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; - return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1113,22 +842,13 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. + * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { final String accept = "application/json"; Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1141,22 +861,14 @@ private PagedResponse listNextSinglePage(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. + * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, + Context context) { final String accept = "application/json"; Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1168,22 +880,13 @@ private PagedResponse listNextSinglePage(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1196,22 +899,13 @@ private Mono> listByResourceGroupNextS * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1224,26 +918,14 @@ private PagedResponse listByResourceGroupNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Log Analytics QueryPacks within a resource group along with {@link PagedResponse}. + * @return a list of all Log Analytics QueryPacks within a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(QueryPacksClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java index 2af20fce79f9..ce0b55fe8140 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.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; @@ -27,14 +27,30 @@ public QueryPacksImpl(QueryPacksClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LogAnalyticsQueryPackImpl(inner1, this.manager())); + public Response getByResourceGroupWithResponse(String resourceGroupName, + String queryPackName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, queryPackName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogAnalyticsQueryPackImpl(inner.getValue(), this.manager())); } - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new LogAnalyticsQueryPackImpl(inner1, this.manager())); + public LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName) { + LogAnalyticsQueryPackInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, queryPackName); + if (inner != null) { + return new LogAnalyticsQueryPackImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response deleteByResourceGroupWithResponse(String resourceGroupName, String queryPackName, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, queryPackName, context); + } + + public void deleteByResourceGroup(String resourceGroupName, String queryPackName) { + this.serviceClient().delete(resourceGroupName, queryPackName); } public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -48,16 +64,22 @@ public PagedIterable listByResourceGroup(String resourceG return ResourceManagerUtils.mapPage(inner, inner1 -> new LogAnalyticsQueryPackImpl(inner1, this.manager())); } + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogAnalyticsQueryPackImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogAnalyticsQueryPackImpl(inner1, this.manager())); + } + public Response createOrUpdateWithoutNameWithResponse(String resourceGroupName, LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context) { Response inner = this.serviceClient() .createOrUpdateWithoutNameWithResponse(resourceGroupName, logAnalyticsQueryPackPayload, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new LogAnalyticsQueryPackImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogAnalyticsQueryPackImpl(inner.getValue(), this.manager())); } public LogAnalyticsQueryPack createOrUpdateWithoutName(String resourceGroupName, @@ -71,36 +93,6 @@ public LogAnalyticsQueryPack createOrUpdateWithoutName(String resourceGroupName, } } - public Response deleteByResourceGroupWithResponse(String resourceGroupName, String queryPackName, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, queryPackName, context); - } - - public void deleteByResourceGroup(String resourceGroupName, String queryPackName) { - this.serviceClient().delete(resourceGroupName, queryPackName); - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, - String queryPackName, Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, queryPackName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new LogAnalyticsQueryPackImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName) { - LogAnalyticsQueryPackInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, queryPackName); - if (inner != null) { - return new LogAnalyticsQueryPackImpl(inner, this.manager()); - } else { - return null; - } - } - public LogAnalyticsQueryPack getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java index 33a4835ea2cd..5a8dc1183023 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.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/SavedSearchImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java index 796223659ec9..02a83d18c475 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner; import com.azure.resourcemanager.loganalytics.models.SavedSearch; @@ -32,6 +33,10 @@ public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public String category() { return this.innerModel().category(); } @@ -137,7 +142,7 @@ public SavedSearch apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.savedSearchId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "savedSearches"); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java index 61ddbc7ed65d..aa9e7157a60a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java @@ -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; @@ -24,7 +24,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.SavedSearchesClient; import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner; import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner; @@ -59,92 +58,86 @@ public final class SavedSearchesClientImpl implements SavedSearchesClient { * The interface defining all the services for OperationalInsightsManagementClientSavedSearches to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientSavedSearches") public interface SavedSearchesService { - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("savedSearchId") String savedSearchId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - Context context); + @PathParam("savedSearchId") String savedSearchId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SavedSearchInner parameters, @HeaderParam("Accept") String accept, + @PathParam("savedSearchId") String savedSearchId, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SavedSearchInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") SavedSearchInner parameters, @HeaderParam("Accept") String accept, + @PathParam("savedSearchId") String savedSearchId, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SavedSearchInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("savedSearchId") String savedSearchId, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("savedSearchId") String savedSearchId, @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, Context context); + @PathParam("savedSearchId") String savedSearchId, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> listByWorkspace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listByWorkspaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, 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. @@ -152,37 +145,21 @@ Response listByWorkspaceSync(@HostParam("$host") S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the specified saved search for a given workspace along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, String savedSearchId) { - 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.")); - } - if (savedSearchId == null) { - return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } + final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, savedSearchId, this.client.getApiVersion(), context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, savedSearchId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -190,16 +167,16 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the specified saved search for a given workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String savedSearchId) { - return deleteWithResponseAsync(resourceGroupName, workspaceName, savedSearchId) - .flatMap(ignored -> Mono.empty()); + private Mono getAsync(String resourceGroupName, String workspaceName, String savedSearchId) { + return getWithResponseAsync(resourceGroupName, workspaceName, savedSearchId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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. @@ -208,39 +185,18 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the specified saved search for a given workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, - 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.")); - } - if (savedSearchId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, savedSearchId, this.client.getApiVersion(), context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String savedSearchId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, savedSearchId, accept, 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. @@ -248,10 +204,11 @@ public Response deleteWithResponse(String resourceGroupName, String worksp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified saved search for a given workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String savedSearchId) { - deleteWithResponse(resourceGroupName, workspaceName, savedSearchId, Context.NONE); + public SavedSearchInner get(String resourceGroupName, String workspaceName, String savedSearchId) { + return getWithResponse(resourceGroupName, workspaceName, savedSearchId, Context.NONE).getValue(); } /** @@ -270,34 +227,12 @@ public void delete(String resourceGroupName, String workspaceName, String savedS @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, String savedSearchId, SavedSearchInner parameters) { - 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.")); - } - if (savedSearchId == null) { - return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, savedSearchId, this.client.getApiVersion(), parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, savedSearchId, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -336,37 +271,11 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, SavedSearchInner parameters, 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.")); - } - if (savedSearchId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, savedSearchId, this.client.getApiVersion(), parameters, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, savedSearchId, contentType, accept, + parameters, context); } /** @@ -389,7 +298,7 @@ public SavedSearchInner createOrUpdate(String resourceGroupName, String workspac } /** - * 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. @@ -397,39 +306,19 @@ public SavedSearchInner createOrUpdate(String resourceGroupName, String workspac * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified saved search for a given workspace along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String savedSearchId) { - 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.")); - } - if (savedSearchId == null) { - return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, savedSearchId, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, savedSearchId, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -437,16 +326,16 @@ private Mono> getWithResponseAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified saved search for a given workspace on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String savedSearchId) { - return getWithResponseAsync(resourceGroupName, workspaceName, savedSearchId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String savedSearchId) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, savedSearchId) + .flatMap(ignored -> Mono.empty()); } /** - * 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. @@ -455,40 +344,17 @@ private Mono getAsync(String resourceGroupName, String workspa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified saved search for a given workspace along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String savedSearchId, 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.")); - } - if (savedSearchId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, savedSearchId, this.client.getApiVersion(), accept, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, savedSearchId, 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. @@ -496,11 +362,10 @@ public Response getWithResponse(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified saved search for a given workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SavedSearchInner get(String resourceGroupName, String workspaceName, String savedSearchId) { - return getWithResponse(resourceGroupName, workspaceName, savedSearchId, Context.NONE).getValue(); + public void delete(String resourceGroupName, String workspaceName, String savedSearchId) { + deleteWithResponse(resourceGroupName, workspaceName, savedSearchId, Context.NONE); } /** @@ -517,25 +382,10 @@ public SavedSearchInner get(String resourceGroupName, String workspaceName, Stri @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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), 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())); } @@ -569,27 +419,9 @@ private Mono listByWorkspaceAsync(String resourceG @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 (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.")); - } - 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"; - return service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); } /** @@ -606,6 +438,4 @@ public Response listByWorkspaceWithResponse(String public SavedSearchesListResultInner listByWorkspace(String resourceGroupName, String workspaceName) { return listByWorkspaceWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(SavedSearchesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java index e4ab8d5da95a..18e2fbd7fd07 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.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; @@ -28,25 +28,12 @@ public SavedSearchesImpl(SavedSearchesClient innerClient, this.serviceManager = serviceManager; } - public Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, savedSearchId, context); - } - - public void delete(String resourceGroupName, String workspaceName, String savedSearchId) { - this.serviceClient().delete(resourceGroupName, workspaceName, savedSearchId); - } - public Response getWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, savedSearchId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SavedSearchImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SavedSearchImpl(inner.getValue(), this.manager())); } public SavedSearch get(String resourceGroupName, String workspaceName, String savedSearchId) { @@ -58,16 +45,21 @@ public SavedSearch get(String resourceGroupName, String workspaceName, String sa } } + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String savedSearchId, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, savedSearchId, context); + } + + public void delete(String resourceGroupName, String workspaceName, String savedSearchId) { + this.serviceClient().delete(resourceGroupName, workspaceName, savedSearchId); + } + public Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, Context context) { Response inner = this.serviceClient().listByWorkspaceWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SavedSearchesListResultImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SavedSearchesListResultImpl(inner.getValue(), this.manager())); } public SavedSearchesListResult listByWorkspace(String resourceGroupName, String workspaceName) { @@ -80,10 +72,10 @@ public SavedSearchesListResult listByWorkspace(String resourceGroupName, String } public SavedSearch getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -99,10 +91,10 @@ public SavedSearch getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -118,10 +110,10 @@ public Response getByIdWithResponse(String id, Context context) { } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -137,10 +129,10 @@ public void deleteById(String id) { } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java index cadc94f0ffee..5e1fb81a62f8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.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/SchemasClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java index 9c87a78a57f9..55e0b795fadb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java @@ -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.SchemasClient; import com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner; import reactor.core.publisher.Mono; @@ -54,25 +53,25 @@ public final class SchemasClientImpl implements SchemasClient { * The interface defining all the services for OperationalInsightsManagementClientSchemas to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientSchemas") public interface SchemasService { @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); } @@ -89,25 +88,10 @@ Response getSync(@HostParam("$host") String endpoi @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -140,27 +124,9 @@ private Mono getAsync(String resourceGroupName, St @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(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 (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.")); - } - 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"; - return service.getSync(this.client.getEndpoint(), resourceGroupName, workspaceName, this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** @@ -177,6 +143,4 @@ public Response getWithResponse(String resourceGro public SearchGetSchemaResponseInner get(String resourceGroupName, String workspaceName) { return getWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(SchemasClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java index b730442563a4..b2a365c73748 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.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; @@ -30,12 +30,8 @@ public Response getWithResponse(String resourceGroupNam Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SearchGetSchemaResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SearchGetSchemaResponseImpl(inner.getValue(), this.manager())); } public SearchGetSchemaResponse get(String resourceGroupName, String workspaceName) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java index 5732e0075899..fdd2471d0cf2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.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/SharedKeysImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java index 0ab2790d31d8..131525480e53 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.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/SharedKeysOperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java index 8604d2311407..91f2e15f6559 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java @@ -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.SharedKeysOperationsClient; import com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner; import reactor.core.publisher.Mono; @@ -55,44 +54,44 @@ public final class SharedKeysOperationsClientImpl implements SharedKeysOperation * The interface defining all the services for OperationalInsightsManagementClientSharedKeysOperations to be used by * the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientSharedKeysOperations") public interface SharedKeysOperationsService { @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getSharedKeys(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> getSharedKeys(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/sharedKeys") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSharedKeysSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response getSharedKeysSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> regenerate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> regenerate(@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" }) - @Post("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/regenerateSharedKey") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response regenerateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response regenerateSync(@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); } /** @@ -108,25 +107,10 @@ Response regenerateSync(@HostParam("$host") String endpoint, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSharedKeysWithResponseAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getSharedKeys(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.getSharedKeys(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -160,27 +144,9 @@ private Mono getSharedKeysAsync(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) public Response getSharedKeysWithResponse(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 (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.")); - } - 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"; - return service.getSharedKeysSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.getSharedKeysSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); } /** @@ -212,25 +178,10 @@ public SharedKeysInner getSharedKeys(String resourceGroupName, String workspaceN @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateWithResponseAsync(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.regenerate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.regenerate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -266,27 +217,9 @@ private Mono regenerateAsync(String resourceGroupName, String w @ServiceMethod(returns = ReturnType.SINGLE) public Response regenerateWithResponse(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.regenerateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, context); + return service.regenerateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); } /** @@ -304,6 +237,4 @@ public Response regenerateWithResponse(String resourceGroupName public SharedKeysInner regenerate(String resourceGroupName, String workspaceName) { return regenerateWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(SharedKeysOperationsClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java index b72d1872b433..ce87e14656c0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.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; @@ -30,12 +30,8 @@ public Response getSharedKeysWithResponse(String resourceGroupName, Context context) { Response inner = this.serviceClient().getSharedKeysWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SharedKeysImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SharedKeysImpl(inner.getValue(), this.manager())); } public SharedKeys getSharedKeys(String resourceGroupName, String workspaceName) { @@ -51,12 +47,8 @@ public Response regenerateWithResponse(String resourceGroupName, Str Context context) { Response inner = this.serviceClient().regenerateWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SharedKeysImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SharedKeysImpl(inner.getValue(), this.manager())); } public SharedKeys regenerate(String resourceGroupName, String workspaceName) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java index a4c86472e15f..df033cb04af4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java @@ -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; @@ -28,10 +28,9 @@ 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.StorageInsightConfigsClient; import com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner; -import com.azure.resourcemanager.loganalytics.models.StorageInsightListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult; import reactor.core.publisher.Mono; /** @@ -63,83 +62,83 @@ public final class StorageInsightConfigsClientImpl implements StorageInsightConf * The interface defining all the services for OperationalInsightsManagementClientStorageInsightConfigs to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientStorageInsightConfigs") public interface StorageInsightConfigsService { @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate(@HostParam("$host") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") StorageInsightInner parameters, @HeaderParam("Accept") String accept, + @PathParam("storageInsightName") String storageInsightName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") - @ExpectedResponses({ 200, 201 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") StorageInsightInner parameters, @HeaderParam("Accept") String accept, + @PathParam("storageInsightName") String storageInsightName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("storageInsightName") String storageInsightName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") StorageInsightInner parameters, + Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") - @ExpectedResponses({ 200 }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @PathParam("storageInsightName") String storageInsightName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") StorageInsightInner parameters, + Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("$host") String endpoint, + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); + @PathParam("storageInsightName") String storageInsightName, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}") @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, + Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @PathParam("storageInsightName") String storageInsightName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, Context context); + @PathParam("storageInsightName") String storageInsightName, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> listByWorkspace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listByWorkspaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -147,7 +146,7 @@ Response listByWorkspaceSync(@HostParam("$host") Strin @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @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" }) @@ -155,260 +154,169 @@ Mono> listByWorkspaceNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByWorkspaceNextSync( - @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); } /** - * 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 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} on successful completion of - * {@link Mono}. + * @return a storage insight instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, - String workspaceName, String storageInsightName, StorageInsightInner parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - return Mono - .error(new IllegalArgumentException("Parameter storageInsightName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String storageInsightName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, workspaceName, - storageInsightName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, storageInsightName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 on successful completion of {@link Mono}. + * @return a storage insight instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - String storageInsightName, StorageInsightInner parameters) { - return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, storageInsightName, parameters) + private Mono getAsync(String resourceGroupName, String workspaceName, + String storageInsightName) { + return getWithResponseAsync(resourceGroupName, workspaceName, storageInsightName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, - String storageInsightName, StorageInsightInner parameters, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter storageInsightName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + public Response getWithResponse(String resourceGroupName, String workspaceName, + String storageInsightName, Context context) { final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - storageInsightName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, - context); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, storageInsightName, accept, 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 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) - public StorageInsightInner createOrUpdate(String resourceGroupName, String workspaceName, String storageInsightName, - StorageInsightInner parameters) { - return createOrUpdateWithResponse(resourceGroupName, workspaceName, storageInsightName, parameters, - Context.NONE).getValue(); + public StorageInsightInner get(String resourceGroupName, String workspaceName, String storageInsightName) { + return getWithResponse(resourceGroupName, workspaceName, storageInsightName, Context.NONE).getValue(); } /** - * 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 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} on successful completion of {@link Mono}. + * @return the top level storage insight resource container along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, - String storageInsightName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - return Mono - .error(new IllegalArgumentException("Parameter storageInsightName 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> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String storageInsightName, StorageInsightInner parameters) { + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, workspaceName, - storageInsightName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, storageInsightName, contentType, + accept, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 on successful completion of {@link Mono}. + * @return the top level storage insight resource container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, - String storageInsightName) { - return getWithResponseAsync(resourceGroupName, workspaceName, storageInsightName) + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String storageInsightName, StorageInsightInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, storageInsightName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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) - public Response getWithResponse(String resourceGroupName, String workspaceName, - String storageInsightName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter storageInsightName 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 createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String storageInsightName, StorageInsightInner parameters, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, storageInsightName, contentType, accept, + parameters, 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 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) - public StorageInsightInner get(String resourceGroupName, String workspaceName, String storageInsightName) { - return getWithResponse(resourceGroupName, workspaceName, storageInsightName, Context.NONE).getValue(); + public StorageInsightInner createOrUpdate(String resourceGroupName, String workspaceName, String storageInsightName, + StorageInsightInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, storageInsightName, parameters, + Context.NONE).getValue(); } /** @@ -425,28 +333,9 @@ public StorageInsightInner get(String resourceGroupName, String workspaceName, S @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String storageInsightName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - return Mono - .error(new IllegalArgumentException("Parameter storageInsightName 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.")); - } return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, workspaceName, - storageInsightName, this.client.getApiVersion(), this.client.getSubscriptionId(), context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, storageInsightName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -482,30 +371,8 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String workspaceName, String storageInsightName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (storageInsightName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter storageInsightName 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.")); - } - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), this.client.getSubscriptionId(), context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, storageInsightName, context); } /** @@ -537,25 +404,10 @@ public void delete(String resourceGroupName, String workspaceName, String storag @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceSinglePageAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().odataNextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -590,28 +442,10 @@ private PagedFlux listByWorkspaceAsync(String resourceGroup @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().odataNextLink(), null); } @@ -630,28 +464,10 @@ private PagedResponse listByWorkspaceSinglePage(String reso @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceSinglePage(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 (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.")); - } - 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 res - = service.listByWorkspaceSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().odataNextLink(), null); } @@ -702,13 +518,6 @@ public PagedIterable listByWorkspace(String resourceGroupNa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) @@ -728,15 +537,6 @@ private Mono> listByWorkspaceNextSinglePageAs */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -756,21 +556,10 @@ private PagedResponse listByWorkspaceNextSinglePage(String */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().odataNextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(StorageInsightConfigsClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java index 91baaa39a1c3..fbe5267f2d41 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java @@ -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,8 @@ public Response getWithResponse(String resourceGroupName, String String storageInsightName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, storageInsightName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new StorageInsightImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new StorageInsightImpl(inner.getValue(), this.manager())); } public StorageInsight get(String resourceGroupName, String workspaceName, String storageInsightName) { @@ -71,10 +67,10 @@ public PagedIterable listByWorkspace(String resourceGroupName, S } public StorageInsight getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -90,10 +86,10 @@ public StorageInsight getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -109,10 +105,10 @@ public Response getByIdWithResponse(String id, Context context) } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -128,10 +124,10 @@ public void deleteById(String id) { } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java index b67a70ffe81b..0f7436c68681 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java @@ -1,9 +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.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner; import com.azure.resourcemanager.loganalytics.models.StorageAccount; @@ -30,8 +31,8 @@ public String type() { return this.innerModel().type(); } - public String etag() { - return this.innerModel().etag(); + public String eTag() { + return this.innerModel().eTag(); } public Map tags() { @@ -43,6 +44,10 @@ public Map tags() { } } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public List containers() { List inner = this.innerModel().containers(); if (inner != null) { @@ -143,7 +148,7 @@ public StorageInsight apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); this.storageInsightName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "storageInsightConfigs"); } @@ -169,8 +174,8 @@ public StorageInsightImpl withTags(Map tags) { return this; } - public StorageInsightImpl withEtag(String etag) { - this.innerModel().withEtag(etag); + public StorageInsightImpl withETag(String eTag) { + this.innerModel().withETag(eTag); return this; } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java index 90ba126a1301..abe525b2d692 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.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/SummaryLogsOperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java index b6c151f4e68e..4a21ecba9010 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.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.SummaryLogsOperationsClient; import com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner; -import com.azure.resourcemanager.loganalytics.models.SummaryLogsListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult; import com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -71,156 +70,147 @@ public final class SummaryLogsOperationsClientImpl implements SummaryLogsOperati * The interface defining all the services for OperationalInsightsManagementClientSummaryLogsOperations to be used * by the proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientSummaryLogsOperations") public interface SummaryLogsOperationsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@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); + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Accept") String accept, + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@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); + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Accept") String accept, + Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@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, @PathParam("summaryLogsName") String summaryLogsName, - @BodyParam("application/json") SummaryLogsInner parameters, @HeaderParam("Accept") String accept, + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SummaryLogsInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@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, @PathParam("summaryLogsName") String summaryLogsName, - @BodyParam("application/json") SummaryLogsInner parameters, @HeaderParam("Accept") String accept, + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") SummaryLogsInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") + @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@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, @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}") - @ExpectedResponses({ 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@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, @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/start") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> start(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/start") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response startSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response startSync(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/stop") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> stop(@HostParam("$host") String endpoint, + Mono> stop(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/stop") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response stopSync(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, + Response stopSync(@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, @PathParam("summaryLogsName") String summaryLogsName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("summaryLogsName") String summaryLogsName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/retrybin") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> retryBin(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> retryBin(@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, @PathParam("summaryLogsName") String summaryLogsName, - @BodyParam("application/json") SummaryLogsRetryBin parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") SummaryLogsRetryBin parameters, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/summaryLogs/{summaryLogsName}/retrybin") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response retryBinSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response retryBinSync(@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, @PathParam("summaryLogsName") String summaryLogsName, - @BodyParam("application/json") SummaryLogsRetryBin parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("summaryLogsName") String summaryLogsName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") SummaryLogsRetryBin parameters, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @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" }) @@ -228,176 +218,83 @@ Mono> listByWorkspaceNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listByWorkspaceNextSync( - @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); } /** - * 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 '/'. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all summary rules for the specified Log Analytics workspace along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return log Analytics workspace Summary rules along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync(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.")); - } + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String summaryLogsName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all summary rules for the specified Log Analytics workspace as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), - nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); - } - - /** - * 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 '/'. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all summary rules for the specified Log Analytics workspace along with {@link PagedResponse}. + * @return log Analytics workspace Summary rules on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + private Mono getAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { + return getWithResponseAsync(resourceGroupName, workspaceName, summaryLogsName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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 along with {@link PagedResponse}. + * @return log Analytics workspace Summary rules along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(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.")); - } + public Response getWithResponse(String resourceGroupName, String workspaceName, + String summaryLogsName, Context context) { final String accept = "application/json"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, summaryLogsName, accept, context); } /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all summary rules for the specified Log Analytics workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), - nextLink -> listByWorkspaceNextSinglePage(nextLink)); - } - - /** - * 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 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) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, - Context context) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), - nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public SummaryLogsInner get(String resourceGroupName, String workspaceName, String summaryLogsName) { + return getWithResponse(resourceGroupName, workspaceName, summaryLogsName, Context.NONE).getValue(); } /** @@ -416,35 +313,12 @@ public PagedIterable listByWorkspace(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsInner parameters) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -463,37 +337,11 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsInner parameters) { - 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, accept, + parameters, Context.NONE); } /** @@ -512,37 +360,11 @@ private Response createOrUpdateWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsInner parameters, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, accept, + parameters, context); } /** @@ -667,7 +489,7 @@ public SummaryLogsInner createOrUpdate(String resourceGroupName, String workspac } /** - * 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. @@ -675,40 +497,19 @@ public SummaryLogsInner createOrUpdate(String resourceGroupName, String workspac * @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 workspace Summary rules along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -716,16 +517,17 @@ private Mono> getWithResponseAsync(String resourceGro * @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 workspace Summary rules on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { - return getWithResponseAsync(resourceGroupName, workspaceName, summaryLogsName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Response deleteWithResponse(String resourceGroupName, String workspaceName, + String summaryLogsName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, Context.NONE); } /** - * 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. @@ -734,40 +536,17 @@ private Mono getAsync(String resourceGroupName, String workspa * @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 workspace Summary rules along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, + private Response deleteWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, 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. @@ -775,11 +554,15 @@ public Response getWithResponse(String resourceGroupName, Stri * @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 workspace Summary rules. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SummaryLogsInner get(String resourceGroupName, String workspaceName, String summaryLogsName) { - return getWithResponse(resourceGroupName, workspaceName, summaryLogsName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String summaryLogsName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, summaryLogsName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -791,35 +574,13 @@ public SummaryLogsInner get(String resourceGroupName, String workspaceName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response response = deleteWithResponse(resourceGroupName, workspaceName, summaryLogsName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -828,39 +589,17 @@ private Mono>> deleteWithResponseAsync(String resource * @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 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 body along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String workspaceName, - String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, Context.NONE); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String summaryLogsName, Context context) { + Response response = deleteWithResponse(resourceGroupName, workspaceName, summaryLogsName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -869,40 +608,15 @@ private Response deleteWithResponse(String resourceGroupName, String * @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 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 body along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String workspaceName, - String summaryLogsName, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { + return beginDeleteAsync(resourceGroupName, workspaceName, summaryLogsName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -914,15 +628,10 @@ private Response deleteWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String summaryLogsName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, workspaceName, summaryLogsName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String summaryLogsName) { + beginDelete(resourceGroupName, workspaceName, summaryLogsName).getFinalResult(); } /** @@ -931,83 +640,131 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @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 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) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String summaryLogsName) { - Response response = deleteWithResponse(resourceGroupName, workspaceName, summaryLogsName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String summaryLogsName, Context context) { + beginDelete(resourceGroupName, workspaceName, summaryLogsName, context).getFinalResult(); } /** - * 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 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 all summary rules for the specified Log Analytics workspace along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String summaryLogsName, Context context) { - Response response = deleteWithResponse(resourceGroupName, workspaceName, summaryLogsName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 {@link Mono} that completes when a successful response is received. + * @return all summary rules for the specified Log Analytics workspace as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { - return beginDeleteAsync(resourceGroupName, workspaceName, summaryLogsName).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String summaryLogsName) { - beginDelete(resourceGroupName, workspaceName, summaryLogsName).getFinalResult(); + private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String summaryLogsName, Context context) { - beginDelete(resourceGroupName, workspaceName, summaryLogsName, context).getFinalResult(); + private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName, + Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all summary rules for the specified Log Analytics workspace as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePage(nextLink)); + } + + /** + * 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all summary rules for the specified Log Analytics workspace as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); } /** @@ -1024,29 +781,9 @@ public void delete(String resourceGroupName, String workspaceName, String summar @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.start(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context)) + .withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1064,31 +801,8 @@ private Mono>> startWithResponseAsync(String resourceG @ServiceMethod(returns = ReturnType.SINGLE) private Response startWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, Context.NONE); + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, Context.NONE); } /** @@ -1106,31 +820,8 @@ private Response startWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Response startWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context); + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, context); } /** @@ -1252,29 +943,9 @@ public void start(String resourceGroupName, String workspaceName, String summary @ServiceMethod(returns = ReturnType.SINGLE) private Mono> stopWithResponseAsync(String resourceGroupName, String workspaceName, String summaryLogsName) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context)) + .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1310,31 +981,8 @@ private Mono stopAsync(String resourceGroupName, String workspaceName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Response stopWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, accept, context); + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, summaryLogsName, context); } /** @@ -1367,35 +1015,11 @@ public void stop(String resourceGroupName, String workspaceName, String summaryL @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> retryBinWithResponseAsync(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsRetryBin parameters) { - 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.")); - } - if (summaryLogsName == null) { - return Mono - .error(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.retryBin(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, - context)) + .withContext(context -> service.retryBin(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1414,37 +1038,10 @@ private Mono>> retryBinWithResponseAsync(String resour @ServiceMethod(returns = ReturnType.SINGLE) private Response retryBinWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsRetryBin parameters) { - 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.retryBinSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, Context.NONE); + final String contentType = "application/json"; + return service.retryBinSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, parameters, + Context.NONE); } /** @@ -1463,37 +1060,10 @@ private Response retryBinWithResponse(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) private Response retryBinWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, SummaryLogsRetryBin parameters, 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.")); - } - if (summaryLogsName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter summaryLogsName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.retryBinSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), summaryLogsName, parameters, accept, context); + final String contentType = "application/json"; + return service.retryBinSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, summaryLogsName, contentType, parameters, + context); } /** @@ -1624,13 +1194,6 @@ public void retryBin(String resourceGroupName, String workspaceName, String summ */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) @@ -1650,15 +1213,6 @@ private Mono> listByWorkspaceNextSinglePageAsync */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -1678,21 +1232,10 @@ private PagedResponse listByWorkspaceNextSinglePage(String nex */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(SummaryLogsOperationsClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java index e3bc565e8dab..4bf927c230f4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.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; @@ -28,27 +28,12 @@ public SummaryLogsOperationsImpl(SummaryLogsOperationsClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SummaryLogsImpl(inner1, this.manager())); - } - - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner - = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new SummaryLogsImpl(inner1, this.manager())); - } - public Response getWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, summaryLogsName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new SummaryLogsImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SummaryLogsImpl(inner.getValue(), this.manager())); } public SummaryLogs get(String resourceGroupName, String workspaceName, String summaryLogsName) { @@ -68,6 +53,17 @@ public void delete(String resourceGroupName, String workspaceName, String summar this.serviceClient().delete(resourceGroupName, workspaceName, summaryLogsName, context); } + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SummaryLogsImpl(inner1, this.manager())); + } + + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SummaryLogsImpl(inner1, this.manager())); + } + public void start(String resourceGroupName, String workspaceName, String summaryLogsName) { this.serviceClient().start(resourceGroupName, workspaceName, summaryLogsName); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java index 743c54e03a5c..788a360acab1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java @@ -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; @@ -8,7 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.TableInner; -import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum; +import com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -73,7 +73,7 @@ public Schema schema() { return this.innerModel().schema(); } - public ProvisioningStateEnum provisioningState() { + public OperationalInsightsTableProvisioningState provisioningState() { return this.innerModel().provisioningState(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java index 9206cb6e51a1..b14b48b1d169 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java @@ -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; @@ -32,12 +32,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.TablesClient; import com.azure.resourcemanager.loganalytics.fluent.models.TableInner; -import com.azure.resourcemanager.loganalytics.models.TablesListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -70,314 +69,228 @@ public final class TablesClientImpl implements TablesClient { * The interface defining all the services for OperationalInsightsManagementClientTables to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientTables") public interface TablesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@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); + @PathParam("tableName") String tableName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByWorkspaceSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response getSync(@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); + @PathParam("tableName") String tableName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> createOrUpdate(@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, @PathParam("tableName") String tableName, - @BodyParam("application/json") TableInner parameters, @HeaderParam("Accept") String accept, + @PathParam("tableName") String tableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TableInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response createOrUpdateSync(@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, @PathParam("tableName") String tableName, - @BodyParam("application/json") TableInner parameters, @HeaderParam("Accept") String accept, + @PathParam("tableName") String tableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TableInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> update(@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, @PathParam("tableName") String tableName, - @BodyParam("application/json") TableInner parameters, @HeaderParam("Accept") String accept, + @PathParam("tableName") String tableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TableInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response updateSync(@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, @PathParam("tableName") String tableName, - @BodyParam("application/json") TableInner parameters, @HeaderParam("Accept") String accept, + @PathParam("tableName") String tableName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") TableInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@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, @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tableName") String tableName, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response deleteSync(@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, @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tableName") String tableName, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@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, @PathParam("tableName") String tableName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}") - @ExpectedResponses({ 200, 202, 204 }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@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, @PathParam("tableName") String tableName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> migrate(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> migrate(@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, @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tableName") String tableName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response migrateSync(@HostParam("$host") String endpoint, + Response migrateSync(@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, @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tableName") String tableName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> cancelSearch(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono> cancelSearch(@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, @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("tableName") String tableName, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response cancelSearchSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response cancelSearchSync(@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, @PathParam("tableName") String tableName, + @PathParam("tableName") String tableName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByWorkspaceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByWorkspaceNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, 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 tableName The name of the table. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the tables for the specified Log Analytics workspace along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return a Log Analytics workspace table along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync(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.")); - } + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String tableName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the tables for the specified Log Analytics workspace as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName)); - } - - /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the tables for the specified Log Analytics workspace along with {@link PagedResponse}. + * @return a Log Analytics workspace table on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { - 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"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + private Mono getAsync(String resourceGroupName, String workspaceName, String tableName) { + return getWithResponseAsync(resourceGroupName, workspaceName, tableName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 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 along with {@link PagedResponse}. + * @return a Log Analytics workspace table along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName, + public Response getWithResponse(String resourceGroupName, String workspaceName, String tableName, 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"; - Response res - = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, tableName, accept, context); } /** - * 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. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all the tables for the specified Log Analytics workspace as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName)); - } - - /** - * 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 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) - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public TableInner get(String resourceGroupName, String workspaceName, String tableName) { + return getWithResponse(resourceGroupName, workspaceName, tableName, Context.NONE).getValue(); } /** @@ -395,33 +308,12 @@ public PagedIterable listByWorkspace(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, parameters, accept, context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -440,37 +332,11 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) { - 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, parameters, accept, Context.NONE); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, Context.NONE); } /** @@ -489,37 +355,11 @@ private Response createOrUpdateWithResponse(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String tableName, TableInner parameters, 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, parameters, accept, context); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, context); } /** @@ -656,33 +496,12 @@ public TableInner createOrUpdate(String resourceGroupName, String workspaceName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, parameters, accept, context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -701,37 +520,11 @@ private Mono>> updateWithResponseAsync(String resource @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String workspaceName, String tableName, TableInner parameters) { - 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, parameters, accept, Context.NONE); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, Context.NONE); } /** @@ -750,37 +543,11 @@ private Response updateWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String workspaceName, String tableName, TableInner parameters, 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - if (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, parameters, accept, context); + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, contentType, accept, + parameters, context); } /** @@ -901,7 +668,7 @@ public TableInner update(String resourceGroupName, String workspaceName, String } /** - * 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. @@ -909,38 +676,19 @@ public TableInner update(String resourceGroupName, String workspaceName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics workspace table along with {@link Response} on successful completion of {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, String tableName) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. @@ -948,16 +696,16 @@ private Mono> getWithResponseAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics workspace table on successful completion of {@link Mono}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String workspaceName, String tableName) { - return getWithResponseAsync(resourceGroupName, workspaceName, tableName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Response deleteWithResponse(String resourceGroupName, String workspaceName, String tableName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, Context.NONE); } /** - * 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. @@ -966,40 +714,17 @@ private Mono getAsync(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics workspace table along with {@link Response}. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String workspaceName, String tableName, + private Response deleteWithResponse(String resourceGroupName, String workspaceName, String tableName, 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, 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. @@ -1007,11 +732,14 @@ public Response getWithResponse(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Log Analytics workspace table. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public TableInner get(String resourceGroupName, String workspaceName, String tableName) { - return getWithResponse(resourceGroupName, workspaceName, tableName, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String tableName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, tableName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -1023,34 +751,13 @@ public TableInner get(String resourceGroupName, String workspaceName, String tab * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String tableName) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response response = deleteWithResponse(resourceGroupName, workspaceName, tableName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** @@ -1059,38 +766,17 @@ private Mono>> deleteWithResponseAsync(String resource * @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 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 body along with {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String workspaceName, String tableName) { - 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, accept, Context.NONE); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String tableName, Context context) { + Response response = deleteWithResponse(resourceGroupName, workspaceName, tableName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); } /** @@ -1099,40 +785,15 @@ private Response deleteWithResponse(String resourceGroupName, String * @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 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 body along with {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String workspaceName, String tableName, - 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.deleteSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, accept, context); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String tableName) { + return beginDeleteAsync(resourceGroupName, workspaceName, tableName).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1144,14 +805,10 @@ private Response deleteWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, - String tableName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, tableName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String tableName) { + beginDelete(resourceGroupName, workspaceName, tableName).getFinalResult(); } /** @@ -1160,83 +817,130 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @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 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) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String tableName) { - Response response = deleteWithResponse(resourceGroupName, workspaceName, tableName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String workspaceName, String tableName, Context context) { + beginDelete(resourceGroupName, workspaceName, tableName, context).getFinalResult(); } /** - * 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 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 all the tables for the specified Log Analytics workspace along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, - String tableName, Context context) { - Response response = deleteWithResponse(resourceGroupName, workspaceName, tableName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 {@link Mono} that completes when a successful response is received. + * @return all the tables for the specified Log Analytics workspace as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String workspaceName, String tableName) { - return beginDeleteAsync(resourceGroupName, workspaceName, tableName).last() - .flatMap(this.client::getLroFinalResultOrError); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String tableName) { - beginDelete(resourceGroupName, workspaceName, tableName).getFinalResult(); + private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String workspaceName, String tableName, Context context) { - beginDelete(resourceGroupName, workspaceName, tableName, context).getFinalResult(); + private PagedResponse listByWorkspaceSinglePage(String resourceGroupName, String workspaceName, + Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the tables for the specified Log Analytics workspace as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName), + nextLink -> listByWorkspaceNextSinglePage(nextLink)); + } + + /** + * 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the tables for the specified Log Analytics workspace as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { + return new PagedIterable<>(() -> listByWorkspaceSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listByWorkspaceNextSinglePage(nextLink, context)); } /** @@ -1254,28 +958,9 @@ public void delete(String resourceGroupName, String workspaceName, String tableN @ServiceMethod(returns = ReturnType.SINGLE) private Mono> migrateWithResponseAsync(String resourceGroupName, String workspaceName, String tableName) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.migrate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, accept, context)) + .withContext(context -> service.migrate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1312,31 +997,8 @@ private Mono migrateAsync(String resourceGroupName, String workspaceName, @ServiceMethod(returns = ReturnType.SINGLE) public Response migrateWithResponse(String resourceGroupName, String workspaceName, String tableName, 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.migrateSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, accept, context); + return service.migrateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, context); } /** @@ -1369,28 +1031,9 @@ public void migrate(String resourceGroupName, String workspaceName, String table @ServiceMethod(returns = ReturnType.SINGLE) private Mono> cancelSearchWithResponseAsync(String resourceGroupName, String workspaceName, String tableName) { - 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.")); - } - if (tableName == null) { - return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.cancelSearch(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), tableName, accept, context)) + .withContext(context -> service.cancelSearch(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1426,31 +1069,8 @@ private Mono cancelSearchAsync(String resourceGroupName, String workspaceN @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelSearchWithResponse(String resourceGroupName, String workspaceName, String tableName, 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.")); - } - if (tableName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.cancelSearchSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), tableName, accept, context); + return service.cancelSearchSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, tableName, context); } /** @@ -1468,5 +1088,60 @@ public void cancelSearch(String resourceGroupName, String workspaceName, String cancelSearchWithResponse(resourceGroupName, workspaceName, tableName, Context.NONE); } - private static final ClientLogger LOGGER = new ClientLogger(TablesClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the tables for the specified Log Analytics workspace along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the tables for the specified Log Analytics workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return all the tables for the specified Log Analytics workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByWorkspaceNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByWorkspaceNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java index a7e733784501..06da2a5ce302 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java @@ -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; @@ -27,27 +27,12 @@ public TablesImpl(TablesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager())); - } - - public PagedIterable
listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner - = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager())); - } - public Response
getWithResponse(String resourceGroupName, String workspaceName, String tableName, Context context) { Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, tableName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new TableImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new TableImpl(inner.getValue(), this.manager())); } public Table get(String resourceGroupName, String workspaceName, String tableName) { @@ -67,6 +52,17 @@ public void delete(String resourceGroupName, String workspaceName, String tableN this.serviceClient().delete(resourceGroupName, workspaceName, tableName, context); } + public PagedIterable
listByWorkspace(String resourceGroupName, String workspaceName) { + PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager())); + } + + public PagedIterable
listByWorkspace(String resourceGroupName, String workspaceName, Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TableImpl(inner1, this.manager())); + } + public Response migrateWithResponse(String resourceGroupName, String workspaceName, String tableName, Context context) { return this.serviceClient().migrateWithResponse(resourceGroupName, workspaceName, tableName, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java index a2df50263124..985b1d784925 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.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/UsagesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java index 73b583fbb460..7665ef6a66b6 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java @@ -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; @@ -25,10 +25,9 @@ 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.UsagesClient; import com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListUsagesResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult; import reactor.core.publisher.Mono; /** @@ -59,26 +58,41 @@ public final class UsagesClientImpl implements UsagesClient { * The interface defining all the services for OperationalInsightsManagementClientUsages to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientUsages") public interface UsagesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @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("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** @@ -94,27 +108,12 @@ Response listSync(@HostParam("$host") String endpoint */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -130,7 +129,8 @@ private Mono> listSinglePageAsync(String resourc */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** @@ -145,29 +145,12 @@ private PagedFlux listAsync(String resourceGroupName, String w */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(String resourceGroupName, String workspaceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 res = service.listSync(this.client.getEndpoint(), resourceGroupName, - workspaceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -184,29 +167,12 @@ private PagedResponse listSinglePage(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listSinglePage(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 (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.")); - } - 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 res = service.listSync(this.client.getEndpoint(), resourceGroupName, - workspaceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + res.getValue().nextLink(), null); } /** @@ -221,7 +187,8 @@ private PagedResponse listSinglePage(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName)); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName), + nextLink -> listNextSinglePage(nextLink)); } /** @@ -237,8 +204,63 @@ public PagedIterable list(String resourceGroupName, String wor */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName, context)); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, workspaceName, context), + nextLink -> listNextSinglePage(nextLink, context)); } - private static final ClientLogger LOGGER = new ClientLogger(UsagesClientImpl.class); + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of usage metrics for a workspace along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of usage metrics for a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of usage metrics for a workspace along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java index 7f407c1013ca..1846a2891e58 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java @@ -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/WorkspaceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java index e140e047d854..c76b4863eb2d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.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; @@ -58,14 +58,14 @@ public Identity identity() { return this.innerModel().identity(); } - public SystemData systemData() { - return this.innerModel().systemData(); - } - public String etag() { return this.innerModel().etag(); } + public SystemData systemData() { + return this.innerModel().systemData(); + } + public WorkspaceEntityStatus provisioningState() { return this.innerModel().provisioningState(); } @@ -207,7 +207,7 @@ public Workspace apply(Context context) { 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.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); } @@ -227,6 +227,14 @@ public Workspace refresh(Context context) { return this; } + public void failback() { + serviceManager.workspaces().failback(resourceGroupName, workspaceName); + } + + public void failback(Context context) { + serviceManager.workspaces().failback(resourceGroupName, workspaceName, context); + } + public WorkspaceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java index 341e5de1b127..004ce9249dee 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.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/WorkspacePurgeStatusResponseImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java index 52f4cb40f218..3ec067df8bb9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.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/WorkspacePurgesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java index 5fc531cba2ee..ac13c4743e7e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.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; @@ -23,7 +23,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.WorkspacePurgesClient; import com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner; import com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner; @@ -60,45 +59,43 @@ public final class WorkspacePurgesClientImpl implements WorkspacePurgesClient { * The interface defining all the services for OperationalInsightsManagementClientWorkspacePurges to be used by the * proxy service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientWorkspacePurges") public interface WorkspacePurgesService { - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono purge(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, - @BodyParam("application/json") WorkspacePurgeBody body, @HeaderParam("Accept") String accept, - Context context); + Mono purge(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspacePurgeBody body, Context context); - @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - WorkspacePurgesPurgeResponse purgeSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, - @BodyParam("application/json") WorkspacePurgeBody body, @HeaderParam("Accept") String accept, - Context context); + WorkspacePurgesPurgeResponse purgeSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspacePurgeBody body, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getPurgeStatus(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, + Mono> getPurgeStatus(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("purgeId") String purgeId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getPurgeStatusSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, + Response getPurgeStatusSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("purgeId") String purgeId, @HeaderParam("Accept") String accept, Context context); } @@ -124,30 +121,11 @@ Response getPurgeStatusSync(@HostParam("$host @ServiceMethod(returns = ReturnType.SINGLE) private Mono purgeWithResponseAsync(String resourceGroupName, String workspaceName, WorkspacePurgeBody body) { - 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.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.purge(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), workspaceName, body, accept, context)) + .withContext(context -> service.purge(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, body, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -200,32 +178,10 @@ private Mono purgeAsync(String resourceGroupName, S @ServiceMethod(returns = ReturnType.SINGLE) public WorkspacePurgesPurgeResponse purgeWithResponse(String resourceGroupName, String workspaceName, WorkspacePurgeBody body, 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.")); - } - if (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } + final String contentType = "application/json"; final String accept = "application/json"; - return service.purgeSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), workspaceName, body, accept, context); + return service.purgeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, body, context); } /** @@ -267,28 +223,10 @@ public WorkspacePurgeResponseInner purge(String resourceGroupName, String worksp @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getPurgeStatusWithResponseAsync(String resourceGroupName, String workspaceName, String purgeId) { - 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.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (purgeId == null) { - return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getPurgeStatus(this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), this.client.getSubscriptionId(), workspaceName, purgeId, accept, context)) + .withContext(context -> service.getPurgeStatus(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, purgeId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -325,31 +263,9 @@ private Mono getPurgeStatusAsync(String resou @ServiceMethod(returns = ReturnType.SINGLE) public Response getPurgeStatusWithResponse(String resourceGroupName, String workspaceName, String purgeId, 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.")); - } - if (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (purgeId == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter purgeId is required and cannot be null.")); - } final String accept = "application/json"; - return service.getPurgeStatusSync(this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), - this.client.getSubscriptionId(), workspaceName, purgeId, accept, context); + return service.getPurgeStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, purgeId, accept, context); } /** @@ -368,6 +284,4 @@ public WorkspacePurgeStatusResponseInner getPurgeStatus(String resourceGroupName String purgeId) { return getPurgeStatusWithResponse(resourceGroupName, workspaceName, purgeId, Context.NONE).getValue(); } - - private static final ClientLogger LOGGER = new ClientLogger(WorkspacePurgesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java index ff579d3bfceb..2de7dd61547b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.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; @@ -55,12 +55,8 @@ public Response getPurgeStatusWithResponse(String String workspaceName, String purgeId, Context context) { Response inner = this.serviceClient().getPurgeStatusWithResponse(resourceGroupName, workspaceName, purgeId, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkspacePurgeStatusResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new WorkspacePurgeStatusResponseImpl(inner.getValue(), this.manager())); } public WorkspacePurgeStatusResponse getPurgeStatus(String resourceGroupName, String workspaceName, String purgeId) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java index 81ff2fb97155..964d4e06dc8f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.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; @@ -32,14 +32,13 @@ 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.WorkspacesClient; import com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner; import com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationListResult; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult; import com.azure.resourcemanager.loganalytics.models.WorkspacePatch; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -74,219 +73,245 @@ public final class WorkspacesClientImpl implements WorkspacesClient { * The interface defining all the services for OperationalInsightsManagementClientWorkspaces to be used by the proxy * service to perform REST calls. */ - @Host("{$host}") + @Host("{endpoint}") @ServiceInterface(name = "OperationalInsightsManagementClientWorkspaces") public interface WorkspacesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("$host") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("$host") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces") - @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); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces") - @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); - - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") WorkspaceInner parameters, @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspaceInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Put("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") WorkspaceInner parameters, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") - @ExpectedResponses({ 200, 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspaceInner parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") - @ExpectedResponses({ 200, 202, 204 }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @QueryParam("force") Boolean force, @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspacePatch parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response updateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkspacePatch parameters, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") - @ExpectedResponses({ 200 }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("$host") String endpoint, + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @QueryParam("force") Boolean force, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + 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("workspaceName") String workspaceName, + @QueryParam("force") Boolean force, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") WorkspacePatch parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Patch("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") WorkspacePatch parameters, @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/locations/{location}/workspaces/{workspaceName}/failover") - @ExpectedResponses({ 202 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> failover(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, - @PathParam("workspaceName") String workspaceName, @QueryParam("api-version") String apiVersion, + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/locations/{location}/workspaces/{workspaceName}/failover") - @ExpectedResponses({ 202 }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response failoverSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, - @PathParam("workspaceName") String workspaceName, @QueryParam("api-version") String apiVersion, + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/failback") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> failback(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Mono>> failback(@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); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/failback") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response failbackSync(@HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + Response failbackSync(@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); + Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNsp(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> getNsp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNspSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response getNspSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getNsp(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono> listNsp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getNspSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response listNspSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> reconcileNsp(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Mono>> reconcileNsp(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, - @HeaderParam("Accept") String accept, Context context); + Context context); - @Headers({ "Content-Type: application/json" }) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile") @ExpectedResponses({ 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response reconcileNspSync(@HostParam("$host") String endpoint, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + Response reconcileNspSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("networkSecurityPerimeterConfigurationName") String networkSecurityPerimeterConfigurationName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/locations/{location}/workspaces/{workspaceName}/failover") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> failover(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, + @PathParam("workspaceName") String workspaceName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/locations/{location}/workspaces/{workspaceName}/failover") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response failoverSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location, + @PathParam("workspaceName") String workspaceName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @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("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNspNext( - @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" }) @@ -294,267 +319,165 @@ Mono> listNspNext( @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Response listNspNextSync( - @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); } /** - * Gets the workspaces in a subscription. + * Gets a workspace instance. * + * @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 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 along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return a workspace instance along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - 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.")); - } + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String workspaceName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), - res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the workspaces in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workspaces in a subscription as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync()); - } - - /** - * Gets the workspaces in a subscription. + * Gets a workspace instance. * + * @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 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 along with {@link PagedResponse}. + * @return a workspace instance on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - 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.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); + private Mono getByResourceGroupAsync(String resourceGroupName, String workspaceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets the workspaces in a subscription. + * 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 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 along with {@link PagedResponse}. + * @return a workspace instance along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(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.")); - } + public Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, + Context context) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } - - /** - * Gets the workspaces in a subscription. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workspaces in a subscription as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage()); + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); } /** - * Gets the workspaces in a subscription. + * Gets a workspace instance. * - * @param context The context to associate with this operation. + * @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 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}. + * @return a workspace instance. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context)); + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName) { + return getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } /** - * Gets workspaces in a resource group. + * Create or update 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 create or update a workspace. * @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 workspaces in a resource group along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the top level Workspace resource container 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>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceInner parameters) { + final String contentType = "application/json"; 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(), null, null)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, parameters, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets workspaces 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 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 PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName)); - } - - /** - * Gets workspaces in a resource group. + * Create or update 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 create or update a workspace. * @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 workspaces in a resource group along with {@link PagedResponse}. + * @return the top level Workspace resource container 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.")); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + WorkspaceInner parameters) { + final String contentType = "application/json"; 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(), - null, null); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, parameters, + Context.NONE); } /** - * Gets workspaces in a resource group. + * Create or update 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 create or update a workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspaces in a resource group along with {@link PagedResponse}. + * @return the top level Workspace resource container along with {@link Response}. */ @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.")); - } + private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + WorkspaceInner parameters, Context context) { + final String contentType = "application/json"; final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - null, null); - } - - /** - * Gets workspaces 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 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}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName)); + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, parameters, + context); } /** - * Gets workspaces in a resource group. + * Create or update a workspace. * * @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. + * @param parameters The parameters required to create or update a workspace. * @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 workspaces in a resource group as paginated response with {@link PagedIterable}. + * @return the {@link PollerFlux} for polling of the top level Workspace resource container. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context)); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync(String resourceGroupName, + String workspaceName, WorkspaceInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); } /** @@ -566,37 +489,14 @@ public PagedIterable listByResourceGroup(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Workspace resource container along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link SyncPoller} for polling of the top level Workspace resource container. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response response = createOrUpdateWithResponse(resourceGroupName, workspaceName, parameters); + return this.client.getLroResult(response, WorkspaceInner.class, + WorkspaceInner.class, Context.NONE); } /** @@ -605,41 +505,19 @@ private Mono>> createOrUpdateWithResponseAsync(String * @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 create or update a workspace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Workspace resource container along with {@link Response}. + * @return the {@link SyncPoller} for polling of the top level Workspace resource container. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, - WorkspaceInner parameters) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, Context.NONE); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, WorkspaceInner parameters, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, workspaceName, parameters, context); + return this.client.getLroResult(response, WorkspaceInner.class, + WorkspaceInner.class, context); } /** @@ -648,42 +526,16 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @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 create or update a workspace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Workspace resource container along with {@link Response}. + * @return the top level Workspace resource container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, - WorkspaceInner parameters, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -695,15 +547,11 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of the top level Workspace resource container. + * @return the top level Workspace resource container. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync(String resourceGroupName, - String workspaceName, WorkspaceInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, parameters); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters) { + return beginCreateOrUpdate(resourceGroupName, workspaceName, parameters).getFinalResult(); } /** @@ -712,90 +560,96 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda * @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 create or update a workspace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the top level Workspace resource container. + * @return the top level Workspace resource container. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, WorkspaceInner parameters) { - Response response = createOrUpdateWithResponse(resourceGroupName, workspaceName, parameters); - return this.client.getLroResult(response, WorkspaceInner.class, - WorkspaceInner.class, Context.NONE); + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters, + Context context) { + return beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, context).getFinalResult(); } /** - * Create or update a workspace. + * 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 create or update a workspace. - * @param context The context to associate with this operation. + * @param parameters The parameters required to patch a workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of the top level Workspace resource container. + * @return the top level Workspace resource container along with {@link Response} on successful completion of + * {@link Mono}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, - String workspaceName, WorkspaceInner parameters, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, workspaceName, parameters, context); - return this.client.getLroResult(response, WorkspaceInner.class, - WorkspaceInner.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + WorkspacePatch parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Create or update a workspace. + * 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 create or update a workspace. + * @param parameters The parameters required to patch a workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the top level Workspace resource container on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, - WorkspaceInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateAsync(String resourceGroupName, String workspaceName, + WorkspacePatch parameters) { + return updateWithResponseAsync(resourceGroupName, workspaceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Create or update a workspace. + * 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 create or update a 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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Workspace resource container. + * @return the top level Workspace resource container along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters) { - return beginCreateOrUpdate(resourceGroupName, workspaceName, parameters).getFinalResult(); + public Response updateWithResponse(String resourceGroupName, String workspaceName, + WorkspacePatch parameters, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, contentType, accept, parameters, + context); } /** - * Create or update a workspace. + * 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 create or update a workspace. - * @param context The context to associate with this operation. + * @param parameters The parameters required to patch a workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the top level Workspace resource container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters, - Context context) { - return beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, context).getFinalResult(); + public WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatch parameters) { + return updateWithResponse(resourceGroupName, workspaceName, parameters, Context.NONE).getValue(); } /** @@ -815,25 +669,9 @@ public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceN @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, Boolean force) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName 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.")); - } - final String accept = "application/json"; return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), force, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, force, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -853,27 +691,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String workspaceName, Boolean force) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), force, accept, Context.NONE); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, force, Context.NONE); } /** @@ -894,27 +713,8 @@ private Response deleteWithResponse(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) private Response deleteWithResponse(String resourceGroupName, String workspaceName, Boolean force, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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"; - return service.deleteSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), force, accept, context); + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, force, context); } /** @@ -1097,487 +897,197 @@ public void delete(String resourceGroupName, String workspaceName, Boolean force } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace instance along with {@link Response} on successful completion of {@link Mono}. + * @return workspaces in a resource group along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, - workspaceName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace instance on successful completion of {@link Mono}. + * @return workspaces in a resource group as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String workspaceName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** - * 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 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 along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - } - - /** - * Gets a workspace instance. - * - * @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 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName) { - return getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Updates a workspace. + * 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 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 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} on successful completion of - * {@link Mono}. + * @return workspaces in a resource group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, - WorkspacePatch parameters) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName 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 (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Updates a workspace. + * 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 parameters The parameters required to patch a workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the top level Workspace resource container on successful completion of {@link Mono}. + * @return workspaces in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String workspaceName, - WorkspacePatch parameters) { - return updateWithResponseAsync(resourceGroupName, workspaceName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); } /** - * Updates a workspace. + * 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 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 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) - public Response updateWithResponse(String resourceGroupName, String workspaceName, - WorkspacePatch parameters, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (parameters == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, 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 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 workspaces in a resource group as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatch parameters) { - return updateWithResponse(resourceGroupName, workspaceName, parameters, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } /** - * 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. + * Gets the workspaces in a subscription. * - * @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 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} on successful completion of {@link Mono}. + * @return the workspaces in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> failoverWithResponseAsync(String resourceGroupName, String location, - 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 (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } + private Mono> listSinglePageAsync() { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.failover(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, location, workspaceName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), 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)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 name of the Azure region. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response failoverWithResponse(String resourceGroupName, String location, String workspaceName) { - 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 (location == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter location 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.failoverSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - location, workspaceName, this.client.getApiVersion(), accept, Context.NONE); - } - - /** - * 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 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. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response failoverWithResponse(String resourceGroupName, String location, 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 (location == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter location 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.failoverSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - location, workspaceName, this.client.getApiVersion(), accept, context); - } - - /** - * 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 name of the Azure region. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginFailoverAsync(String resourceGroupName, String location, - String workspaceName) { - Mono>> mono = failoverWithResponseAsync(resourceGroupName, location, workspaceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * 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 name of the Azure region. - * @param workspaceName The name of the workspace. - * @throws IllegalArgumentException thrown if parameters fail the validation. + * Gets the workspaces in a subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the workspaces in a subscription as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginFailover(String resourceGroupName, String location, - String workspaceName) { - Response response = failoverWithResponse(resourceGroupName, location, workspaceName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * 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. + * Gets the workspaces in a subscription. * - * @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. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the workspaces in a subscription along with {@link PagedResponse}. */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginFailover(String resourceGroupName, String location, - String workspaceName, Context context) { - Response response = failoverWithResponse(resourceGroupName, location, workspaceName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), 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); } /** - * 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. + * Gets the workspaces in a subscription. * - * @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. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the workspaces in a subscription along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono failoverAsync(String resourceGroupName, String location, String workspaceName) { - return beginFailoverAsync(resourceGroupName, location, workspaceName).last() - .flatMap(this.client::getLroFinalResultOrError); + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * 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. + * Gets the workspaces in a subscription. * - * @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 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.SINGLE) - public void failover(String resourceGroupName, String location, String workspaceName) { - beginFailover(resourceGroupName, location, workspaceName).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink)); } /** - * 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. + * Gets the workspaces in a subscription. * - * @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. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the workspaces in a subscription as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void failover(String resourceGroupName, String location, String workspaceName, Context context) { - beginFailover(resourceGroupName, location, workspaceName, context).getFinalResult(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -1595,25 +1105,9 @@ public void failover(String resourceGroupName, String location, String workspace */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> failbackWithResponseAsync(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.failback(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, workspaceName, this.client.getApiVersion(), accept, context)) + .withContext(context -> service.failback(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1632,27 +1126,8 @@ private Mono>> failbackWithResponseAsync(String resour */ @ServiceMethod(returns = ReturnType.SINGLE) private Response failbackWithResponse(String resourceGroupName, String workspaceName) { - 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.failbackSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, Context.NONE); + return service.failbackSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, Context.NONE); } /** @@ -1671,27 +1146,8 @@ private Response failbackWithResponse(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) private Response failbackWithResponse(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.failbackSync(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - workspaceName, this.client.getApiVersion(), accept, context); + return service.failbackSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, context); } /** @@ -1808,6 +1264,86 @@ public void failback(String resourceGroupName, String workspaceName, Context con beginFailback(resourceGroupName, workspaceName, context).getFinalResult(); } + /** + * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network security perimeter configuration along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getNspWithResponseAsync(String resourceGroupName, + String workspaceName, String networkSecurityPerimeterConfigurationName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getNsp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network security perimeter configuration on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getNspAsync(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + return getNspWithResponseAsync(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * 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 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) + public Response getNspWithResponse(String resourceGroupName, + String workspaceName, String networkSecurityPerimeterConfigurationName, Context context) { + final String accept = "application/json"; + return service.getNspSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, accept, context); + } + + /** + * 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a network security perimeter configuration. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityPerimeterConfigurationInner getNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + return getNspWithResponse(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, + Context.NONE).getValue(); + } + /** * Gets a list of NSP configurations for specified workspace. * @@ -1822,25 +1358,10 @@ public void failback(String resourceGroupName, String workspaceName, Context con @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNspSinglePageAsync(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 (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.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listNsp(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .withContext(context -> service.listNsp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) @@ -1877,28 +1398,10 @@ private PagedFlux listNspAsync(Strin @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNspSinglePage(String resourceGroupName, String workspaceName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 res - = service.listNspSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + = service.listNspSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1917,28 +1420,10 @@ private PagedResponse listNspSingleP @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNspSinglePage(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 (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.")); - } - 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 res - = service.listNspSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + = service.listNspSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1979,7 +1464,7 @@ public PagedIterable listNsp(String } /** - * 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. @@ -1987,41 +1472,118 @@ public PagedIterable listNsp(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network security perimeter configuration along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> reconcileNspWithResponseAsync(String resourceGroupName, + String workspaceName, String networkSecurityPerimeterConfigurationName) { + return FluxUtil + .withContext(context -> service.reconcileNsp(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * 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 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response reconcileNspWithResponse(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + return service.reconcileNspSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, Context.NONE); + } + + /** + * 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 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 body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response reconcileNspWithResponse(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName, Context context) { + return service.reconcileNspSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, context); + } + + /** + * 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 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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginReconcileNspAsync(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + Mono>> mono = reconcileNspWithResponseAsync(resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * 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 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) + public SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + Response response + = reconcileNspWithResponse(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * 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 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.SINGLE) - private Mono> getNspWithResponseAsync(String resourceGroupName, - String workspaceName, String networkSecurityPerimeterConfigurationName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName 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 (networkSecurityPerimeterConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter networkSecurityPerimeterConfigurationName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getNsp(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), networkSecurityPerimeterConfigurationName, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName, Context context) { + Response response = reconcileNspWithResponse(resourceGroupName, workspaceName, + networkSecurityPerimeterConfigurationName, context); + return this.client.getLroResult(response, Void.class, Void.class, 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. @@ -2029,167 +1591,105 @@ private Mono> getNspWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a network security perimeter configuration on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getNspAsync(String resourceGroupName, String workspaceName, + private Mono reconcileNspAsync(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) { - return getNspWithResponseAsync(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return beginReconcileNspAsync(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * 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 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) - public Response getNspWithResponse(String resourceGroupName, - String workspaceName, String networkSecurityPerimeterConfigurationName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (networkSecurityPerimeterConfigurationName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter networkSecurityPerimeterConfigurationName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getNspSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), networkSecurityPerimeterConfigurationName, - accept, context); + public void reconcileNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName) { + beginReconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName).getFinalResult(); } /** - * 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 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) - public NetworkSecurityPerimeterConfigurationInner getNsp(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - return getNspWithResponse(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, - Context.NONE).getValue(); + public void reconcileNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName, Context context) { + beginReconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, context) + .getFinalResult(); } /** - * 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 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> reconcileNspWithResponseAsync(String resourceGroupName, - String workspaceName, String networkSecurityPerimeterConfigurationName) { - 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 (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName 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 (networkSecurityPerimeterConfigurationName == null) { - return Mono.error(new IllegalArgumentException( - "Parameter networkSecurityPerimeterConfigurationName is required and cannot be null.")); - } - final String accept = "application/json"; + private Mono>> failoverWithResponseAsync(String resourceGroupName, String location, + String workspaceName) { return FluxUtil - .withContext(context -> service.reconcileNsp(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), networkSecurityPerimeterConfigurationName, - accept, context)) + .withContext(context -> service.failover(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, location, workspaceName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 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 body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response reconcileNspWithResponse(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (networkSecurityPerimeterConfigurationName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter networkSecurityPerimeterConfigurationName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.reconcileNspSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), networkSecurityPerimeterConfigurationName, - accept, Context.NONE); + private Response failoverWithResponse(String resourceGroupName, String location, String workspaceName) { + return service.failoverSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, location, workspaceName, Context.NONE); } /** - * 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 ManagementException thrown if the request is rejected by server. @@ -2197,82 +1697,67 @@ private Response reconcileNspWithResponse(String resourceGroupName, * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response reconcileNspWithResponse(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName, 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 (workspaceName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter workspaceName 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 (networkSecurityPerimeterConfigurationName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter networkSecurityPerimeterConfigurationName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.reconcileNspSync(this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), this.client.getSubscriptionId(), networkSecurityPerimeterConfigurationName, - accept, context); + private Response failoverWithResponse(String resourceGroupName, String location, String workspaceName, + Context context) { + return service.failoverSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, location, workspaceName, 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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginReconcileNspAsync(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - Mono>> mono = reconcileNspWithResponseAsync(resourceGroupName, workspaceName, - networkSecurityPerimeterConfigurationName); + private PollerFlux, Void> beginFailoverAsync(String resourceGroupName, String location, + String workspaceName) { + Mono>> mono = failoverWithResponseAsync(resourceGroupName, location, workspaceName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * 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 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) - public SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - Response response - = reconcileNspWithResponse(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName); + public SyncPoller, Void> beginFailover(String resourceGroupName, String location, + String workspaceName) { + Response response = failoverWithResponse(resourceGroupName, location, workspaceName); return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * 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 ManagementException thrown if the request is rejected by server. @@ -2280,64 +1765,182 @@ public SyncPoller, Void> beginReconcileNsp(String resourceGroup * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginReconcileNsp(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName, Context context) { - Response response = reconcileNspWithResponse(resourceGroupName, workspaceName, - networkSecurityPerimeterConfigurationName, context); + public SyncPoller, Void> beginFailover(String resourceGroupName, String location, + String workspaceName, Context context) { + Response response = failoverWithResponse(resourceGroupName, location, workspaceName, context); return this.client.getLroResult(response, Void.class, Void.class, 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 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 {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono reconcileNspAsync(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - return beginReconcileNspAsync(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName) - .last() + private Mono failoverAsync(String resourceGroupName, String location, String workspaceName) { + return beginFailoverAsync(resourceGroupName, location, workspaceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * 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 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) - public void reconcileNsp(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName) { - beginReconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName).getFinalResult(); + public void failover(String resourceGroupName, String location, String workspaceName) { + beginFailover(resourceGroupName, location, workspaceName).getFinalResult(); } /** - * 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 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) - public void reconcileNsp(String resourceGroupName, String workspaceName, - String networkSecurityPerimeterConfigurationName, Context context) { - beginReconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, context) - .getFinalResult(); + public void failover(String resourceGroupName, String location, String workspaceName, Context context) { + beginFailover(resourceGroupName, location, workspaceName, context).getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 workspaces in a resource group along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 workspaces in a resource group along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 workspaces in a resource group along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the workspaces in a subscription along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the workspaces in a subscription along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the workspaces in a subscription along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** @@ -2353,13 +1956,6 @@ public void reconcileNsp(String resourceGroupName, String workspaceName, @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNspNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNspNext(nextLink, this.client.getEndpoint(), accept, context)) @@ -2380,15 +1976,6 @@ public void reconcileNsp(String resourceGroupName, String workspaceName, */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNspNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNspNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); @@ -2409,21 +1996,10 @@ private PagedResponse listNspNextSin @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listNspNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } final String accept = "application/json"; Response res = service.listNspNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - private static final ClientLogger LOGGER = new ClientLogger(WorkspacesClientImpl.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java index 7bc2e96fe454..54a02cacf5c2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.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; @@ -29,24 +29,21 @@ public WorkspacesImpl(WorkspacesClient innerClient, this.serviceManager = serviceManager; } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + public Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new WorkspaceImpl(inner.getValue(), this.manager())); } - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + public Workspace getByResourceGroup(String resourceGroupName, String workspaceName) { + WorkspaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, workspaceName); + if (inner != null) { + return new WorkspaceImpl(inner, this.manager()); + } else { + return null; + } } public void delete(String resourceGroupName, String workspaceName) { @@ -57,33 +54,24 @@ public void delete(String resourceGroupName, String workspaceName, Boolean force this.serviceClient().delete(resourceGroupName, workspaceName, force, context); } - public Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, - Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new WorkspaceImpl(inner.getValue(), this.manager())); - } else { - return null; - } + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } - public Workspace getByResourceGroup(String resourceGroupName, String workspaceName) { - WorkspaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, workspaceName); - if (inner != null) { - return new WorkspaceImpl(inner, this.manager()); - } else { - return null; - } + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } - public void failover(String resourceGroupName, String location, String workspaceName) { - this.serviceClient().failover(resourceGroupName, location, workspaceName); + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } - public void failover(String resourceGroupName, String location, String workspaceName, Context context) { - this.serviceClient().failover(resourceGroupName, location, workspaceName, context); + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } public void failback(String resourceGroupName, String workspaceName) { @@ -94,32 +82,12 @@ public void failback(String resourceGroupName, String workspaceName, Context con this.serviceClient().failback(resourceGroupName, workspaceName, context); } - public PagedIterable listNsp(String resourceGroupName, - String workspaceName) { - PagedIterable inner - = this.serviceClient().listNsp(resourceGroupName, workspaceName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); - } - - public PagedIterable listNsp(String resourceGroupName, String workspaceName, - Context context) { - PagedIterable inner - = this.serviceClient().listNsp(resourceGroupName, workspaceName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); - } - public Response getNspWithResponse(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, Context context) { Response inner = this.serviceClient() .getNspWithResponse(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new NetworkSecurityPerimeterConfigurationImpl(inner.getValue(), this.manager())); - } else { - return null; - } + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new NetworkSecurityPerimeterConfigurationImpl(inner.getValue(), this.manager())); } public NetworkSecurityPerimeterConfiguration getNsp(String resourceGroupName, String workspaceName, @@ -133,6 +101,22 @@ public NetworkSecurityPerimeterConfiguration getNsp(String resourceGroupName, St } } + public PagedIterable listNsp(String resourceGroupName, + String workspaceName) { + PagedIterable inner + = this.serviceClient().listNsp(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); + } + + public PagedIterable listNsp(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listNsp(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); + } + public void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) { this.serviceClient().reconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName); @@ -144,11 +128,19 @@ public void reconcileNsp(String resourceGroupName, String workspaceName, .reconcileNsp(resourceGroupName, workspaceName, networkSecurityPerimeterConfigurationName, context); } + public void failover(String resourceGroupName, String location, String workspaceName) { + this.serviceClient().failover(resourceGroupName, location, workspaceName); + } + + public void failover(String resourceGroupName, String location, String workspaceName, Context context) { + this.serviceClient().failover(resourceGroupName, location, workspaceName, context); + } + public Workspace getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -159,10 +151,10 @@ public Workspace getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -173,10 +165,10 @@ public Response getByIdWithResponse(String id, Context context) { } public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { @@ -188,10 +180,10 @@ public void deleteById(String id) { } public void deleteByIdWithResponse(String id, Boolean force, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourcegroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourcegroups'.", id))); + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java similarity index 62% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java index f6955e575522..3af7d2fa5399 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,48 +14,28 @@ import java.util.List; /** - * The list clusters operation response. + * The response of a Cluster list operation. */ -@Fluent +@Immutable public final class ClusterListResult implements JsonSerializable { /* - * The link used to get the next page of recommendations. + * The Cluster items on this page */ - private String nextLink; + private List value; /* - * A list of Log Analytics clusters. + * The link to the next page of items */ - private List value; + private String nextLink; /** * Creates an instance of ClusterListResult class. */ - public ClusterListResult() { + private ClusterListResult() { } /** - * Get the nextLink property: The link used to get the next page of recommendations. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The link used to get the next page of recommendations. - * - * @param nextLink the nextLink value to set. - * @return the ClusterListResult object itself. - */ - public ClusterListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Get the value property: A list of Log Analytics clusters. + * Get the value property: The Cluster items on this page. * * @return the value value. */ @@ -64,25 +44,12 @@ public List value() { } /** - * Set the value property: A list of Log Analytics clusters. - * - * @param value the value value to set. - * @return the ClusterListResult object itself. - */ - public ClusterListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The link to the next page of items. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -91,8 +58,8 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); - jsonWriter.writeStringField("nextLink", this.nextLink); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -102,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ClusterListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ClusterListResult. */ public static ClusterListResult fromJson(JsonReader jsonReader) throws IOException { @@ -111,11 +79,11 @@ public static ClusterListResult fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("nextLink".equals(fieldName)) { - deserializedClusterListResult.nextLink = reader.getString(); - } else if ("value".equals(fieldName)) { + if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> ClusterInner.fromJson(reader1)); deserializedClusterListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedClusterListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExportListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java similarity index 76% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExportListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java index b72acce21f3e..b305abfb3e34 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExportListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * Result of the request to list data exports. */ -@Fluent +@Immutable public final class DataExportListResult implements JsonSerializable { /* * List of data export instances within a workspace.. */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of DataExportListResult class. */ - public DataExportListResult() { + private DataExportListResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: List of data export instances within a workspace.. - * - * @param value the value value to set. - * @return the DataExportListResult object itself. - */ - public DataExportListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -88,6 +81,8 @@ public static DataExportListResult fromJson(JsonReader jsonReader) throws IOExce if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> DataExportInner.fromJson(reader1)); deserializedDataExportListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedDataExportListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java similarity index 65% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java index b2e89e2c7bcf..1651733a706c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,28 +14,28 @@ import java.util.List; /** - * The list data source by workspace operation response. + * The response of a DataSource list operation. */ -@Fluent +@Immutable public final class DataSourceListResult implements JsonSerializable { /* - * A list of datasources. + * The DataSource items on this page */ private List value; /* - * The link (url) to the next page of datasources. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of DataSourceListResult class. */ - public DataSourceListResult() { + private DataSourceListResult() { } /** - * Get the value property: A list of datasources. + * Get the value property: The DataSource items on this page. * * @return the value value. */ @@ -44,18 +44,7 @@ public List value() { } /** - * Set the value property: A list of datasources. - * - * @param value the value value to set. - * @return the DataSourceListResult object itself. - */ - public DataSourceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The link (url) to the next page of datasources. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,28 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link (url) to the next page of datasources. - * - * @param nextLink the nextLink value to set. - * @return the DataSourceListResult object itself. - */ - public DataSourceListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - 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} */ @@ -102,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of DataSourceListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the DataSourceListResult. */ public static DataSourceListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java similarity index 76% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java index b96da1661d7d..4a14cf51fde1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * The list linked service operation response. */ -@Fluent +@Immutable public final class LinkedServiceListResult implements JsonSerializable { /* * The list of linked service instances */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of LinkedServiceListResult class. */ - public LinkedServiceListResult() { + private LinkedServiceListResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: The list of linked service instances. - * - * @param value the value value to set. - * @return the LinkedServiceListResult object itself. - */ - public LinkedServiceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -88,6 +81,8 @@ public static LinkedServiceListResult fromJson(JsonReader jsonReader) throws IOE if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> LinkedServiceInner.fromJson(reader1)); deserializedLinkedServiceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedLinkedServiceListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java similarity index 77% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java index afd6af066c44..30058a0dea22 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * The list linked storage accounts service operation response. */ -@Fluent +@Immutable public final class LinkedStorageAccountsListResult implements JsonSerializable { /* * A list of linked storage accounts instances. */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of LinkedStorageAccountsListResult class. */ - public LinkedStorageAccountsListResult() { + private LinkedStorageAccountsListResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: A list of linked storage accounts instances. - * - * @param value the value value to set. - * @return the LinkedStorageAccountsListResult object itself. - */ - public LinkedStorageAccountsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +83,8 @@ public static LinkedStorageAccountsListResult fromJson(JsonReader jsonReader) th List value = reader.readArray(reader1 -> LinkedStorageAccountsResourceInner.fromJson(reader1)); deserializedLinkedStorageAccountsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedLinkedStorageAccountsListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java similarity index 58% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java index beb8e62bc225..037d17e6f72f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,29 +14,28 @@ import java.util.List; /** - * Describes the list of Log Analytics QueryPack resources. + * The response of a LogAnalyticsQueryPack list operation. */ -@Fluent +@Immutable public final class LogAnalyticsQueryPackListResult implements JsonSerializable { /* - * List of Log Analytics QueryPack definitions. + * The LogAnalyticsQueryPack items on this page */ private List value; /* - * The URI to get the next set of Log Analytics QueryPack definitions if too many QueryPacks where returned in the - * result set. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LogAnalyticsQueryPackListResult class. */ - public LogAnalyticsQueryPackListResult() { + private LogAnalyticsQueryPackListResult() { } /** - * Get the value property: List of Log Analytics QueryPack definitions. + * Get the value property: The LogAnalyticsQueryPack items on this page. * * @return the value value. */ @@ -46,19 +44,7 @@ public List value() { } /** - * Set the value property: List of Log Analytics QueryPack definitions. - * - * @param value the value value to set. - * @return the LogAnalyticsQueryPackListResult object itself. - */ - public LogAnalyticsQueryPackListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URI to get the next set of Log Analytics QueryPack definitions if too many - * QueryPacks where returned in the result set. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -66,35 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URI to get the next set of Log Analytics QueryPack definitions if too many - * QueryPacks where returned in the result set. - * - * @param nextLink the nextLink value to set. - * @return the LogAnalyticsQueryPackListResult object itself. - */ - public LogAnalyticsQueryPackListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model LogAnalyticsQueryPackListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java similarity index 58% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java index 62ed71f7de46..7d6fb9a61507 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,30 +14,29 @@ import java.util.List; /** - * Describes the list of Log Analytics QueryPack-Query resources. + * The response of a LogAnalyticsQueryPackQuery list operation. */ -@Fluent +@Immutable public final class LogAnalyticsQueryPackQueryListResult implements JsonSerializable { /* - * List of Log Analytics QueryPack Query definitions. + * The LogAnalyticsQueryPackQuery items on this page */ private List value; /* - * The URI to get the next set of Log Analytics QueryPack definitions if too many QueryPack-Queries where returned - * in the result set. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of LogAnalyticsQueryPackQueryListResult class. */ - public LogAnalyticsQueryPackQueryListResult() { + private LogAnalyticsQueryPackQueryListResult() { } /** - * Get the value property: List of Log Analytics QueryPack Query definitions. + * Get the value property: The LogAnalyticsQueryPackQuery items on this page. * * @return the value value. */ @@ -47,19 +45,7 @@ public List value() { } /** - * Set the value property: List of Log Analytics QueryPack Query definitions. - * - * @param value the value value to set. - * @return the LogAnalyticsQueryPackQueryListResult object itself. - */ - public LogAnalyticsQueryPackQueryListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URI to get the next set of Log Analytics QueryPack definitions if too many - * QueryPack-Queries where returned in the result set. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -67,35 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The URI to get the next set of Log Analytics QueryPack definitions if too many - * QueryPack-Queries where returned in the result set. - * - * @param nextLink the nextLink value to set. - * @return the LogAnalyticsQueryPackQueryListResult object itself. - */ - public LogAnalyticsQueryPackQueryListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model LogAnalyticsQueryPackQueryListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(LogAnalyticsQueryPackQueryListResult.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java similarity index 73% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java index 613196535fd8..a6c9405d0408 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,7 +16,7 @@ /** * Result of a list NSP (network security perimeter) configurations request. */ -@Fluent +@Immutable public final class NetworkSecurityPerimeterConfigurationListResult implements JsonSerializable { /* @@ -32,7 +32,7 @@ public final class NetworkSecurityPerimeterConfigurationListResult /** * Creates an instance of NetworkSecurityPerimeterConfigurationListResult class. */ - public NetworkSecurityPerimeterConfigurationListResult() { + private NetworkSecurityPerimeterConfigurationListResult() { } /** @@ -44,18 +44,6 @@ public List value() { return this.value; } - /** - * Set the value property: Array of network security perimeter results. - * - * @param value the value value to set. - * @return the NetworkSecurityPerimeterConfigurationListResult object itself. - */ - public NetworkSecurityPerimeterConfigurationListResult - withValue(List value) { - this.value = value; - return this; - } - /** * Get the nextLink property: The link used to get the next page of results. * @@ -65,28 +53,6 @@ public String nextLink() { return this.nextLink; } - /** - * Set the nextLink property: The link used to get the next page of results. - * - * @param nextLink the nextLink value to set. - * @return the NetworkSecurityPerimeterConfigurationListResult object itself. - */ - public NetworkSecurityPerimeterConfigurationListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - 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/models/OperationListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java similarity index 66% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java index 51713468a9bb..ea09204defa2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,28 +14,28 @@ import java.util.List; /** - * Result of the request to list solution operations. + * Paged collection of Operation items. */ -@Fluent +@Immutable public final class OperationListResult implements JsonSerializable { /* - * List of solution operations supported by the OperationsManagement resource provider. + * The Operation items on this page */ private List value; /* - * URL to get the next set of operation list results if there are any. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of OperationListResult class. */ - public OperationListResult() { + private OperationListResult() { } /** - * Get the value property: List of solution operations supported by the OperationsManagement resource provider. + * Get the value property: The Operation items on this page. * * @return the value value. */ @@ -44,18 +44,7 @@ public List value() { } /** - * Set the value property: List of solution operations supported by the OperationsManagement resource provider. - * - * @param value the value value to set. - * @return the OperationListResult object itself. - */ - public OperationListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to get the next set of operation list results if there are any. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,17 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ @@ -81,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the OperationListResult. */ public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java similarity index 72% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java index cc4bca2d12da..69dddf7b4f80 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,7 +16,7 @@ /** * The list storage insights operation response. */ -@Fluent +@Immutable public final class StorageInsightListResult implements JsonSerializable { /* * A list of storage insight items. @@ -31,7 +31,7 @@ public final class StorageInsightListResult implements JsonSerializable value() { return this.value; } - /** - * Set the value property: A list of storage insight items. - * - * @param value the value value to set. - * @return the StorageInsightListResult object itself. - */ - public StorageInsightListResult withValue(List value) { - this.value = value; - return this; - } - /** * Get the odataNextLink property: The link (url) to the next page of results. * @@ -63,28 +52,6 @@ public String odataNextLink() { return this.odataNextLink; } - /** - * Set the odataNextLink property: The link (url) to the next page of results. - * - * @param odataNextLink the odataNextLink value to set. - * @return the StorageInsightListResult object itself. - */ - public StorageInsightListResult withOdataNextLink(String odataNextLink) { - this.odataNextLink = odataNextLink; - 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/models/SummaryLogsListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java similarity index 70% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java index ddae71e9904c..23d697bb9a68 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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,28 +14,28 @@ import java.util.List; /** - * The list Summary rule operation response. + * The response of a SummaryLogs list operation. */ -@Fluent +@Immutable public final class SummaryLogsListResult implements JsonSerializable { /* - * A list of Summary rules. + * The SummaryLogs items on this page */ private List value; /* - * URL to retrieve the next set of operation list results, if available. + * The link to the next page of items */ private String nextLink; /** * Creates an instance of SummaryLogsListResult class. */ - public SummaryLogsListResult() { + private SummaryLogsListResult() { } /** - * Get the value property: A list of Summary rules. + * Get the value property: The SummaryLogs items on this page. * * @return the value value. */ @@ -44,18 +44,7 @@ public List value() { } /** - * Set the value property: A list of Summary rules. - * - * @param value the value value to set. - * @return the SummaryLogsListResult object itself. - */ - public SummaryLogsListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: URL to retrieve the next set of operation list results, if available. + * Get the nextLink property: The link to the next page of items. * * @return the nextLink value. */ @@ -63,17 +52,6 @@ public String nextLink() { return this.nextLink; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ @@ -81,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -90,6 +69,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of SummaryLogsListResult if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the SummaryLogsListResult. */ public static SummaryLogsListResult fromJson(JsonReader jsonReader) throws IOException { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablesListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java similarity index 76% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablesListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java index 20a23cd81b3e..5680194e7281 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablesListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * The list tables operation response. */ -@Fluent +@Immutable public final class TablesListResult implements JsonSerializable { /* * A list of data tables. */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of TablesListResult class. */ - public TablesListResult() { + private TablesListResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: A list of data tables. - * - * @param value the value value to set. - * @return the TablesListResult object itself. - */ - public TablesListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -88,6 +81,8 @@ public static TablesListResult fromJson(JsonReader jsonReader) throws IOExceptio if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> TableInner.fromJson(reader1)); deserializedTablesListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedTablesListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListManagementGroupsResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java similarity index 77% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListManagementGroupsResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java index efd51127a3f3..7de5053d9bde 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListManagementGroupsResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,7 +16,7 @@ /** * The list workspace management groups operation response. */ -@Fluent +@Immutable public final class WorkspaceListManagementGroupsResult implements JsonSerializable { /* @@ -24,10 +24,15 @@ public final class WorkspaceListManagementGroupsResult */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of WorkspaceListManagementGroupsResult class. */ - public WorkspaceListManagementGroupsResult() { + private WorkspaceListManagementGroupsResult() { } /** @@ -40,25 +45,12 @@ public List value() { } /** - * Set the value property: Gets or sets a list of management groups attached to the workspace. - * - * @param value the value value to set. - * @return the WorkspaceListManagementGroupsResult object itself. - */ - public WorkspaceListManagementGroupsResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -68,6 +60,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -91,6 +84,8 @@ public static WorkspaceListManagementGroupsResult fromJson(JsonReader jsonReader List value = reader.readArray(reader1 -> ManagementGroupInner.fromJson(reader1)); deserializedWorkspaceListManagementGroupsResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedWorkspaceListManagementGroupsResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java similarity index 76% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java index cc72854c0cbd..33e9f5f0cfef 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * The list workspaces operation response. */ -@Fluent +@Immutable public final class WorkspaceListResult implements JsonSerializable { /* * A list of workspaces. */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of WorkspaceListResult class. */ - public WorkspaceListResult() { + private WorkspaceListResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: A list of workspaces. - * - * @param value the value value to set. - * @return the WorkspaceListResult object itself. - */ - public WorkspaceListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -88,6 +81,8 @@ public static WorkspaceListResult fromJson(JsonReader jsonReader) throws IOExcep if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> WorkspaceInner.fromJson(reader1)); deserializedWorkspaceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedWorkspaceListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListUsagesResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java similarity index 76% rename from sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListUsagesResult.java rename to sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java index d6a887e8e17b..99256ca9697b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceListUsagesResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.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.models; +package com.azure.resourcemanager.loganalytics.implementation.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; @@ -16,17 +16,22 @@ /** * The list workspace usages operation response. */ -@Fluent +@Immutable public final class WorkspaceListUsagesResult implements JsonSerializable { /* * Gets or sets a list of usage metrics for a workspace. */ private List value; + /* + * The URL to get the next set of results. + */ + private String nextLink; + /** * Creates an instance of WorkspaceListUsagesResult class. */ - public WorkspaceListUsagesResult() { + private WorkspaceListUsagesResult() { } /** @@ -39,25 +44,12 @@ public List value() { } /** - * Set the value property: Gets or sets a list of usage metrics for a workspace. - * - * @param value the value value to set. - * @return the WorkspaceListUsagesResult object itself. - */ - public WorkspaceListUsagesResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Validates the instance. + * Get the nextLink property: The URL to get the next set of results. * - * @throws IllegalArgumentException thrown if the instance is not valid. + * @return the nextLink value. */ - public void validate() { - if (value() != null) { - value().forEach(e -> e.validate()); - } + public String nextLink() { + return this.nextLink; } /** @@ -67,6 +59,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); return jsonWriter.writeEndObject(); } @@ -88,6 +81,8 @@ public static WorkspaceListUsagesResult fromJson(JsonReader jsonReader) throws I if ("value".equals(fieldName)) { List value = reader.readArray(reader1 -> UsageMetricInner.fromJson(reader1)); deserializedWorkspaceListUsagesResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedWorkspaceListUsagesResult.nextLink = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java index 28f535c1af1a..75658d407e0f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/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 implementations for OperationalInsightsManagementClient. - * Operational Insights Client. + * Package containing the implementations for LogAnalytics. + * Provides NSP operations for working with Log Analytics. */ package com.azure.resourcemanager.loganalytics.implementation; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java index 0df999e62be1..7be78a23ea99 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.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.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 @@ /** * Access rule in a network security perimeter configuration profile. */ -@Fluent +@Immutable public final class AccessRule implements JsonSerializable { /* * Name of the access rule @@ -22,14 +22,14 @@ public final class AccessRule implements JsonSerializable { private String name; /* - * Properties of Access Rule + * The properties property. */ private AccessRuleProperties properties; /** * Creates an instance of AccessRule class. */ - public AccessRule() { + private AccessRule() { } /** @@ -42,18 +42,7 @@ public String name() { } /** - * Set the name property: Name of the access rule. - * - * @param name the name value to set. - * @return the AccessRule object itself. - */ - public AccessRule withName(String name) { - this.name = name; - return this; - } - - /** - * Get the properties property: Properties of Access Rule. + * Get the properties property: The properties property. * * @return the properties value. */ @@ -61,28 +50,6 @@ public AccessRuleProperties properties() { return this.properties; } - /** - * Set the properties property: Properties of Access Rule. - * - * @param properties the properties value to set. - * @return the AccessRule object itself. - */ - public AccessRule withProperties(AccessRuleProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java index 2989aa7e7b6c..04e0c6a3db6f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.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.models; @@ -12,12 +12,12 @@ */ public final class AccessRuleDirection extends ExpandableStringEnum { /** - * Static value Inbound for AccessRuleDirection. + * Applies to inbound network traffic to the secured resources. */ public static final AccessRuleDirection INBOUND = fromString("Inbound"); /** - * Static value Outbound for AccessRuleDirection. + * Applies to outbound network traffic from the secured resources. */ public static final AccessRuleDirection OUTBOUND = fromString("Outbound"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java index 3b7fcbcb3551..45975eab7c19 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.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.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,10 +15,10 @@ /** * Properties of Access Rule. */ -@Fluent +@Immutable public final class AccessRuleProperties implements JsonSerializable { /* - * Direction of Access Rule + * The direction property. */ private AccessRuleDirection direction; @@ -55,11 +55,11 @@ public final class AccessRuleProperties implements JsonSerializable addressPrefixes() { return this.addressPrefixes; } - /** - * Set the addressPrefixes property: Address prefixes in the CIDR format for inbound rules. - * - * @param addressPrefixes the addressPrefixes value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties withAddressPrefixes(List addressPrefixes) { - this.addressPrefixes = addressPrefixes; - return this; - } - /** * Get the subscriptions property: Subscriptions for inbound rules. * @@ -107,17 +85,6 @@ public List subscriptions() { return this.subscriptions; } - /** - * Set the subscriptions property: Subscriptions for inbound rules. - * - * @param subscriptions the subscriptions value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties withSubscriptions(List subscriptions) { - this.subscriptions = subscriptions; - return this; - } - /** * Get the networkSecurityPerimeters property: Network security perimeters for inbound rules. * @@ -127,18 +94,6 @@ public List networkSecurityPerimeters() { return this.networkSecurityPerimeters; } - /** - * Set the networkSecurityPerimeters property: Network security perimeters for inbound rules. - * - * @param networkSecurityPerimeters the networkSecurityPerimeters value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties - withNetworkSecurityPerimeters(List networkSecurityPerimeters) { - this.networkSecurityPerimeters = networkSecurityPerimeters; - return this; - } - /** * Get the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules. * @@ -148,17 +103,6 @@ public List fullyQualifiedDomainNames() { return this.fullyQualifiedDomainNames; } - /** - * Set the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules. - * - * @param fullyQualifiedDomainNames the fullyQualifiedDomainNames value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties withFullyQualifiedDomainNames(List fullyQualifiedDomainNames) { - this.fullyQualifiedDomainNames = fullyQualifiedDomainNames; - return this; - } - /** * Get the emailAddresses property: Email addresses for outbound rules. * @@ -168,17 +112,6 @@ public List emailAddresses() { return this.emailAddresses; } - /** - * Set the emailAddresses property: Email addresses for outbound rules. - * - * @param emailAddresses the emailAddresses value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties withEmailAddresses(List emailAddresses) { - this.emailAddresses = emailAddresses; - return this; - } - /** * Get the phoneNumbers property: Phone numbers for outbound rules. * @@ -188,31 +121,6 @@ public List phoneNumbers() { return this.phoneNumbers; } - /** - * Set the phoneNumbers property: Phone numbers for outbound rules. - * - * @param phoneNumbers the phoneNumbers value to set. - * @return the AccessRuleProperties object itself. - */ - public AccessRuleProperties withPhoneNumbers(List phoneNumbers) { - this.phoneNumbers = phoneNumbers; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (subscriptions() != null) { - subscriptions().forEach(e -> e.validate()); - } - if (networkSecurityPerimeters() != null) { - networkSecurityPerimeters().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java index 162f403f2da9..7330e6319666 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.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.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; @@ -12,9 +12,9 @@ import java.io.IOException; /** - * Subscription identifiers. + * we add this model in order to replace subscriptions model in CommonTypes with this model via alternateType decorator. */ -@Fluent +@Immutable public final class AccessRulePropertiesSubscriptionsItem implements JsonSerializable { /* @@ -26,7 +26,7 @@ public final class AccessRulePropertiesSubscriptionsItem /** * Creates an instance of AccessRulePropertiesSubscriptionsItem class. */ - public AccessRulePropertiesSubscriptionsItem() { + private AccessRulePropertiesSubscriptionsItem() { } /** @@ -39,26 +39,6 @@ public String id() { return this.id; } - /** - * Set the id property: The fully qualified Azure resource ID of the subscription e.g. - * ('/subscriptions/00000000-0000-0000-0000-000000000000'). - * - * @param id the id value to set. - * @return the AccessRulePropertiesSubscriptionsItem object itself. - */ - public AccessRulePropertiesSubscriptionsItem withId(String id) { - this.id = id; - 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/models/AssociatedWorkspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java index 7d47aa8f7013..b0a7ffa1e1d2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.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.models; @@ -12,7 +12,6 @@ import com.azure.json.JsonWriter; import java.io.IOException; import java.time.OffsetDateTime; -import java.util.UUID; /** * The list of Log Analytics workspaces associated with the cluster. @@ -22,7 +21,7 @@ public final class AssociatedWorkspace implements JsonSerializable UUID.fromString(nonNullReader.getString())); + deserializedAssociatedWorkspace.workspaceId = reader.getString(); } else if ("workspaceName".equals(fieldName)) { deserializedAssociatedWorkspace.workspaceName = reader.getString(); } else if ("resourceId".equals(fieldName)) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java index b558f63cd30e..219d1c27c007 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java index c12302012544..9e4a7d55755e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java index 0b928778b94b..ec0ee221822a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.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.models; import com.azure.core.annotation.Immutable; 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 class AzureEntityResource extends ProxyResource { */ private String etag; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + /* * The type of the resource. */ @@ -64,6 +70,26 @@ AzureEntityResource withEtag(String etag) { 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; + } + + /** + * Set the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @param systemData the systemData value to set. + * @return the AzureEntityResource object itself. + */ + AzureEntityResource withSystemData(SystemData systemData) { + this.systemData = systemData; + return this; + } + /** * Get the type property: The type of the resource. * @@ -94,14 +120,6 @@ public String id() { return this.id; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - /** * {@inheritDoc} */ @@ -135,6 +153,8 @@ public static AzureEntityResource fromJson(JsonReader jsonReader) throws IOExcep deserializedAzureEntityResource.type = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedAzureEntityResource.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedAzureEntityResource.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java index e5ab696f1bca..f2a6370f696b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.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.models; @@ -13,12 +13,12 @@ */ public final class BillingType extends ExpandableStringEnum { /** - * Static value Cluster for BillingType. + * Cluster. */ public static final BillingType CLUSTER = fromString("Cluster"); /** - * Static value Workspaces for BillingType. + * Workspaces. */ public static final BillingType WORKSPACES = fromString("Workspaces"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java index 8d05f51f98c5..8a776469addd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.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.models; @@ -52,14 +52,6 @@ public Long minCapacity() { return this.minCapacity; } - /** - * 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/models/Cluster.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java index d02109357d71..efe0ed55feb2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.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.models; 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 java.time.OffsetDateTime; @@ -51,7 +52,7 @@ public interface Cluster { Map tags(); /** - * Gets the identity property: Resource's identity. + * Gets the identity property: The managed service identities assigned to this resource. * * @return the identity value. */ @@ -64,6 +65,13 @@ public interface Cluster { */ ClusterSku sku(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the clusterId property: The ID associated with the cluster. * @@ -266,9 +274,9 @@ interface WithTags { */ interface WithIdentity { /** - * Specifies the identity property: Resource's identity.. + * Specifies the identity property: The managed service identities assigned to this resource.. * - * @param identity Resource's identity. + * @param identity The managed service identities assigned to this resource. * @return the next definition stage. */ WithCreate withIdentity(ManagedServiceIdentity identity); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java index 89aa3a5cf70a..75c9fa7c34e5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.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.models; @@ -12,37 +12,37 @@ */ public final class ClusterEntityStatus extends ExpandableStringEnum { /** - * Static value Creating for ClusterEntityStatus. + * Creating. */ public static final ClusterEntityStatus CREATING = fromString("Creating"); /** - * Static value Succeeded for ClusterEntityStatus. + * Succeeded. */ public static final ClusterEntityStatus SUCCEEDED = fromString("Succeeded"); /** - * Static value Failed for ClusterEntityStatus. + * Failed. */ public static final ClusterEntityStatus FAILED = fromString("Failed"); /** - * Static value Canceled for ClusterEntityStatus. + * Canceled. */ public static final ClusterEntityStatus CANCELED = fromString("Canceled"); /** - * Static value Deleting for ClusterEntityStatus. + * Deleting. */ public static final ClusterEntityStatus DELETING = fromString("Deleting"); /** - * Static value ProvisioningAccount for ClusterEntityStatus. + * ProvisioningAccount. */ public static final ClusterEntityStatus PROVISIONING_ACCOUNT = fromString("ProvisioningAccount"); /** - * Static value Updating for ClusterEntityStatus. + * Updating. */ public static final ClusterEntityStatus UPDATING = fromString("Updating"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java index 9c72910c578a..57ed467e2405 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.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.models; @@ -159,23 +159,6 @@ public ClusterPatch withBillingType(BillingType billingType) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - if (sku() != null) { - sku().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java index af1e66a31e6f..a6ca3a69b765 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.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.models; @@ -146,14 +146,6 @@ public OffsetDateTime lastModifiedDate() { return this.lastModifiedDate; } - /** - * 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/models/ClusterReplicationState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java index 0e275a7398cc..75f48e26d972 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.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.models; @@ -12,47 +12,47 @@ */ public final class ClusterReplicationState extends ExpandableStringEnum { /** - * Static value Succeeded for ClusterReplicationState. + * Succeeded. */ public static final ClusterReplicationState SUCCEEDED = fromString("Succeeded"); /** - * Static value EnableRequested for ClusterReplicationState. + * EnableRequested. */ public static final ClusterReplicationState ENABLE_REQUESTED = fromString("EnableRequested"); /** - * Static value Enabling for ClusterReplicationState. + * Enabling. */ public static final ClusterReplicationState ENABLING = fromString("Enabling"); /** - * Static value DisableRequested for ClusterReplicationState. + * DisableRequested. */ public static final ClusterReplicationState DISABLE_REQUESTED = fromString("DisableRequested"); /** - * Static value Disabling for ClusterReplicationState. + * Disabling. */ public static final ClusterReplicationState DISABLING = fromString("Disabling"); /** - * Static value RollbackRequested for ClusterReplicationState. + * RollbackRequested. */ public static final ClusterReplicationState ROLLBACK_REQUESTED = fromString("RollbackRequested"); /** - * Static value RollingBack for ClusterReplicationState. + * RollingBack. */ public static final ClusterReplicationState ROLLING_BACK = fromString("RollingBack"); /** - * Static value Failed for ClusterReplicationState. + * Failed. */ public static final ClusterReplicationState FAILED = fromString("Failed"); /** - * Static value Canceled for ClusterReplicationState. + * Canceled. */ public static final ClusterReplicationState CANCELED = fromString("Canceled"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java index 960dc8903e61..6ea8f6c236f3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.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.models; @@ -72,14 +72,6 @@ public ClusterSku withName(ClusterSkuNameEnum name) { 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/models/ClusterSkuNameEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java index 5b6c41fa0dd2..e331cf7e23fa 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.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.models; @@ -12,7 +12,7 @@ */ public final class ClusterSkuNameEnum extends ExpandableStringEnum { /** - * Static value CapacityReservation for ClusterSkuNameEnum. + * CapacityReservation. */ public static final ClusterSkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java index 9ede924e565a..72bacabf2514 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.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.models; @@ -13,95 +13,95 @@ */ public interface Clusters { /** - * 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}. + * @return a Log Analytics cluster instance along with {@link Response}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, 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 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 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}. + * @return a Log Analytics cluster instance. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + Cluster getByResourceGroup(String resourceGroupName, String clusterName); /** - * Gets the Log Analytics clusters in a subscription. + * 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. + * @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}. */ - PagedIterable list(); + void deleteByResourceGroup(String resourceGroupName, String clusterName); /** - * Gets the Log Analytics clusters in a subscription. + * 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 the Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. */ - PagedIterable list(Context context); + void delete(String resourceGroupName, String clusterName, Context context); /** - * Deletes a cluster instance. + * 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. * @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}. */ - void deleteByResourceGroup(String resourceGroupName, String clusterName); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Deletes a cluster instance. + * 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 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}. */ - void delete(String resourceGroupName, String clusterName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets a Log Analytics cluster instance. + * Gets the Log Analytics clusters in a subscription. * - * @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 Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); + PagedIterable list(); /** - * Gets a Log Analytics cluster instance. + * Gets the Log Analytics clusters in a subscription. * - * @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 Log Analytics clusters in a subscription as paginated response with {@link PagedIterable}. */ - Cluster getByResourceGroup(String resourceGroupName, String clusterName); + PagedIterable list(Context context); /** * Gets a Log Analytics cluster instance. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java index 7f0f430cff11..601183fe888b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Column.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.models; @@ -175,14 +175,6 @@ public Boolean isHidden() { return this.isHidden; } - /** - * 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/models/ColumnDataTypeHintEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java index a0e1d69d758c..e6c4bcabf405 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.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.models; @@ -12,22 +12,24 @@ */ public final class ColumnDataTypeHintEnum extends ExpandableStringEnum { /** - * Static value uri for ColumnDataTypeHintEnum. + * A string that matches the pattern of a URI, for example, + * scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment. */ public static final ColumnDataTypeHintEnum URI = fromString("uri"); /** - * Static value guid for ColumnDataTypeHintEnum. + * A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. */ public static final ColumnDataTypeHintEnum GUID = fromString("guid"); /** - * Static value armPath for ColumnDataTypeHintEnum. + * An Azure Resource Model (ARM) path: + * /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}... */ public static final ColumnDataTypeHintEnum ARM_PATH = fromString("armPath"); /** - * Static value ip for ColumnDataTypeHintEnum. + * A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y. */ public static final ColumnDataTypeHintEnum IP = fromString("ip"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java index 2b13086a9b23..839c928a76f8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.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.models; @@ -12,42 +12,42 @@ */ public final class ColumnTypeEnum extends ExpandableStringEnum { /** - * Static value string for ColumnTypeEnum. + * string. */ public static final ColumnTypeEnum STRING = fromString("string"); /** - * Static value int for ColumnTypeEnum. + * int. */ public static final ColumnTypeEnum INT = fromString("int"); /** - * Static value long for ColumnTypeEnum. + * long. */ public static final ColumnTypeEnum LONG = fromString("long"); /** - * Static value real for ColumnTypeEnum. + * real. */ public static final ColumnTypeEnum REAL = fromString("real"); /** - * Static value boolean for ColumnTypeEnum. + * boolean. */ public static final ColumnTypeEnum BOOLEAN = fromString("boolean"); /** - * Static value dateTime for ColumnTypeEnum. + * dateTime. */ public static final ColumnTypeEnum DATE_TIME = fromString("dateTime"); /** - * Static value guid for ColumnTypeEnum. + * guid. */ public static final ColumnTypeEnum GUID = fromString("guid"); /** - * Static value dynamic for ColumnTypeEnum. + * dynamic. */ public static final ColumnTypeEnum DYNAMIC = fromString("dynamic"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java index f3db544afb41..48b557ecd204 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.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.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 core summary of a search. */ -@Fluent +@Immutable public final class CoreSummary implements JsonSerializable { /* * The status of a core summary. @@ -29,7 +29,7 @@ public final class CoreSummary implements JsonSerializable { /** * Creates an instance of CoreSummary class. */ - public CoreSummary() { + private CoreSummary() { } /** @@ -41,17 +41,6 @@ public String status() { return this.status; } - /** - * Set the status property: The status of a core summary. - * - * @param status the status value to set. - * @return the CoreSummary object itself. - */ - public CoreSummary withStatus(String status) { - this.status = status; - return this; - } - /** * Get the numberOfDocuments property: The number of documents of a core summary. * @@ -61,25 +50,6 @@ public long numberOfDocuments() { return this.numberOfDocuments; } - /** - * Set the numberOfDocuments property: The number of documents of a core summary. - * - * @param numberOfDocuments the numberOfDocuments value to set. - * @return the CoreSummary object itself. - */ - public CoreSummary withNumberOfDocuments(long numberOfDocuments) { - this.numberOfDocuments = numberOfDocuments; - 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/models/DataExport.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java index 3df1937cc31a..b37cb783a76a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner; import java.util.List; @@ -33,6 +34,13 @@ public interface DataExport { */ String type(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the dataExportId property: The data export rule ID. * diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java index d400910fd4e2..5aa0d1494968 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.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.models; @@ -13,32 +13,35 @@ */ public interface DataExports { /** - * 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}. */ - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName); + 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. */ - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); + DataExport get(String resourceGroupName, String workspaceName, String dataExportName); /** - * 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. @@ -47,13 +50,13 @@ public interface DataExports { * @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}. */ - 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. @@ -61,36 +64,33 @@ 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 a data export instance. */ - DataExport 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}. */ - Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataExportName, - Context context); + 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}. */ - void delete(String resourceGroupName, String workspaceName, String dataExportName); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); /** * Gets a data export instance. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java index 99b410395e3d..bada687172e4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.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.models; @@ -12,32 +12,32 @@ */ public final class DataIngestionStatus extends ExpandableStringEnum { /** - * Static value RespectQuota for DataIngestionStatus. + * Ingestion enabled following daily cap quota reset, or subscription enablement. */ public static final DataIngestionStatus RESPECT_QUOTA = fromString("RespectQuota"); /** - * Static value ForceOn for DataIngestionStatus. + * Ingestion started following service setting change. */ public static final DataIngestionStatus FORCE_ON = fromString("ForceOn"); /** - * Static value ForceOff for DataIngestionStatus. + * Ingestion stopped following service setting change. */ public static final DataIngestionStatus FORCE_OFF = fromString("ForceOff"); /** - * Static value OverQuota for DataIngestionStatus. + * Reached daily cap quota, ingestion stopped. */ public static final DataIngestionStatus OVER_QUOTA = fromString("OverQuota"); /** - * Static value SubscriptionSuspended for DataIngestionStatus. + * Ingestion stopped following suspended subscription. */ public static final DataIngestionStatus SUBSCRIPTION_SUSPENDED = fromString("SubscriptionSuspended"); /** - * Static value ApproachingQuota for DataIngestionStatus. + * 80% of daily cap quota reached. */ public static final DataIngestionStatus APPROACHING_QUOTA = fromString("ApproachingQuota"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java index c0a50692562a..ecadc5bcc697 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner; import java.util.Map; @@ -62,6 +63,13 @@ public interface DataSource { */ Map tags(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the name of the resource group. * diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java index 6c6d08e7ca99..2abb7eff03ec 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.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.models; @@ -12,172 +12,172 @@ */ public final class DataSourceKind extends ExpandableStringEnum { /** - * Static value WindowsEvent for DataSourceKind. + * WindowsEvent. */ public static final DataSourceKind WINDOWS_EVENT = fromString("WindowsEvent"); /** - * Static value WindowsPerformanceCounter for DataSourceKind. + * WindowsPerformanceCounter. */ public static final DataSourceKind WINDOWS_PERFORMANCE_COUNTER = fromString("WindowsPerformanceCounter"); /** - * Static value IISLogs for DataSourceKind. + * IISLogs. */ public static final DataSourceKind IISLOGS = fromString("IISLogs"); /** - * Static value LinuxSyslog for DataSourceKind. + * LinuxSyslog. */ public static final DataSourceKind LINUX_SYSLOG = fromString("LinuxSyslog"); /** - * Static value LinuxSyslogCollection for DataSourceKind. + * LinuxSyslogCollection. */ public static final DataSourceKind LINUX_SYSLOG_COLLECTION = fromString("LinuxSyslogCollection"); /** - * Static value LinuxPerformanceObject for DataSourceKind. + * LinuxPerformanceObject. */ public static final DataSourceKind LINUX_PERFORMANCE_OBJECT = fromString("LinuxPerformanceObject"); /** - * Static value LinuxPerformanceCollection for DataSourceKind. + * LinuxPerformanceCollection. */ public static final DataSourceKind LINUX_PERFORMANCE_COLLECTION = fromString("LinuxPerformanceCollection"); /** - * Static value CustomLog for DataSourceKind. + * CustomLog. */ public static final DataSourceKind CUSTOM_LOG = fromString("CustomLog"); /** - * Static value CustomLogCollection for DataSourceKind. + * CustomLogCollection. */ public static final DataSourceKind CUSTOM_LOG_COLLECTION = fromString("CustomLogCollection"); /** - * Static value AzureAuditLog for DataSourceKind. + * AzureAuditLog. */ public static final DataSourceKind AZURE_AUDIT_LOG = fromString("AzureAuditLog"); /** - * Static value AzureActivityLog for DataSourceKind. + * AzureActivityLog. */ public static final DataSourceKind AZURE_ACTIVITY_LOG = fromString("AzureActivityLog"); /** - * Static value GenericDataSource for DataSourceKind. + * GenericDataSource. */ public static final DataSourceKind GENERIC_DATA_SOURCE = fromString("GenericDataSource"); /** - * Static value ChangeTrackingCustomPath for DataSourceKind. + * ChangeTrackingCustomPath. */ public static final DataSourceKind CHANGE_TRACKING_CUSTOM_PATH = fromString("ChangeTrackingCustomPath"); /** - * Static value ChangeTrackingPath for DataSourceKind. + * ChangeTrackingPath. */ public static final DataSourceKind CHANGE_TRACKING_PATH = fromString("ChangeTrackingPath"); /** - * Static value ChangeTrackingServices for DataSourceKind. + * ChangeTrackingServices. */ public static final DataSourceKind CHANGE_TRACKING_SERVICES = fromString("ChangeTrackingServices"); /** - * Static value ChangeTrackingDataTypeConfiguration for DataSourceKind. + * ChangeTrackingDataTypeConfiguration. */ public static final DataSourceKind CHANGE_TRACKING_DATA_TYPE_CONFIGURATION = fromString("ChangeTrackingDataTypeConfiguration"); /** - * Static value ChangeTrackingDefaultRegistry for DataSourceKind. + * ChangeTrackingDefaultRegistry. */ public static final DataSourceKind CHANGE_TRACKING_DEFAULT_REGISTRY = fromString("ChangeTrackingDefaultRegistry"); /** - * Static value ChangeTrackingRegistry for DataSourceKind. + * ChangeTrackingRegistry. */ public static final DataSourceKind CHANGE_TRACKING_REGISTRY = fromString("ChangeTrackingRegistry"); /** - * Static value ChangeTrackingLinuxPath for DataSourceKind. + * ChangeTrackingLinuxPath. */ public static final DataSourceKind CHANGE_TRACKING_LINUX_PATH = fromString("ChangeTrackingLinuxPath"); /** - * Static value LinuxChangeTrackingPath for DataSourceKind. + * LinuxChangeTrackingPath. */ public static final DataSourceKind LINUX_CHANGE_TRACKING_PATH = fromString("LinuxChangeTrackingPath"); /** - * Static value ChangeTrackingContentLocation for DataSourceKind. + * ChangeTrackingContentLocation. */ public static final DataSourceKind CHANGE_TRACKING_CONTENT_LOCATION = fromString("ChangeTrackingContentLocation"); /** - * Static value WindowsTelemetry for DataSourceKind. + * WindowsTelemetry. */ public static final DataSourceKind WINDOWS_TELEMETRY = fromString("WindowsTelemetry"); /** - * Static value Office365 for DataSourceKind. + * Office365. */ public static final DataSourceKind OFFICE365 = fromString("Office365"); /** - * Static value SecurityWindowsBaselineConfiguration for DataSourceKind. + * SecurityWindowsBaselineConfiguration. */ public static final DataSourceKind SECURITY_WINDOWS_BASELINE_CONFIGURATION = fromString("SecurityWindowsBaselineConfiguration"); /** - * Static value SecurityCenterSecurityWindowsBaselineConfiguration for DataSourceKind. + * SecurityCenterSecurityWindowsBaselineConfiguration. */ public static final DataSourceKind SECURITY_CENTER_SECURITY_WINDOWS_BASELINE_CONFIGURATION = fromString("SecurityCenterSecurityWindowsBaselineConfiguration"); /** - * Static value SecurityEventCollectionConfiguration for DataSourceKind. + * SecurityEventCollectionConfiguration. */ public static final DataSourceKind SECURITY_EVENT_COLLECTION_CONFIGURATION = fromString("SecurityEventCollectionConfiguration"); /** - * Static value SecurityInsightsSecurityEventCollectionConfiguration for DataSourceKind. + * SecurityInsightsSecurityEventCollectionConfiguration. */ public static final DataSourceKind SECURITY_INSIGHTS_SECURITY_EVENT_COLLECTION_CONFIGURATION = fromString("SecurityInsightsSecurityEventCollectionConfiguration"); /** - * Static value ImportComputerGroup for DataSourceKind. + * ImportComputerGroup. */ public static final DataSourceKind IMPORT_COMPUTER_GROUP = fromString("ImportComputerGroup"); /** - * Static value NetworkMonitoring for DataSourceKind. + * NetworkMonitoring. */ public static final DataSourceKind NETWORK_MONITORING = fromString("NetworkMonitoring"); /** - * Static value Itsm for DataSourceKind. + * Itsm. */ public static final DataSourceKind ITSM = fromString("Itsm"); /** - * Static value DnsAnalytics for DataSourceKind. + * DnsAnalytics. */ public static final DataSourceKind DNS_ANALYTICS = fromString("DnsAnalytics"); /** - * Static value ApplicationInsights for DataSourceKind. + * ApplicationInsights. */ public static final DataSourceKind APPLICATION_INSIGHTS = fromString("ApplicationInsights"); /** - * Static value SqlDataClassification for DataSourceKind. + * SqlDataClassification. */ public static final DataSourceKind SQL_DATA_CLASSIFICATION = fromString("SqlDataClassification"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java index 35a311f1a9b3..dd7cf40df680 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.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.models; @@ -9,27 +9,27 @@ */ public enum DataSourceType { /** - * Enum value CustomLogs. + * CustomLogs. */ CUSTOM_LOGS("CustomLogs"), /** - * Enum value AzureWatson. + * AzureWatson. */ AZURE_WATSON("AzureWatson"), /** - * Enum value Query. + * Query. */ QUERY("Query"), /** - * Enum value Ingestion. + * Ingestion. */ INGESTION("Ingestion"), /** - * Enum value Alerts. + * Alerts. */ ALERTS("Alerts"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java index 2cbdcfe08da9..c8d30c3bdab3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.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.models; @@ -13,7 +13,7 @@ */ public interface DataSources { /** - * Deletes a data source instance. + * Gets a datasource instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -22,13 +22,13 @@ public interface DataSources { * @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 a datasource instance along with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, + Response getWithResponse(String resourceGroupName, String workspaceName, String dataSourceName, Context context); /** - * Deletes a data source instance. + * Gets a datasource instance. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. @@ -36,11 +36,12 @@ 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. */ - void delete(String resourceGroupName, String workspaceName, String dataSourceName); + DataSource get(String resourceGroupName, String workspaceName, String dataSourceName); /** - * 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. @@ -49,13 +50,13 @@ 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}. */ - 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. @@ -63,9 +64,8 @@ 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 a datasource instance. */ - DataSource 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/models/DeletedWorkspaces.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java index d869a630e5d5..5d883e083b32 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java index 48529f995f80..50eddf3b8a6a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java index 426286278062..e688046d48cf 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.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.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; @@ -109,27 +108,6 @@ public Identity withUserAssignedIdentities(Map u return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (type() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property type in model Identity")); - } - if (userAssignedIdentities() != null) { - userAssignedIdentities().values().forEach(e -> { - if (e != null) { - e.validate(); - } - }); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Identity.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java index b1e162d20f3d..53c190cbbe67 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.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.models; @@ -9,17 +9,17 @@ */ public enum IdentityType { /** - * Enum value SystemAssigned. + * SystemAssigned. */ SYSTEM_ASSIGNED("SystemAssigned"), /** - * Enum value UserAssigned. + * UserAssigned. */ USER_ASSIGNED("UserAssigned"), /** - * Enum value None. + * None. */ NONE("None"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java index a4de00f45968..d960c75300e4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java index 401034db5582..ab108bfef18e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.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.models; @@ -17,7 +17,7 @@ public interface IntelligencePacks { * * @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. @@ -32,7 +32,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. @@ -44,7 +44,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. @@ -59,7 +59,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. @@ -75,7 +75,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}. */ Response> listWithResponse(String resourceGroupName, String workspaceName, Context context); @@ -87,7 +87,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. + * @return the response. */ List list(String resourceGroupName, String workspaceName); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java index 581221777587..a4b2e156bc16 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.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.models; @@ -12,22 +12,25 @@ */ public final class IssueType extends ExpandableStringEnum { /** - * Static value Unknown for IssueType. + * Unknown issue type. */ public static final IssueType UNKNOWN = fromString("Unknown"); /** - * Static value ConfigurationPropagationFailure for IssueType. + * An error occurred while applying the network security perimeter (NSP) configuration. */ public static final IssueType CONFIGURATION_PROPAGATION_FAILURE = fromString("ConfigurationPropagationFailure"); /** - * Static value MissingPerimeterConfiguration for IssueType. + * A network connectivity issue is happening on the resource which could be addressed either by adding new resources + * to the network security perimeter (NSP) or by modifying access rules. */ public static final IssueType MISSING_PERIMETER_CONFIGURATION = fromString("MissingPerimeterConfiguration"); /** - * Static value MissingIdentityConfiguration for IssueType. + * An managed identity hasn't been associated with the resource. The resource will still be able to validate inbound + * traffic from the network security perimeter (NSP) or matching inbound access rules, but it won't be able to + * perform outbound access as a member of the NSP. */ public static final IssueType MISSING_IDENTITY_CONFIGURATION = fromString("MissingIdentityConfiguration"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java index a4c5f3708f47..e38471960a58 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.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.models; @@ -122,14 +122,6 @@ public KeyVaultProperties withKeyRsaSize(Integer keyRsaSize) { 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/models/LinkedService.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java index a05f6f1886f2..2706b87de94f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner; import java.util.Map; @@ -40,6 +41,13 @@ public interface LinkedService { */ Map tags(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the resourceId property: The resource id of the resource that will be linked to the workspace. This should * be used for linking resources which require read access. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java index c699a4ede456..800bf92d971f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.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.models; @@ -12,22 +12,22 @@ */ public final class LinkedServiceEntityStatus extends ExpandableStringEnum { /** - * Static value Succeeded for LinkedServiceEntityStatus. + * Succeeded. */ public static final LinkedServiceEntityStatus SUCCEEDED = fromString("Succeeded"); /** - * Static value Deleting for LinkedServiceEntityStatus. + * Deleting. */ public static final LinkedServiceEntityStatus DELETING = fromString("Deleting"); /** - * Static value ProvisioningAccount for LinkedServiceEntityStatus. + * ProvisioningAccount. */ public static final LinkedServiceEntityStatus PROVISIONING_ACCOUNT = fromString("ProvisioningAccount"); /** - * Static value Updating for LinkedServiceEntityStatus. + * Updating. */ public static final LinkedServiceEntityStatus UPDATING = fromString("Updating"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java index 3f93558cbaec..165e2b639c2d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.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.models; @@ -13,59 +13,57 @@ */ public interface LinkedServices { /** - * Deletes a linked service instance. + * 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 the top level Linked service resource container. + * @return a linked service instance along with {@link Response}. */ - LinkedService delete(String resourceGroupName, String workspaceName, String linkedServiceName); + Response getWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, + Context context); /** - * Deletes a linked service instance. + * 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 the top level Linked service resource container. + * @return a linked service instance. */ - LinkedService delete(String resourceGroupName, String workspaceName, String linkedServiceName, Context context); + LinkedService get(String resourceGroupName, String workspaceName, String linkedServiceName); /** - * Gets a linked service instance. + * Deletes 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}. */ - Response getWithResponse(String resourceGroupName, String workspaceName, String linkedServiceName, - Context context); + void delete(String resourceGroupName, String workspaceName, String linkedServiceName); /** - * Gets a linked service instance. + * Deletes 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. */ - LinkedService 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. @@ -122,9 +120,8 @@ Response getWithResponse(String resourceGroupName, String workspa * @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. */ - LinkedService deleteById(String id); + void deleteById(String id); /** * Deletes a linked service instance. @@ -134,9 +131,8 @@ Response getWithResponse(String resourceGroupName, String workspa * @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. */ - LinkedService deleteByIdWithResponse(String id, Context context); + void deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new LinkedService resource. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java index f5761ee96acd..608ec55d40e3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.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.models; @@ -13,7 +13,7 @@ */ public interface LinkedStorageAccounts { /** - * Deletes all linked storage accounts of a specific data source type associated with the specified workspace. + * 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. @@ -22,13 +22,14 @@ public interface LinkedStorageAccounts { * @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 all linked storage account of a specific data source type associated with the specified workspace along + * with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String workspaceName, DataSourceType dataSourceType, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + DataSourceType dataSourceType, Context context); /** - * Deletes all linked storage accounts of a specific data source type associated with the specified workspace. + * 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. @@ -36,11 +37,12 @@ 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. */ - void delete(String resourceGroupName, String workspaceName, DataSourceType dataSourceType); + LinkedStorageAccountsResource get(String resourceGroupName, String workspaceName, DataSourceType dataSourceType); /** - * 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. @@ -49,14 +51,13 @@ 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}. */ - 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. @@ -64,9 +65,8 @@ Response getWithResponse(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 all linked storage account of a specific data source type associated with the specified workspace. */ - LinkedStorageAccountsResource 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/models/LinkedStorageAccountsResource.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java index 19fc3aa56ef3..e1802c37629b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner; import java.util.List; @@ -33,6 +34,13 @@ public interface LinkedStorageAccountsResource { */ String type(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the dataSourceType property: Linked storage accounts type. * diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java index 03d115294b06..7ab31a64f834 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java index c04f014bf2e5..0c4fcb49db6d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java index cdc4ae70a709..4d836af9b881 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.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.models; @@ -99,14 +99,6 @@ public LogAnalyticsQueryPackQueryPropertiesRelated withSolutions(List so 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/models/LogAnalyticsQueryPackQuerySearchProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java index 2490e3d7a63c..335be0ea0166 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.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.models; @@ -76,17 +76,6 @@ public LogAnalyticsQueryPackQuerySearchProperties withTags(Map userAssignedIdentities; @@ -56,7 +51,7 @@ public ManagedServiceIdentity() { * * @return the principalId value. */ - public UUID principalId() { + public String principalId() { return this.principalId; } @@ -66,13 +61,12 @@ public UUID principalId() { * * @return the tenantId value. */ - public UUID tenantId() { + public String tenantId() { return this.tenantId; } /** - * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * Get the type property: The type of managed identity assigned to this resource. * * @return the type value. */ @@ -81,8 +75,7 @@ public ManagedServiceIdentityType type() { } /** - * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are - * allowed). + * Set the type property: The type of managed identity assigned to this resource. * * @param type the type value to set. * @return the ManagedServiceIdentity object itself. @@ -93,10 +86,7 @@ public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { } /** - * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * Get the userAssignedIdentities property: The identities assigned to this resource by the user. * * @return the userAssignedIdentities value. */ @@ -105,10 +95,7 @@ public Map userAssignedIdentities() { } /** - * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The - * userAssignedIdentities dictionary keys will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - * The dictionary values can be empty objects ({}) in requests. + * Set the userAssignedIdentities property: The identities assigned to this resource by the user. * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedServiceIdentity object itself. @@ -118,27 +105,6 @@ public ManagedServiceIdentity withUserAssignedIdentities(Map { - if (e != null) { - e.validate(); - } - }); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); - /** * {@inheritDoc} */ @@ -170,11 +136,9 @@ public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOEx if ("type".equals(fieldName)) { deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); } else if ("principalId".equals(fieldName)) { - deserializedManagedServiceIdentity.principalId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedManagedServiceIdentity.principalId = reader.getString(); } else if ("tenantId".equals(fieldName)) { - deserializedManagedServiceIdentity.tenantId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedManagedServiceIdentity.tenantId = reader.getString(); } else if ("userAssignedIdentities".equals(fieldName)) { Map userAssignedIdentities = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java index 67138abc4d2b..d2800c8f2de1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.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.models; @@ -12,22 +12,22 @@ */ public final class ManagedServiceIdentityType extends ExpandableStringEnum { /** - * Static value None for ManagedServiceIdentityType. + * No managed identity. */ public static final ManagedServiceIdentityType NONE = fromString("None"); /** - * Static value SystemAssigned for ManagedServiceIdentityType. + * System assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); /** - * Static value UserAssigned for ManagedServiceIdentityType. + * User assigned managed identity. */ public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); /** - * Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. + * System and user assigned managed identity. */ public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned,UserAssigned"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java index de597e734929..b0feafb11e2c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java index b34ffb0dc128..354867ca3f0d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java index 978de05c702e..1b9149ddcbd4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.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.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 name of a metric. */ -@Fluent +@Immutable public final class MetricName implements JsonSerializable { /* * The system name of the metric. @@ -29,7 +29,7 @@ public final class MetricName implements JsonSerializable { /** * Creates an instance of MetricName class. */ - public MetricName() { + private MetricName() { } /** @@ -41,17 +41,6 @@ public String value() { return this.value; } - /** - * Set the value property: The system name of the metric. - * - * @param value the value value to set. - * @return the MetricName object itself. - */ - public MetricName withValue(String value) { - this.value = value; - return this; - } - /** * Get the localizedValue property: The localized name of the metric. * @@ -61,25 +50,6 @@ public String localizedValue() { return this.localizedValue; } - /** - * Set the localizedValue property: The localized name of the metric. - * - * @param localizedValue the localizedValue value to set. - * @return the MetricName object itself. - */ - public MetricName withLocalizedValue(String localizedValue) { - this.localizedValue = localizedValue; - 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/models/NetworkSecurityPerimeter.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java index 1d02c7faddf9..7dd9fee894b7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java @@ -1,22 +1,20 @@ // 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.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; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.Objects; -import java.util.UUID; /** * Information about a network security perimeter (NSP). */ -@Fluent +@Immutable public final class NetworkSecurityPerimeter implements JsonSerializable { /* * Fully qualified Azure resource ID of the NSP resource @@ -26,7 +24,7 @@ public final class NetworkSecurityPerimeter implements JsonSerializable UUID.fromString(nonNullReader.getString())); + deserializedNetworkSecurityPerimeter.perimeterGuid = reader.getString(); } else if ("location".equals(fieldName)) { deserializedNetworkSecurityPerimeter.location = reader.getString(); } else { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java index b3f25088937a..9cd853abe653 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.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.models; @@ -33,7 +33,7 @@ public interface NetworkSecurityPerimeterConfiguration { String type(); /** - * Gets the properties property: Network security configuration properties. + * Gets the properties property: The properties property. * * @return the properties value. */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java index 65a18f9d8487..942a52346df6 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.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.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,11 +15,11 @@ /** * Network security configuration properties. */ -@Fluent +@Immutable public final class NetworkSecurityPerimeterConfigurationProperties implements JsonSerializable { /* - * Provisioning state of a network security perimeter configuration that is being created or updated. + * The provisioningState property. */ private NetworkSecurityPerimeterConfigurationProvisioningState provisioningState; @@ -29,29 +29,28 @@ public final class NetworkSecurityPerimeterConfigurationProperties private List provisioningIssues; /* - * Information about a network security perimeter (NSP) + * The networkSecurityPerimeter property. */ private NetworkSecurityPerimeter networkSecurityPerimeter; /* - * Information about resource association + * The resourceAssociation property. */ private ResourceAssociation resourceAssociation; /* - * Network security perimeter configuration profile + * The profile property. */ private NetworkSecurityProfile profile; /** * Creates an instance of NetworkSecurityPerimeterConfigurationProperties class. */ - public NetworkSecurityPerimeterConfigurationProperties() { + private NetworkSecurityPerimeterConfigurationProperties() { } /** - * Get the provisioningState property: Provisioning state of a network security perimeter configuration that is - * being created or updated. + * Get the provisioningState property: The provisioningState property. * * @return the provisioningState value. */ @@ -69,7 +68,7 @@ public List provisioningIssues() { } /** - * Get the networkSecurityPerimeter property: Information about a network security perimeter (NSP). + * Get the networkSecurityPerimeter property: The networkSecurityPerimeter property. * * @return the networkSecurityPerimeter value. */ @@ -78,19 +77,7 @@ public NetworkSecurityPerimeter networkSecurityPerimeter() { } /** - * Set the networkSecurityPerimeter property: Information about a network security perimeter (NSP). - * - * @param networkSecurityPerimeter the networkSecurityPerimeter value to set. - * @return the NetworkSecurityPerimeterConfigurationProperties object itself. - */ - public NetworkSecurityPerimeterConfigurationProperties - withNetworkSecurityPerimeter(NetworkSecurityPerimeter networkSecurityPerimeter) { - this.networkSecurityPerimeter = networkSecurityPerimeter; - return this; - } - - /** - * Get the resourceAssociation property: Information about resource association. + * Get the resourceAssociation property: The resourceAssociation property. * * @return the resourceAssociation value. */ @@ -99,19 +86,7 @@ public ResourceAssociation resourceAssociation() { } /** - * Set the resourceAssociation property: Information about resource association. - * - * @param resourceAssociation the resourceAssociation value to set. - * @return the NetworkSecurityPerimeterConfigurationProperties object itself. - */ - public NetworkSecurityPerimeterConfigurationProperties - withResourceAssociation(ResourceAssociation resourceAssociation) { - this.resourceAssociation = resourceAssociation; - return this; - } - - /** - * Get the profile property: Network security perimeter configuration profile. + * Get the profile property: The profile property. * * @return the profile value. */ @@ -119,37 +94,6 @@ public NetworkSecurityProfile profile() { return this.profile; } - /** - * Set the profile property: Network security perimeter configuration profile. - * - * @param profile the profile value to set. - * @return the NetworkSecurityPerimeterConfigurationProperties object itself. - */ - public NetworkSecurityPerimeterConfigurationProperties withProfile(NetworkSecurityProfile profile) { - this.profile = profile; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (provisioningIssues() != null) { - provisioningIssues().forEach(e -> e.validate()); - } - if (networkSecurityPerimeter() != null) { - networkSecurityPerimeter().validate(); - } - if (resourceAssociation() != null) { - resourceAssociation().validate(); - } - if (profile() != null) { - profile().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java index 14d7c837af16..ebc5127f5046 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java index 1eb214465188..fdc335bc0ef6 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.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.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 @@ /** * Network security perimeter configuration profile. */ -@Fluent +@Immutable public final class NetworkSecurityProfile implements JsonSerializable { /* * Name of the profile @@ -45,7 +45,7 @@ public final class NetworkSecurityProfile implements JsonSerializable accessRules() { return this.accessRules; } - /** - * Set the accessRules property: List of Access Rules. - * - * @param accessRules the accessRules value to set. - * @return the NetworkSecurityProfile object itself. - */ - public NetworkSecurityProfile withAccessRules(List accessRules) { - this.accessRules = accessRules; - return this; - } - /** * Get the diagnosticSettingsVersion property: Current diagnostic settings version. * @@ -117,17 +84,6 @@ public Integer diagnosticSettingsVersion() { return this.diagnosticSettingsVersion; } - /** - * Set the diagnosticSettingsVersion property: Current diagnostic settings version. - * - * @param diagnosticSettingsVersion the diagnosticSettingsVersion value to set. - * @return the NetworkSecurityProfile object itself. - */ - public NetworkSecurityProfile withDiagnosticSettingsVersion(Integer diagnosticSettingsVersion) { - this.diagnosticSettingsVersion = diagnosticSettingsVersion; - return this; - } - /** * Get the enabledLogCategories property: List of log categories that are enabled. * @@ -137,28 +93,6 @@ public List enabledLogCategories() { return this.enabledLogCategories; } - /** - * Set the enabledLogCategories property: List of log categories that are enabled. - * - * @param enabledLogCategories the enabledLogCategories value to set. - * @return the NetworkSecurityProfile object itself. - */ - public NetworkSecurityProfile withEnabledLogCategories(List enabledLogCategories) { - this.enabledLogCategories = enabledLogCategories; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (accessRules() != null) { - accessRules().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java index 05f21a25b344..9c55ca22626b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java index 1d83d300667e..213e42553500 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.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.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 @@ /** * Display metadata associated with the operation. */ -@Fluent +@Immutable public final class OperationDisplay implements JsonSerializable { /* * Service provider: Microsoft OperationsManagement. @@ -39,7 +39,7 @@ public final class OperationDisplay implements JsonSerializable { + /** + * Table schema is still being built and updated, table is currently locked for any changes till the procedure is + * done. + */ + public static final OperationalInsightsTableProvisioningState UPDATING = fromString("Updating"); + + /** + * Table schema is stable and without changes, table data is being updated. + */ + public static final OperationalInsightsTableProvisioningState IN_PROGRESS = fromString("InProgress"); + + /** + * Table state is stable and without changes, table is unlocked and open for new updates. + */ + public static final OperationalInsightsTableProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Table state is deleting. + */ + public static final OperationalInsightsTableProvisioningState DELETING = fromString("Deleting"); + + /** + * Creates a new instance of OperationalInsightsTableProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public OperationalInsightsTableProvisioningState() { + } + + /** + * Creates or finds a OperationalInsightsTableProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding OperationalInsightsTableProvisioningState. + */ + public static OperationalInsightsTableProvisioningState fromString(String name) { + return fromString(name, OperationalInsightsTableProvisioningState.class); + } + + /** + * Gets known OperationalInsightsTableProvisioningState values. + * + * @return known OperationalInsightsTableProvisioningState values. + */ + public static Collection values() { + return values(OperationalInsightsTableProvisioningState.class); + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java index 83963e896bfa..6876f7dd574d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.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.models; @@ -16,7 +16,7 @@ public interface Operations { * * @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}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface Operations { * @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}. */ PagedIterable list(Context context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java index d8c07bebbab0..dfee89fc403d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.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.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 private link scope resource reference. */ -@Fluent +@Immutable public final class PrivateLinkScopedResource implements JsonSerializable { /* * The full resource Id of the private link scope resource. @@ -29,7 +29,7 @@ public final class PrivateLinkScopedResource implements JsonSerializable suggestedAccessRules() { return this.suggestedAccessRules; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (suggestedAccessRules() != null) { - suggestedAccessRules().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java index 8bf1cff651f3..f5649c5e14f0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.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.models; @@ -13,24 +13,30 @@ */ public final class ProvisioningStateEnum extends ExpandableStringEnum { /** - * Static value Updating for ProvisioningStateEnum. + * Table schema is still being built and updated, table is currently locked for any changes till the procedure is + * done. */ public static final ProvisioningStateEnum UPDATING = fromString("Updating"); /** - * Static value InProgress for ProvisioningStateEnum. + * Table state is stable and without changes, table is unlocked and open for new updates. */ - public static final ProvisioningStateEnum IN_PROGRESS = fromString("InProgress"); + public static final ProvisioningStateEnum SUCCEEDED = fromString("Succeeded"); /** - * Static value Succeeded for ProvisioningStateEnum. + * Table state is deleting. */ - public static final ProvisioningStateEnum SUCCEEDED = fromString("Succeeded"); + public static final ProvisioningStateEnum DELETING = fromString("Deleting"); /** - * Static value Deleting for ProvisioningStateEnum. + * Table state is failed. */ - public static final ProvisioningStateEnum DELETING = fromString("Deleting"); + public static final ProvisioningStateEnum FAILED = fromString("Failed"); + + /** + * Table state is canceled. + */ + public static final ProvisioningStateEnum CANCELED = fromString("Canceled"); /** * Creates a new instance of ProvisioningStateEnum value. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java index 96b101885afc..ed49086a2341 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.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.models; @@ -12,17 +12,18 @@ */ public final class PublicNetworkAccessType extends ExpandableStringEnum { /** - * Static value Enabled for PublicNetworkAccessType. + * Enables connectivity to Log Analytics through public DNS. */ public static final PublicNetworkAccessType ENABLED = fromString("Enabled"); /** - * Static value Disabled for PublicNetworkAccessType. + * Disables public connectivity to Log Analytics through public DNS. */ public static final PublicNetworkAccessType DISABLED = fromString("Disabled"); /** - * Static value SecuredByPerimeter for PublicNetworkAccessType. + * Resource is only accessible from private networks and access approved by network security perimeter associated to + * this resource. */ public static final PublicNetworkAccessType SECURED_BY_PERIMETER = fromString("SecuredByPerimeter"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java index 3b9ca4b534d2..f3e12282d7e7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.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.models; @@ -12,12 +12,12 @@ */ public final class PurgeState extends ExpandableStringEnum { /** - * Static value pending for PurgeState. + * pending. */ public static final PurgeState PENDING = fromString("pending"); /** - * Static value completed for PurgeState. + * completed. */ public static final PurgeState COMPLETED = fromString("completed"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java index b8a52c24962d..99dbdf08e8a7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.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.models; @@ -13,126 +13,126 @@ */ public interface Queries { /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with - * {@link PagedIterable}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String queryPackName); + Response getWithResponse(String resourceGroupName, String queryPackName, String id, + Context context); /** - * Gets a list of Queries defined within a Log Analytics QueryPack. + * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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. + * @param id The id of a specific query defined in the Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with - * {@link PagedIterable}. + * @return a specific Log Analytics Query defined within a Log Analytics QueryPack. */ - PagedIterable list(String resourceGroupName, String queryPackName, Long top, - Boolean includeBody, String skipToken, Context context); + LogAnalyticsQueryPackQuery get(String resourceGroupName, String queryPackName, String id); /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param querySearchProperties Properties by which to search queries in the given Log Analytics QueryPack. + * @param id The id of a specific query defined in the Log Analytics QueryPack. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with - * {@link PagedIterable}. + * @return the {@link Response}. */ - PagedIterable search(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties); + Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, Context context); /** - * Search a list of Queries defined within a Log Analytics QueryPack according to given search properties. + * Deletes a specific Query defined within an Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param queryPackName The name of the Log Analytics QueryPack resource. - * @param 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. + * @param id The id of a specific query defined in the Log Analytics QueryPack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return describes the list of Log Analytics QueryPack-Query resources as paginated response with - * {@link PagedIterable}. */ - PagedIterable search(String resourceGroupName, String queryPackName, - LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, - String skipToken, Context context); + void delete(String resourceGroupName, String queryPackName, String id); /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific Log Analytics Query defined within a Log Analytics QueryPack along with {@link Response}. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with + * {@link PagedIterable}. */ - Response getWithResponse(String resourceGroupName, String queryPackName, String id, - Context context); + PagedIterable list(String resourceGroupName, String queryPackName); /** - * Gets a specific Log Analytics Query defined within a Log Analytics QueryPack. + * 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 id The id of a specific query defined in the 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 a specific Log Analytics Query defined within a Log Analytics QueryPack. + * @return a list of Queries defined within a Log Analytics QueryPack as paginated response with + * {@link PagedIterable}. */ - LogAnalyticsQueryPackQuery get(String resourceGroupName, String queryPackName, String id); + PagedIterable list(String resourceGroupName, String queryPackName, Long top, + Boolean includeBody, String skipToken, Context context); /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. - * @param context The context to associate with this operation. + * @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 {@link Response}. + * @return the response of a LogAnalyticsQueryPackQuery list operation as paginated response with + * {@link PagedIterable}. */ - Response deleteWithResponse(String resourceGroupName, String queryPackName, String id, Context context); + PagedIterable search(String resourceGroupName, String queryPackName, + LogAnalyticsQueryPackQuerySearchProperties querySearchProperties); /** - * Deletes a specific Query defined within an Log Analytics QueryPack. + * 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 id The id of a specific query defined in the Log Analytics QueryPack. + * @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}. */ - void delete(String resourceGroupName, String queryPackName, String id); + 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java index 1a18cea5d7f9..36ae558645fc 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.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.models; @@ -14,132 +14,130 @@ */ public interface QueryPacks { /** - * 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}. */ - PagedIterable list(); + 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. */ - PagedIterable list(Context context); + LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName); /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * Deletes a Log Analytics QueryPack. * * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param queryPackName The name of the Log Analytics QueryPack resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Log Analytics QueryPacks within a resource group as paginated response with - * {@link PagedIterable}. + * @return the {@link Response}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String queryPackName, Context context); /** - * Gets a list of Log Analytics QueryPacks within a resource group. + * Deletes a Log Analytics QueryPack. * * @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. * @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}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + void deleteByResourceGroup(String resourceGroupName, String queryPackName); /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * 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 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 Log Analytics QueryPacks within a resource group as paginated response with + * {@link PagedIterable}. */ - Response createOrUpdateWithoutNameWithResponse(String resourceGroupName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); + PagedIterable listByResourceGroup(String resourceGroupName); /** - * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in - * the Put operation. + * 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 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 Log Analytics QueryPacks within a resource group as paginated response with + * {@link PagedIterable}. */ - LogAnalyticsQueryPack createOrUpdateWithoutName(String resourceGroupName, - LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Deletes a Log Analytics QueryPack. + * 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 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 a list of all Log Analytics QueryPacks within a subscription as paginated response with + * {@link PagedIterable}. */ - Response deleteByResourceGroupWithResponse(String resourceGroupName, String queryPackName, Context context); + PagedIterable list(); /** - * Deletes a Log Analytics QueryPack. + * 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 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}. */ - void deleteByResourceGroup(String resourceGroupName, String queryPackName); + PagedIterable list(Context context); /** - * Returns a Log Analytics QueryPack. + * 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 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. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an Log Analytics QueryPack definition along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, - Context context); + Response createOrUpdateWithoutNameWithResponse(String resourceGroupName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload, Context context); /** - * Returns a Log Analytics QueryPack. + * 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 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. */ - LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName); + LogAnalyticsQueryPack createOrUpdateWithoutName(String resourceGroupName, + LogAnalyticsQueryPackInner logAnalyticsQueryPackPayload); /** * Returns a Log Analytics QueryPack. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java index 27f7152f88ae..11b785c06e5c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.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.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 @@ /** * Information about resource association. */ -@Fluent +@Immutable public final class ResourceAssociation implements JsonSerializable { /* * Name of the resource association @@ -22,14 +22,14 @@ public final class ResourceAssociation implements JsonSerializable { /** - * Static value Enforced for ResourceAssociationAccessMode. + * Enforced access mode - traffic to the resource that failed access checks is blocked. */ public static final ResourceAssociationAccessMode ENFORCED = fromString("Enforced"); /** - * Static value Learning for ResourceAssociationAccessMode. + * Learning access mode - traffic to the resource is enabled for analysis but not blocked. */ public static final ResourceAssociationAccessMode LEARNING = fromString("Learning"); /** - * Static value Audit for ResourceAssociationAccessMode. + * Audit access mode - traffic to the resource that fails access checks is logged but not blocked. */ public static final ResourceAssociationAccessMode AUDIT = fromString("Audit"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java index d87ee3d97cab..d08ba5d4b583 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.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.models; @@ -114,14 +114,6 @@ public String azureAsyncOperationId() { return this.azureAsyncOperationId; } - /** - * 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/models/ResultStatistics.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java index 281e72726227..d56b6d21efea 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.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.models; @@ -19,7 +19,7 @@ public final class ResultStatistics implements JsonSerializable { /** - * Static value User for RuleTypeEnum. + * User defined summary rule. This is the definition for rules created and defined by users. */ public static final RuleTypeEnum USER = fromString("User"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java index 731d0010a7c8..39d1c10bd547 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner; import java.util.List; @@ -41,6 +42,13 @@ public interface SavedSearch { */ String etag(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the category property: The category of the saved search. This helps the user to find a saved search faster. * @@ -145,7 +153,7 @@ interface WithParentResource { interface WithCategory { /** * Specifies the category property: The category of the saved search. This helps the user to find a saved - * search faster. . + * search faster.. * * @param category The category of the saved search. This helps the user to find a saved search faster. * @return the next definition stage. @@ -343,7 +351,7 @@ interface WithEtag { interface WithCategory { /** * Specifies the category property: The category of the saved search. This helps the user to find a saved - * search faster. . + * search faster.. * * @param category The category of the saved search. This helps the user to find a saved search faster. * @return the next definition stage. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java index 7181d4c83730..6a6a70ccc01c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.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.models; @@ -12,7 +12,7 @@ */ public interface SavedSearches { /** - * 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. @@ -21,13 +21,13 @@ public interface SavedSearches { * @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}. */ - 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. @@ -35,11 +35,12 @@ 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. */ - void delete(String resourceGroupName, String workspaceName, String savedSearchId); + SavedSearch get(String resourceGroupName, String workspaceName, String savedSearchId); /** - * 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. @@ -48,13 +49,13 @@ 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 along with {@link Response}. + * @return the {@link Response}. */ - 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. @@ -62,9 +63,8 @@ Response getWithResponse(String resourceGroupName, String 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 specified saved search for a given workspace. */ - SavedSearch 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/models/SavedSearchesListResult.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java index 72644fe2fa6b..4639499ea29a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java index 381aa0cad842..77c0be25cea5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.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.models; @@ -223,20 +223,6 @@ public List solutions() { return this.solutions; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (columns() != null) { - columns().forEach(e -> e.validate()); - } - if (standardColumns() != null) { - standardColumns().forEach(e -> e.validate()); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java index e763503ed5f1..ab61a6af193e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java index 943cff0da787..57ae5b8e788f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java index 52b799c1fb85..a5facb042ec9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.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.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.util.CoreUtils; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; @@ -18,7 +18,7 @@ /** * Metadata for search results. */ -@Fluent +@Immutable public final class SearchMetadata implements JsonSerializable { /* * The request id of the search. @@ -68,7 +68,7 @@ public final class SearchMetadata implements JsonSerializable { /* * The ETag of the search results. */ - private String etag; + private String eTag; /* * How the results are sorted. @@ -108,7 +108,7 @@ public final class SearchMetadata implements JsonSerializable { /** * Creates an instance of SearchMetadata class. */ - public SearchMetadata() { + private SearchMetadata() { } /** @@ -120,17 +120,6 @@ public String searchId() { return this.searchId; } - /** - * Set the searchId property: The request id of the search. - * - * @param searchId the searchId value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withSearchId(String searchId) { - this.searchId = searchId; - return this; - } - /** * Get the resultType property: The search result type. * @@ -140,17 +129,6 @@ public String resultType() { return this.resultType; } - /** - * Set the resultType property: The search result type. - * - * @param resultType the resultType value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withResultType(String resultType) { - this.resultType = resultType; - return this; - } - /** * Get the total property: The total number of search results. * @@ -160,17 +138,6 @@ public Long total() { return this.total; } - /** - * Set the total property: The total number of search results. - * - * @param total the total value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withTotal(Long total) { - this.total = total; - return this; - } - /** * Get the top property: The number of top search results. * @@ -180,17 +147,6 @@ public Long top() { return this.top; } - /** - * Set the top property: The number of top search results. - * - * @param top the top value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withTop(Long top) { - this.top = top; - return this; - } - /** * Get the id property: The id of the search results request. * @@ -200,17 +156,6 @@ public String id() { return this.id; } - /** - * Set the id property: The id of the search results request. - * - * @param id the id value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withId(String id) { - this.id = id; - return this; - } - /** * Get the coreSummaries property: The core summaries. * @@ -220,17 +165,6 @@ public List coreSummaries() { return this.coreSummaries; } - /** - * Set the coreSummaries property: The core summaries. - * - * @param coreSummaries the coreSummaries value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withCoreSummaries(List coreSummaries) { - this.coreSummaries = coreSummaries; - return this; - } - /** * Get the status property: The status of the search results. * @@ -240,17 +174,6 @@ public String status() { return this.status; } - /** - * Set the status property: The status of the search results. - * - * @param status the status value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withStatus(String status) { - this.status = status; - return this; - } - /** * Get the startTime property: The start time for the search. * @@ -260,17 +183,6 @@ public OffsetDateTime startTime() { return this.startTime; } - /** - * Set the startTime property: The start time for the search. - * - * @param startTime the startTime value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; - } - /** * Get the lastUpdated property: The time of last update. * @@ -281,34 +193,12 @@ public OffsetDateTime lastUpdated() { } /** - * Set the lastUpdated property: The time of last update. - * - * @param lastUpdated the lastUpdated value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withLastUpdated(OffsetDateTime lastUpdated) { - this.lastUpdated = lastUpdated; - return this; - } - - /** - * Get the etag property: The ETag of the search results. + * Get the eTag property: The ETag of the search results. * - * @return the etag value. + * @return the eTag value. */ - public String etag() { - return this.etag; - } - - /** - * Set the etag property: The ETag of the search results. - * - * @param etag the etag value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withEtag(String etag) { - this.etag = etag; - return this; + public String eTag() { + return this.eTag; } /** @@ -320,17 +210,6 @@ public List sort() { return this.sort; } - /** - * Set the sort property: How the results are sorted. - * - * @param sort the sort value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withSort(List sort) { - this.sort = sort; - return this; - } - /** * Get the requestTime property: The request time. * @@ -340,17 +219,6 @@ public Long requestTime() { return this.requestTime; } - /** - * Set the requestTime property: The request time. - * - * @param requestTime the requestTime value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withRequestTime(Long requestTime) { - this.requestTime = requestTime; - return this; - } - /** * Get the aggregatedValueField property: The aggregated value field. * @@ -360,17 +228,6 @@ public String aggregatedValueField() { return this.aggregatedValueField; } - /** - * Set the aggregatedValueField property: The aggregated value field. - * - * @param aggregatedValueField the aggregatedValueField value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withAggregatedValueField(String aggregatedValueField) { - this.aggregatedValueField = aggregatedValueField; - return this; - } - /** * Get the aggregatedGroupingFields property: The aggregated grouping fields. * @@ -380,17 +237,6 @@ public String aggregatedGroupingFields() { return this.aggregatedGroupingFields; } - /** - * Set the aggregatedGroupingFields property: The aggregated grouping fields. - * - * @param aggregatedGroupingFields the aggregatedGroupingFields value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withAggregatedGroupingFields(String aggregatedGroupingFields) { - this.aggregatedGroupingFields = aggregatedGroupingFields; - return this; - } - /** * Get the sum property: The sum of all aggregates returned in the result set. * @@ -400,17 +246,6 @@ public Long sum() { return this.sum; } - /** - * Set the sum property: The sum of all aggregates returned in the result set. - * - * @param sum the sum value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withSum(Long sum) { - this.sum = sum; - return this; - } - /** * Get the max property: The max of all aggregates returned in the result set. * @@ -420,17 +255,6 @@ public Long max() { return this.max; } - /** - * Set the max property: The max of all aggregates returned in the result set. - * - * @param max the max value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withMax(Long max) { - this.max = max; - return this; - } - /** * Get the schema property: The schema. * @@ -440,34 +264,6 @@ public SearchMetadataSchema schema() { return this.schema; } - /** - * Set the schema property: The schema. - * - * @param schema the schema value to set. - * @return the SearchMetadata object itself. - */ - public SearchMetadata withSchema(SearchMetadataSchema schema) { - this.schema = schema; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (coreSummaries() != null) { - coreSummaries().forEach(e -> e.validate()); - } - if (sort() != null) { - sort().forEach(e -> e.validate()); - } - if (schema() != null) { - schema().validate(); - } - } - /** * {@inheritDoc} */ @@ -485,7 +281,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime)); jsonWriter.writeStringField("lastUpdated", this.lastUpdated == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastUpdated)); - jsonWriter.writeStringField("eTag", this.etag); + jsonWriter.writeStringField("eTag", this.eTag); jsonWriter.writeArrayField("sort", this.sort, (writer, element) -> writer.writeJson(element)); jsonWriter.writeNumberField("requestTime", this.requestTime); jsonWriter.writeStringField("aggregatedValueField", this.aggregatedValueField); @@ -533,7 +329,7 @@ public static SearchMetadata fromJson(JsonReader jsonReader) throws IOException deserializedSearchMetadata.lastUpdated = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("eTag".equals(fieldName)) { - deserializedSearchMetadata.etag = reader.getString(); + deserializedSearchMetadata.eTag = reader.getString(); } else if ("sort".equals(fieldName)) { List sort = reader.readArray(reader1 -> SearchSort.fromJson(reader1)); deserializedSearchMetadata.sort = sort; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java index 3c16ee4e7316..e0f175876a32 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.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.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 @@ /** * Schema metadata for search. */ -@Fluent +@Immutable public final class SearchMetadataSchema implements JsonSerializable { /* * The name of the metadata schema. @@ -29,7 +29,7 @@ public final class SearchMetadataSchema implements JsonSerializable { /* * The name of the schema. @@ -55,7 +55,7 @@ public final class SearchSchemaValue implements JsonSerializable ownerType() { return this.ownerType; } - /** - * Set the ownerType property: The array of workflows containing the field. - * - * @param ownerType the ownerType value to set. - * @return the SearchSchemaValue object itself. - */ - public SearchSchemaValue withOwnerType(List ownerType) { - this.ownerType = ownerType; - 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/models/SearchSort.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java index a1579bc833ba..a95f3e504a3b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.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.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 sort parameters for search. */ -@Fluent +@Immutable public final class SearchSort implements JsonSerializable { /* * The name of the field the search query is sorted on. @@ -29,7 +29,7 @@ public final class SearchSort implements JsonSerializable { /** * Creates an instance of SearchSort class. */ - public SearchSort() { + private SearchSort() { } /** @@ -41,17 +41,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name of the field the search query is sorted on. - * - * @param name the name value to set. - * @return the SearchSort object itself. - */ - public SearchSort withName(String name) { - this.name = name; - return this; - } - /** * Get the order property: The sort order of the search. * @@ -61,25 +50,6 @@ public SearchSortEnum order() { return this.order; } - /** - * Set the order property: The sort order of the search. - * - * @param order the order value to set. - * @return the SearchSort object itself. - */ - public SearchSort withOrder(SearchSortEnum order) { - this.order = order; - 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/models/SearchSortEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java index 634fb8a65d3f..64a0b4714bc1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.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.models; @@ -12,12 +12,12 @@ */ public final class SearchSortEnum extends ExpandableStringEnum { /** - * Static value asc for SearchSortEnum. + * asc. */ public static final SearchSortEnum ASC = fromString("asc"); /** - * Static value desc for SearchSortEnum. + * desc. */ public static final SearchSortEnum DESC = fromString("desc"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java index b9ce652f7e05..e1992f5ac258 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java index c95d6704efff..b0d80d12289b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java index d7e12960cca0..b6bef7a73f7c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java index cade4bf37953..24e1a4bdc8f7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.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.models; @@ -12,37 +12,37 @@ */ public final class SkuNameEnum extends ExpandableStringEnum { /** - * Static value Free for SkuNameEnum. + * Free. */ public static final SkuNameEnum FREE = fromString("Free"); /** - * Static value Standard for SkuNameEnum. + * Standard. */ public static final SkuNameEnum STANDARD = fromString("Standard"); /** - * Static value Premium for SkuNameEnum. + * Premium. */ public static final SkuNameEnum PREMIUM = fromString("Premium"); /** - * Static value PerNode for SkuNameEnum. + * PerNode. */ public static final SkuNameEnum PER_NODE = fromString("PerNode"); /** - * Static value PerGB2018 for SkuNameEnum. + * PerGB2018. */ public static final SkuNameEnum PER_GB2018 = fromString("PerGB2018"); /** - * Static value Standalone for SkuNameEnum. + * Standalone. */ public static final SkuNameEnum STANDALONE = fromString("Standalone"); /** - * Static value CapacityReservation for SkuNameEnum. + * CapacityReservation. */ public static final SkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java index 62c31cb7c2d1..aa9588ba1b7c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.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.models; @@ -12,12 +12,13 @@ */ public final class SourceEnum extends ExpandableStringEnum { /** - * Static value microsoft for SourceEnum. + * Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data + * collection means. */ public static final SourceEnum MICROSOFT = fromString("microsoft"); /** - * Static value customer for SourceEnum. + * Tables created by the owner of the Workspace, and only found in this Workspace. */ public static final SourceEnum CUSTOMER = fromString("customer"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java index 9aaf9f5b5e43..36f9d94cfd6c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.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.models; @@ -12,12 +12,12 @@ */ public final class StatusCodeEnum extends ExpandableStringEnum { /** - * Static value UserAction for StatusCodeEnum. + * Summary rule stop originated from a user action (Stop was called). */ public static final StatusCodeEnum USER_ACTION = fromString("UserAction"); /** - * Static value DataPlaneError for StatusCodeEnum. + * Summary rule stop was caused due to data plane related error. */ public static final StatusCodeEnum DATA_PLANE_ERROR = fromString("DataPlaneError"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java index 5eb9cba508b0..c30e0dc763af 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.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.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; @@ -73,24 +72,6 @@ public StorageAccount withKey(String key) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (id() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property id in model StorageAccount")); - } - if (key() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property key in model StorageAccount")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(StorageAccount.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java index 984fcdde7026..da9bb5f5088b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java @@ -1,9 +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.models; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner; import java.util.List; @@ -35,11 +36,11 @@ public interface StorageInsight { String type(); /** - * Gets the etag property: The ETag of the storage insight. + * Gets the eTag property: The ETag of the storage insight. * - * @return the etag value. + * @return the eTag value. */ - String etag(); + String eTag(); /** * Gets the tags property: Resource tags. @@ -48,6 +49,13 @@ public interface StorageInsight { */ Map tags(); + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the containers property: The names of the blob containers that the workspace should read. * @@ -125,7 +133,7 @@ interface WithParentResource { * The stage of the StorageInsight definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithEtag, + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithETag, DefinitionStages.WithContainers, DefinitionStages.WithTables, DefinitionStages.WithStorageAccount { /** * Executes the create request. @@ -157,16 +165,16 @@ interface WithTags { } /** - * The stage of the StorageInsight definition allowing to specify etag. + * The stage of the StorageInsight definition allowing to specify eTag. */ - interface WithEtag { + interface WithETag { /** - * Specifies the etag property: The ETag of the storage insight.. + * Specifies the eTag property: The ETag of the storage insight.. * - * @param etag The ETag of the storage insight. + * @param eTag The ETag of the storage insight. * @return the next definition stage. */ - WithCreate withEtag(String etag); + WithCreate withETag(String eTag); } /** @@ -219,7 +227,7 @@ interface WithStorageAccount { /** * The template for StorageInsight update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithEtag, UpdateStages.WithContainers, + interface Update extends UpdateStages.WithTags, UpdateStages.WithETag, UpdateStages.WithContainers, UpdateStages.WithTables, UpdateStages.WithStorageAccount { /** * Executes the update request. @@ -255,16 +263,16 @@ interface WithTags { } /** - * The stage of the StorageInsight update allowing to specify etag. + * The stage of the StorageInsight update allowing to specify eTag. */ - interface WithEtag { + interface WithETag { /** - * Specifies the etag property: The ETag of the storage insight.. + * Specifies the eTag property: The ETag of the storage insight.. * - * @param etag The ETag of the storage insight. + * @param eTag The ETag of the storage insight. * @return the next definition stage. */ - Update withEtag(String etag); + Update withETag(String eTag); } /** diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java index 67420f36f99b..82755edb2215 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java index 49735959eda5..e959c8007af0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.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.models; @@ -12,12 +12,12 @@ */ public final class StorageInsightState extends ExpandableStringEnum { /** - * Static value OK for StorageInsightState. + * OK. */ public static final StorageInsightState OK = fromString("OK"); /** - * Static value ERROR for StorageInsightState. + * ERROR. */ public static final StorageInsightState ERROR = fromString("ERROR"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java index 792791efd43d..f33ee7004a31 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.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.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 @@ /** * The status of the storage insight. */ -@Fluent +@Immutable public final class StorageInsightStatus implements JsonSerializable { /* * The state of the storage insight connection to the workspace @@ -30,7 +29,7 @@ public final class StorageInsightStatus implements JsonSerializable listByWorkspace(String resourceGroupName, String workspaceName); + 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. */ - PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context); + SummaryLogs get(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 along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String workspaceName, String summaryLogsName, - Context context); + void delete(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. */ - SummaryLogs get(String resourceGroupName, String workspaceName, String summaryLogsName); + 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}. */ - void delete(String resourceGroupName, String workspaceName, String summaryLogsName); + 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}. */ - void delete(String resourceGroupName, String workspaceName, String summaryLogsName, Context context); + 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/models/SummaryLogsRetryBin.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java index a766e7736945..4f9c0930fa67 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.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.models; @@ -47,17 +47,6 @@ public SummaryLogsRetryBin withProperties(SummaryLogsRetryBinProperties properti return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java index 8b0ce563b9b2..0c54d081b239 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.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.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; @@ -51,21 +50,6 @@ public SummaryLogsRetryBinProperties withRetryBinStartTime(OffsetDateTime retryB return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (retryBinStartTime() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property retryBinStartTime in model SummaryLogsRetryBinProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SummaryLogsRetryBinProperties.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java index bb6b889337dc..f5d8f933fa8f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.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.models; @@ -35,7 +35,7 @@ public interface Table { String type(); /** - * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * * @return the systemData value. */ @@ -115,7 +115,7 @@ public interface Table { * * @return the provisioningState value. */ - ProvisioningStateEnum provisioningState(); + OperationalInsightsTableProvisioningState provisioningState(); /** * Gets the retentionInDaysAsDefault property: True - Value originates from workspace retention in days, False - diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java index 7eeece0a7632..eb20952e3a93 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.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.models; @@ -12,17 +12,17 @@ */ public final class TablePlanEnum extends ExpandableStringEnum { /** - * Static value Basic for TablePlanEnum. + * Medium-touch logs needed for troubleshooting and incident response. */ public static final TablePlanEnum BASIC = fromString("Basic"); /** - * Static value Analytics for TablePlanEnum. + * High-value logs used for continuous monitoring, real-time detection, and performance analytics. */ public static final TablePlanEnum ANALYTICS = fromString("Analytics"); /** - * Static value Auxiliary for TablePlanEnum. + * Low-touch logs, such as verbose logs, and data required for auditing and compliance. */ public static final TablePlanEnum AUXILIARY = fromString("Auxiliary"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java index 2159c2cefdcb..3030f47111e0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.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.models; @@ -12,17 +12,20 @@ */ public final class TableSubTypeEnum extends ExpandableStringEnum { /** - * Static value Any for TableSubTypeEnum. + * The default subtype with which built-in tables are created. */ public static final TableSubTypeEnum ANY = fromString("Any"); /** - * Static value Classic for TableSubTypeEnum. + * Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any + * table against which Custom Fields were created. */ public static final TableSubTypeEnum CLASSIC = fromString("Classic"); /** - * Static value DataCollectionRuleBased for TableSubTypeEnum. + * A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data + * Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection + * Rules. */ public static final TableSubTypeEnum DATA_COLLECTION_RULE_BASED = fromString("DataCollectionRuleBased"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java index 832fda2ab2ea..70195c9ed923 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.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.models; @@ -12,22 +12,22 @@ */ public final class TableTypeEnum extends ExpandableStringEnum { /** - * Static value Microsoft for TableTypeEnum. + * Standard data collected by Azure Monitor. */ public static final TableTypeEnum MICROSOFT = fromString("Microsoft"); /** - * Static value CustomLog for TableTypeEnum. + * Custom log table. */ public static final TableTypeEnum CUSTOM_LOG = fromString("CustomLog"); /** - * Static value RestoredLogs for TableTypeEnum. + * Restored data. */ public static final TableTypeEnum RESTORED_LOGS = fromString("RestoredLogs"); /** - * Static value SearchResults for TableTypeEnum. + * Data collected by a search job. */ public static final TableTypeEnum SEARCH_RESULTS = fromString("SearchResults"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java index 1be93151d042..5626aabd7ac7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.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.models; @@ -13,83 +13,83 @@ */ public interface Tables { /** - * 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}. */ - PagedIterable
listByWorkspace(String resourceGroupName, String workspaceName); + 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. */ - PagedIterable
listByWorkspace(String resourceGroupName, String workspaceName, Context context); + Table get(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 along with {@link Response}. */ - Response
getWithResponse(String resourceGroupName, String workspaceName, String tableName, Context context); + void delete(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. */ - Table get(String resourceGroupName, String workspaceName, String tableName); + 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}. */ - void delete(String resourceGroupName, String workspaceName, String tableName); + 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}. */ - void delete(String resourceGroupName, String workspaceName, String tableName, Context context); + 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/models/Tag.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java index b2651325d61c..92e768a58e17 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.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.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; @@ -73,22 +72,6 @@ public Tag withValue(String value) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Missing required property name in model Tag")); - } - if (value() == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Missing required property value in model Tag")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(Tag.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java index 7b4678ce4644..405cf3915f4c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.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.models; @@ -48,14 +48,6 @@ public TagsResource withTags(Map tags) { 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/models/TimeSelectorEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java index 3f038ed82aa0..6c5e64cd8a44 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.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.models; @@ -12,7 +12,7 @@ */ public final class TimeSelectorEnum extends ExpandableStringEnum { /** - * Static value TimeGenerated for TimeSelectorEnum. + * TimeGenerated. */ public static final TimeSelectorEnum TIME_GENERATED = fromString("TimeGenerated"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java index b8ac6d55d87b..fddcceea6c9b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Type.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.models; @@ -12,12 +12,12 @@ */ public final class Type extends ExpandableStringEnum { /** - * Static value StorageAccount for Type. + * StorageAccount. */ public static final Type STORAGE_ACCOUNT = fromString("StorageAccount"); /** - * Static value EventHub for Type. + * EventHub. */ public static final Type EVENT_HUB = fromString("EventHub"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java index 07f797f26dbf..f24a218f91e2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java index b81e3c6aa5bd..950d9ec24308 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java index 69fd1908e819..6cae7677f729 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.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.models; @@ -10,7 +10,6 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; -import java.util.UUID; /** * User assigned identity properties. @@ -20,12 +19,12 @@ public final class UserAssignedIdentity implements JsonSerializable UUID.fromString(nonNullReader.getString())); + deserializedUserAssignedIdentity.principalId = reader.getString(); } else if ("clientId".equals(fieldName)) { - deserializedUserAssignedIdentity.clientId - = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + deserializedUserAssignedIdentity.clientId = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java index c9b6ccb91da2..810fc5362788 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.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.models; @@ -50,14 +50,6 @@ public String clientId() { return this.clientId; } - /** - * 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/models/Workspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java index 9d7cd91cc51a..d2d715d6792d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.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.models; @@ -59,18 +59,18 @@ public interface Workspace { Identity identity(); /** - * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * Gets the etag property: The etag of the workspace. * - * @return the systemData value. + * @return the etag value. */ - SystemData systemData(); + String etag(); /** - * Gets the etag property: The etag of the workspace. + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the etag value. + * @return the systemData value. */ - String etag(); + SystemData systemData(); /** * Gets the provisioningState property: The provisioning state of the workspace. @@ -679,4 +679,28 @@ interface WithFailover { * @return the refreshed resource. */ Workspace refresh(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. + * + * @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. + */ + void failback(); + + /** + * 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. + * + * @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. + */ + void failback(Context context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java index 8d70931a7192..15b146324491 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.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.models; @@ -75,14 +75,6 @@ public DataIngestionStatus dataIngestionStatus() { return this.dataIngestionStatus; } - /** - * 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/models/WorkspaceEntityStatus.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java index df0e2b776c60..0957284f3eab 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.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.models; @@ -12,37 +12,37 @@ */ public final class WorkspaceEntityStatus extends ExpandableStringEnum { /** - * Static value Creating for WorkspaceEntityStatus. + * Creating. */ public static final WorkspaceEntityStatus CREATING = fromString("Creating"); /** - * Static value Succeeded for WorkspaceEntityStatus. + * Succeeded. */ public static final WorkspaceEntityStatus SUCCEEDED = fromString("Succeeded"); /** - * Static value Failed for WorkspaceEntityStatus. + * Failed. */ public static final WorkspaceEntityStatus FAILED = fromString("Failed"); /** - * Static value Canceled for WorkspaceEntityStatus. + * Canceled. */ public static final WorkspaceEntityStatus CANCELED = fromString("Canceled"); /** - * Static value Deleting for WorkspaceEntityStatus. + * Deleting. */ public static final WorkspaceEntityStatus DELETING = fromString("Deleting"); /** - * Static value ProvisioningAccount for WorkspaceEntityStatus. + * ProvisioningAccount. */ public static final WorkspaceEntityStatus PROVISIONING_ACCOUNT = fromString("ProvisioningAccount"); /** - * Static value Updating for WorkspaceEntityStatus. + * Updating. */ public static final WorkspaceEntityStatus UPDATING = fromString("Updating"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java index 2c21e573155e..3d3d0444d858 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.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.models; @@ -52,14 +52,6 @@ public OffsetDateTime lastModifiedDate() { return this.lastModifiedDate; } - /** - * 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/models/WorkspaceFailoverState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java index 9e737290b651..6f1c4ed44833 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.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.models; @@ -12,27 +12,27 @@ */ public final class WorkspaceFailoverState extends ExpandableStringEnum { /** - * Static value Inactive for WorkspaceFailoverState. + * Inactive. */ public static final WorkspaceFailoverState INACTIVE = fromString("Inactive"); /** - * Static value Activating for WorkspaceFailoverState. + * Activating. */ public static final WorkspaceFailoverState ACTIVATING = fromString("Activating"); /** - * Static value Active for WorkspaceFailoverState. + * Active. */ public static final WorkspaceFailoverState ACTIVE = fromString("Active"); /** - * Static value Deactivating for WorkspaceFailoverState. + * Deactivating. */ public static final WorkspaceFailoverState DEACTIVATING = fromString("Deactivating"); /** - * Static value Failed for WorkspaceFailoverState. + * Failed. */ public static final WorkspaceFailoverState FAILED = fromString("Failed"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java index e99d2e623119..fdf520f9db03 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.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.models; @@ -209,14 +209,6 @@ public WorkspaceFeatures withAdditionalProperties(Map additional 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/models/WorkspacePatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java index cc71120c2510..f9739ef46e85 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.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.models; import com.azure.core.annotation.Fluent; +import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -34,6 +35,11 @@ public final class WorkspacePatch extends AzureEntityResource { */ private Map tags; + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + /* * Resource Etag. */ @@ -109,6 +115,16 @@ public WorkspacePatch withTags(Map tags) { return this; } + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + @Override + public SystemData systemData() { + return this.systemData; + } + /** * Get the etag property: Resource Etag. * @@ -430,21 +446,6 @@ public WorkspacePatch withFailover(WorkspaceFailoverProperties failover) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - if (innerProperties() != null) { - innerProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - /** * {@inheritDoc} */ @@ -481,6 +482,8 @@ public static WorkspacePatch fromJson(JsonReader jsonReader) throws IOException deserializedWorkspacePatch.type = reader.getString(); } else if ("etag".equals(fieldName)) { deserializedWorkspacePatch.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedWorkspacePatch.systemData = SystemData.fromJson(reader); } else if ("properties".equals(fieldName)) { deserializedWorkspacePatch.innerProperties = WorkspaceProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java index 75bab417a56d..8bc9104e3ccf 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.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.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; @@ -74,26 +73,6 @@ public WorkspacePurgeBody withFilters(List filters) { return this; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (table() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property table in model WorkspacePurgeBody")); - } - if (filters() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property filters in model WorkspacePurgeBody")); - } else { - filters().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WorkspacePurgeBody.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java index ea933e471b37..f5f7f30fdf35 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.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.models; @@ -132,14 +132,6 @@ public WorkspacePurgeBodyFilters withKey(String key) { 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/models/WorkspacePurgeResponse.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java index f3590e54afdc..147d5bdbfb3b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java index 1190f6d32b29..8618213dac19 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java index 918ec3d23ba1..d6e8dd1bd067 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java index 74f477f17f09..ec55784e12ce 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java @@ -1,22 +1,22 @@ // 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.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; /** * The WorkspacePurgesPurgeHeaders model. */ -@Fluent +@Immutable public final class WorkspacePurgesPurgeHeaders { /* * The x-ms-status-location property. */ - private String xMsStatusLocation; + private final String xMsStatusLocation; private static final HttpHeaderName X_MS_STATUS_LOCATION = HttpHeaderName.fromString("x-ms-status-location"); @@ -38,23 +38,4 @@ public WorkspacePurgesPurgeHeaders(HttpHeaders rawHeaders) { public String xMsStatusLocation() { return this.xMsStatusLocation; } - - /** - * Set the xMsStatusLocation property: The x-ms-status-location property. - * - * @param xMsStatusLocation the xMsStatusLocation value to set. - * @return the WorkspacePurgesPurgeHeaders object itself. - */ - public WorkspacePurgesPurgeHeaders withXMsStatusLocation(String xMsStatusLocation) { - this.xMsStatusLocation = xMsStatusLocation; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java index 233d4fd4725b..e2b875f4f4b8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.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.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java index 3221198b5a6a..d57625f3c751 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.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.models; @@ -119,14 +119,6 @@ public OffsetDateTime lastModifiedDate() { return this.lastModifiedDate; } - /** - * 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/models/WorkspaceReplicationState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java index 3012cd8a21ed..2ca873044f9a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.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.models; @@ -12,47 +12,47 @@ */ public final class WorkspaceReplicationState extends ExpandableStringEnum { /** - * Static value Succeeded for WorkspaceReplicationState. + * Succeeded. */ public static final WorkspaceReplicationState SUCCEEDED = fromString("Succeeded"); /** - * Static value EnableRequested for WorkspaceReplicationState. + * EnableRequested. */ public static final WorkspaceReplicationState ENABLE_REQUESTED = fromString("EnableRequested"); /** - * Static value Enabling for WorkspaceReplicationState. + * Enabling. */ public static final WorkspaceReplicationState ENABLING = fromString("Enabling"); /** - * Static value DisableRequested for WorkspaceReplicationState. + * DisableRequested. */ public static final WorkspaceReplicationState DISABLE_REQUESTED = fromString("DisableRequested"); /** - * Static value Disabling for WorkspaceReplicationState. + * Disabling. */ public static final WorkspaceReplicationState DISABLING = fromString("Disabling"); /** - * Static value RollbackRequested for WorkspaceReplicationState. + * RollbackRequested. */ public static final WorkspaceReplicationState ROLLBACK_REQUESTED = fromString("RollbackRequested"); /** - * Static value RollingBack for WorkspaceReplicationState. + * RollingBack. */ public static final WorkspaceReplicationState ROLLING_BACK = fromString("RollingBack"); /** - * Static value Failed for WorkspaceReplicationState. + * Failed. */ public static final WorkspaceReplicationState FAILED = fromString("Failed"); /** - * Static value Canceled for WorkspaceReplicationState. + * Canceled. */ public static final WorkspaceReplicationState CANCELED = fromString("Canceled"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java index af77ce68904e..61b9e8dc3ba7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.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.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; @@ -91,20 +90,6 @@ public OffsetDateTime lastSkuUpdate() { return this.lastSkuUpdate; } - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property name in model WorkspaceSku")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(WorkspaceSku.class); - /** * {@inheritDoc} */ diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java index 3d342cad4da2..070008f9e560 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.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.models; @@ -12,42 +12,42 @@ */ public final class WorkspaceSkuNameEnum extends ExpandableStringEnum { /** - * Static value Free for WorkspaceSkuNameEnum. + * Free. */ public static final WorkspaceSkuNameEnum FREE = fromString("Free"); /** - * Static value Standard for WorkspaceSkuNameEnum. + * Standard. */ public static final WorkspaceSkuNameEnum STANDARD = fromString("Standard"); /** - * Static value Premium for WorkspaceSkuNameEnum. + * Premium. */ public static final WorkspaceSkuNameEnum PREMIUM = fromString("Premium"); /** - * Static value PerNode for WorkspaceSkuNameEnum. + * PerNode. */ public static final WorkspaceSkuNameEnum PER_NODE = fromString("PerNode"); /** - * Static value PerGB2018 for WorkspaceSkuNameEnum. + * PerGB2018. */ public static final WorkspaceSkuNameEnum PER_GB2018 = fromString("PerGB2018"); /** - * Static value Standalone for WorkspaceSkuNameEnum. + * Standalone. */ public static final WorkspaceSkuNameEnum STANDALONE = fromString("Standalone"); /** - * Static value CapacityReservation for WorkspaceSkuNameEnum. + * CapacityReservation. */ public static final WorkspaceSkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation"); /** - * Static value LACluster for WorkspaceSkuNameEnum. + * LACluster. */ public static final WorkspaceSkuNameEnum LACLUSTER = fromString("LACluster"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java index c83b5b4f9374..fdd852419e16 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.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.models; @@ -13,47 +13,29 @@ */ public interface Workspaces { /** - * 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}. - */ - 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}. - */ - 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}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + 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. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + Workspace getByResourceGroup(String resourceGroupName, String workspaceName); /** * Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same @@ -85,62 +67,47 @@ public interface Workspaces { 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}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, Context context); + 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}. */ - Workspace getByResourceGroup(String resourceGroupName, String workspaceName); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * 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. + * Gets the workspaces in a subscription. * - * @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. + * @return the workspaces in a subscription as paginated response with {@link PagedIterable}. */ - void failover(String resourceGroupName, String location, String workspaceName); + PagedIterable list(); /** - * 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. + * Gets the workspaces in a subscription. * - * @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. * @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}. */ - void failover(String resourceGroupName, String location, String workspaceName, Context context); + PagedIterable list(Context context); /** * Deactivates failover for the specified workspace. @@ -171,6 +138,35 @@ public interface Workspaces { */ void failback(String resourceGroupName, String workspaceName, Context context); + /** + * 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 a network security perimeter configuration along with {@link Response}. + */ + Response getNspWithResponse(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName, Context context); + + /** + * 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. + * @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. + */ + NetworkSecurityPerimeterConfiguration getNsp(String resourceGroupName, String workspaceName, + String networkSecurityPerimeterConfigurationName); + /** * Gets a list of NSP configurations for specified workspace. * @@ -198,59 +194,63 @@ PagedIterable listNsp(String resourceGrou 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}. */ - 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. */ - NetworkSecurityPerimeterConfiguration 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. */ - 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. */ - void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, - Context context); + void failover(String resourceGroupName, String location, String workspaceName, Context context); /** * Gets a workspace instance. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java index 4110483df1df..1c3608e92c7a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/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 data models for OperationalInsightsManagementClient. - * Operational Insights Client. + * Package containing the data models for LogAnalytics. + * Provides NSP operations for working with Log Analytics. */ package com.azure.resourcemanager.loganalytics.models; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/package-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/package-info.java index 43ab93203204..4ee8246076ff 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/package-info.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/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 classes for OperationalInsightsManagementClient. - * Operational Insights Client. + * Package containing the classes for LogAnalytics. + * Provides NSP operations for working with Log Analytics. */ package com.azure.resourcemanager.loganalytics; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/module-info.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/module-info.java index d77698cdd6c1..98b7656c760e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/module-info.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/module-info.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. module com.azure.resourcemanager.loganalytics { requires transitive com.azure.core.management; @@ -12,4 +12,5 @@ opens com.azure.resourcemanager.loganalytics.fluent.models to com.azure.core; opens com.azure.resourcemanager.loganalytics.models to com.azure.core; + opens com.azure.resourcemanager.loganalytics.implementation.models to com.azure.core; } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json new file mode 100644 index 000000000000..8f2eca702731 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json @@ -0,0 +1 @@ +{"flavor":"azure","apiVersions":{"Microsoft.OperationalInsights":"2025-07-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspace":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ClustersClient":"Microsoft.OperationalInsights.Clusters","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginDelete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginUpdate":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.createOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.delete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroup":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.list":"Microsoft.OperationalInsights.Clusters.list","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.listByResourceGroup":"Microsoft.OperationalInsights.Clusters.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.update":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient":"Microsoft.OperationalInsights.DataExports","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdate":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.delete":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.deleteWithResponse":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.get":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.getWithResponse":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.listByWorkspace":"Microsoft.OperationalInsights.DataExports.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient":"Microsoft.OperationalInsights.DataSources","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdate":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.delete":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.deleteWithResponse":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.get":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.getWithResponse":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.listByWorkspace":"Microsoft.OperationalInsights.DataSources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.list":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.list","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.delete":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.deleteWithResponse":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disable":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disableWithResponse":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enable":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enableWithResponse":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.list":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.listWithResponse":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient":"Microsoft.OperationalInsights.LinkedServices","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginDelete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.delete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.get":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.getWithResponse":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedServices.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.delete":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.deleteWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.get":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.getWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient.list":"Microsoft.OperationalInsights.Workspaces.managementGroupsList","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.get":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.getWithResponse":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationalInsightsManagementClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationsClient":"Microsoft.OperationalInsights.Operations","com.azure.resourcemanager.loganalytics.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.get":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.getWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.put":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.putWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.search":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.search","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.update":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.updateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdate":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutName":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutNameWithResponse":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.list","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.listByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTags":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTagsWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient":"Microsoft.OperationalInsights.SavedSearches","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdate":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.delete":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.deleteWithResponse":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.get":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.getWithResponse":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspace":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SchemasClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.get":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.getWithResponse":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeys":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeysWithResponse":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerate":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerateWithResponse":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdate":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.delete":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.deleteWithResponse":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.get":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.getWithResponse":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.listByWorkspace":"Microsoft.OperationalInsights.StorageInsights.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginDelete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginRetryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginStart":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.createOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.delete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.get":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.getWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.listByWorkspace":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.retryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.start":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stop":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stopWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.TablesClient":"Microsoft.OperationalInsights.Tables","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginDelete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginUpdate":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearch":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearchWithResponse":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.createOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.delete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.get":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.getWithResponse":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.listByWorkspace":"Microsoft.OperationalInsights.Tables.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrate":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrateWithResponse":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.update":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.UsagesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.UsagesClient.list":"Microsoft.OperationalInsights.Workspaces.usagesList","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatus":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatusWithResponse":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purge":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purgeWithResponse":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient":"Microsoft.OperationalInsights.Workspaces","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginDelete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginReconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.createOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.delete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroup":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNspWithResponse":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.list":"Microsoft.OperationalInsights.Workspaces.list","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.Workspaces.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.listNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.reconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.update":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.updateWithResponse":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner":"Microsoft.OperationalInsights.AvailableServiceTier","com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner":"Microsoft.OperationalInsights.Cluster","com.azure.resourcemanager.loganalytics.fluent.models.ClusterPatchProperties":"Microsoft.OperationalInsights.ClusterPatchProperties","com.azure.resourcemanager.loganalytics.fluent.models.ClusterProperties":"Microsoft.OperationalInsights.ClusterProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner":"Microsoft.OperationalInsights.DataExport","com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties":"Microsoft.OperationalInsights.DataExportProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner":"Microsoft.OperationalInsights.DataSource","com.azure.resourcemanager.loganalytics.fluent.models.Destination":"Microsoft.OperationalInsights.Destination","com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata":"Microsoft.OperationalInsights.DestinationMetaData","com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner":"Microsoft.OperationalInsights.IntelligencePack","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner":"Microsoft.OperationalInsights.LinkedService","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties":"Microsoft.OperationalInsights.LinkedServiceProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsProperties":"Microsoft.OperationalInsights.LinkedStorageAccountsProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner":"Microsoft.OperationalInsights.LinkedStorageAccountsResource","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPack","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackProperties","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuery","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryProperties","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner":"Microsoft.OperationalInsights.ManagementGroup","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupProperties":"Microsoft.OperationalInsights.ManagementGroupProperties","com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.loganalytics.fluent.models.OperationInner":"Microsoft.OperationalInsights.Operation","com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner":"Microsoft.OperationalInsights.OperationStatus","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner":"Microsoft.OperationalInsights.SavedSearch","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchProperties":"Microsoft.OperationalInsights.SavedSearchProperties","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner":"Microsoft.OperationalInsights.SavedSearchesListResult","com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner":"Microsoft.OperationalInsights.SearchGetSchemaResponse","com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner":"Microsoft.OperationalInsights.SharedKeys","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner":"Microsoft.OperationalInsights.StorageInsight","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightProperties":"Microsoft.OperationalInsights.StorageInsightProperties","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner":"Microsoft.OperationalInsights.SummaryLogs","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsProperties":"Microsoft.OperationalInsights.SummaryLogsProperties","com.azure.resourcemanager.loganalytics.fluent.models.TableInner":"Microsoft.OperationalInsights.Table","com.azure.resourcemanager.loganalytics.fluent.models.TableProperties":"Microsoft.OperationalInsights.TableProperties","com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner":"Microsoft.OperationalInsights.UsageMetric","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner":"Microsoft.OperationalInsights.Workspace","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceProperties":"Microsoft.OperationalInsights.WorkspaceProperties","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeResponse","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeStatusResponse","com.azure.resourcemanager.loganalytics.implementation.OperationalInsightsManagementClientBuilder":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult":"Microsoft.OperationalInsights.DataExportListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult":"Microsoft.OperationalInsights.LinkedServiceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult":"Microsoft.OperationalInsights.LinkedStorageAccountsListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult","com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult":"Microsoft.OperationalInsights.OperationListResult","com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult":"Microsoft.OperationalInsights.StorageInsightListResult","com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult":"Microsoft.OperationalInsights.TablesListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult":"Microsoft.OperationalInsights.WorkspaceListManagementGroupsResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult":"Microsoft.OperationalInsights.WorkspaceListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult":"Microsoft.OperationalInsights.WorkspaceListUsagesResult","com.azure.resourcemanager.loganalytics.models.AccessRule":"Azure.ResourceManager.CommonTypes.AccessRule","com.azure.resourcemanager.loganalytics.models.AccessRuleDirection":"Azure.ResourceManager.CommonTypes.AccessRuleDirection","com.azure.resourcemanager.loganalytics.models.AccessRuleProperties":"Azure.ResourceManager.CommonTypes.AccessRuleProperties","com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem":"AccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace":"Microsoft.OperationalInsights.AssociatedWorkspace","com.azure.resourcemanager.loganalytics.models.AzureEntityResource":"Microsoft.OperationalInsights.AzureEntityResource","com.azure.resourcemanager.loganalytics.models.BillingType":"Microsoft.OperationalInsights.BillingType","com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties":"Microsoft.OperationalInsights.CapacityReservationProperties","com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus":"Microsoft.OperationalInsights.ClusterEntityStatus","com.azure.resourcemanager.loganalytics.models.ClusterPatch":"Microsoft.OperationalInsights.ClusterPatch","com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties":"Microsoft.OperationalInsights.ClusterReplicationProperties","com.azure.resourcemanager.loganalytics.models.ClusterReplicationState":"Microsoft.OperationalInsights.ClusterReplicationState","com.azure.resourcemanager.loganalytics.models.ClusterSku":"Microsoft.OperationalInsights.ClusterSku","com.azure.resourcemanager.loganalytics.models.ClusterSkuNameEnum":"Microsoft.OperationalInsights.ClusterSkuNameEnum","com.azure.resourcemanager.loganalytics.models.Column":"Microsoft.OperationalInsights.Column","com.azure.resourcemanager.loganalytics.models.ColumnDataTypeHintEnum":"Microsoft.OperationalInsights.ColumnDataTypeHintEnum","com.azure.resourcemanager.loganalytics.models.ColumnTypeEnum":"Microsoft.OperationalInsights.ColumnTypeEnum","com.azure.resourcemanager.loganalytics.models.CoreSummary":"Microsoft.OperationalInsights.CoreSummary","com.azure.resourcemanager.loganalytics.models.DataIngestionStatus":"Microsoft.OperationalInsights.DataIngestionStatus","com.azure.resourcemanager.loganalytics.models.DataSourceKind":"Microsoft.OperationalInsights.DataSourceKind","com.azure.resourcemanager.loganalytics.models.DataSourceType":"Microsoft.OperationalInsights.DataSourceType","com.azure.resourcemanager.loganalytics.models.Identity":"Microsoft.OperationalInsights.Identity","com.azure.resourcemanager.loganalytics.models.IdentityType":"Microsoft.OperationalInsights.IdentityType","com.azure.resourcemanager.loganalytics.models.IssueType":"Azure.ResourceManager.CommonTypes.IssueType","com.azure.resourcemanager.loganalytics.models.KeyVaultProperties":"Microsoft.OperationalInsights.KeyVaultProperties","com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus":"Microsoft.OperationalInsights.LinkedServiceEntityStatus","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryPropertiesRelated","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchProperties","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.loganalytics.models.MetricName":"Microsoft.OperationalInsights.MetricName","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProvisioningState":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState","com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile":"Azure.ResourceManager.CommonTypes.NetworkSecurityProfile","com.azure.resourcemanager.loganalytics.models.OperationDisplay":"Microsoft.OperationalInsights.OperationDisplay","com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState":"Microsoft.OperationalInsights.OperationalInsightsTableProvisioningState","com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource":"Microsoft.OperationalInsights.PrivateLinkScopedResource","com.azure.resourcemanager.loganalytics.models.ProvisioningIssue":"Azure.ResourceManager.CommonTypes.ProvisioningIssue","com.azure.resourcemanager.loganalytics.models.ProvisioningIssueProperties":"Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties","com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum":"Microsoft.OperationalInsights.ProvisioningStateEnum","com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType":"Microsoft.OperationalInsights.PublicNetworkAccessType","com.azure.resourcemanager.loganalytics.models.PurgeState":"Microsoft.OperationalInsights.PurgeState","com.azure.resourcemanager.loganalytics.models.ResourceAssociation":"Azure.ResourceManager.CommonTypes.ResourceAssociation","com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode":"Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode","com.azure.resourcemanager.loganalytics.models.RestoredLogs":"Microsoft.OperationalInsights.RestoredLogs","com.azure.resourcemanager.loganalytics.models.ResultStatistics":"Microsoft.OperationalInsights.ResultStatistics","com.azure.resourcemanager.loganalytics.models.RuleDefinition":"Microsoft.OperationalInsights.RuleDefinition","com.azure.resourcemanager.loganalytics.models.RuleTypeEnum":"Microsoft.OperationalInsights.RuleTypeEnum","com.azure.resourcemanager.loganalytics.models.Schema":"Microsoft.OperationalInsights.Schema","com.azure.resourcemanager.loganalytics.models.SearchMetadata":"Microsoft.OperationalInsights.SearchMetadata","com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema":"Microsoft.OperationalInsights.SearchMetadataSchema","com.azure.resourcemanager.loganalytics.models.SearchResults":"Microsoft.OperationalInsights.SearchResults","com.azure.resourcemanager.loganalytics.models.SearchSchemaValue":"Microsoft.OperationalInsights.SearchSchemaValue","com.azure.resourcemanager.loganalytics.models.SearchSort":"Microsoft.OperationalInsights.SearchSort","com.azure.resourcemanager.loganalytics.models.SearchSortEnum":"Microsoft.OperationalInsights.SearchSortEnum","com.azure.resourcemanager.loganalytics.models.Severity":"Azure.ResourceManager.CommonTypes.Severity","com.azure.resourcemanager.loganalytics.models.SkuNameEnum":"Microsoft.OperationalInsights.SkuNameEnum","com.azure.resourcemanager.loganalytics.models.SourceEnum":"Microsoft.OperationalInsights.SourceEnum","com.azure.resourcemanager.loganalytics.models.StatusCodeEnum":"Microsoft.OperationalInsights.StatusCodeEnum","com.azure.resourcemanager.loganalytics.models.StorageAccount":"Microsoft.OperationalInsights.StorageAccount","com.azure.resourcemanager.loganalytics.models.StorageInsightState":"Microsoft.OperationalInsights.StorageInsightState","com.azure.resourcemanager.loganalytics.models.StorageInsightStatus":"Microsoft.OperationalInsights.StorageInsightStatus","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin":"Microsoft.OperationalInsights.SummaryLogsRetryBin","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBinProperties":"Microsoft.OperationalInsights.SummaryLogsRetryBinProperties","com.azure.resourcemanager.loganalytics.models.TablePlanEnum":"Microsoft.OperationalInsights.TablePlanEnum","com.azure.resourcemanager.loganalytics.models.TableSubTypeEnum":"Microsoft.OperationalInsights.TableSubTypeEnum","com.azure.resourcemanager.loganalytics.models.TableTypeEnum":"Microsoft.OperationalInsights.TableTypeEnum","com.azure.resourcemanager.loganalytics.models.Tag":"Microsoft.OperationalInsights.Tag","com.azure.resourcemanager.loganalytics.models.TagsResource":"Microsoft.OperationalInsights.TagsResource","com.azure.resourcemanager.loganalytics.models.TimeSelectorEnum":"Microsoft.OperationalInsights.TimeSelectorEnum","com.azure.resourcemanager.loganalytics.models.Type":"Microsoft.OperationalInsights.Type","com.azure.resourcemanager.loganalytics.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.loganalytics.models.UserIdentityProperties":"Microsoft.OperationalInsights.UserIdentityProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceCapping":"Microsoft.OperationalInsights.WorkspaceCapping","com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus":"Microsoft.OperationalInsights.WorkspaceEntityStatus","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties":"Microsoft.OperationalInsights.WorkspaceFailoverProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverState":"Microsoft.OperationalInsights.WorkspaceFailoverState","com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures":"Microsoft.OperationalInsights.WorkspaceFeatures","com.azure.resourcemanager.loganalytics.models.WorkspacePatch":"Microsoft.OperationalInsights.WorkspacePatch","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody":"Microsoft.OperationalInsights.WorkspacePurgeBody","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters":"Microsoft.OperationalInsights.WorkspacePurgeBodyFilters","com.azure.resourcemanager.loganalytics.models.WorkspacePurgesPurgeHeaders":null,"com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties":"Microsoft.OperationalInsights.WorkspaceReplicationProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationState":"Microsoft.OperationalInsights.WorkspaceReplicationState","com.azure.resourcemanager.loganalytics.models.WorkspaceSku":"Microsoft.OperationalInsights.WorkspaceSku","com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum":"Microsoft.OperationalInsights.WorkspaceSkuNameEnum"},"generatedFiles":["src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java","src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatuses.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java","src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleDefinition.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchResults.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSchemaValue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceSamples.java index 911dda2f39eb..ad838e3d2811 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceSamples.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.generated; @@ -9,9 +9,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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersCreateOrUpdateSamples.java index baa8ce2485b5..71b72d6a2e93 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersCreateOrUpdateSamples.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.generated; @@ -14,9 +14,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteSamples.java index 8fe3dc91ea5d..784be1ef0df4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersGetByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersGetByResourceGroupSamples.java index 235514d4ac46..23fef3ed8df9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersGetByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersGetByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListByResourceGroupSamples.java index 159a51548e82..cfa1cd8744b1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListSamples.java index 42ff400e6863..7ceb953f498c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersUpdateSamples.java index 75b135ad8a7e..684f2b6c03fb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ClustersUpdateSamples.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.generated; @@ -19,9 +19,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateSamples.java index 1f0b3ff72ea1..fc92dd50d1eb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateSamples.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.generated; @@ -11,9 +11,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteSamples.java index eae061c19485..5fc418611cb4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetSamples.java index c371b5126462..f703aaa0e069 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceSamples.java index a694e9c8e953..49d0e9d77ac2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateSamples.java index 5aeed8a77a3b..e9624de8bc7a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateSamples.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.generated; @@ -14,9 +14,7 @@ */ 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. @@ -30,7 +28,7 @@ public static void dataSourcesCreate(com.azure.resourcemanager.loganalytics.LogA .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(); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteSamples.java index 097b75afe896..a9fe0b040604 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetSamples.java index 7ac3c72825d4..9a8c12244762 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceSamples.java index 252e6c639b1e..fc8178c3d719 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupSamples.java index 621b15cca97c..ec6acb9ca5b1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListSamples.java index 89a8ba8021c7..d2f305d18a11 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteSamples.java index 0ab01ac2110c..139da88b17e8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. @@ -20,7 +18,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); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableSamples.java index cc5836d941b7..778836dcb4f1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableSamples.java index ad921383e09c..264b8b92fd85 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListSamples.java index a5e77a1a6180..f022007cb74b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateSamples.java index 7f3f67f2240f..fa9ca957c9b0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. @@ -23,7 +21,7 @@ public static void linkedServicesCreate(com.azure.resourcemanager.loganalytics.L .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(); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteSamples.java index 868474b2ac6f..8369955a6c53 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetSamples.java index 39852dc3b62f..42a72c057f38 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceSamples.java index be21065fff0c..d663407e8e0b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateSamples.java index 3cb1a6f23dfb..baedd86dca51 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateSamples.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.generated; @@ -12,9 +12,7 @@ */ 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. @@ -26,8 +24,8 @@ public static void linkedStorageAccountsCreate(com.azure.resourcemanager.loganal .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(); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteSamples.java index c09d2da814b2..0d32b8ef3623 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteSamples.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.generated; @@ -11,9 +11,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetSamples.java index 8daaa01f4b01..d80ebb6560ba 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetSamples.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.generated; @@ -11,9 +11,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceSamples.java index fe8d0ae5dedd..bf20b138c58f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListSamples.java index a5cae6936dfc..3074850ea13a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationStatusesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationStatusesGetSamples.java index 51a13f359a24..d7e72cbd2232 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationStatusesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationStatusesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationsListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationsListSamples.java index 5319828b6c8e..87d230743939 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationsListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/OperationsListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteSamples.java index 6a94f9eea7f9..d16bc037bcd7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetSamples.java index e9a55236fc7d..f9f1a01e3f04 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesListSamples.java index eb84f1e717ff..717adcc6103d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutSamples.java index 29d0da6c96b1..e75e28f7e4a0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutSamples.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.generated; @@ -14,9 +14,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchSamples.java index 90defb533d09..8865312de7d1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchSamples.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.generated; @@ -15,9 +15,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesUpdateSamples.java index 642be814b4cd..fef42a353512 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueriesUpdateSamples.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.generated; @@ -15,9 +15,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateSamples.java index 45c21ff9f308..dea04b796eac 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateSamples.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.generated; @@ -12,9 +12,7 @@ */ 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. @@ -30,9 +28,7 @@ public static void queryPackCreate(com.azure.resourcemanager.loganalytics.LogAna } /* - * 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameSamples.java index 95d70e02bfc1..e9cc41809b12 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameSamples.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.generated; @@ -13,9 +13,7 @@ */ 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. @@ -29,9 +27,7 @@ public static void queryPackCreateNoName(com.azure.resourcemanager.loganalytics. } /* - * 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteSamples.java index 1decd4ade04c..d3351d59b93b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupSamples.java index 4b604de0c92c..76b0b8a78940 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupSamples.java index 4c31805b962e..e8d9ed27a431 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListSamples.java index 5355f9299ebd..1453e1a2494f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksUpdateTagsSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksUpdateTagsSamples.java index 88b05a54b46e..a50e90c9b354 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksUpdateTagsSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksUpdateTagsSamples.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.generated; @@ -13,9 +13,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateSamples.java index 7c2e0682ff07..0abe7f5cb7eb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateSamples.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.generated; @@ -12,9 +12,7 @@ */ 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. @@ -23,7 +21,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") diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteSamples.java index 1d3b072e2c4e..fbfa8341cd17 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. @@ -20,7 +18,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); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetSamples.java index e07b43e10354..961b09c857e2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. @@ -20,7 +18,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); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceSamples.java index 2931575b93b6..c04e5c8f3271 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SchemaGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SchemaGetSamples.java index 3fdd88e572db..b64020cab7b7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SchemaGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SchemaGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationGetSharedKeysSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationGetSharedKeysSamples.java index abe0dae55397..51fb02f1d822 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationGetSharedKeysSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationGetSharedKeysSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationRegenerateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationRegenerateSamples.java index 80804317660d..c2541adfc4f4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationRegenerateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SharedKeysOperationRegenerateSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsCreateOrUpdateSamples.java index 91fd24cca068..e20b096975ff 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsCreateOrUpdateSamples.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.generated; @@ -12,9 +12,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteSamples.java index 7a5f529dcfc3..40be157c7769 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsGetSamples.java index 58ba9630b883..afd8b55fd21d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsListByWorkspaceSamples.java index ac06f1708f10..ed972a15d3e5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationCreateOrUpdateSamples.java index 540d72ef73fe..15c8f373d06d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationCreateOrUpdateSamples.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.generated; @@ -13,9 +13,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationDeleteSamples.java index b6408d8f24ad..decfb26bb5f9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationGetSamples.java index 0d582cfee879..91633abd230d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationListByWorkspaceSamples.java index 8d9b0affc88c..8d5e286b1d2a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationRetryBinSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationRetryBinSamples.java index d85ecb3f400b..f21f2583c669 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationRetryBinSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationRetryBinSamples.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.generated; @@ -13,9 +13,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStartSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStartSamples.java index eda03e18fabc..788c0db78c31 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStartSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStartSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStopSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStopSamples.java index 17f38ebd3033..938db7f6cae3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStopSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationStopSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchSamples.java index 30c81cbb67d6..306c5f39172b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateSamples.java index d7c87acef97f..d60548dc3d26 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateSamples.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.generated; @@ -14,9 +14,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteSamples.java index 60b8aa3ff60c..0a7315d60a23 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesGetSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesGetSamples.java index 2d33860a4c20..41f5b3f735b5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesGetSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesGetSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceSamples.java index 071274de8c87..ead4d6648bf9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateSamples.java index fb24107ad910..a8541a1f4d7b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesUpdateSamples.java index 55b3e1add3ab..d34f15c23ee5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/TablesUpdateSamples.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.generated; @@ -15,9 +15,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/UsagesListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/UsagesListSamples.java index 5ab1c8899e83..541965c50f83 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/UsagesListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/UsagesListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeGetPurgeStatusSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeGetPurgeStatusSamples.java index 28923a3085aa..2e492f408356 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeGetPurgeStatusSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeGetPurgeStatusSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgePurgeSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgePurgeSamples.java index 9e7fa0a8e4d3..3793b3502e20 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgePurgeSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgePurgeSamples.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.generated; @@ -13,9 +13,7 @@ */ 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. @@ -33,9 +31,7 @@ public static void workspacePurgeResourceId(com.azure.resourcemanager.loganalyti } /* - * 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateSamples.java index d70ce13ef48d..9827a779bbab 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateSamples.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.generated; @@ -14,9 +14,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteSamples.java index 03b2a34a2113..235f9bfcf46d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailbackSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailbackSamples.java index 63a6e1af3357..13c2ea76646d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailbackSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailbackSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailoverSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailoverSamples.java index 364b08df0dea..2d0654626425 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailoverSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesFailoverSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupSamples.java index 5cd903c4e779..a89c27cdd479 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspSamples.java index 3fc7ad9c9b00..8922a39c9d3a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupSamples.java index d16ea5977e33..0b247e22d471 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspSamples.java index 296676ebf5d6..279c3f48871d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListSamples.java index ebbbd4be541e..ec466e84e0bb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesReconcileNspSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesReconcileNspSamples.java index 066789b7ff8f..95431658754f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesReconcileNspSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesReconcileNspSamples.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.generated; @@ -9,9 +9,7 @@ */ 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. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesUpdateSamples.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesUpdateSamples.java index c41aee9f55da..811bb5ad8554 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesUpdateSamples.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/samples/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesUpdateSamples.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.generated; @@ -14,9 +14,7 @@ */ 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/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesSubscriptionsItemTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesSubscriptionsItemTests.java index af4fbaa556d3..d84b4aa659e2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesSubscriptionsItemTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesSubscriptionsItemTests.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.generated; @@ -11,16 +11,8 @@ public final class AccessRulePropertiesSubscriptionsItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AccessRulePropertiesSubscriptionsItem model = BinaryData.fromString("{\"id\":\"mzdlyjdfqwmkyo\"}") - .toObject(AccessRulePropertiesSubscriptionsItem.class); - Assertions.assertEquals("mzdlyjdfqwmkyo", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { AccessRulePropertiesSubscriptionsItem model - = new AccessRulePropertiesSubscriptionsItem().withId("mzdlyjdfqwmkyo"); - model = BinaryData.fromObject(model).toObject(AccessRulePropertiesSubscriptionsItem.class); - Assertions.assertEquals("mzdlyjdfqwmkyo", model.id()); + = BinaryData.fromString("{\"id\":\"kjj\"}").toObject(AccessRulePropertiesSubscriptionsItem.class); + Assertions.assertEquals("kjj", model.id()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesTests.java index 7a5c3b15c1a5..d289ef481606 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRulePropertiesTests.java @@ -1,67 +1,28 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.models.AccessRuleDirection; import com.azure.resourcemanager.loganalytics.models.AccessRuleProperties; -import com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class AccessRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccessRuleProperties model = BinaryData.fromString( - "{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ywuhpsvfuur\",\"tlwexxwlalniexz\",\"rzpgep\"],\"subscriptions\":[{\"id\":\"bwwpgdakchzy\"}],\"networkSecurityPerimeters\":[{\"id\":\"q\",\"perimeterGuid\":\"fcdf021f-cddf-4ed2-9e35-35a95af5df26\",\"location\":\"cxkjibnxmysuxswq\"},{\"id\":\"tvlwijpsttexoq\",\"perimeterGuid\":\"8237a725-6bb9-4eb9-986a-ba9c33d7a075\",\"location\":\"cyyufmh\"},{\"id\":\"nc\",\"perimeterGuid\":\"4afd3e24-43f2-4eb4-95b1-9cda16e7448c\",\"location\":\"qspkcdqzhlctd\"},{\"id\":\"nqndyfpchrqbn\",\"perimeterGuid\":\"c5688b78-39bc-4c74-bbff-74cd364f3c29\",\"location\":\"cgegydcwbo\"}],\"fullyQualifiedDomainNames\":[\"mvqqolih\"],\"emailAddresses\":[\"iouaubrjt\",\"oq\",\"fuojrngif\"],\"phoneNumbers\":[\"pasccbi\"]}") + "{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rx\",\"rthzvaytdwkqbrqu\",\"paxh\",\"xiilivpdtiirqt\"],\"subscriptions\":[{\"id\":\"xoruzfgsquyfxrx\"},{\"id\":\"eptra\"},{\"id\":\"jezwlwnw\"}],\"networkSecurityPerimeters\":[{\"id\":\"cvydypatdoo\",\"perimeterGuid\":\"jkniodko\",\"location\":\"bw\"},{\"id\":\"jhemms\",\"perimeterGuid\":\"dkcrodt\",\"location\":\"nfwjlfltkacjvefk\"}],\"fullyQualifiedDomainNames\":[\"oakggkfpag\",\"owpulpq\"],\"emailAddresses\":[\"lsyxkqjnsjervt\",\"agxsdszuemps\",\"zkfzbeyv\"],\"phoneNumbers\":[\"icvi\"]}") .toObject(AccessRuleProperties.class); Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.direction()); - Assertions.assertEquals("ywuhpsvfuur", model.addressPrefixes().get(0)); - Assertions.assertEquals("bwwpgdakchzy", model.subscriptions().get(0).id()); - Assertions.assertEquals("q", model.networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26"), - model.networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("cxkjibnxmysuxswq", model.networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("mvqqolih", model.fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("iouaubrjt", model.emailAddresses().get(0)); - Assertions.assertEquals("pasccbi", model.phoneNumbers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessRuleProperties model = new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("ywuhpsvfuur", "tlwexxwlalniexz", "rzpgep")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem().withId("bwwpgdakchzy"))) - .withNetworkSecurityPerimeters(Arrays.asList( - new NetworkSecurityPerimeter().withId("q") - .withPerimeterGuid(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26")) - .withLocation("cxkjibnxmysuxswq"), - new NetworkSecurityPerimeter().withId("tvlwijpsttexoq") - .withPerimeterGuid(UUID.fromString("8237a725-6bb9-4eb9-986a-ba9c33d7a075")) - .withLocation("cyyufmh"), - new NetworkSecurityPerimeter().withId("nc") - .withPerimeterGuid(UUID.fromString("4afd3e24-43f2-4eb4-95b1-9cda16e7448c")) - .withLocation("qspkcdqzhlctd"), - new NetworkSecurityPerimeter().withId("nqndyfpchrqbn") - .withPerimeterGuid(UUID.fromString("c5688b78-39bc-4c74-bbff-74cd364f3c29")) - .withLocation("cgegydcwbo"))) - .withFullyQualifiedDomainNames(Arrays.asList("mvqqolih")) - .withEmailAddresses(Arrays.asList("iouaubrjt", "oq", "fuojrngif")) - .withPhoneNumbers(Arrays.asList("pasccbi")); - model = BinaryData.fromObject(model).toObject(AccessRuleProperties.class); - Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.direction()); - Assertions.assertEquals("ywuhpsvfuur", model.addressPrefixes().get(0)); - Assertions.assertEquals("bwwpgdakchzy", model.subscriptions().get(0).id()); - Assertions.assertEquals("q", model.networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26"), - model.networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("cxkjibnxmysuxswq", model.networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("mvqqolih", model.fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("iouaubrjt", model.emailAddresses().get(0)); - Assertions.assertEquals("pasccbi", model.phoneNumbers().get(0)); + Assertions.assertEquals("rx", model.addressPrefixes().get(0)); + Assertions.assertEquals("xoruzfgsquyfxrx", model.subscriptions().get(0).id()); + Assertions.assertEquals("cvydypatdoo", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("jkniodko", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("bw", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("oakggkfpag", model.fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("lsyxkqjnsjervt", model.emailAddresses().get(0)); + Assertions.assertEquals("icvi", model.phoneNumbers().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRuleTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRuleTests.java index 7627bb861e93..a80be800c344 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRuleTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AccessRuleTests.java @@ -1,71 +1,29 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.models.AccessRule; import com.azure.resourcemanager.loganalytics.models.AccessRuleDirection; -import com.azure.resourcemanager.loganalytics.models.AccessRuleProperties; -import com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class AccessRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccessRule model = BinaryData.fromString( - "{\"name\":\"yrxpdlcgqls\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rddga\",\"quhiosrsjuivf\",\"disyirnxz\",\"czexrxzbujrtrhqv\"],\"subscriptions\":[{\"id\":\"khgn\"}],\"networkSecurityPerimeters\":[{\"id\":\"nzlrpiqywncvjt\",\"perimeterGuid\":\"bbdc99ed-04bf-44a9-bcce-e0e5e32f2675\",\"location\":\"ofizehtdhgbj\"},{\"id\":\"reljeamur\",\"perimeterGuid\":\"35ed2012-51db-4e82-9308-ff8bd4f8b868\",\"location\":\"lovuana\"},{\"id\":\"cxlpmjerb\",\"perimeterGuid\":\"8a369177-ebd3-4583-b465-eafb572e3f34\",\"location\":\"lvidizozs\"},{\"id\":\"ccxjm\",\"perimeterGuid\":\"6b1215e4-8788-4ec0-9135-19bbe112ee85\",\"location\":\"dgnwncypuuwwlt\"}],\"fullyQualifiedDomainNames\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"],\"emailAddresses\":[\"rb\",\"ldforobwj\",\"vizbfhfo\"],\"phoneNumbers\":[\"cqpbtuo\",\"xesz\",\"bbelawumuaslzk\",\"rrwoycqucwyhahn\"]}}") + "{\"name\":\"rvimjwosytxitcsk\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"miekkezzikhlyfjh\",\"gqggebdunygae\",\"idb\"],\"subscriptions\":[{\"id\":\"pxllrx\"},{\"id\":\"jmoadsuv\"}],\"networkSecurityPerimeters\":[{\"id\":\"wdmjsjqbjhhyx\",\"perimeterGuid\":\"wlycoduhpkxkg\",\"location\":\"areqna\"}],\"fullyQualifiedDomainNames\":[\"ugjhky\",\"ubeddg\",\"sofwqmzqalkrmnji\"],\"emailAddresses\":[\"acqqudfnbyxbaaab\",\"yvayffimrzr\",\"uzqogsexnevf\"],\"phoneNumbers\":[\"nw\",\"ewzsyyceuzsoib\"]}}") .toObject(AccessRule.class); - Assertions.assertEquals("yrxpdlcgqls", model.name()); - Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.properties().direction()); - Assertions.assertEquals("rddga", model.properties().addressPrefixes().get(0)); - Assertions.assertEquals("khgn", model.properties().subscriptions().get(0).id()); - Assertions.assertEquals("nzlrpiqywncvjt", model.properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675"), - model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("ofizehtdhgbj", model.properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("jctzenkei", model.properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("rb", model.properties().emailAddresses().get(0)); - Assertions.assertEquals("cqpbtuo", model.properties().phoneNumbers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AccessRule model = new AccessRule().withName("yrxpdlcgqls") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("rddga", "quhiosrsjuivf", "disyirnxz", "czexrxzbujrtrhqv")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem().withId("khgn"))) - .withNetworkSecurityPerimeters(Arrays.asList( - new NetworkSecurityPerimeter().withId("nzlrpiqywncvjt") - .withPerimeterGuid(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675")) - .withLocation("ofizehtdhgbj"), - new NetworkSecurityPerimeter().withId("reljeamur") - .withPerimeterGuid(UUID.fromString("35ed2012-51db-4e82-9308-ff8bd4f8b868")) - .withLocation("lovuana"), - new NetworkSecurityPerimeter().withId("cxlpmjerb") - .withPerimeterGuid(UUID.fromString("8a369177-ebd3-4583-b465-eafb572e3f34")) - .withLocation("lvidizozs"), - new NetworkSecurityPerimeter().withId("ccxjm") - .withPerimeterGuid(UUID.fromString("6b1215e4-8788-4ec0-9135-19bbe112ee85")) - .withLocation("dgnwncypuuwwlt"))) - .withFullyQualifiedDomainNames(Arrays.asList("jctzenkei", "zzhmkd", "svflyhbxcudch")) - .withEmailAddresses(Arrays.asList("rb", "ldforobwj", "vizbfhfo")) - .withPhoneNumbers(Arrays.asList("cqpbtuo", "xesz", "bbelawumuaslzk", "rrwoycqucwyhahn"))); - model = BinaryData.fromObject(model).toObject(AccessRule.class); - Assertions.assertEquals("yrxpdlcgqls", model.name()); - Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.properties().direction()); - Assertions.assertEquals("rddga", model.properties().addressPrefixes().get(0)); - Assertions.assertEquals("khgn", model.properties().subscriptions().get(0).id()); - Assertions.assertEquals("nzlrpiqywncvjt", model.properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675"), - model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("ofizehtdhgbj", model.properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("jctzenkei", model.properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("rb", model.properties().emailAddresses().get(0)); - Assertions.assertEquals("cqpbtuo", model.properties().phoneNumbers().get(0)); + Assertions.assertEquals("rvimjwosytxitcsk", model.name()); + Assertions.assertEquals(AccessRuleDirection.INBOUND, model.properties().direction()); + Assertions.assertEquals("miekkezzikhlyfjh", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("pxllrx", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("wdmjsjqbjhhyx", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("wlycoduhpkxkg", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("areqna", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("ugjhky", model.properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("acqqudfnbyxbaaab", model.properties().emailAddresses().get(0)); + Assertions.assertEquals("nw", model.properties().phoneNumbers().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AssociatedWorkspaceTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AssociatedWorkspaceTests.java index 6ef22fcc5837..afd06eb8d3d5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AssociatedWorkspaceTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AssociatedWorkspaceTests.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.generated; @@ -11,7 +11,7 @@ public final class AssociatedWorkspaceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AssociatedWorkspace model = BinaryData.fromString( - "{\"workspaceId\":\"d4467277-9932-4ff4-9713-ca5858c7d9fc\",\"workspaceName\":\"cqhsm\",\"resourceId\":\"rkdtmlxh\",\"associateDate\":\"2021-09-14T21:41:32Z\"}") + "{\"workspaceId\":\"scnpqxuhivy\",\"workspaceName\":\"iwbybrkxvdumjg\",\"resourceId\":\"fwvuk\",\"associateDate\":\"2021-07-06T14:12:06Z\"}") .toObject(AssociatedWorkspace.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTierInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTierInnerTests.java index 75085a254fff..a45164f023ad 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTierInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTierInnerTests.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.generated; @@ -11,13 +11,7 @@ public final class AvailableServiceTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AvailableServiceTierInner model = BinaryData.fromString( - "{\"serviceTier\":\"Standalone\",\"enabled\":true,\"minimumRetention\":1510156696946077578,\"maximumRetention\":4193584240156362355,\"defaultRetention\":6508308958074251403,\"capacityReservationLevel\":550039120288444364,\"lastSkuUpdate\":\"mtz\"}") + "{\"serviceTier\":\"Standalone\",\"enabled\":true,\"minimumRetention\":6975043128466071943,\"maximumRetention\":5954257016563149430,\"defaultRetention\":5896568716428182326,\"capacityReservationLevel\":7415544154670291452,\"lastSkuUpdate\":\"cpwpg\"}") .toObject(AvailableServiceTierInner.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableServiceTierInner model = new AvailableServiceTierInner(); - model = BinaryData.fromObject(model).toObject(AvailableServiceTierInner.class); - } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceWithResponseMockTests.java index a99343810768..f558eb14e499 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AvailableServiceTiersListByWorkspaceWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class AvailableServiceTiersListByWorkspaceWithResponseMockTests { @Test public void testListByWorkspaceWithResponse() throws Exception { String responseStr - = "[{\"serviceTier\":\"CapacityReservation\",\"enabled\":false,\"minimumRetention\":1432087697888177845,\"maximumRetention\":8313394416637011338,\"defaultRetention\":5559566767637280772,\"capacityReservationLevel\":6950782705334382897,\"lastSkuUpdate\":\"jg\"},{\"serviceTier\":\"Premium\",\"enabled\":true,\"minimumRetention\":5983360915282781316,\"maximumRetention\":4653983891463635460,\"defaultRetention\":3143366093760834812,\"capacityReservationLevel\":4708968390247773451,\"lastSkuUpdate\":\"ltxijjumfqwazln\"},{\"serviceTier\":\"PerGB2018\",\"enabled\":false,\"minimumRetention\":3523690994753868801,\"maximumRetention\":3035438207417975715,\"defaultRetention\":1193446146950584030,\"capacityReservationLevel\":6287732006458517592,\"lastSkuUpdate\":\"yfu\"},{\"serviceTier\":\"Standalone\",\"enabled\":true,\"minimumRetention\":3265340554220962405,\"maximumRetention\":1400392420008149330,\"defaultRetention\":2431415951490180842,\"capacityReservationLevel\":3788300585704298114,\"lastSkuUpdate\":\"hm\"}]"; + = "[{\"serviceTier\":\"Premium\",\"enabled\":false,\"minimumRetention\":4143113396233203378,\"maximumRetention\":8427058469053871541,\"defaultRetention\":7193504537103100788,\"capacityReservationLevel\":57717437431682031,\"lastSkuUpdate\":\"tfmhklbnldpvcb\"},{\"serviceTier\":\"Free\",\"enabled\":false,\"minimumRetention\":260638395047239156,\"maximumRetention\":5858060139563890420,\"defaultRetention\":6385248212428342981,\"capacityReservationLevel\":7683743280200844431,\"lastSkuUpdate\":\"r\"},{\"serviceTier\":\"PerGB2018\",\"enabled\":true,\"minimumRetention\":3319548105007639179,\"maximumRetention\":854996633065956163,\"defaultRetention\":8746837650376040837,\"capacityReservationLevel\":198472802196573806,\"lastSkuUpdate\":\"lbnwtpcpahp\"}]"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListByWorkspaceWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); List response = manager.availableServiceTiers() - .listByWorkspaceWithResponse("qtferrqwexjkmf", "apjwogqqnobpudcd", com.azure.core.util.Context.NONE) + .listByWorkspaceWithResponse("xdazv", "hctmmkosz", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AzureEntityResourceTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AzureEntityResourceTests.java index 5755d7c4687c..c48fa8155ca8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AzureEntityResourceTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/AzureEntityResourceTests.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.generated; @@ -10,9 +10,10 @@ public final class AzureEntityResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureEntityResource model - = BinaryData.fromString("{\"etag\":\"whcjyxcc\",\"id\":\"bvpa\",\"name\":\"akkud\",\"type\":\"px\"}") - .toObject(AzureEntityResource.class); + AzureEntityResource model = BinaryData + .fromString( + "{\"etag\":\"kgshwa\",\"id\":\"ixzbinjeputtmryw\",\"name\":\"uzoqft\",\"type\":\"yqzrnkcqvyxlw\"}") + .toObject(AzureEntityResource.class); } @org.junit.jupiter.api.Test diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CapacityReservationPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CapacityReservationPropertiesTests.java index 18652f10597f..4aab5ee476fd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CapacityReservationPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CapacityReservationPropertiesTests.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.generated; @@ -11,7 +11,7 @@ public final class CapacityReservationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityReservationProperties model - = BinaryData.fromString("{\"lastSkuUpdate\":\"2021-01-05T18:43:06Z\",\"minCapacity\":8378841457136361246}") + = BinaryData.fromString("{\"lastSkuUpdate\":\"2021-02-24T15:23:22Z\",\"minCapacity\":1289256084075144216}") .toObject(CapacityReservationProperties.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterReplicationPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterReplicationPropertiesTests.java index ea1c0aeecb42..cdad7c8c5b13 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterReplicationPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterReplicationPropertiesTests.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.generated; @@ -12,21 +12,21 @@ public final class ClusterReplicationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterReplicationProperties model = BinaryData.fromString( - "{\"location\":\"kc\",\"enabled\":false,\"isAvailabilityZonesEnabled\":true,\"provisioningState\":\"Enabling\",\"createdDate\":\"2021-03-12T09:05:14Z\",\"lastModifiedDate\":\"2021-11-03T04:50:08Z\"}") + "{\"location\":\"h\",\"enabled\":true,\"isAvailabilityZonesEnabled\":false,\"provisioningState\":\"EnableRequested\",\"createdDate\":\"2021-11-09T16:56:59Z\",\"lastModifiedDate\":\"2021-08-14T21:15:33Z\"}") .toObject(ClusterReplicationProperties.class); - Assertions.assertEquals("kc", model.location()); - Assertions.assertFalse(model.enabled()); - Assertions.assertTrue(model.isAvailabilityZonesEnabled()); + Assertions.assertEquals("h", model.location()); + Assertions.assertTrue(model.enabled()); + Assertions.assertFalse(model.isAvailabilityZonesEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterReplicationProperties model = new ClusterReplicationProperties().withLocation("kc") - .withEnabled(false) - .withIsAvailabilityZonesEnabled(true); + ClusterReplicationProperties model = new ClusterReplicationProperties().withLocation("h") + .withEnabled(true) + .withIsAvailabilityZonesEnabled(false); model = BinaryData.fromObject(model).toObject(ClusterReplicationProperties.class); - Assertions.assertEquals("kc", model.location()); - Assertions.assertFalse(model.enabled()); - Assertions.assertTrue(model.isAvailabilityZonesEnabled()); + Assertions.assertEquals("h", model.location()); + Assertions.assertTrue(model.enabled()); + Assertions.assertFalse(model.isAvailabilityZonesEnabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterSkuTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterSkuTests.java index ec54834d00ab..e362e593014d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterSkuTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClusterSkuTests.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.generated; @@ -12,18 +12,18 @@ public final class ClusterSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterSku model = BinaryData.fromString("{\"capacity\":4121879659269768466,\"name\":\"CapacityReservation\"}") + ClusterSku model = BinaryData.fromString("{\"capacity\":3819884003908031717,\"name\":\"CapacityReservation\"}") .toObject(ClusterSku.class); - Assertions.assertEquals(4121879659269768466L, model.capacity()); + Assertions.assertEquals(3819884003908031717L, model.capacity()); Assertions.assertEquals(ClusterSkuNameEnum.CAPACITY_RESERVATION, model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterSku model - = new ClusterSku().withCapacity(4121879659269768466L).withName(ClusterSkuNameEnum.CAPACITY_RESERVATION); + = new ClusterSku().withCapacity(3819884003908031717L).withName(ClusterSkuNameEnum.CAPACITY_RESERVATION); model = BinaryData.fromObject(model).toObject(ClusterSku.class); - Assertions.assertEquals(4121879659269768466L, model.capacity()); + Assertions.assertEquals(3819884003908031717L, model.capacity()); Assertions.assertEquals(ClusterSkuNameEnum.CAPACITY_RESERVATION, model.name()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteMockTests.java index ab6b2cc44564..275be70d91dd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ClustersDeleteMockTests.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.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.clusters().delete("aglkafhon", "juj", com.azure.core.util.Context.NONE); + manager.clusters().delete("gajinnixjawrtmj", "jmyccxlzhcoxov", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ColumnTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ColumnTests.java index fb56750955dd..a095e11a4875 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ColumnTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ColumnTests.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.generated; @@ -14,27 +14,27 @@ public final class ColumnTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Column model = BinaryData.fromString( - "{\"name\":\"pikpz\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"nlfzxiavrmbz\",\"description\":\"okixrjqcir\",\"isDefaultDisplay\":false,\"isHidden\":true}") + "{\"name\":\"mfdn\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"vfcjnaeoisrvhmg\",\"description\":\"ffukiscvw\",\"isDefaultDisplay\":true,\"isHidden\":false}") .toObject(Column.class); - Assertions.assertEquals("pikpz", model.name()); - Assertions.assertEquals(ColumnTypeEnum.REAL, model.type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.URI, model.dataTypeHint()); - Assertions.assertEquals("nlfzxiavrmbz", model.displayName()); - Assertions.assertEquals("okixrjqcir", model.description()); + Assertions.assertEquals("mfdn", model.name()); + Assertions.assertEquals(ColumnTypeEnum.DATE_TIME, model.type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.dataTypeHint()); + Assertions.assertEquals("vfcjnaeoisrvhmg", model.displayName()); + Assertions.assertEquals("ffukiscvw", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Column model = new Column().withName("pikpz") - .withType(ColumnTypeEnum.REAL) - .withDataTypeHint(ColumnDataTypeHintEnum.URI) - .withDisplayName("nlfzxiavrmbz") - .withDescription("okixrjqcir"); + Column model = new Column().withName("mfdn") + .withType(ColumnTypeEnum.DATE_TIME) + .withDataTypeHint(ColumnDataTypeHintEnum.GUID) + .withDisplayName("vfcjnaeoisrvhmg") + .withDescription("ffukiscvw"); model = BinaryData.fromObject(model).toObject(Column.class); - Assertions.assertEquals("pikpz", model.name()); - Assertions.assertEquals(ColumnTypeEnum.REAL, model.type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.URI, model.dataTypeHint()); - Assertions.assertEquals("nlfzxiavrmbz", model.displayName()); - Assertions.assertEquals("okixrjqcir", model.description()); + Assertions.assertEquals("mfdn", model.name()); + Assertions.assertEquals(ColumnTypeEnum.DATE_TIME, model.type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.dataTypeHint()); + Assertions.assertEquals("vfcjnaeoisrvhmg", model.displayName()); + Assertions.assertEquals("ffukiscvw", model.description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CoreSummaryTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CoreSummaryTests.java index 2bb6c7f6df27..2c404fcd5218 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CoreSummaryTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/CoreSummaryTests.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.generated; @@ -12,17 +12,9 @@ public final class CoreSummaryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CoreSummary model - = BinaryData.fromString("{\"status\":\"zvqtmnubexkp\",\"numberOfDocuments\":6799001413428276597}") + = BinaryData.fromString("{\"status\":\"hgbjkvrelje\",\"numberOfDocuments\":6077325916843454388}") .toObject(CoreSummary.class); - Assertions.assertEquals("zvqtmnubexkp", model.status()); - Assertions.assertEquals(6799001413428276597L, model.numberOfDocuments()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CoreSummary model = new CoreSummary().withStatus("zvqtmnubexkp").withNumberOfDocuments(6799001413428276597L); - model = BinaryData.fromObject(model).toObject(CoreSummary.class); - Assertions.assertEquals("zvqtmnubexkp", model.status()); - Assertions.assertEquals(6799001413428276597L, model.numberOfDocuments()); + Assertions.assertEquals("hgbjkvrelje", model.status()); + Assertions.assertEquals(6077325916843454388L, model.numberOfDocuments()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportInnerTests.java index 62a324915bf1..f273bda449b7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportInnerTests.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.generated; @@ -13,33 +13,33 @@ public final class DataExportInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataExportInner model = BinaryData.fromString( - "{\"properties\":{\"dataExportId\":\"qeof\",\"tableNames\":[\"e\",\"jhqjbasvmsmjqul\",\"gsntnbybkzgcwr\",\"clxxwrljdo\"],\"destination\":{\"resourceId\":\"kcqvkocrc\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"nh\"}},\"enable\":true,\"createdDate\":\"biksq\",\"lastModifiedDate\":\"lssai\"},\"id\":\"qpjwnzlljfm\",\"name\":\"pee\",\"type\":\"vmgxsab\"}") + "{\"properties\":{\"dataExportId\":\"zitonpeqfpjkjl\",\"tableNames\":[\"fpdvhpfxxypi\",\"i\"],\"destination\":{\"resourceId\":\"ayhuy\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"depoog\"}},\"enable\":true,\"createdDate\":\"amiheognarxz\",\"lastModifiedDate\":\"heotusiv\"},\"id\":\"v\",\"name\":\"ciqihnhung\",\"type\":\"wjzrnfygxgisp\"}") .toObject(DataExportInner.class); - Assertions.assertEquals("qeof", model.dataExportId()); - Assertions.assertEquals("e", model.tableNames().get(0)); + Assertions.assertEquals("zitonpeqfpjkjl", model.dataExportId()); + Assertions.assertEquals("fpdvhpfxxypi", model.tableNames().get(0)); Assertions.assertTrue(model.enable()); - Assertions.assertEquals("biksq", model.createdDate()); - Assertions.assertEquals("lssai", model.lastModifiedDate()); - Assertions.assertEquals("kcqvkocrc", model.resourceId()); - Assertions.assertEquals("nh", model.eventHubName()); + Assertions.assertEquals("amiheognarxz", model.createdDate()); + Assertions.assertEquals("heotusiv", model.lastModifiedDate()); + Assertions.assertEquals("ayhuy", model.resourceId()); + Assertions.assertEquals("depoog", model.eventHubName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataExportInner model = new DataExportInner().withDataExportId("qeof") - .withTableNames(Arrays.asList("e", "jhqjbasvmsmjqul", "gsntnbybkzgcwr", "clxxwrljdo")) + DataExportInner model = new DataExportInner().withDataExportId("zitonpeqfpjkjl") + .withTableNames(Arrays.asList("fpdvhpfxxypi", "i")) .withEnable(true) - .withCreatedDate("biksq") - .withLastModifiedDate("lssai") - .withResourceId("kcqvkocrc") - .withEventHubName("nh"); + .withCreatedDate("amiheognarxz") + .withLastModifiedDate("heotusiv") + .withResourceId("ayhuy") + .withEventHubName("depoog"); model = BinaryData.fromObject(model).toObject(DataExportInner.class); - Assertions.assertEquals("qeof", model.dataExportId()); - Assertions.assertEquals("e", model.tableNames().get(0)); + Assertions.assertEquals("zitonpeqfpjkjl", model.dataExportId()); + Assertions.assertEquals("fpdvhpfxxypi", model.tableNames().get(0)); Assertions.assertTrue(model.enable()); - Assertions.assertEquals("biksq", model.createdDate()); - Assertions.assertEquals("lssai", model.lastModifiedDate()); - Assertions.assertEquals("kcqvkocrc", model.resourceId()); - Assertions.assertEquals("nh", model.eventHubName()); + Assertions.assertEquals("amiheognarxz", model.createdDate()); + Assertions.assertEquals("heotusiv", model.lastModifiedDate()); + Assertions.assertEquals("ayhuy", model.resourceId()); + Assertions.assertEquals("depoog", model.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportListResultTests.java index 42883713205f..456849e64618 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportListResultTests.java @@ -1,68 +1,26 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner; -import com.azure.resourcemanager.loganalytics.models.DataExportListResult; -import java.util.Arrays; +import com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult; import org.junit.jupiter.api.Assertions; public final class DataExportListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataExportListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"dataExportId\":\"tihfx\",\"tableNames\":[\"jbpzvgnwzsymg\",\"zufcyzkohdbi\",\"anufhfcbjysag\",\"th\"],\"destination\":{\"resourceId\":\"hab\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"xwczbyscnp\"}},\"enable\":true,\"createdDate\":\"ivyqniwbybrkxvd\",\"lastModifiedDate\":\"jgrtfwvukxga\"},\"id\":\"dcc\",\"name\":\"nhsjcnyej\",\"type\":\"kryhtnapczwlokj\"},{\"properties\":{\"dataExportId\":\"kkvnipjox\",\"tableNames\":[\"nchgej\",\"podmailzydehojwy\"],\"destination\":{\"resourceId\":\"uxinpmqnjaq\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"prozvcputegjvwmf\"}},\"enable\":false,\"createdDate\":\"cmdv\",\"lastModifiedDate\":\"hulsuuvmkjozkrwf\"},\"id\":\"dio\",\"name\":\"jpslwejd\",\"type\":\"vwryoqpso\"},{\"properties\":{\"dataExportId\":\"tazak\",\"tableNames\":[\"lahbcryff\"],\"destination\":{\"resourceId\":\"dosyg\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"jakhmsbzjh\"}},\"enable\":false,\"createdDate\":\"vdphlxaolthqtr\",\"lastModifiedDate\":\"jbp\"},\"id\":\"zfsinzgvf\",\"name\":\"jrwzox\",\"type\":\"j\"},{\"properties\":{\"dataExportId\":\"lluwfzitonpeq\",\"tableNames\":[\"jkjlxofpdvhpfx\",\"ypininm\",\"yhuybbkpod\"],\"destination\":{\"resourceId\":\"ooginuvamih\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"rxzxtheo\"}},\"enable\":false,\"createdDate\":\"vyevcciqi\",\"lastModifiedDate\":\"hungbwjzrnf\"},\"id\":\"gxg\",\"name\":\"spemvtzfk\",\"type\":\"fublj\"}]}") + "{\"value\":[{\"properties\":{\"dataExportId\":\"mgxsab\",\"tableNames\":[\"qduujitcjczdz\",\"vndhkrwpdapp\"],\"destination\":{\"resourceId\":\"bdkvwrwjf\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"utjeltmrldhugj\"}},\"enable\":true,\"createdDate\":\"tqxhocdgeab\",\"lastModifiedDate\":\"phut\"},\"id\":\"ndv\",\"name\":\"aozwyiftyhxhu\",\"type\":\"okftyxolniwpwcuk\"},{\"properties\":{\"dataExportId\":\"giawx\",\"tableNames\":[\"ryplwckbasyypn\",\"dhsgcba\",\"phejkotynqgoulz\",\"dlikwyqkgfgibma\"],\"destination\":{\"resourceId\":\"akeqs\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"qqedqytbciqfou\"}},\"enable\":true,\"createdDate\":\"nkzsmodmglou\",\"lastModifiedDate\":\"b\"},\"id\":\"tmut\",\"name\":\"uqktap\",\"type\":\"pwgcuertu\"},{\"properties\":{\"dataExportId\":\"o\",\"tableNames\":[\"qw\",\"bmdg\",\"bjf\",\"dgmb\"],\"destination\":{\"resourceId\":\"ex\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"q\"}},\"enable\":false,\"createdDate\":\"fpfpsalgbquxigj\",\"lastModifiedDate\":\"gzjaoyfhrtxilne\"},\"id\":\"ujysvle\",\"name\":\"uvfqawrlyxwj\",\"type\":\"cpr\"},{\"properties\":{\"dataExportId\":\"b\",\"tableNames\":[\"jvtbvpyss\",\"dnrujqguhmuouqfp\"],\"destination\":{\"resourceId\":\"zw\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"tnwu\"}},\"enable\":false,\"createdDate\":\"zxufiz\",\"lastModifiedDate\":\"kyfi\"},\"id\":\"fidfvzw\",\"name\":\"zuhtymwisdkfthwx\",\"type\":\"nteiwaopv\"}],\"nextLink\":\"ijcmmx\"}") .toObject(DataExportListResult.class); - Assertions.assertEquals("tihfx", model.value().get(0).dataExportId()); - Assertions.assertEquals("jbpzvgnwzsymg", model.value().get(0).tableNames().get(0)); + Assertions.assertEquals("mgxsab", model.value().get(0).dataExportId()); + Assertions.assertEquals("qduujitcjczdz", model.value().get(0).tableNames().get(0)); Assertions.assertTrue(model.value().get(0).enable()); - Assertions.assertEquals("ivyqniwbybrkxvd", model.value().get(0).createdDate()); - Assertions.assertEquals("jgrtfwvukxga", model.value().get(0).lastModifiedDate()); - Assertions.assertEquals("hab", model.value().get(0).resourceId()); - Assertions.assertEquals("xwczbyscnp", model.value().get(0).eventHubName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataExportListResult model = new DataExportListResult().withValue(Arrays.asList( - new DataExportInner().withDataExportId("tihfx") - .withTableNames(Arrays.asList("jbpzvgnwzsymg", "zufcyzkohdbi", "anufhfcbjysag", "th")) - .withEnable(true) - .withCreatedDate("ivyqniwbybrkxvd") - .withLastModifiedDate("jgrtfwvukxga") - .withResourceId("hab") - .withEventHubName("xwczbyscnp"), - new DataExportInner().withDataExportId("kkvnipjox") - .withTableNames(Arrays.asList("nchgej", "podmailzydehojwy")) - .withEnable(false) - .withCreatedDate("cmdv") - .withLastModifiedDate("hulsuuvmkjozkrwf") - .withResourceId("uxinpmqnjaq") - .withEventHubName("prozvcputegjvwmf"), - new DataExportInner().withDataExportId("tazak") - .withTableNames(Arrays.asList("lahbcryff")) - .withEnable(false) - .withCreatedDate("vdphlxaolthqtr") - .withLastModifiedDate("jbp") - .withResourceId("dosyg") - .withEventHubName("jakhmsbzjh"), - new DataExportInner().withDataExportId("lluwfzitonpeq") - .withTableNames(Arrays.asList("jkjlxofpdvhpfx", "ypininm", "yhuybbkpod")) - .withEnable(false) - .withCreatedDate("vyevcciqi") - .withLastModifiedDate("hungbwjzrnf") - .withResourceId("ooginuvamih") - .withEventHubName("rxzxtheo"))); - model = BinaryData.fromObject(model).toObject(DataExportListResult.class); - Assertions.assertEquals("tihfx", model.value().get(0).dataExportId()); - Assertions.assertEquals("jbpzvgnwzsymg", model.value().get(0).tableNames().get(0)); - Assertions.assertTrue(model.value().get(0).enable()); - Assertions.assertEquals("ivyqniwbybrkxvd", model.value().get(0).createdDate()); - Assertions.assertEquals("jgrtfwvukxga", model.value().get(0).lastModifiedDate()); - Assertions.assertEquals("hab", model.value().get(0).resourceId()); - Assertions.assertEquals("xwczbyscnp", model.value().get(0).eventHubName()); + Assertions.assertEquals("tqxhocdgeab", model.value().get(0).createdDate()); + Assertions.assertEquals("phut", model.value().get(0).lastModifiedDate()); + Assertions.assertEquals("bdkvwrwjf", model.value().get(0).resourceId()); + Assertions.assertEquals("utjeltmrldhugj", model.value().get(0).eventHubName()); + Assertions.assertEquals("ijcmmx", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportPropertiesTests.java index d06950c1fe67..b377a72b445f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportPropertiesTests.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.generated; @@ -13,33 +13,33 @@ public final class DataExportPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataExportProperties model = BinaryData.fromString( - "{\"dataExportId\":\"qduujitcjczdz\",\"tableNames\":[\"ndhkrw\",\"d\",\"ppdsbdkvwrwj\"],\"destination\":{\"resourceId\":\"usnhutje\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"dhugjzzdatqxhocd\"}},\"enable\":true,\"createdDate\":\"lgphu\",\"lastModifiedDate\":\"cndvkaozwyiftyhx\"}") + "{\"dataExportId\":\"vtz\",\"tableNames\":[\"ufubl\",\"ofx\"],\"destination\":{\"resourceId\":\"ofjaeqjhqjb\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"mjqulngsn\"}},\"enable\":true,\"createdDate\":\"bkzgcwrwclx\",\"lastModifiedDate\":\"rljdouskcqv\"}") .toObject(DataExportProperties.class); - Assertions.assertEquals("qduujitcjczdz", model.dataExportId()); - Assertions.assertEquals("ndhkrw", model.tableNames().get(0)); + Assertions.assertEquals("vtz", model.dataExportId()); + Assertions.assertEquals("ufubl", model.tableNames().get(0)); Assertions.assertTrue(model.enable()); - Assertions.assertEquals("lgphu", model.createdDate()); - Assertions.assertEquals("cndvkaozwyiftyhx", model.lastModifiedDate()); - Assertions.assertEquals("usnhutje", model.resourceId()); - Assertions.assertEquals("dhugjzzdatqxhocd", model.eventHubName()); + Assertions.assertEquals("bkzgcwrwclx", model.createdDate()); + Assertions.assertEquals("rljdouskcqv", model.lastModifiedDate()); + Assertions.assertEquals("ofjaeqjhqjb", model.resourceId()); + Assertions.assertEquals("mjqulngsn", model.eventHubName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataExportProperties model = new DataExportProperties().withDataExportId("qduujitcjczdz") - .withTableNames(Arrays.asList("ndhkrw", "d", "ppdsbdkvwrwj")) + DataExportProperties model = new DataExportProperties().withDataExportId("vtz") + .withTableNames(Arrays.asList("ufubl", "ofx")) .withEnable(true) - .withCreatedDate("lgphu") - .withLastModifiedDate("cndvkaozwyiftyhx") - .withResourceId("usnhutje") - .withEventHubName("dhugjzzdatqxhocd"); + .withCreatedDate("bkzgcwrwclx") + .withLastModifiedDate("rljdouskcqv") + .withResourceId("ofjaeqjhqjb") + .withEventHubName("mjqulngsn"); model = BinaryData.fromObject(model).toObject(DataExportProperties.class); - Assertions.assertEquals("qduujitcjczdz", model.dataExportId()); - Assertions.assertEquals("ndhkrw", model.tableNames().get(0)); + Assertions.assertEquals("vtz", model.dataExportId()); + Assertions.assertEquals("ufubl", model.tableNames().get(0)); Assertions.assertTrue(model.enable()); - Assertions.assertEquals("lgphu", model.createdDate()); - Assertions.assertEquals("cndvkaozwyiftyhx", model.lastModifiedDate()); - Assertions.assertEquals("usnhutje", model.resourceId()); - Assertions.assertEquals("dhugjzzdatqxhocd", model.eventHubName()); + Assertions.assertEquals("bkzgcwrwclx", model.createdDate()); + Assertions.assertEquals("rljdouskcqv", model.lastModifiedDate()); + Assertions.assertEquals("ofjaeqjhqjb", model.resourceId()); + Assertions.assertEquals("mjqulngsn", model.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateWithResponseMockTests.java index 5089be2ae13d..39c4bdd08ec2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsCreateOrUpdateWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class DataExportsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataExportId\":\"crwnamikz\",\"tableNames\":[\"rqbsmswziq\",\"fuhok\",\"ruswhv\"],\"destination\":{\"resourceId\":\"zznvfbyc\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"wix\"}},\"enable\":true,\"createdDate\":\"wmxqhndvnoamlds\",\"lastModifiedDate\":\"aohdjh\"},\"id\":\"flzokxco\",\"name\":\"pelnjetag\",\"type\":\"tsxoatftgz\"}"; + = "{\"properties\":{\"dataExportId\":\"khgb\",\"tableNames\":[\"ta\",\"arfdlpukhpyrnei\",\"jcpeogkhnmg\"],\"destination\":{\"resourceId\":\"ouxddbhfhpfpazj\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"xhpdulontacnpqwt\"}},\"enable\":false,\"createdDate\":\"evrh\",\"lastModifiedDate\":\"jyoogwxh\"},\"id\":\"duugwbsre\",\"name\":\"rfqkfuar\",\"type\":\"nlvhhtklnvnafvv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,23 +32,23 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DataExport response = manager.dataExports() - .define("qwhix") - .withExistingWorkspace("rtixokff", "yinljqe") - .withDataExportId("stshiy") - .withTableNames(Arrays.asList("velfcldu", "cb")) - .withEnable(true) - .withCreatedDate("tmninw") - .withLastModifiedDate("zcilnghg") - .withResourceId("ds") - .withEventHubName("b") + .define("xmfcsserxhtv") + .withExistingWorkspace("nlaxpunjqikcz", "vitac") + .withDataExportId("hlwntsjgq") + .withTableNames(Arrays.asList("xypruuuy", "nchrszizoyu")) + .withEnable(false) + .withCreatedDate("rwahzjmucftbyr") + .withLastModifiedDate("rohkpigqfusu") + .withResourceId("yetnd") + .withEventHubName("ggagfln") .create(); - Assertions.assertEquals("crwnamikz", response.dataExportId()); - Assertions.assertEquals("rqbsmswziq", response.tableNames().get(0)); - Assertions.assertTrue(response.enable()); - Assertions.assertEquals("wmxqhndvnoamlds", response.createdDate()); - Assertions.assertEquals("aohdjh", response.lastModifiedDate()); - Assertions.assertEquals("zznvfbyc", response.resourceId()); - Assertions.assertEquals("wix", response.eventHubName()); + Assertions.assertEquals("khgb", response.dataExportId()); + Assertions.assertEquals("ta", response.tableNames().get(0)); + Assertions.assertFalse(response.enable()); + Assertions.assertEquals("evrh", response.createdDate()); + Assertions.assertEquals("jyoogwxh", response.lastModifiedDate()); + Assertions.assertEquals("ouxddbhfhpfpazj", response.resourceId()); + Assertions.assertEquals("xhpdulontacnpqwt", response.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteWithResponseMockTests.java index f4d201295f7d..c12d9b0fbcdd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsDeleteWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.dataExports() - .deleteWithResponse("gicgaaoepttaq", "tdewemxswvruu", "zzjgehkfki", com.azure.core.util.Context.NONE); + .deleteWithResponse("jkgd", "razftxejwabmdujt", "vcopex", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetWithResponseMockTests.java index 4130ea85ff98..0acf6767af8f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsGetWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class DataExportsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataExportId\":\"wbuqn\",\"tableNames\":[\"phzfylsgcrp\",\"bcunezzceze\",\"fwyfwlwxjwet\"],\"destination\":{\"resourceId\":\"sihclafzvaylp\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"wztcmwqkchc\"}},\"enable\":false,\"createdDate\":\"fewz\",\"lastModifiedDate\":\"jexfdeqvhp\"},\"id\":\"ylkkshkbffmbm\",\"name\":\"zjrgyww\",\"type\":\"gjxsnptfu\"}"; + = "{\"properties\":{\"dataExportId\":\"q\",\"tableNames\":[\"mzjr\"],\"destination\":{\"resourceId\":\"kqzeqyjleziunjx\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"tkw\"}},\"enable\":true,\"createdDate\":\"amlbnseqacjjvpil\",\"lastModifiedDate\":\"ooqjagmditgueio\"},\"id\":\"jbsahrtdtpde\",\"name\":\"qacsl\",\"type\":\"otoebnfxofv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DataExport response = manager.dataExports() - .getWithResponse("nsnvpd", "bmikost", "z", com.azure.core.util.Context.NONE) + .getWithResponse("gcgbjb", "dlfgtdysnaq", "flq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wbuqn", response.dataExportId()); - Assertions.assertEquals("phzfylsgcrp", response.tableNames().get(0)); - Assertions.assertFalse(response.enable()); - Assertions.assertEquals("fewz", response.createdDate()); - Assertions.assertEquals("jexfdeqvhp", response.lastModifiedDate()); - Assertions.assertEquals("sihclafzvaylp", response.resourceId()); - Assertions.assertEquals("wztcmwqkchc", response.eventHubName()); + Assertions.assertEquals("q", response.dataExportId()); + Assertions.assertEquals("mzjr", response.tableNames().get(0)); + Assertions.assertTrue(response.enable()); + Assertions.assertEquals("amlbnseqacjjvpil", response.createdDate()); + Assertions.assertEquals("ooqjagmditgueio", response.lastModifiedDate()); + Assertions.assertEquals("kqzeqyjleziunjx", response.resourceId()); + Assertions.assertEquals("tkw", response.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceMockTests.java index 1a604d6c6a7b..231b5bb3a08e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataExportsListByWorkspaceMockTests.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.generated; @@ -22,7 +22,7 @@ public final class DataExportsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"dataExportId\":\"qpofvwbc\",\"tableNames\":[\"embnkbw\",\"qvxkd\",\"vqihebwtswbzuwf\",\"duragegizvc\"],\"destination\":{\"resourceId\":\"elisdjub\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"gkxkbsazgakg\"}},\"enable\":true,\"createdDate\":\"cmjdmspof\",\"lastModifiedDate\":\"vuhrylni\"},\"id\":\"frzgbzjed\",\"name\":\"st\",\"type\":\"vnlvxbcuiiznktwf\"}]}"; + = "{\"value\":[{\"properties\":{\"dataExportId\":\"gtuwkff\",\"tableNames\":[\"ktsysidfvclglxn\"],\"destination\":{\"resourceId\":\"ijtk\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"gsfikayiansha\"}},\"enable\":false,\"createdDate\":\"ji\",\"lastModifiedDate\":\"fzyjqt\"},\"id\":\"wkpqhjpenuygbq\",\"name\":\"qqekewvnqvcdlgu\",\"type\":\"ucmfdj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dataExports().listByWorkspace("iiqbi", "htmwwinh", com.azure.core.util.Context.NONE); + = manager.dataExports().listByWorkspace("m", "urbuhhlkyqltq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qpofvwbc", response.iterator().next().dataExportId()); - Assertions.assertEquals("embnkbw", response.iterator().next().tableNames().get(0)); - Assertions.assertTrue(response.iterator().next().enable()); - Assertions.assertEquals("cmjdmspof", response.iterator().next().createdDate()); - Assertions.assertEquals("vuhrylni", response.iterator().next().lastModifiedDate()); - Assertions.assertEquals("elisdjub", response.iterator().next().resourceId()); - Assertions.assertEquals("gkxkbsazgakg", response.iterator().next().eventHubName()); + Assertions.assertEquals("gtuwkff", response.iterator().next().dataExportId()); + Assertions.assertEquals("ktsysidfvclglxn", response.iterator().next().tableNames().get(0)); + Assertions.assertFalse(response.iterator().next().enable()); + Assertions.assertEquals("ji", response.iterator().next().createdDate()); + Assertions.assertEquals("fzyjqt", response.iterator().next().lastModifiedDate()); + Assertions.assertEquals("ijtk", response.iterator().next().resourceId()); + Assertions.assertEquals("gsfikayiansha", response.iterator().next().eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceInnerTests.java index 2d28f321fc85..50b4b5d5230b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceInnerTests.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.generated; @@ -15,23 +15,23 @@ public final class DataSourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataSourceInner model = BinaryData.fromString( - "{\"properties\":\"dataasy\",\"etag\":\"nddhsgcbacph\",\"kind\":\"ChangeTrackingRegistry\",\"tags\":{\"ndlik\":\"tynqgoul\"},\"id\":\"yqkgfg\",\"name\":\"bmadgak\",\"type\":\"qsrxybzqqed\"}") + "{\"properties\":\"\\\"datas\\\"\",\"etag\":\"on\",\"kind\":\"ChangeTrackingServices\",\"tags\":{\"cwaekrrjre\":\"gfipnsxk\",\"jglikkxwslolb\":\"fxtsgum\",\"elfk\":\"pvuzlmv\"},\"id\":\"plcrpwjxeznoig\",\"name\":\"rnjwmw\",\"type\":\"pn\"}") .toObject(DataSourceInner.class); - Assertions.assertEquals("nddhsgcbacph", model.etag()); - Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_REGISTRY, model.kind()); - Assertions.assertEquals("tynqgoul", model.tags().get("ndlik")); + Assertions.assertEquals("on", model.etag()); + Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_SERVICES, model.kind()); + Assertions.assertEquals("gfipnsxk", model.tags().get("cwaekrrjre")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataSourceInner model = new DataSourceInner().withProperties("dataasy") - .withEtag("nddhsgcbacph") - .withKind(DataSourceKind.CHANGE_TRACKING_REGISTRY) - .withTags(mapOf("ndlik", "tynqgoul")); + DataSourceInner model = new DataSourceInner().withProperties("\"datas\"") + .withEtag("on") + .withKind(DataSourceKind.CHANGE_TRACKING_SERVICES) + .withTags(mapOf("cwaekrrjre", "gfipnsxk", "jglikkxwslolb", "fxtsgum", "elfk", "pvuzlmv")); model = BinaryData.fromObject(model).toObject(DataSourceInner.class); - Assertions.assertEquals("nddhsgcbacph", model.etag()); - Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_REGISTRY, model.kind()); - Assertions.assertEquals("tynqgoul", model.tags().get("ndlik")); + Assertions.assertEquals("on", model.etag()); + Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_SERVICES, model.kind()); + Assertions.assertEquals("gfipnsxk", model.tags().get("cwaekrrjre")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceListResultTests.java index 8b745c80d1fe..5676d33e9e96 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourceListResultTests.java @@ -1,63 +1,23 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner; +import com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult; import com.azure.resourcemanager.loganalytics.models.DataSourceKind; -import com.azure.resourcemanager.loganalytics.models.DataSourceListResult; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import org.junit.jupiter.api.Assertions; public final class DataSourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataSourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":\"databciqfouflm\",\"etag\":\"kzsmodm\",\"kind\":\"ChangeTrackingServices\",\"tags\":{\"uqktap\":\"gpbkwtmut\",\"kdosvqw\":\"pwgcuertu\"},\"id\":\"bmdg\",\"name\":\"bjf\",\"type\":\"dgmb\"},{\"properties\":\"databexppb\",\"etag\":\"q\",\"kind\":\"ChangeTrackingContentLocation\",\"tags\":{\"jgzjaoyfhrtx\":\"fpfpsalgbquxigj\"},\"id\":\"lnerkujysvleju\",\"name\":\"fqawrlyxw\",\"type\":\"kcprbnw\"},{\"properties\":\"dataxgjvtbv\",\"etag\":\"sszdnru\",\"kind\":\"SecurityEventCollectionConfiguration\",\"tags\":{\"uitnwuiz\":\"hmuouqfprwzwbn\",\"x\":\"a\",\"hr\":\"fizuckyf\",\"zwdzuh\":\"idf\"},\"id\":\"ymwisdkft\",\"name\":\"wxmnteiwao\",\"type\":\"vkmijcmmxdcuf\"}],\"nextLink\":\"srp\"}") + "{\"value\":[{\"properties\":\"\\\"dataazej\\\"\",\"etag\":\"qkagfhsxt\",\"kind\":\"LinuxChangeTrackingPath\",\"tags\":{\"xdtnkdmkqjjlw\":\"zxnfaaz\",\"aysjkixqtnqttez\":\"envrkpyouaibrebq\",\"akpjpqqmtedlt\":\"wfff\",\"auyqncygupkv\":\"mjihyeozphv\"},\"id\":\"mdscwxqupev\",\"name\":\"hfstotxhojujbyp\",\"type\":\"lmcuvhixb\"}],\"nextLink\":\"yfwnylr\"}") .toObject(DataSourceListResult.class); - Assertions.assertEquals("kzsmodm", model.value().get(0).etag()); - Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_SERVICES, model.value().get(0).kind()); - Assertions.assertEquals("gpbkwtmut", model.value().get(0).tags().get("uqktap")); - Assertions.assertEquals("srp", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataSourceListResult model = new DataSourceListResult() - .withValue(Arrays.asList( - new DataSourceInner().withProperties("databciqfouflm") - .withEtag("kzsmodm") - .withKind(DataSourceKind.CHANGE_TRACKING_SERVICES) - .withTags(mapOf("uqktap", "gpbkwtmut", "kdosvqw", "pwgcuertu")), - new DataSourceInner().withProperties("databexppb") - .withEtag("q") - .withKind(DataSourceKind.CHANGE_TRACKING_CONTENT_LOCATION) - .withTags(mapOf("jgzjaoyfhrtx", "fpfpsalgbquxigj")), - new DataSourceInner().withProperties("dataxgjvtbv") - .withEtag("sszdnru") - .withKind(DataSourceKind.SECURITY_EVENT_COLLECTION_CONFIGURATION) - .withTags(mapOf("uitnwuiz", "hmuouqfprwzwbn", "x", "a", "hr", "fizuckyf", "zwdzuh", "idf")))) - .withNextLink("srp"); - model = BinaryData.fromObject(model).toObject(DataSourceListResult.class); - Assertions.assertEquals("kzsmodm", model.value().get(0).etag()); - Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_SERVICES, model.value().get(0).kind()); - Assertions.assertEquals("gpbkwtmut", model.value().get(0).tags().get("uqktap")); - Assertions.assertEquals("srp", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals("qkagfhsxt", model.value().get(0).etag()); + Assertions.assertEquals(DataSourceKind.LINUX_CHANGE_TRACKING_PATH, model.value().get(0).kind()); + Assertions.assertEquals("zxnfaaz", model.value().get(0).tags().get("xdtnkdmkqjjlw")); + Assertions.assertEquals("yfwnylr", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateWithResponseMockTests.java index 94d9917c64f4..f5c0a43f665c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesCreateOrUpdateWithResponseMockTests.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.generated; @@ -24,7 +24,7 @@ public final class DataSourcesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":\"datactctbrxkjz\",\"etag\":\"gxffmshkwf\",\"kind\":\"CustomLogCollection\",\"tags\":{\"clnapxbiygnugjkn\":\"zxwopdbydpizq\",\"oiquvrehmrnjhvs\":\"smfcttuxuuyilfl\"},\"id\":\"jztczytqj\",\"name\":\"w\",\"type\":\"auunfprnjletlx\"}"; + = "{\"properties\":\"\\\"datadkfnozoeoqbvj\\\"\",\"etag\":\"efgwbmqjc\",\"kind\":\"NetworkMonitoring\",\"tags\":{\"ymxbulpzealb\":\"sf\",\"mbtsuahxsg\":\"qkyojwyvf\",\"wsdrnpxqwodif\":\"jcmmzrrscub\",\"jogjonmc\":\"jxcjrmmuabwib\"},\"id\":\"foyzbamwineof\",\"name\":\"fkak\",\"type\":\"oldtvevboclzhz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,17 +34,17 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DataSource response = manager.dataSources() - .define("wfl") - .withExistingWorkspace("p", "gqoweyirdhlisn") - .withProperties("dataqmp") - .withKind(DataSourceKind.CHANGE_TRACKING_PATH) - .withTags(mapOf("xtmkzjvkviir", "ngjsaasi")) - .withEtag("ruwnpqxpx") + .define("aepwamcxtcz") + .withExistingWorkspace("jvhrweft", "wqejpmvsse") + .withProperties("\"dataupeuknijduyye\"") + .withKind(DataSourceKind.CHANGE_TRACKING_DEFAULT_REGISTRY) + .withTags(mapOf("lakuflgbhgauacd", "hhulrtywikdm")) + .withEtag("ydjfb") .create(); - Assertions.assertEquals("gxffmshkwf", response.etag()); - Assertions.assertEquals(DataSourceKind.CUSTOM_LOG_COLLECTION, response.kind()); - Assertions.assertEquals("zxwopdbydpizq", response.tags().get("clnapxbiygnugjkn")); + Assertions.assertEquals("efgwbmqjc", response.etag()); + Assertions.assertEquals(DataSourceKind.NETWORK_MONITORING, response.kind()); + Assertions.assertEquals("sf", response.tags().get("ymxbulpzealb")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteWithResponseMockTests.java index d54dcb41f86a..5850fda81728 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesDeleteWithResponseMockTests.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.generated; @@ -27,7 +27,8 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.dataSources().deleteWithResponse("npbs", "vefloccsrmozihmi", "g", com.azure.core.util.Context.NONE); + manager.dataSources() + .deleteWithResponse("piaccxnafb", "qroohtu", "vmaonurjt", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetWithResponseMockTests.java index 54519497c59e..1f6266a68333 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class DataSourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":\"dataztrksxwpndf\",\"etag\":\"fnznth\",\"kind\":\"SecurityEventCollectionConfiguration\",\"tags\":{\"amktcqiosmgbzah\":\"jaosrxuzv\",\"tz\":\"xqdlyrtltlapr\",\"s\":\"atbhjmznn\"},\"id\":\"qeqala\",\"name\":\"vlagun\",\"type\":\"tgfebwln\"}"; + = "{\"properties\":\"\\\"datayuttdiygbpvnwswm\\\"\",\"etag\":\"k\",\"kind\":\"NetworkMonitoring\",\"tags\":{\"gzyvnee\":\"wgzwxjlmecvog\",\"ffhzbkrkjjjavfq\":\"aifghtmoqqt\",\"wdogiyetesyp\":\"vhnqo\",\"jhqt\":\"idbz\"},\"id\":\"ovnynkbwetnju\",\"name\":\"p\",\"type\":\"prkzya\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DataSource response = manager.dataSources() - .getWithResponse("wtxxpkyjcx", "jxgrytfmp", "ycilrmcaykggnox", com.azure.core.util.Context.NONE) + .getWithResponse("fgbrtt", "iac", "kiexhajlfnthiq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fnznth", response.etag()); - Assertions.assertEquals(DataSourceKind.SECURITY_EVENT_COLLECTION_CONFIGURATION, response.kind()); - Assertions.assertEquals("jaosrxuzv", response.tags().get("amktcqiosmgbzah")); + Assertions.assertEquals("k", response.etag()); + Assertions.assertEquals(DataSourceKind.NETWORK_MONITORING, response.kind()); + Assertions.assertEquals("wgzwxjlmecvog", response.tags().get("gzyvnee")); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceMockTests.java index e89ecf5dc62f..7f4cd6638f8d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DataSourcesListByWorkspaceMockTests.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.generated; @@ -23,7 +23,7 @@ public final class DataSourcesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":\"dataqtobaxkjeyt\",\"etag\":\"lbfjkwr\",\"kind\":\"ChangeTrackingContentLocation\",\"tags\":{\"njqhdenxa\":\"qbhsyrq\"},\"id\":\"l\",\"name\":\"pakdkifmjnnawt\",\"type\":\"abpxuc\"}]}"; + = "{\"value\":[{\"properties\":\"\\\"datagctmgxuupbezq\\\"\",\"etag\":\"ydrtc\",\"kind\":\"ChangeTrackingContentLocation\",\"tags\":{\"zgwldoychillcec\":\"qkkyihztgeqmg\"},\"id\":\"huwaoaguhic\",\"name\":\"llizs\",\"type\":\"ac\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.dataSources() - .listByWorkspace("mhyreeudz", "av", "pdqmjxlyyzglgouw", "lmjjyuo", com.azure.core.util.Context.NONE); + .listByWorkspace("mghihp", "ecmslclbl", "jxl", "bsjuscvsfx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lbfjkwr", response.iterator().next().etag()); + Assertions.assertEquals("ydrtc", response.iterator().next().etag()); Assertions.assertEquals(DataSourceKind.CHANGE_TRACKING_CONTENT_LOCATION, response.iterator().next().kind()); - Assertions.assertEquals("qbhsyrq", response.iterator().next().tags().get("njqhdenxa")); + Assertions.assertEquals("qkkyihztgeqmg", response.iterator().next().tags().get("zgwldoychillcec")); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupMockTests.java index 58b23a2b1a39..ef65d1fafccb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListByResourceGroupMockTests.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.generated; @@ -25,7 +25,7 @@ public final class DeletedWorkspacesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"uqndaizupfkhuy\",\"sku\":{\"name\":\"LACluster\",\"capacityReservationLevel\":1048467054,\"lastSkuUpdate\":\"2021-11-22T12:40:39Z\"},\"retentionInDays\":1254328830,\"workspaceCapping\":{\"dailyQuotaGb\":12.895250494222898,\"quotaNextResetTime\":\"qiukvzwyd\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-02-07T19:45:29Z\",\"modifiedDate\":\"2021-08-08T18:31:32Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"shajqf\",\"scopeId\":\"peexpgeumilhwuit\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"fninbdbzs\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"mpcbbprtugav\",\"zbcyksiv\"],\"tbfcm\":\"datagd\"},\"defaultDataCollectionRuleResourceId\":\"ftsjcwj\",\"replication\":{\"location\":\"gmbawvifdxk\",\"enabled\":false,\"provisioningState\":\"RollingBack\",\"createdDate\":\"2021-01-30T06:13:56Z\",\"lastModifiedDate\":\"2021-11-01T17:33:31Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-08-18T18:47:44Z\"}},\"identity\":{\"principalId\":\"txvcm\",\"tenantId\":\"unlcpxxv\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"iahxmfqryarvs\":{\"principalId\":\"ngjgvrquvpyg\",\"clientId\":\"pmcrdcuelj\"},\"tgblioskkfmk\":{\"principalId\":\"qbglcjkaysp\",\"clientId\":\"zodubtlm\"}}},\"etag\":\"jxyxgb\",\"location\":\"kqvjcteoedlr\",\"tags\":{\"pxvjnzd\":\"kk\",\"pcnab\":\"vocoj\",\"nggy\":\"zf\",\"vzilmhiv\":\"e\"},\"id\":\"kwwwnckn\",\"name\":\"zdajlskzptjxu\",\"type\":\"weucyrth\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"customerId\":\"swgkpjhboyikebh\",\"sku\":{\"name\":\"Standard\",\"capacityReservationLevel\":658037053,\"lastSkuUpdate\":\"2021-08-20T14:50:52Z\"},\"retentionInDays\":949610294,\"workspaceCapping\":{\"dailyQuotaGb\":9.943471822175242,\"quotaNextResetTime\":\"ijyzcqypzqzufgsy\",\"dataIngestionStatus\":\"RespectQuota\"},\"createdDate\":\"2021-01-26T02:20:36Z\",\"modifiedDate\":\"2021-01-25T09:28:03Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Enabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"amkncfgy\",\"scopeId\":\"xsnxocuullojk\"},{\"resourceId\":\"yhgww\",\"scopeId\":\"uxdbdljzgdyrcvuq\"},{\"resourceId\":\"gzlrqhbj\",\"scopeId\":\"ogdxwbsfpyxxtjlf\"},{\"resourceId\":\"cominxojjluxx\",\"scopeId\":\"ilz\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"za\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"lotokh\",\"vwta\"],\"ofgwh\":\"\\\"datacqwwxwj\\\"\",\"tsnld\":\"\\\"datakbtlwljssm\\\"\",\"eogfgfiijrykwl\":\"\\\"datapwolgisubxb\\\"\",\"zfpxgnmqvzvluy\":\"\\\"datafksxqce\\\"\"},\"defaultDataCollectionRuleResourceId\":\"aiossscyvaifp\",\"replication\":{\"location\":\"cvfyeowpsfxtjdhs\",\"enabled\":false,\"provisioningState\":\"RollbackRequested\",\"createdDate\":\"2021-06-14T00:45:35Z\",\"lastModifiedDate\":\"2021-06-19T02:16:26Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-10-23T02:09:56Z\"}},\"identity\":{\"principalId\":\"boujstkfvv\",\"tenantId\":\"hxcd\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"trwntfmtbgw\":{\"principalId\":\"nygnxcgjtfrnquk\",\"clientId\":\"fnslnlrxsmy\"},\"wjwzzqseuzuukykc\":{\"principalId\":\"xwnaz\",\"clientId\":\"rrdreyzjwhset\"},\"dazgbsqgpe\":{\"principalId\":\"hyqqzzdcy\",\"clientId\":\"ystewfopa\"}}},\"etag\":\"c\",\"location\":\"tmdpvozglqjbknlz\",\"tags\":{\"zqauxzan\":\"tzeyowmndcovd\",\"fruwkud\":\"mk\",\"ucmci\":\"bcpftxudqyemebun\"},\"id\":\"tneemmjauwcgxef\",\"name\":\"ohaitranizerwgud\",\"type\":\"smxubvf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,28 +35,28 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.deletedWorkspaces().listByResourceGroup("ldtzmpypefcp", com.azure.core.util.Context.NONE); + = manager.deletedWorkspaces().listByResourceGroup("s", com.azure.core.util.Context.NONE); - Assertions.assertEquals("kqvjcteoedlr", response.iterator().next().location()); - Assertions.assertEquals("kk", response.iterator().next().tags().get("pxvjnzd")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("jxyxgb", response.iterator().next().etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.LACLUSTER, response.iterator().next().sku().name()); - Assertions.assertEquals(1048467054, response.iterator().next().sku().capacityReservationLevel()); - Assertions.assertEquals(1254328830, response.iterator().next().retentionInDays()); - Assertions.assertEquals(12.895250494222898D, response.iterator().next().workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, - response.iterator().next().publicNetworkAccessForIngestion()); + Assertions.assertEquals("tmdpvozglqjbknlz", response.iterator().next().location()); + Assertions.assertEquals("tzeyowmndcovd", response.iterator().next().tags().get("zqauxzan")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); + Assertions.assertEquals("c", response.iterator().next().etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, response.iterator().next().sku().name()); + Assertions.assertEquals(658037053, response.iterator().next().sku().capacityReservationLevel()); + Assertions.assertEquals(949610294, response.iterator().next().retentionInDays()); + Assertions.assertEquals(9.943471822175242D, response.iterator().next().workspaceCapping().dailyQuotaGb()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, + response.iterator().next().publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.ENABLED, response.iterator().next().publicNetworkAccessForQuery()); Assertions.assertFalse(response.iterator().next().forceCmkForQuery()); Assertions.assertFalse(response.iterator().next().features().enableDataExport()); Assertions.assertFalse(response.iterator().next().features().immediatePurgeDataOn30Days()); Assertions.assertFalse(response.iterator().next().features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("fninbdbzs", response.iterator().next().features().clusterResourceId()); + Assertions.assertEquals("za", response.iterator().next().features().clusterResourceId()); Assertions.assertTrue(response.iterator().next().features().disableLocalAuth()); - Assertions.assertEquals("ftsjcwj", response.iterator().next().defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("gmbawvifdxk", response.iterator().next().replication().location()); + Assertions.assertEquals("aiossscyvaifp", response.iterator().next().defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("cvfyeowpsfxtjdhs", response.iterator().next().replication().location()); Assertions.assertFalse(response.iterator().next().replication().enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListMockTests.java index fc8bf7ed34a5..ae92c2bba5b5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DeletedWorkspacesListMockTests.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.generated; @@ -25,7 +25,7 @@ public final class DeletedWorkspacesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"togmhmjpjscdfpd\",\"sku\":{\"name\":\"CapacityReservation\",\"capacityReservationLevel\":1893346412,\"lastSkuUpdate\":\"2021-07-14T18:14:24Z\"},\"retentionInDays\":1189635916,\"workspaceCapping\":{\"dailyQuotaGb\":44.46311972703302,\"quotaNextResetTime\":\"rxifvqnrx\",\"dataIngestionStatus\":\"RespectQuota\"},\"createdDate\":\"2020-12-23T21:27:45Z\",\"modifiedDate\":\"2021-09-18T16:52:07Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"qpxlb\",\"scopeId\":\"akftng\"},{\"resourceId\":\"wmykyutry\",\"scopeId\":\"wmfjhp\"},{\"resourceId\":\"vjqdvdwkq\",\"scopeId\":\"drlefgnaavuag\"},{\"resourceId\":\"etaoutnpdc\",\"scopeId\":\"hspfefyihd\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"mtybkcgsu\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"wynefx\",\"x\",\"fciatxtjrr\",\"kmdskjhhxd\"],\"cvslxlhuavkrmukm\":\"datafoxcx\",\"qid\":\"datajmkxettcslojf\",\"tkbtnqlrngl\":\"dataqtoqxjhqxcsq\",\"nxhhl\":\"datambiipsnawwlqk\"},\"defaultDataCollectionRuleResourceId\":\"ricctkwmuqqoa\",\"replication\":{\"location\":\"iygle\",\"enabled\":true,\"provisioningState\":\"RollbackRequested\",\"createdDate\":\"2021-08-22T14:39:56Z\",\"lastModifiedDate\":\"2021-01-05T18:05:21Z\"},\"failover\":{\"state\":\"Active\",\"lastModifiedDate\":\"2021-01-06T05:50:32Z\"}},\"identity\":{\"principalId\":\"kbrup\",\"tenantId\":\"ehdmljzacvumep\",\"type\":\"None\",\"userAssignedIdentities\":{\"cjclykcgxv\":{\"principalId\":\"nzpphepife\",\"clientId\":\"eqir\"},\"u\":{\"principalId\":\"jlvczu\",\"clientId\":\"ac\"}}},\"etag\":\"tepdjxqes\",\"location\":\"oy\",\"tags\":{\"skwxe\":\"ylpckaewsedv\",\"fn\":\"qphr\"},\"id\":\"hctmjtsgh\",\"name\":\"bcbcpz\",\"type\":\"rpzeqac\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"customerId\":\"uybffljfiim\",\"sku\":{\"name\":\"Standard\",\"capacityReservationLevel\":163514885,\"lastSkuUpdate\":\"2021-07-31T13:20:10Z\"},\"retentionInDays\":674819146,\"workspaceCapping\":{\"dailyQuotaGb\":39.6059715084771,\"quotaNextResetTime\":\"e\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-07-10T00:59:40Z\",\"modifiedDate\":\"2021-09-18T13:45:02Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"mnlikpsi\",\"scopeId\":\"feypofqpmb\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"ttjxophgerhsmvgo\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"lrixysfnimsq\",\"wwwmhkruwaedrym\"],\"in\":\"\\\"dataq\\\"\",\"njdiqfliejhpcl\":\"\\\"datazduewihapfjii\\\"\"},\"defaultDataCollectionRuleResourceId\":\"edfsbwc\",\"replication\":{\"location\":\"bv\",\"enabled\":true,\"provisioningState\":\"RollingBack\",\"createdDate\":\"2021-07-31T11:14:39Z\",\"lastModifiedDate\":\"2021-06-29T22:39:20Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-10-21T11:11:41Z\"}},\"identity\":{\"principalId\":\"mskxknp\",\"tenantId\":\"zigjsugswhgsaodk\",\"type\":\"None\",\"userAssignedIdentities\":{\"nvkervq\":{\"principalId\":\"foct\",\"clientId\":\"zhaquvwsxb\"}}},\"etag\":\"oadhrsxqvz\",\"location\":\"pabdsrg\",\"tags\":{\"bklrxh\":\"glzrs\",\"jdvqy\":\"nltce\",\"qkwaruwd\":\"ie\",\"xbibanbaupw\":\"vqzxoebwg\"},\"id\":\"zvpaklozkxbzrpej\",\"name\":\"lssan\",\"type\":\"tttk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,26 +36,26 @@ public void testList() throws Exception { PagedIterable response = manager.deletedWorkspaces().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("oy", response.iterator().next().location()); - Assertions.assertEquals("ylpckaewsedv", response.iterator().next().tags().get("skwxe")); + Assertions.assertEquals("pabdsrg", response.iterator().next().location()); + Assertions.assertEquals("glzrs", response.iterator().next().tags().get("bklrxh")); Assertions.assertEquals(IdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("tepdjxqes", response.iterator().next().etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, response.iterator().next().sku().name()); - Assertions.assertEquals(1893346412, response.iterator().next().sku().capacityReservationLevel()); - Assertions.assertEquals(1189635916, response.iterator().next().retentionInDays()); - Assertions.assertEquals(44.46311972703302D, response.iterator().next().workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, + Assertions.assertEquals("oadhrsxqvz", response.iterator().next().etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, response.iterator().next().sku().name()); + Assertions.assertEquals(163514885, response.iterator().next().sku().capacityReservationLevel()); + Assertions.assertEquals(674819146, response.iterator().next().retentionInDays()); + Assertions.assertEquals(39.6059715084771D, response.iterator().next().workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, response.iterator().next().publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, response.iterator().next().publicNetworkAccessForQuery()); Assertions.assertTrue(response.iterator().next().forceCmkForQuery()); Assertions.assertFalse(response.iterator().next().features().enableDataExport()); Assertions.assertTrue(response.iterator().next().features().immediatePurgeDataOn30Days()); - Assertions.assertFalse(response.iterator().next().features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("mtybkcgsu", response.iterator().next().features().clusterResourceId()); - Assertions.assertTrue(response.iterator().next().features().disableLocalAuth()); - Assertions.assertEquals("ricctkwmuqqoa", response.iterator().next().defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("iygle", response.iterator().next().replication().location()); + Assertions.assertTrue(response.iterator().next().features().enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("ttjxophgerhsmvgo", response.iterator().next().features().clusterResourceId()); + Assertions.assertFalse(response.iterator().next().features().disableLocalAuth()); + Assertions.assertEquals("edfsbwc", response.iterator().next().defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("bv", response.iterator().next().replication().location()); Assertions.assertTrue(response.iterator().next().replication().enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationMetadataTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationMetadataTests.java index 76c288c6e4d9..6bfb1140365b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationMetadataTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationMetadataTests.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.generated; @@ -12,14 +12,14 @@ public final class DestinationMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DestinationMetadata model - = BinaryData.fromString("{\"eventHubName\":\"kgiawxklryplwck\"}").toObject(DestinationMetadata.class); - Assertions.assertEquals("kgiawxklryplwck", model.eventHubName()); + = BinaryData.fromString("{\"eventHubName\":\"jwnzlljfmp\"}").toObject(DestinationMetadata.class); + Assertions.assertEquals("jwnzlljfmp", model.eventHubName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DestinationMetadata model = new DestinationMetadata().withEventHubName("kgiawxklryplwck"); + DestinationMetadata model = new DestinationMetadata().withEventHubName("jwnzlljfmp"); model = BinaryData.fromObject(model).toObject(DestinationMetadata.class); - Assertions.assertEquals("kgiawxklryplwck", model.eventHubName()); + Assertions.assertEquals("jwnzlljfmp", model.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationTests.java index ef10a1cda898..04dd881312ce 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/DestinationTests.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.generated; @@ -11,18 +11,18 @@ public final class DestinationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Destination model = BinaryData - .fromString("{\"resourceId\":\"urokft\",\"type\":\"EventHub\",\"metaData\":{\"eventHubName\":\"iwpwcuk\"}}") + Destination model = BinaryData.fromString( + "{\"resourceId\":\"ocrcjdk\",\"type\":\"StorageAccount\",\"metaData\":{\"eventHubName\":\"bnjbiksqrglssain\"}}") .toObject(Destination.class); - Assertions.assertEquals("urokft", model.resourceId()); - Assertions.assertEquals("iwpwcuk", model.eventHubName()); + Assertions.assertEquals("ocrcjdk", model.resourceId()); + Assertions.assertEquals("bnjbiksqrglssain", model.eventHubName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Destination model = new Destination().withResourceId("urokft").withEventHubName("iwpwcuk"); + Destination model = new Destination().withResourceId("ocrcjdk").withEventHubName("bnjbiksqrglssain"); model = BinaryData.fromObject(model).toObject(Destination.class); - Assertions.assertEquals("urokft", model.resourceId()); - Assertions.assertEquals("iwpwcuk", model.eventHubName()); + Assertions.assertEquals("ocrcjdk", model.resourceId()); + Assertions.assertEquals("bnjbiksqrglssain", model.eventHubName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteWithResponseMockTests.java index 98739141551f..a63e354058de 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/GatewaysDeleteWithResponseMockTests.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.generated; @@ -27,7 +27,7 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.gateways().deleteWithResponse("mr", "ddoui", "amowaziynknlqwzd", com.azure.core.util.Context.NONE); + manager.gateways().deleteWithResponse("z", "vxhmtfhocnxzcmj", "ngxno", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IdentityTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IdentityTests.java index 15bb6dc73575..352968ca393b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IdentityTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IdentityTests.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.generated; @@ -16,18 +16,18 @@ public final class IdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Identity model = BinaryData.fromString( - "{\"principalId\":\"e\",\"tenantId\":\"lfg\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"duvwpklvxwmygd\":{\"principalId\":\"kwdlenrdsutujba\",\"clientId\":\"juohminyflnorw\"},\"bjcrxgibbdaxco\":{\"principalId\":\"gpqch\",\"clientId\":\"zepn\"}}}") + "{\"principalId\":\"dkcglhsl\",\"tenantId\":\"jdyggdtji\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"yvdcsitynnaa\":{\"principalId\":\"ofqweykhmenevfye\",\"clientId\":\"whybcib\"},\"ezrkgqhcjrefo\":{\"principalId\":\"ectehf\",\"clientId\":\"scjeypv\"},\"zsqpjhvmdajvny\":{\"principalId\":\"mkqsleyyv\",\"clientId\":\"qjpkcattpngjcrc\"}}}") .toObject(Identity.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Identity model = new Identity().withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("duvwpklvxwmygd", new UserIdentityProperties(), "bjcrxgibbdaxco", new UserIdentityProperties())); + Identity model = new Identity().withType(IdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("yvdcsitynnaa", new UserIdentityProperties(), "ezrkgqhcjrefo", + new UserIdentityProperties(), "zsqpjhvmdajvny", new UserIdentityProperties())); model = BinaryData.fromObject(model).toObject(Identity.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePackInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePackInnerTests.java index 8b5b484fb648..bbb9f2c72d7a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePackInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePackInnerTests.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.generated; @@ -12,20 +12,10 @@ public final class IntelligencePackInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IntelligencePackInner model - = BinaryData.fromString("{\"name\":\"zidnsezcxtbzsgfy\",\"enabled\":false,\"displayName\":\"ewmdw\"}") + = BinaryData.fromString("{\"name\":\"rc\",\"enabled\":false,\"displayName\":\"oxfrkenxpmyyefr\"}") .toObject(IntelligencePackInner.class); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.name()); + Assertions.assertEquals("rc", model.name()); Assertions.assertFalse(model.enabled()); - Assertions.assertEquals("ewmdw", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntelligencePackInner model - = new IntelligencePackInner().withName("zidnsezcxtbzsgfy").withEnabled(false).withDisplayName("ewmdw"); - model = BinaryData.fromObject(model).toObject(IntelligencePackInner.class); - Assertions.assertEquals("zidnsezcxtbzsgfy", model.name()); - Assertions.assertFalse(model.enabled()); - Assertions.assertEquals("ewmdw", model.displayName()); + Assertions.assertEquals("oxfrkenxpmyyefr", model.displayName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableWithResponseMockTests.java index 4c8e3becb5fb..57d277282b67 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksDisableWithResponseMockTests.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.generated; @@ -27,8 +27,7 @@ public void testDisableWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.intelligencePacks() - .disableWithResponse("piwhxqs", "dtmaa", "quhuxylrj", com.azure.core.util.Context.NONE); + manager.intelligencePacks().disableWithResponse("rxtd", "sn", "evhdlmydid", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableWithResponseMockTests.java index bac7d11c9fe1..00076d67466e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksEnableWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testEnableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.intelligencePacks() - .enableWithResponse("m", "ygjbmzyospspsh", "kfkyjp", com.azure.core.util.Context.NONE); + .enableWithResponse("hepfwwtjfdoes", "xhmw", "dbckyo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListWithResponseMockTests.java index 9b2dbe3126ca..f2d1553e277c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/IntelligencePacksListWithResponseMockTests.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.generated; @@ -21,7 +21,8 @@ public final class IntelligencePacksListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { - String responseStr = "[{\"name\":\"tvczkcnyxr\",\"enabled\":false,\"displayName\":\"jdxvglnkvxlxpa\"}]"; + String responseStr + = "[{\"name\":\"obrl\",\"enabled\":true,\"displayName\":\"nbagnchj\"},{\"name\":\"emuowakyw\",\"enabled\":false,\"displayName\":\"ymxcgqtag\"}]"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +32,11 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); List response = manager.intelligencePacks() - .listWithResponse("sp", "pssdfppyogtie", com.azure.core.util.Context.NONE) + .listWithResponse("kxkxhnegk", "jzrbhtmeplv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("tvczkcnyxr", response.get(0).name()); - Assertions.assertFalse(response.get(0).enabled()); - Assertions.assertEquals("jdxvglnkvxlxpa", response.get(0).displayName()); + Assertions.assertEquals("obrl", response.get(0).name()); + Assertions.assertTrue(response.get(0).enabled()); + Assertions.assertEquals("nbagnchj", response.get(0).displayName()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceInnerTests.java index 0cef0b25e34b..bd650a489151 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceInnerTests.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.generated; @@ -15,27 +15,26 @@ public final class LinkedServiceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedServiceInner model = BinaryData.fromString( - "{\"properties\":{\"resourceId\":\"eiachboosflnr\",\"writeAccessResourceId\":\"fqpte\",\"provisioningState\":\"Updating\"},\"tags\":{\"swjdkirso\":\"ypyqrimzinp\",\"soifiyipjxsqw\":\"dqxhcrmnohjtckwh\",\"bznorcjxvsnby\":\"gr\",\"cyshurzafbljjgp\":\"qabnmoc\"},\"id\":\"toqcjmklja\",\"name\":\"bqidtqaj\",\"type\":\"yulpkudjkr\"}") + "{\"properties\":{\"resourceId\":\"o\",\"writeAccessResourceId\":\"ttpkiwkkbnujrywv\",\"provisioningState\":\"ProvisioningAccount\"},\"tags\":{\"oiwiithtywub\":\"pncur\",\"fdntwjchrdgoih\":\"cbihwqk\"},\"id\":\"mwctondzjluudfd\",\"name\":\"wggytsbwtovvt\",\"type\":\"seinqfiuf\"}") .toObject(LinkedServiceInner.class); - Assertions.assertEquals("ypyqrimzinp", model.tags().get("swjdkirso")); - Assertions.assertEquals("eiachboosflnr", model.resourceId()); - Assertions.assertEquals("fqpte", model.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.UPDATING, model.provisioningState()); + Assertions.assertEquals("pncur", model.tags().get("oiwiithtywub")); + Assertions.assertEquals("o", model.resourceId()); + Assertions.assertEquals("ttpkiwkkbnujrywv", model.writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, model.provisioningState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LinkedServiceInner model = new LinkedServiceInner() - .withTags(mapOf("swjdkirso", "ypyqrimzinp", "soifiyipjxsqw", "dqxhcrmnohjtckwh", "bznorcjxvsnby", "gr", - "cyshurzafbljjgp", "qabnmoc")) - .withResourceId("eiachboosflnr") - .withWriteAccessResourceId("fqpte") - .withProvisioningState(LinkedServiceEntityStatus.UPDATING); + LinkedServiceInner model + = new LinkedServiceInner().withTags(mapOf("oiwiithtywub", "pncur", "fdntwjchrdgoih", "cbihwqk")) + .withResourceId("o") + .withWriteAccessResourceId("ttpkiwkkbnujrywv") + .withProvisioningState(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT); model = BinaryData.fromObject(model).toObject(LinkedServiceInner.class); - Assertions.assertEquals("ypyqrimzinp", model.tags().get("swjdkirso")); - Assertions.assertEquals("eiachboosflnr", model.resourceId()); - Assertions.assertEquals("fqpte", model.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.UPDATING, model.provisioningState()); + Assertions.assertEquals("pncur", model.tags().get("oiwiithtywub")); + Assertions.assertEquals("o", model.resourceId()); + Assertions.assertEquals("ttpkiwkkbnujrywv", model.writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, model.provisioningState()); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceListResultTests.java index 310f04aa9cbd..0f76c868380b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServiceListResultTests.java @@ -1,65 +1,24 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner; +import com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult; import com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus; -import com.azure.resourcemanager.loganalytics.models.LinkedServiceListResult; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import org.junit.jupiter.api.Assertions; public final class LinkedServiceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedServiceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"resourceId\":\"c\",\"writeAccessResourceId\":\"ierhhbcsglummaj\",\"provisioningState\":\"Deleting\"},\"tags\":{\"jionpimexgstxgc\":\"xobnbdxkqpxok\"},\"id\":\"odgmaajrmvdjwz\",\"name\":\"lovmclwhijcoe\",\"type\":\"ctbzaq\"},{\"properties\":{\"resourceId\":\"sycbkbfk\",\"writeAccessResourceId\":\"kdkexxp\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"vpmouexhdzxib\":\"axcfjpgddtocjjx\",\"wndeicbtwnp\":\"eojnxqbzvddn\",\"hcffcyddglmjthjq\":\"aoqvuh\",\"hix\":\"wpyeicxmqciwqvh\"},\"id\":\"igdtopbob\",\"name\":\"og\",\"type\":\"m\"},{\"properties\":{\"resourceId\":\"u\",\"writeAccessResourceId\":\"a\",\"provisioningState\":\"Deleting\"},\"tags\":{\"kftutqxlngxlefg\":\"yvvtpgvdfgio\",\"rvqdra\":\"gnxkrxdqmidtth\",\"skanyk\":\"hjybigehoqfbo\"},\"id\":\"zlcuiywgqywgndrv\",\"name\":\"nhzgpphrcgyn\",\"type\":\"ocpecfvmmco\"}]}") + "{\"value\":[{\"properties\":{\"resourceId\":\"rxfrddhc\",\"writeAccessResourceId\":\"tizzronasxif\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"tw\":\"zh\",\"lgnyhmo\":\"sgogczhonnxk\",\"h\":\"sxkkg\",\"hqxvcxgfrpdsofbs\":\"rghxjb\"},\"id\":\"nsvbuswdv\",\"name\":\"yybyc\",\"type\":\"unvjsrtkfawnopq\"},{\"properties\":{\"resourceId\":\"kyzirtxdyux\",\"writeAccessResourceId\":\"jntpsewgioilqu\",\"provisioningState\":\"Deleting\"},\"tags\":{\"rgguf\":\"tqmieox\",\"hhavgrvkffovjz\":\"yaomtb\",\"gjmfxumvfcl\":\"pjbi\"},\"id\":\"ovwxnbkfezzxsc\",\"name\":\"hwzdgirujbz\",\"type\":\"omvzzbtd\"},{\"properties\":{\"resourceId\":\"vp\",\"writeAccessResourceId\":\"yujviylwdshfssn\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"tmr\":\"frymsgaojfmwnc\"},\"id\":\"irctymoxoftpipiw\",\"name\":\"czuhxacpqjlihh\",\"type\":\"usps\"}],\"nextLink\":\"sdvlmfwdgzxulucv\"}") .toObject(LinkedServiceListResult.class); - Assertions.assertEquals("xobnbdxkqpxok", model.value().get(0).tags().get("jionpimexgstxgc")); - Assertions.assertEquals("c", model.value().get(0).resourceId()); - Assertions.assertEquals("ierhhbcsglummaj", model.value().get(0).writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.DELETING, model.value().get(0).provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedServiceListResult model = new LinkedServiceListResult().withValue(Arrays.asList( - new LinkedServiceInner().withTags(mapOf("jionpimexgstxgc", "xobnbdxkqpxok")) - .withResourceId("c") - .withWriteAccessResourceId("ierhhbcsglummaj") - .withProvisioningState(LinkedServiceEntityStatus.DELETING), - new LinkedServiceInner() - .withTags(mapOf("vpmouexhdzxib", "axcfjpgddtocjjx", "wndeicbtwnp", "eojnxqbzvddn", "hcffcyddglmjthjq", - "aoqvuh", "hix", "wpyeicxmqciwqvh")) - .withResourceId("sycbkbfk") - .withWriteAccessResourceId("kdkexxp") - .withProvisioningState(LinkedServiceEntityStatus.SUCCEEDED), - new LinkedServiceInner() - .withTags( - mapOf("kftutqxlngxlefg", "yvvtpgvdfgio", "rvqdra", "gnxkrxdqmidtth", "skanyk", "hjybigehoqfbo")) - .withResourceId("u") - .withWriteAccessResourceId("a") - .withProvisioningState(LinkedServiceEntityStatus.DELETING))); - model = BinaryData.fromObject(model).toObject(LinkedServiceListResult.class); - Assertions.assertEquals("xobnbdxkqpxok", model.value().get(0).tags().get("jionpimexgstxgc")); - Assertions.assertEquals("c", model.value().get(0).resourceId()); - Assertions.assertEquals("ierhhbcsglummaj", model.value().get(0).writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.DELETING, model.value().get(0).provisioningState()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals("zh", model.value().get(0).tags().get("tw")); + Assertions.assertEquals("rxfrddhc", model.value().get(0).resourceId()); + Assertions.assertEquals("tizzronasxif", model.value().get(0).writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.SUCCEEDED, model.value().get(0).provisioningState()); + Assertions.assertEquals("sdvlmfwdgzxulucv", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicePropertiesTests.java index d9655c34abc1..39dda3281a66 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicePropertiesTests.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.generated; @@ -12,23 +12,22 @@ public final class LinkedServicePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - LinkedServiceProperties model = BinaryData - .fromString( - "{\"resourceId\":\"hbzhfepg\",\"writeAccessResourceId\":\"qex\",\"provisioningState\":\"Updating\"}") + LinkedServiceProperties model = BinaryData.fromString( + "{\"resourceId\":\"knpirgnepttwq\",\"writeAccessResourceId\":\"niffcdmqnroj\",\"provisioningState\":\"ProvisioningAccount\"}") .toObject(LinkedServiceProperties.class); - Assertions.assertEquals("hbzhfepg", model.resourceId()); - Assertions.assertEquals("qex", model.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.UPDATING, model.provisioningState()); + Assertions.assertEquals("knpirgnepttwq", model.resourceId()); + Assertions.assertEquals("niffcdmqnroj", model.writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, model.provisioningState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LinkedServiceProperties model = new LinkedServiceProperties().withResourceId("hbzhfepg") - .withWriteAccessResourceId("qex") - .withProvisioningState(LinkedServiceEntityStatus.UPDATING); + LinkedServiceProperties model = new LinkedServiceProperties().withResourceId("knpirgnepttwq") + .withWriteAccessResourceId("niffcdmqnroj") + .withProvisioningState(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT); model = BinaryData.fromObject(model).toObject(LinkedServiceProperties.class); - Assertions.assertEquals("hbzhfepg", model.resourceId()); - Assertions.assertEquals("qex", model.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.UPDATING, model.provisioningState()); + Assertions.assertEquals("knpirgnepttwq", model.resourceId()); + Assertions.assertEquals("niffcdmqnroj", model.writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, model.provisioningState()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateMockTests.java index d6ae94e707f5..a2f3bfb7e26c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesCreateOrUpdateMockTests.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.generated; @@ -24,7 +24,7 @@ public final class LinkedServicesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"resourceId\":\"n\",\"writeAccessResourceId\":\"xjawrt\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"vnekhenlusfnrdtj\":\"yccxlzhcox\",\"ttgepuslvyjtcv\":\"txrdcqtjvi\"},\"id\":\"wkasiziesf\",\"name\":\"ughtuqfecjxeygtu\",\"type\":\"xu\"}"; + = "{\"properties\":{\"resourceId\":\"jtcdxabbujftaben\",\"writeAccessResourceId\":\"klqpx\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"dwwnl\":\"e\",\"wxudgn\":\"a\",\"gpbemeluclvdjju\":\"gookrtalvnb\"},\"id\":\"rdnqodxahhxhqf\",\"name\":\"qnvzoqgyipemch\",\"type\":\"avsczuejdtxp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,17 +34,17 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LinkedService response = manager.linkedServices() - .define("obkauxofsh") - .withExistingWorkspace("c", "uahokq") - .withTags(mapOf("gsnnf", "fgf", "coc", "yetefyp", "urmlmuo", "fjgtixrjvzuy")) - .withResourceId("hwpnulaiywzejywh") - .withWriteAccessResourceId("wkojpllndnpd") - .withProvisioningState(LinkedServiceEntityStatus.UPDATING) + .define("qzvs") + .withExistingWorkspace("ypsjoq", "jenkyh") + .withTags(mapOf("sjsz", "cacoyvivbsiz", "lzijiufehgmvflnw", "bscm")) + .withResourceId("fxjelg") + .withWriteAccessResourceId("pzqjhhhq") + .withProvisioningState(LinkedServiceEntityStatus.SUCCEEDED) .create(); - Assertions.assertEquals("yccxlzhcox", response.tags().get("vnekhenlusfnrdtj")); - Assertions.assertEquals("n", response.resourceId()); - Assertions.assertEquals("xjawrt", response.writeAccessResourceId()); + Assertions.assertEquals("e", response.tags().get("dwwnl")); + Assertions.assertEquals("jtcdxabbujftaben", response.resourceId()); + Assertions.assertEquals("klqpx", response.writeAccessResourceId()); Assertions.assertEquals(LinkedServiceEntityStatus.SUCCEEDED, response.provisioningState()); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteMockTests.java index dcbd77e0b1a7..9629503d0625 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesDeleteMockTests.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.generated; @@ -10,19 +10,15 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.loganalytics.LogAnalyticsManager; -import com.azure.resourcemanager.loganalytics.models.LinkedService; -import com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; public final class LinkedServicesDeleteMockTests { @Test public void testDelete() throws Exception { - String responseStr - = "{\"properties\":{\"resourceId\":\"dibgqjxgpnrhgov\",\"writeAccessResourceId\":\"pikqmh\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"qzdfuydzvkfvxcn\":\"rmzvupo\",\"psw\":\"mx\",\"gdhbe\":\"kmvkhl\"},\"id\":\"zqkzszuwi\",\"name\":\"tglxx\",\"type\":\"ljfp\"}"; + String responseStr = "{}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - LinkedService response = manager.linkedServices() - .delete("lqivbgkcv", "hpzvuqdflvoniyp", "pubcpzgpxtivhjk", com.azure.core.util.Context.NONE); + manager.linkedServices().delete("ujvaannggi", "cwkdtaaw", "wfekaumrrqmb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("rmzvupo", response.tags().get("qzdfuydzvkfvxcn")); - Assertions.assertEquals("dibgqjxgpnrhgov", response.resourceId()); - Assertions.assertEquals("pikqmh", response.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.SUCCEEDED, response.provisioningState()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetWithResponseMockTests.java index ea01d54b8a76..27ec4fe3a2e2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class LinkedServicesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"resourceId\":\"rnxousxauzlwvsg\",\"writeAccessResourceId\":\"ohqfzizv\",\"provisioningState\":\"Updating\"},\"tags\":{\"mribiat\":\"jsvthnwpzteko\",\"zcugswvxwlmzqw\":\"gplucfotangcfhny\",\"cvclxynpdk\":\"vtxnjmxmcuqud\",\"neiknpg\":\"gfabuiyjibuzphdu\"},\"id\":\"xgjiuqh\",\"name\":\"btozipqwje\",\"type\":\"mur\"}"; + = "{\"properties\":{\"resourceId\":\"skbruffgllukkut\",\"writeAccessResourceId\":\"xhrp\",\"provisioningState\":\"ProvisioningAccount\"},\"tags\":{\"randoypmb\":\"lcouqehbhbcdszir\",\"ormkfqlwxldyk\":\"t\",\"jpnnbmjksibjgsj\":\"lsygaol\",\"vpinbmhwbj\":\"xxahmrnadzyqegxy\"},\"id\":\"kgqxn\",\"name\":\"mbk\",\"type\":\"znj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LinkedService response = manager.linkedServices() - .getWithResponse("picrmnzhrgmqgjsx", "pqcbfrmbodthsq", "gvriibakclac", com.azure.core.util.Context.NONE) + .getWithResponse("knyuxgvttxpn", "upzaamrdixtre", "ids", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("jsvthnwpzteko", response.tags().get("mribiat")); - Assertions.assertEquals("rnxousxauzlwvsg", response.resourceId()); - Assertions.assertEquals("ohqfzizv", response.writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.UPDATING, response.provisioningState()); + Assertions.assertEquals("lcouqehbhbcdszir", response.tags().get("randoypmb")); + Assertions.assertEquals("skbruffgllukkut", response.resourceId()); + Assertions.assertEquals("xhrp", response.writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, response.provisioningState()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceMockTests.java index ee55a5c65b90..6a070e20a401 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedServicesListByWorkspaceMockTests.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.generated; @@ -23,7 +23,7 @@ public final class LinkedServicesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"resourceId\":\"cgwgcloxoebqinji\",\"writeAccessResourceId\":\"wjfuj\",\"provisioningState\":\"Deleting\"},\"tags\":{\"filkmkkholv\":\"bahhpzpofoiyjw\",\"ukyefchnmnahmnxh\":\"ndviauogphuartvt\",\"fifhxwrsnew\":\"xjqirwrweoox\",\"sycxhxzgaz\":\"ozqvbubqmam\"},\"id\":\"taboidvmf\",\"name\":\"hppubowsepdfgkmt\",\"type\":\"herngb\"}]}"; + = "{\"value\":[{\"properties\":{\"resourceId\":\"sokdgoge\",\"writeAccessResourceId\":\"jymrhbg\",\"provisioningState\":\"ProvisioningAccount\"},\"tags\":{\"ffjkutycyarnroo\":\"yewnfnzhhhqos\",\"abzoghktdpyczhco\":\"g\",\"pt\":\"ocnhzqrottjzcfyj\",\"h\":\"rl\"},\"id\":\"qinfszpyglqd\",\"name\":\"mrjzral\",\"type\":\"xpjb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,12 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.linkedServices().listByWorkspace("xxgewpk", "vqylkmqpzoyhl", com.azure.core.util.Context.NONE); + = manager.linkedServices().listByWorkspace("mqkra", "bnxwbjsidbirkf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bahhpzpofoiyjw", response.iterator().next().tags().get("filkmkkholv")); - Assertions.assertEquals("cgwgcloxoebqinji", response.iterator().next().resourceId()); - Assertions.assertEquals("wjfuj", response.iterator().next().writeAccessResourceId()); - Assertions.assertEquals(LinkedServiceEntityStatus.DELETING, response.iterator().next().provisioningState()); + Assertions.assertEquals("yewnfnzhhhqos", response.iterator().next().tags().get("ffjkutycyarnroo")); + Assertions.assertEquals("sokdgoge", response.iterator().next().resourceId()); + Assertions.assertEquals("jymrhbg", response.iterator().next().writeAccessResourceId()); + Assertions.assertEquals(LinkedServiceEntityStatus.PROVISIONING_ACCOUNT, + response.iterator().next().provisioningState()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateWithResponseMockTests.java index d48b9a981fa2..e31739815d61 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsCreateOrUpdateWithResponseMockTests.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.generated; @@ -23,7 +23,7 @@ public final class LinkedStorageAccountsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataSourceType\":\"Query\",\"storageAccountIds\":[\"qogsfikayian\"]},\"id\":\"haru\",\"name\":\"t\",\"type\":\"iqxf\"}"; + = "{\"properties\":{\"dataSourceType\":\"AzureWatson\",\"storageAccountIds\":[\"ymrvzbju\"]},\"id\":\"srziuct\",\"name\":\"xgbdsuifrevka\",\"type\":\"pezkis\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LinkedStorageAccountsResource response = manager.linkedStorageAccounts() - .define(DataSourceType.QUERY) - .withExistingWorkspace("dirazf", "xejw") - .withStorageAccountIds(Arrays.asList("tmvcop", "xcmjurbu")) + .define(DataSourceType.CUSTOM_LOGS) + .withExistingWorkspace("ajmailfemjjza", "zwjiqullq") + .withStorageAccountIds(Arrays.asList("sc", "qern", "brnyeofltfnnx", "kadjf")) .create(); - Assertions.assertEquals("qogsfikayian", response.storageAccountIds().get(0)); + Assertions.assertEquals("ymrvzbju", response.storageAccountIds().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteWithResponseMockTests.java index 8e903ac007f6..b7b0dd2b5924 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsDeleteWithResponseMockTests.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.generated; @@ -29,7 +29,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.linkedStorageAccounts() - .deleteWithResponse("cbuewmrswnjlxuz", "hwpusxj", DataSourceType.QUERY, com.azure.core.util.Context.NONE); + .deleteWithResponse("k", "ke", DataSourceType.QUERY, com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetWithResponseMockTests.java index c573d8bbe878..db602449aad5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class LinkedStorageAccountsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"dataSourceType\":\"AzureWatson\",\"storageAccountIds\":[\"fepbnwgfmxjgc\",\"bjb\",\"dlfgtdysnaq\"]},\"id\":\"flq\",\"name\":\"ctqhamzjrwdk\",\"type\":\"zeqyjleziun\"}"; + = "{\"properties\":{\"dataSourceType\":\"Query\",\"storageAccountIds\":[\"mjceagbjqvls\"]},\"id\":\"ywzash\",\"name\":\"gon\",\"type\":\"yjfqipubyznc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LinkedStorageAccountsResource response = manager.linkedStorageAccounts() - .getWithResponse("qehgpd", "hzjqatucoige", DataSourceType.ALERTS, com.azure.core.util.Context.NONE) + .getWithResponse("jcx", "yqgxhlus", DataSourceType.INGESTION, com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fepbnwgfmxjgc", response.storageAccountIds().get(0)); + Assertions.assertEquals("mjceagbjqvls", response.storageAccountIds().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceMockTests.java index 1653382012f8..6b7fbe6163e1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListByWorkspaceMockTests.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.generated; @@ -22,7 +22,7 @@ public final class LinkedStorageAccountsListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"dataSourceType\":\"AzureWatson\",\"storageAccountIds\":[\"nseqacjjvp\",\"lguooqjagmd\",\"tg\",\"eiookjbsah\"]},\"id\":\"tdtpdelqacslmo\",\"name\":\"oebn\",\"type\":\"xofvcjk\"}]}"; + = "{\"value\":[{\"properties\":{\"dataSourceType\":\"AzureWatson\",\"storageAccountIds\":[\"qavn\"]},\"id\":\"flqqbtnyjpylxd\",\"name\":\"fvabmvmsxba\",\"type\":\"vwjcnkottlwuh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.linkedStorageAccounts().listByWorkspace("xdfzantkw", "eg", com.azure.core.util.Context.NONE); + = manager.linkedStorageAccounts().listByWorkspace("gv", "pemtuoqu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nseqacjjvp", response.iterator().next().storageAccountIds().get(0)); + Assertions.assertEquals("qavn", response.iterator().next().storageAccountIds().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListResultTests.java index 72e9c44c5402..44c0251fd0f0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsListResultTests.java @@ -1,31 +1,20 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner; -import com.azure.resourcemanager.loganalytics.models.LinkedStorageAccountsListResult; -import java.util.Arrays; +import com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult; import org.junit.jupiter.api.Assertions; public final class LinkedStorageAccountsListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedStorageAccountsListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"dataSourceType\":\"CustomLogs\",\"storageAccountIds\":[\"ipheoflokeyyien\",\"bdlwtgrhpdjpj\",\"masxazjpqyegu\",\"lhbxxhejjzzvdud\"]},\"id\":\"wdslfhotwmcy\",\"name\":\"pwlbjnpg\",\"type\":\"cftadeh\"},{\"properties\":{\"dataSourceType\":\"Alerts\",\"storageAccountIds\":[\"fsoppusuesnzw\",\"ej\"]},\"id\":\"avo\",\"name\":\"xzdmohctb\",\"type\":\"vudwx\"}]}") + "{\"value\":[{\"properties\":{\"dataSourceType\":\"CustomLogs\",\"storageAccountIds\":[\"mfgvxirpghriypo\"]},\"id\":\"yhlqhykprlpyznu\",\"name\":\"iq\",\"type\":\"smexiitdf\"}],\"nextLink\":\"tyasiibmiybnnust\"}") .toObject(LinkedStorageAccountsListResult.class); - Assertions.assertEquals("ipheoflokeyyien", model.value().get(0).storageAccountIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedStorageAccountsListResult model = new LinkedStorageAccountsListResult().withValue(Arrays.asList( - new LinkedStorageAccountsResourceInner().withStorageAccountIds( - Arrays.asList("ipheoflokeyyien", "bdlwtgrhpdjpj", "masxazjpqyegu", "lhbxxhejjzzvdud")), - new LinkedStorageAccountsResourceInner().withStorageAccountIds(Arrays.asList("fsoppusuesnzw", "ej")))); - model = BinaryData.fromObject(model).toObject(LinkedStorageAccountsListResult.class); - Assertions.assertEquals("ipheoflokeyyien", model.value().get(0).storageAccountIds().get(0)); + Assertions.assertEquals("mfgvxirpghriypo", model.value().get(0).storageAccountIds().get(0)); + Assertions.assertEquals("tyasiibmiybnnust", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsPropertiesTests.java index 0646d7918b9a..bc85a23db0c0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsPropertiesTests.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.generated; @@ -13,16 +13,16 @@ public final class LinkedStorageAccountsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedStorageAccountsProperties model = BinaryData.fromString( - "{\"dataSourceType\":\"Query\",\"storageAccountIds\":[\"nwsubisnj\",\"mpmngnzscxaqwoo\",\"hcbonqvpkvlr\"]}") + "{\"dataSourceType\":\"AzureWatson\",\"storageAccountIds\":[\"aj\",\"nw\",\"acevehjkuyx\",\"afgaoqlt\"]}") .toObject(LinkedStorageAccountsProperties.class); - Assertions.assertEquals("nwsubisnj", model.storageAccountIds().get(0)); + Assertions.assertEquals("aj", model.storageAccountIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LinkedStorageAccountsProperties model = new LinkedStorageAccountsProperties() - .withStorageAccountIds(Arrays.asList("nwsubisnj", "mpmngnzscxaqwoo", "hcbonqvpkvlr")); + .withStorageAccountIds(Arrays.asList("aj", "nw", "acevehjkuyx", "afgaoqlt")); model = BinaryData.fromObject(model).toObject(LinkedStorageAccountsProperties.class); - Assertions.assertEquals("nwsubisnj", model.storageAccountIds().get(0)); + Assertions.assertEquals("aj", model.storageAccountIds().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsResourceInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsResourceInnerTests.java index 57ce7268faaf..33e58d86deb4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsResourceInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LinkedStorageAccountsResourceInnerTests.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.generated; @@ -13,16 +13,16 @@ public final class LinkedStorageAccountsResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinkedStorageAccountsResourceInner model = BinaryData.fromString( - "{\"properties\":{\"dataSourceType\":\"Ingestion\",\"storageAccountIds\":[\"zevgb\",\"qjqabcypmivkwl\",\"uvcc\"]},\"id\":\"wnfnbacf\",\"name\":\"onlebxetqgtzxdpn\",\"type\":\"bqqwxrj\"}") + "{\"properties\":{\"dataSourceType\":\"Query\",\"storageAccountIds\":[\"fczbgom\",\"gbeglqgleo\"]},\"id\":\"betnluankrrfxee\",\"name\":\"btijvacvbm\",\"type\":\"z\"}") .toObject(LinkedStorageAccountsResourceInner.class); - Assertions.assertEquals("zevgb", model.storageAccountIds().get(0)); + Assertions.assertEquals("fczbgom", model.storageAccountIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LinkedStorageAccountsResourceInner model = new LinkedStorageAccountsResourceInner() - .withStorageAccountIds(Arrays.asList("zevgb", "qjqabcypmivkwl", "uvcc")); + LinkedStorageAccountsResourceInner model + = new LinkedStorageAccountsResourceInner().withStorageAccountIds(Arrays.asList("fczbgom", "gbeglqgleo")); model = BinaryData.fromObject(model).toObject(LinkedStorageAccountsResourceInner.class); - Assertions.assertEquals("zevgb", model.storageAccountIds().get(0)); + Assertions.assertEquals("fczbgom", model.storageAccountIds().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackInnerTests.java index ddaba19b2e18..520ae9099c8d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackInnerTests.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.generated; @@ -14,19 +14,20 @@ public final class LogAnalyticsQueryPackInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackInner model = BinaryData.fromString( - "{\"properties\":{\"queryPackId\":\"vlvqhjkbegi\",\"timeCreated\":\"2021-03-26T15:32:51Z\",\"timeModified\":\"2021-02-11T17:20:18Z\",\"provisioningState\":\"ebwwaloayqc\"},\"location\":\"rtzju\",\"tags\":{\"txon\":\"yzm\",\"rknftguvriuhprwm\":\"mtsavjcbpwxqp\",\"bexrmcq\":\"yvxqtayriwwroy\"},\"id\":\"bycnojvkn\",\"name\":\"e\",\"type\":\"qsgzvahapj\"}") + "{\"properties\":{\"queryPackId\":\"rxuzvoam\",\"timeCreated\":\"2021-06-19T10:33:49Z\",\"timeModified\":\"2021-06-23T23:14:48Z\",\"provisioningState\":\"smgbzahgxqdl\"},\"location\":\"tlt\",\"tags\":{\"nbsoqeqalarv\":\"rltzkatbhjmz\",\"nbmhyree\":\"agunbtgfebw\",\"lgouwtlmjj\":\"dzqavbpdqmjxlyyz\",\"baxk\":\"uojqt\"},\"id\":\"eytu\",\"name\":\"lbfjkwr\",\"type\":\"snkq\"}") .toObject(LogAnalyticsQueryPackInner.class); - Assertions.assertEquals("rtzju", model.location()); - Assertions.assertEquals("yzm", model.tags().get("txon")); + Assertions.assertEquals("tlt", model.location()); + Assertions.assertEquals("rltzkatbhjmz", model.tags().get("nbsoqeqalarv")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsQueryPackInner model = new LogAnalyticsQueryPackInner().withLocation("rtzju") - .withTags(mapOf("txon", "yzm", "rknftguvriuhprwm", "mtsavjcbpwxqp", "bexrmcq", "yvxqtayriwwroy")); + LogAnalyticsQueryPackInner model = new LogAnalyticsQueryPackInner().withLocation("tlt") + .withTags(mapOf("nbsoqeqalarv", "rltzkatbhjmz", "nbmhyree", "agunbtgfebw", "lgouwtlmjj", "dzqavbpdqmjxlyyz", + "baxk", "uojqt")); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackInner.class); - Assertions.assertEquals("rtzju", model.location()); - Assertions.assertEquals("yzm", model.tags().get("txon")); + Assertions.assertEquals("tlt", model.location()); + Assertions.assertEquals("rltzkatbhjmz", model.tags().get("nbsoqeqalarv")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackListResultTests.java index 2eeff82cfbe9..b596494f6678 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackListResultTests.java @@ -1,52 +1,21 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner; -import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackListResult; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult; import org.junit.jupiter.api.Assertions; public final class LogAnalyticsQueryPackListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"queryPackId\":\"r\",\"timeCreated\":\"2021-06-09T13:42:27Z\",\"timeModified\":\"2021-10-13T05:34:59Z\",\"provisioningState\":\"omzlfmi\"},\"location\":\"wbnb\",\"tags\":{\"urqhaka\":\"dawkzbali\",\"xcug\":\"hashsfwxosow\",\"ovbvmeueciv\":\"cjooxdjebwpucwwf\",\"otwmcdyt\":\"hzceuojgjrwjue\"},\"id\":\"x\",\"name\":\"it\",\"type\":\"nrjawgqwg\"},{\"properties\":{\"queryPackId\":\"ni\",\"timeCreated\":\"2021-10-14T20:39:54Z\",\"timeModified\":\"2021-05-28T01:48:43Z\",\"provisioningState\":\"py\"},\"location\":\"klwndnhjdauwhv\",\"tags\":{\"xujznbmpowu\":\"zbtd\",\"lupj\":\"przqlveu\"},\"id\":\"khfxobbcswsrt\",\"name\":\"riplrbpbewtg\",\"type\":\"fgb\"}],\"nextLink\":\"gw\"}") + "{\"value\":[{\"properties\":{\"queryPackId\":\"tqabpxuckpgg\",\"timeCreated\":\"2021-08-02T05:31:30Z\",\"timeModified\":\"2021-04-14T15:49:08Z\",\"provisioningState\":\"rdhlis\"},\"location\":\"wfl\",\"tags\":{\"cng\":\"pizruwnpqxpxiw\",\"kv\":\"saasiixtmkzj\"},\"id\":\"irhgfgrwsdp\",\"name\":\"ra\",\"type\":\"zvzbglbyv\"},{\"properties\":{\"queryPackId\":\"tctbrxkjzwrgxffm\",\"timeCreated\":\"2021-08-27T19:17:59Z\",\"timeModified\":\"2021-08-28T12:30:32Z\",\"provisioningState\":\"kgozxwop\"},\"location\":\"yd\",\"tags\":{\"nugj\":\"qaclnapxbiy\",\"cttuxuu\":\"nfsm\"},\"id\":\"i\",\"name\":\"flqo\",\"type\":\"quvre\"},{\"properties\":{\"queryPackId\":\"rnjhvsujztczytqj\",\"timeCreated\":\"2021-01-25T05:03:18Z\",\"timeModified\":\"2021-03-04T06:20:36Z\",\"provisioningState\":\"nfprnjletlxs\"},\"location\":\"pddouifamowaziyn\",\"tags\":{\"zdtmaajquhuxylrj\":\"qwzdvpiwhxq\",\"ygjbmzyospspsh\":\"m\",\"sp\":\"kfkyjp\",\"ujtv\":\"pssdfppyogtie\"},\"id\":\"zkc\",\"name\":\"yxrxmunj\",\"type\":\"xvglnkvxlxp\"},{\"properties\":{\"queryPackId\":\"lqivbgkcv\",\"timeCreated\":\"2021-10-11T22:54:01Z\",\"timeModified\":\"2020-12-28T02:44:39Z\",\"provisioningState\":\"qdf\"},\"location\":\"oniypfpubcpzgp\",\"tags\":{\"gqjxgpnrhgovfgp\":\"vhjknidi\",\"zvuporqzdfuydz\":\"kqmhhaowjr\",\"xqpswok\":\"kfvxcnq\"},\"id\":\"vkhlggdhbemz\",\"name\":\"kzsz\",\"type\":\"wiwtglxxhl\"}],\"nextLink\":\"pg\"}") .toObject(LogAnalyticsQueryPackListResult.class); - Assertions.assertEquals("wbnb", model.value().get(0).location()); - Assertions.assertEquals("dawkzbali", model.value().get(0).tags().get("urqhaka")); - Assertions.assertEquals("gw", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogAnalyticsQueryPackListResult model = new LogAnalyticsQueryPackListResult().withValue(Arrays.asList( - new LogAnalyticsQueryPackInner().withLocation("wbnb") - .withTags(mapOf("urqhaka", "dawkzbali", "xcug", "hashsfwxosow", "ovbvmeueciv", "cjooxdjebwpucwwf", - "otwmcdyt", "hzceuojgjrwjue")), - new LogAnalyticsQueryPackInner().withLocation("klwndnhjdauwhv") - .withTags(mapOf("xujznbmpowu", "zbtd", "lupj", "przqlveu")))) - .withNextLink("gw"); - model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackListResult.class); - Assertions.assertEquals("wbnb", model.value().get(0).location()); - Assertions.assertEquals("dawkzbali", model.value().get(0).tags().get("urqhaka")); - Assertions.assertEquals("gw", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals("wfl", model.value().get(0).location()); + Assertions.assertEquals("pizruwnpqxpxiw", model.value().get(0).tags().get("cng")); + Assertions.assertEquals("pg", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackPropertiesTests.java index 8519059f3572..206c5490d7b4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackPropertiesTests.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.generated; @@ -11,7 +11,7 @@ public final class LogAnalyticsQueryPackPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackProperties model = BinaryData.fromString( - "{\"queryPackId\":\"hpvgqz\",\"timeCreated\":\"2021-01-17T14:10:43Z\",\"timeModified\":\"2021-03-29T21:57:57Z\",\"provisioningState\":\"jzlmw\"}") + "{\"queryPackId\":\"syrq\",\"timeCreated\":\"2021-12-08T12:55:11Z\",\"timeModified\":\"2021-08-25T06:40:32Z\",\"provisioningState\":\"enx\"}") .toObject(LogAnalyticsQueryPackProperties.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryInnerTests.java index e9775cc4a340..5bc6f1aa777c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryInnerTests.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.generated; @@ -16,37 +16,37 @@ public final class LogAnalyticsQueryPackQueryInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQueryInner model = BinaryData.fromString( - "{\"properties\":{\"id\":\"bebrjcxerfuwuttt\",\"displayName\":\"fvjrbirphxepcy\",\"timeCreated\":\"2021-11-07T03:18:20Z\",\"timeModified\":\"2021-05-23T19:09:39Z\",\"author\":\"jky\",\"description\":\"j\",\"body\":\"uujqgidokgjljyo\",\"related\":{\"categories\":[\"ltbgsncghkj\",\"szzhbijhtxfvgxbf\",\"mxnehmp\",\"ec\"],\"resourceTypes\":[\"debfqkkrbmpukgri\",\"flz\",\"fbxzpuzycisp\",\"qzahmgkbrp\"],\"solutions\":[\"hibnuqqkpika\",\"rgvtqag\"]},\"tags\":{\"ttdbhrbnl\":[\"nhijggmebfsi\",\"rbu\",\"rcvpnazzmhjrunmp\"],\"czfc\":[\"kx\",\"yskpbhen\",\"tkcxywnytnrsy\",\"lqidyby\"]},\"properties\":\"dataaaxdbabphlwrq\"},\"id\":\"ktsthsucocmny\",\"name\":\"azt\",\"type\":\"bt\"}") + "{\"properties\":{\"id\":\"jh\",\"displayName\":\"mgixhcmavmqfou\",\"timeCreated\":\"2021-07-01T05:18:42Z\",\"timeModified\":\"2021-04-26T01:10:25Z\",\"author\":\"yyprotwyp\",\"description\":\"d\",\"body\":\"bxhugcmjkavlgorb\",\"related\":{\"categories\":[\"mdtzfjltfvnzc\",\"jtotpvopvpbd\"],\"resourceTypes\":[\"gqqihedsvqwt\",\"mkyi\",\"cysihs\",\"qcwdhoh\"],\"solutions\":[\"mcdzsufcohdxbz\",\"mcmuapc\",\"hdbevwqqxeyskon\"]},\"tags\":{\"ezrxcczurtleipqx\":[\"kfkbgbzbowxeqocl\",\"mygvkzqkj\",\"eokbze\"],\"nzvdfbzdixzmq\":[\"wvz\"],\"bostzel\":[\"odawopqhewjptmcg\"]},\"properties\":\"\\\"datala\\\"\"},\"id\":\"tmzlbiojlv\",\"name\":\"hrbbpneqvcwwyy\",\"type\":\"r\"}") .toObject(LogAnalyticsQueryPackQueryInner.class); - Assertions.assertEquals("fvjrbirphxepcy", model.displayName()); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals("uujqgidokgjljyo", model.body()); - Assertions.assertEquals("ltbgsncghkj", model.related().categories().get(0)); - Assertions.assertEquals("debfqkkrbmpukgri", model.related().resourceTypes().get(0)); - Assertions.assertEquals("hibnuqqkpika", model.related().solutions().get(0)); - Assertions.assertEquals("nhijggmebfsi", model.tags().get("ttdbhrbnl").get(0)); + Assertions.assertEquals("mgixhcmavmqfou", model.displayName()); + Assertions.assertEquals("d", model.description()); + Assertions.assertEquals("bxhugcmjkavlgorb", model.body()); + Assertions.assertEquals("mdtzfjltfvnzc", model.related().categories().get(0)); + Assertions.assertEquals("gqqihedsvqwt", model.related().resourceTypes().get(0)); + Assertions.assertEquals("mcdzsufcohdxbz", model.related().solutions().get(0)); + Assertions.assertEquals("kfkbgbzbowxeqocl", model.tags().get("ezrxcczurtleipqx").get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsQueryPackQueryInner model = new LogAnalyticsQueryPackQueryInner().withDisplayName("fvjrbirphxepcy") - .withDescription("j") - .withBody("uujqgidokgjljyo") + LogAnalyticsQueryPackQueryInner model = new LogAnalyticsQueryPackQueryInner().withDisplayName("mgixhcmavmqfou") + .withDescription("d") + .withBody("bxhugcmjkavlgorb") .withRelated(new LogAnalyticsQueryPackQueryPropertiesRelated() - .withCategories(Arrays.asList("ltbgsncghkj", "szzhbijhtxfvgxbf", "mxnehmp", "ec")) - .withResourceTypes(Arrays.asList("debfqkkrbmpukgri", "flz", "fbxzpuzycisp", "qzahmgkbrp")) - .withSolutions(Arrays.asList("hibnuqqkpika", "rgvtqag"))) - .withTags(mapOf("ttdbhrbnl", Arrays.asList("nhijggmebfsi", "rbu", "rcvpnazzmhjrunmp"), "czfc", - Arrays.asList("kx", "yskpbhen", "tkcxywnytnrsy", "lqidyby"))) - .withProperties("dataaaxdbabphlwrq"); + .withCategories(Arrays.asList("mdtzfjltfvnzc", "jtotpvopvpbd")) + .withResourceTypes(Arrays.asList("gqqihedsvqwt", "mkyi", "cysihs", "qcwdhoh")) + .withSolutions(Arrays.asList("mcdzsufcohdxbz", "mcmuapc", "hdbevwqqxeyskon"))) + .withTags(mapOf("ezrxcczurtleipqx", Arrays.asList("kfkbgbzbowxeqocl", "mygvkzqkj", "eokbze"), + "nzvdfbzdixzmq", Arrays.asList("wvz"), "bostzel", Arrays.asList("odawopqhewjptmcg"))) + .withProperties("\"datala\""); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQueryInner.class); - Assertions.assertEquals("fvjrbirphxepcy", model.displayName()); - Assertions.assertEquals("j", model.description()); - Assertions.assertEquals("uujqgidokgjljyo", model.body()); - Assertions.assertEquals("ltbgsncghkj", model.related().categories().get(0)); - Assertions.assertEquals("debfqkkrbmpukgri", model.related().resourceTypes().get(0)); - Assertions.assertEquals("hibnuqqkpika", model.related().solutions().get(0)); - Assertions.assertEquals("nhijggmebfsi", model.tags().get("ttdbhrbnl").get(0)); + Assertions.assertEquals("mgixhcmavmqfou", model.displayName()); + Assertions.assertEquals("d", model.description()); + Assertions.assertEquals("bxhugcmjkavlgorb", model.body()); + Assertions.assertEquals("mdtzfjltfvnzc", model.related().categories().get(0)); + Assertions.assertEquals("gqqihedsvqwt", model.related().resourceTypes().get(0)); + Assertions.assertEquals("mcdzsufcohdxbz", model.related().solutions().get(0)); + Assertions.assertEquals("kfkbgbzbowxeqocl", model.tags().get("ezrxcczurtleipqx").get(0)); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryListResultTests.java index 6a9bbc95acaf..87bdda27ab88 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryListResultTests.java @@ -1,69 +1,26 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner; -import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryListResult; -import com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult; import org.junit.jupiter.api.Assertions; public final class LogAnalyticsQueryPackQueryListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQueryListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"id\":\"nvudwtiukb\",\"displayName\":\"dng\",\"timeCreated\":\"2021-01-23T10:58:05Z\",\"timeModified\":\"2021-05-04T07:17:38Z\",\"author\":\"azyxoegukg\",\"description\":\"piu\",\"body\":\"gygev\",\"related\":{\"categories\":[\"yp\",\"rbpizc\",\"r\",\"j\"],\"resourceTypes\":[\"ydnfyhxdeoejz\"],\"solutions\":[\"ifsjttgzfbishcb\"]},\"tags\":{\"kix\":[\"deyeamdphagalpbu\",\"wgipwhono\",\"kgshwa\"],\"ttmrywnuzoqf\":[\"injep\"],\"oqqnwvlryav\":[\"yqzrnkcqvyxlw\",\"zlsico\"],\"szfkbe\":[\"heun\",\"mqhgyxzkonocuk\",\"klyaxuconu\"]},\"properties\":\"dataewrmjmwvvjektc\"},\"id\":\"enhwlrs\",\"name\":\"frzpwvlqdqgb\",\"type\":\"qylihkaetckt\"}],\"nextLink\":\"civfsnkymuctq\"}") + "{\"value\":[{\"properties\":{\"id\":\"kskyrioovzid\",\"displayName\":\"xwaabzmifrygznmm\",\"timeCreated\":\"2021-01-10T17:29:41Z\",\"timeModified\":\"2021-01-20T19:10:08Z\",\"author\":\"zob\",\"description\":\"pxl\",\"body\":\"slnelx\",\"related\":{\"categories\":[\"ynllxe\"],\"resourceTypes\":[\"rojphslhcawjutif\",\"wfmvigorqjbt\"],\"solutions\":[\"raglk\"]},\"tags\":{\"wcltyjede\":[\"n\",\"juj\",\"ickpz\",\"cpopmxel\"],\"azuawx\":[\"mlfmkqs\"],\"uamwabzxrvxc\":[\"x\"],\"lvgsgzwywakoih\":[\"hsphaivmxyas\"]},\"properties\":\"\\\"datasmjblmljhlnym\\\"\"},\"id\":\"tqyryuzcbmqqv\",\"name\":\"mv\",\"type\":\"fgtayxonsup\"},{\"properties\":{\"id\":\"lzqnhcvs\",\"displayName\":\"ltnzoibgsxg\",\"timeCreated\":\"2020-12-27T04:55:55Z\",\"timeModified\":\"2021-05-19T23:46Z\",\"author\":\"nmpqoxwdofdb\",\"description\":\"qxeiiqbimhtmwwi\",\"body\":\"h\",\"related\":{\"categories\":[\"pofvwb\",\"blembnkbwvqvxkd\"],\"resourceTypes\":[\"ihebwtsw\",\"zuwfmdur\"],\"solutions\":[\"gi\",\"vcjfelisdjubggb\"]},\"tags\":{\"bzjedmstk\":[\"xkbsazgakgac\",\"rcmjdmspofapvuh\",\"ylnio\",\"rz\"],\"nsnvpd\":[\"l\",\"xbcuiiznkt\",\"f\"],\"kiwbuqnyoph\":[\"mik\",\"stbz\"]},\"properties\":\"\\\"datayls\\\"\"},\"id\":\"rpfbcunezz\",\"name\":\"e\",\"type\":\"elfwy\"},{\"properties\":{\"id\":\"wx\",\"displayName\":\"wetnpsihc\",\"timeCreated\":\"2021-08-08T18:46:08Z\",\"timeModified\":\"2021-08-22T14:03:47Z\",\"author\":\"ylptrsqqwztcm\",\"description\":\"kchcxwa\",\"body\":\"fewz\",\"related\":{\"categories\":[\"xfdeqvhpsyl\",\"ksh\",\"bffmbmxz\",\"rgywwp\"],\"resourceTypes\":[\"snptfujgicgaao\"],\"solutions\":[\"taqutdewem\",\"swvr\",\"unzzjgehk\"]},\"tags\":{\"yinljqe\":[\"rtixokff\"]},\"properties\":\"\\\"datawhixmonstsh\\\"\"},\"id\":\"xgvelfclduccbird\",\"name\":\"vuwcobiegstmnin\",\"type\":\"jizcilnghgs\"}],\"nextLink\":\"jjtbxqmuluxlxqz\"}") .toObject(LogAnalyticsQueryPackQueryListResult.class); - Assertions.assertEquals("dng", model.value().get(0).displayName()); - Assertions.assertEquals("piu", model.value().get(0).description()); - Assertions.assertEquals("gygev", model.value().get(0).body()); - Assertions.assertEquals("yp", model.value().get(0).related().categories().get(0)); - Assertions.assertEquals("ydnfyhxdeoejz", model.value().get(0).related().resourceTypes().get(0)); - Assertions.assertEquals("ifsjttgzfbishcb", model.value().get(0).related().solutions().get(0)); - Assertions.assertEquals("deyeamdphagalpbu", model.value().get(0).tags().get("kix").get(0)); - Assertions.assertEquals("civfsnkymuctq", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogAnalyticsQueryPackQueryListResult model = new LogAnalyticsQueryPackQueryListResult() - .withValue(Arrays.asList(new LogAnalyticsQueryPackQueryInner().withDisplayName("dng") - .withDescription("piu") - .withBody("gygev") - .withRelated(new LogAnalyticsQueryPackQueryPropertiesRelated() - .withCategories(Arrays.asList("yp", "rbpizc", "r", "j")) - .withResourceTypes(Arrays.asList("ydnfyhxdeoejz")) - .withSolutions(Arrays.asList("ifsjttgzfbishcb"))) - .withTags(mapOf("kix", Arrays.asList("deyeamdphagalpbu", "wgipwhono", "kgshwa"), "ttmrywnuzoqf", - Arrays.asList("injep"), "oqqnwvlryav", Arrays.asList("yqzrnkcqvyxlw", "zlsico"), "szfkbe", - Arrays.asList("heun", "mqhgyxzkonocuk", "klyaxuconu"))) - .withProperties("dataewrmjmwvvjektc"))) - .withNextLink("civfsnkymuctq"); - model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQueryListResult.class); - Assertions.assertEquals("dng", model.value().get(0).displayName()); - Assertions.assertEquals("piu", model.value().get(0).description()); - Assertions.assertEquals("gygev", model.value().get(0).body()); - Assertions.assertEquals("yp", model.value().get(0).related().categories().get(0)); - Assertions.assertEquals("ydnfyhxdeoejz", model.value().get(0).related().resourceTypes().get(0)); - Assertions.assertEquals("ifsjttgzfbishcb", model.value().get(0).related().solutions().get(0)); - Assertions.assertEquals("deyeamdphagalpbu", model.value().get(0).tags().get("kix").get(0)); - Assertions.assertEquals("civfsnkymuctq", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals("xwaabzmifrygznmm", model.value().get(0).displayName()); + Assertions.assertEquals("pxl", model.value().get(0).description()); + Assertions.assertEquals("slnelx", model.value().get(0).body()); + Assertions.assertEquals("ynllxe", model.value().get(0).related().categories().get(0)); + Assertions.assertEquals("rojphslhcawjutif", model.value().get(0).related().resourceTypes().get(0)); + Assertions.assertEquals("raglk", model.value().get(0).related().solutions().get(0)); + Assertions.assertEquals("n", model.value().get(0).tags().get("wcltyjede").get(0)); + Assertions.assertEquals("jjtbxqmuluxlxqz", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesRelatedTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesRelatedTests.java index 394b262405ab..f5313159d871 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesRelatedTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesRelatedTests.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.generated; @@ -13,22 +13,22 @@ public final class LogAnalyticsQueryPackQueryPropertiesRelatedTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQueryPropertiesRelated model = BinaryData.fromString( - "{\"categories\":[\"yqupedeojnabckh\",\"mtxpsiebtfh\",\"pesapskrdqmhjj\",\"htldwk\"],\"resourceTypes\":[\"uutkncw\",\"cwsvlxotog\",\"wrupqsxvnmicykvc\",\"o\"],\"solutions\":[\"lo\",\"notyfjfcnjbkcn\"]}") + "{\"categories\":[\"wgnyfusfzsvtui\"],\"resourceTypes\":[\"ajqglcf\",\"mlrqryxynqnz\",\"dpsovwxznptgo\"],\"solutions\":[\"bbabp\",\"hv\",\"slkvntjl\"]}") .toObject(LogAnalyticsQueryPackQueryPropertiesRelated.class); - Assertions.assertEquals("yqupedeojnabckh", model.categories().get(0)); - Assertions.assertEquals("uutkncw", model.resourceTypes().get(0)); - Assertions.assertEquals("lo", model.solutions().get(0)); + Assertions.assertEquals("wgnyfusfzsvtui", model.categories().get(0)); + Assertions.assertEquals("ajqglcf", model.resourceTypes().get(0)); + Assertions.assertEquals("bbabp", model.solutions().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsQueryPackQueryPropertiesRelated model = new LogAnalyticsQueryPackQueryPropertiesRelated() - .withCategories(Arrays.asList("yqupedeojnabckh", "mtxpsiebtfh", "pesapskrdqmhjj", "htldwk")) - .withResourceTypes(Arrays.asList("uutkncw", "cwsvlxotog", "wrupqsxvnmicykvc", "o")) - .withSolutions(Arrays.asList("lo", "notyfjfcnjbkcn")); + LogAnalyticsQueryPackQueryPropertiesRelated model + = new LogAnalyticsQueryPackQueryPropertiesRelated().withCategories(Arrays.asList("wgnyfusfzsvtui")) + .withResourceTypes(Arrays.asList("ajqglcf", "mlrqryxynqnz", "dpsovwxznptgo")) + .withSolutions(Arrays.asList("bbabp", "hv", "slkvntjl")); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQueryPropertiesRelated.class); - Assertions.assertEquals("yqupedeojnabckh", model.categories().get(0)); - Assertions.assertEquals("uutkncw", model.resourceTypes().get(0)); - Assertions.assertEquals("lo", model.solutions().get(0)); + Assertions.assertEquals("wgnyfusfzsvtui", model.categories().get(0)); + Assertions.assertEquals("ajqglcf", model.resourceTypes().get(0)); + Assertions.assertEquals("bbabp", model.solutions().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesTests.java index a2042415c0c5..ca86c096accc 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQueryPropertiesTests.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.generated; @@ -16,37 +16,36 @@ public final class LogAnalyticsQueryPackQueryPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQueryProperties model = BinaryData.fromString( - "{\"id\":\"rq\",\"displayName\":\"uedck\",\"timeCreated\":\"2021-02-12T19:04:46Z\",\"timeModified\":\"2021-04-30T21:59:13Z\",\"author\":\"xzfeyueaxibxuj\",\"description\":\"hqwa\",\"body\":\"muzyoxaepdk\",\"related\":{\"categories\":[\"cuxrhdwbavx\",\"niwdjsw\",\"tsdbpgn\"],\"resourceTypes\":[\"x\"],\"solutions\":[\"xbzpfzab\",\"lcuhxwtctyqiklb\",\"ovplw\"]},\"tags\":{\"svmkfssxquk\":[\"gy\",\"gu\"],\"zkd\":[\"plgmgsxnk\"],\"wzbaiue\":[\"lpvlopw\",\"yighxpk\"]},\"properties\":\"dataa\"}") + "{\"id\":\"chpp\",\"displayName\":\"prsnmokayzejn\",\"timeCreated\":\"2021-11-02T12:51:51Z\",\"timeModified\":\"2021-11-15T19:00:22Z\",\"author\":\"z\",\"description\":\"piljhahzvech\",\"body\":\"dbn\",\"related\":{\"categories\":[\"olewjwi\"],\"resourceTypes\":[\"wefqsfapaqtferr\",\"wexjkmfxapjwogq\",\"nobpudcdabtqwpw\",\"awbzasqb\"],\"solutions\":[\"jg\",\"yexaoguy\"]},\"tags\":{\"waz\":[\"dsdaultxijjumf\"]},\"properties\":\"\\\"dataqnmcjngzqdqx\\\"\"}") .toObject(LogAnalyticsQueryPackQueryProperties.class); - Assertions.assertEquals("uedck", model.displayName()); - Assertions.assertEquals("hqwa", model.description()); - Assertions.assertEquals("muzyoxaepdk", model.body()); - Assertions.assertEquals("cuxrhdwbavx", model.related().categories().get(0)); - Assertions.assertEquals("x", model.related().resourceTypes().get(0)); - Assertions.assertEquals("xbzpfzab", model.related().solutions().get(0)); - Assertions.assertEquals("gy", model.tags().get("svmkfssxquk").get(0)); + Assertions.assertEquals("prsnmokayzejn", model.displayName()); + Assertions.assertEquals("piljhahzvech", model.description()); + Assertions.assertEquals("dbn", model.body()); + Assertions.assertEquals("olewjwi", model.related().categories().get(0)); + Assertions.assertEquals("wefqsfapaqtferr", model.related().resourceTypes().get(0)); + Assertions.assertEquals("jg", model.related().solutions().get(0)); + Assertions.assertEquals("dsdaultxijjumf", model.tags().get("waz").get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsQueryPackQueryProperties model = new LogAnalyticsQueryPackQueryProperties().withDisplayName("uedck") - .withDescription("hqwa") - .withBody("muzyoxaepdk") - .withRelated(new LogAnalyticsQueryPackQueryPropertiesRelated() - .withCategories(Arrays.asList("cuxrhdwbavx", "niwdjsw", "tsdbpgn")) - .withResourceTypes(Arrays.asList("x")) - .withSolutions(Arrays.asList("xbzpfzab", "lcuhxwtctyqiklb", "ovplw"))) - .withTags(mapOf("svmkfssxquk", Arrays.asList("gy", "gu"), "zkd", Arrays.asList("plgmgsxnk"), "wzbaiue", - Arrays.asList("lpvlopw", "yighxpk"))) - .withProperties("dataa"); + LogAnalyticsQueryPackQueryProperties model = new LogAnalyticsQueryPackQueryProperties() + .withDisplayName("prsnmokayzejn") + .withDescription("piljhahzvech") + .withBody("dbn") + .withRelated(new LogAnalyticsQueryPackQueryPropertiesRelated().withCategories(Arrays.asList("olewjwi")) + .withResourceTypes(Arrays.asList("wefqsfapaqtferr", "wexjkmfxapjwogq", "nobpudcdabtqwpw", "awbzasqb")) + .withSolutions(Arrays.asList("jg", "yexaoguy"))) + .withTags(mapOf("waz", Arrays.asList("dsdaultxijjumf"))) + .withProperties("\"dataqnmcjngzqdqx\""); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQueryProperties.class); - Assertions.assertEquals("uedck", model.displayName()); - Assertions.assertEquals("hqwa", model.description()); - Assertions.assertEquals("muzyoxaepdk", model.body()); - Assertions.assertEquals("cuxrhdwbavx", model.related().categories().get(0)); - Assertions.assertEquals("x", model.related().resourceTypes().get(0)); - Assertions.assertEquals("xbzpfzab", model.related().solutions().get(0)); - Assertions.assertEquals("gy", model.tags().get("svmkfssxquk").get(0)); + Assertions.assertEquals("prsnmokayzejn", model.displayName()); + Assertions.assertEquals("piljhahzvech", model.description()); + Assertions.assertEquals("dbn", model.body()); + Assertions.assertEquals("olewjwi", model.related().categories().get(0)); + Assertions.assertEquals("wefqsfapaqtferr", model.related().resourceTypes().get(0)); + Assertions.assertEquals("jg", model.related().solutions().get(0)); + Assertions.assertEquals("dsdaultxijjumf", model.tags().get("waz").get(0)); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesRelatedTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesRelatedTests.java index 9accebae05c9..f0d9c9d62dc0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesRelatedTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesRelatedTests.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.generated; @@ -13,22 +13,22 @@ public final class LogAnalyticsQueryPackQuerySearchPropertiesRelatedTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQuerySearchPropertiesRelated model = BinaryData.fromString( - "{\"categories\":[\"vt\"],\"resourceTypes\":[\"mqkrhahvljuahaqu\",\"c\",\"hmdua\"],\"solutions\":[\"xqpvfadmw\"]}") + "{\"categories\":[\"xxpkyjcxc\"],\"resourceTypes\":[\"rytfmpcycil\",\"mcayk\",\"gnoxuztrksx\"],\"solutions\":[\"d\",\"cpfnznthjtwkja\"]}") .toObject(LogAnalyticsQueryPackQuerySearchPropertiesRelated.class); - Assertions.assertEquals("vt", model.categories().get(0)); - Assertions.assertEquals("mqkrhahvljuahaqu", model.resourceTypes().get(0)); - Assertions.assertEquals("xqpvfadmw", model.solutions().get(0)); + Assertions.assertEquals("xxpkyjcxc", model.categories().get(0)); + Assertions.assertEquals("rytfmpcycil", model.resourceTypes().get(0)); + Assertions.assertEquals("d", model.solutions().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LogAnalyticsQueryPackQuerySearchPropertiesRelated model - = new LogAnalyticsQueryPackQuerySearchPropertiesRelated().withCategories(Arrays.asList("vt")) - .withResourceTypes(Arrays.asList("mqkrhahvljuahaqu", "c", "hmdua")) - .withSolutions(Arrays.asList("xqpvfadmw")); + = new LogAnalyticsQueryPackQuerySearchPropertiesRelated().withCategories(Arrays.asList("xxpkyjcxc")) + .withResourceTypes(Arrays.asList("rytfmpcycil", "mcayk", "gnoxuztrksx")) + .withSolutions(Arrays.asList("d", "cpfnznthjtwkja")); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQuerySearchPropertiesRelated.class); - Assertions.assertEquals("vt", model.categories().get(0)); - Assertions.assertEquals("mqkrhahvljuahaqu", model.resourceTypes().get(0)); - Assertions.assertEquals("xqpvfadmw", model.solutions().get(0)); + Assertions.assertEquals("xxpkyjcxc", model.categories().get(0)); + Assertions.assertEquals("rytfmpcycil", model.resourceTypes().get(0)); + Assertions.assertEquals("d", model.solutions().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesTests.java index 75150951e370..f03abf073655 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/LogAnalyticsQueryPackQuerySearchPropertiesTests.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.generated; @@ -16,29 +16,27 @@ public final class LogAnalyticsQueryPackQuerySearchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQueryPackQuerySearchProperties model = BinaryData.fromString( - "{\"related\":{\"categories\":[\"ttkphywpnvjtoqne\"],\"resourceTypes\":[\"lfplp\"],\"solutions\":[\"uscrpabgyepsb\"]},\"tags\":{\"kqujidsuyono\":[\"qugxywpmueefjzwf\"],\"wfudwpzntxhdzhl\":[\"laocqxtccmg\",\"udxytlmoyrx\"],\"sbkyvpycanuzbp\":[\"jbhckfrlhr\"],\"mx\":[\"afkuwb\",\"rnwb\",\"ehhseyvjusrts\",\"hspkdeemao\"]}}") + "{\"related\":{\"categories\":[\"sbycucrwnamikz\",\"brqbsmswzi\",\"gfuhokzrusw\"],\"resourceTypes\":[\"czznvfbycjsxj\",\"wix\"],\"solutions\":[\"mwmxqhndvnoamld\",\"ehaohdjhh\",\"lzok\"]},\"tags\":{\"g\":[\"pelnjetag\",\"tsxoatftgz\",\"npbs\",\"vefloccsrmozihmi\"]}}") .toObject(LogAnalyticsQueryPackQuerySearchProperties.class); - Assertions.assertEquals("ttkphywpnvjtoqne", model.related().categories().get(0)); - Assertions.assertEquals("lfplp", model.related().resourceTypes().get(0)); - Assertions.assertEquals("uscrpabgyepsb", model.related().solutions().get(0)); - Assertions.assertEquals("qugxywpmueefjzwf", model.tags().get("kqujidsuyono").get(0)); + Assertions.assertEquals("sbycucrwnamikz", model.related().categories().get(0)); + Assertions.assertEquals("czznvfbycjsxj", model.related().resourceTypes().get(0)); + Assertions.assertEquals("mwmxqhndvnoamld", model.related().solutions().get(0)); + Assertions.assertEquals("pelnjetag", model.tags().get("g").get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LogAnalyticsQueryPackQuerySearchProperties model = new LogAnalyticsQueryPackQuerySearchProperties() .withRelated(new LogAnalyticsQueryPackQuerySearchPropertiesRelated() - .withCategories(Arrays.asList("ttkphywpnvjtoqne")) - .withResourceTypes(Arrays.asList("lfplp")) - .withSolutions(Arrays.asList("uscrpabgyepsb"))) - .withTags(mapOf("kqujidsuyono", Arrays.asList("qugxywpmueefjzwf"), "wfudwpzntxhdzhl", - Arrays.asList("laocqxtccmg", "udxytlmoyrx"), "sbkyvpycanuzbp", Arrays.asList("jbhckfrlhr"), "mx", - Arrays.asList("afkuwb", "rnwb", "ehhseyvjusrts", "hspkdeemao"))); + .withCategories(Arrays.asList("sbycucrwnamikz", "brqbsmswzi", "gfuhokzrusw")) + .withResourceTypes(Arrays.asList("czznvfbycjsxj", "wix")) + .withSolutions(Arrays.asList("mwmxqhndvnoamld", "ehaohdjhh", "lzok"))) + .withTags(mapOf("g", Arrays.asList("pelnjetag", "tsxoatftgz", "npbs", "vefloccsrmozihmi"))); model = BinaryData.fromObject(model).toObject(LogAnalyticsQueryPackQuerySearchProperties.class); - Assertions.assertEquals("ttkphywpnvjtoqne", model.related().categories().get(0)); - Assertions.assertEquals("lfplp", model.related().resourceTypes().get(0)); - Assertions.assertEquals("uscrpabgyepsb", model.related().solutions().get(0)); - Assertions.assertEquals("qugxywpmueefjzwf", model.tags().get("kqujidsuyono").get(0)); + Assertions.assertEquals("sbycucrwnamikz", model.related().categories().get(0)); + Assertions.assertEquals("czznvfbycjsxj", model.related().resourceTypes().get(0)); + Assertions.assertEquals("mwmxqhndvnoamld", model.related().solutions().get(0)); + Assertions.assertEquals("pelnjetag", model.tags().get("g").get(0)); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagedServiceIdentityTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagedServiceIdentityTests.java index 0d55022b9927..236e60928aca 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagedServiceIdentityTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagedServiceIdentityTests.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.generated; @@ -16,18 +16,18 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"f80856e4-8dd6-4dcb-a8e6-9e199e7016b5\",\"tenantId\":\"50c95719-87cb-4144-a84e-fead5df80792\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"f\":{\"principalId\":\"6b97a81c-8a15-43bb-980b-543e3276cc55\",\"clientId\":\"87125785-d13b-4908-bbb7-f7be7e48f54c\"},\"rvktsi\":{\"principalId\":\"31ca72c9-7606-4d97-bce6-ed7144757fe3\",\"clientId\":\"dfab8ca2-46b9-43d2-a899-9e1ad2f128e9\"},\"ocipaouajpsqucm\":{\"principalId\":\"9e6a81ea-e769-4d67-a5a0-184e9029ac3a\",\"clientId\":\"f749d11d-d88e-464b-9e82-1fa51f02e65f\"}}}") + "{\"principalId\":\"tnapczwlokjyemkk\",\"tenantId\":\"ipjoxzjnchgejs\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wyahuxinpmqnja\":{\"principalId\":\"ilzyd\",\"clientId\":\"o\"},\"uuvmkjozkrwfnd\":{\"principalId\":\"ixjsprozvcputeg\",\"clientId\":\"wmfdatscmdvpjhul\"},\"akl\":{\"principalId\":\"djpslw\",\"clientId\":\"dpvwryoqpsoaccta\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("f", new UserAssignedIdentity(), "rvktsi", new UserAssignedIdentity(), - "ocipaouajpsqucm", new UserAssignedIdentity())); + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("wyahuxinpmqnja", new UserAssignedIdentity(), "uuvmkjozkrwfnd", + new UserAssignedIdentity(), "akl", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupInnerTests.java index 1bebfb74bd7f..8df83c30fa1b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupInnerTests.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.generated; @@ -13,36 +13,15 @@ public final class ManagementGroupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagementGroupInner model = BinaryData.fromString( - "{\"properties\":{\"serverCount\":2031463120,\"isGateway\":true,\"name\":\"jpkcattpng\",\"id\":\"rcczsqpjhvmd\",\"created\":\"2021-11-26T10:49:59Z\",\"dataReceived\":\"2021-07-30T15:20:57Z\",\"version\":\"ounqecano\",\"sku\":\"upfh\"}}") + "{\"properties\":{\"serverCount\":416757302,\"isGateway\":true,\"name\":\"kgdoj\",\"id\":\"xv\",\"created\":\"2021-02-28T00:16:23Z\",\"dataReceived\":\"2021-06-29T23:33:48Z\",\"version\":\"eesvecu\",\"sku\":\"pxtxsuwp\"}}") .toObject(ManagementGroupInner.class); - Assertions.assertEquals(2031463120, model.serverCount()); + Assertions.assertEquals(416757302, model.serverCount()); Assertions.assertTrue(model.isGateway()); - Assertions.assertEquals("jpkcattpng", model.name()); - Assertions.assertEquals("rcczsqpjhvmd", model.id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T10:49:59Z"), model.created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T15:20:57Z"), model.dataReceived()); - Assertions.assertEquals("ounqecano", model.version()); - Assertions.assertEquals("upfh", model.sku()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagementGroupInner model = new ManagementGroupInner().withServerCount(2031463120) - .withIsGateway(true) - .withName("jpkcattpng") - .withId("rcczsqpjhvmd") - .withCreated(OffsetDateTime.parse("2021-11-26T10:49:59Z")) - .withDataReceived(OffsetDateTime.parse("2021-07-30T15:20:57Z")) - .withVersion("ounqecano") - .withSku("upfh"); - model = BinaryData.fromObject(model).toObject(ManagementGroupInner.class); - Assertions.assertEquals(2031463120, model.serverCount()); - Assertions.assertTrue(model.isGateway()); - Assertions.assertEquals("jpkcattpng", model.name()); - Assertions.assertEquals("rcczsqpjhvmd", model.id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T10:49:59Z"), model.created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T15:20:57Z"), model.dataReceived()); - Assertions.assertEquals("ounqecano", model.version()); - Assertions.assertEquals("upfh", model.sku()); + Assertions.assertEquals("kgdoj", model.name()); + Assertions.assertEquals("xv", model.id()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T00:16:23Z"), model.created()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T23:33:48Z"), model.dataReceived()); + Assertions.assertEquals("eesvecu", model.version()); + Assertions.assertEquals("pxtxsuwp", model.sku()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupPropertiesTests.java index 9c56646abbb9..8dbc2fa3508f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupPropertiesTests.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.generated; @@ -13,36 +13,15 @@ public final class ManagementGroupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagementGroupProperties model = BinaryData.fromString( - "{\"serverCount\":2101228547,\"isGateway\":false,\"name\":\"mopjmc\",\"id\":\"tuo\",\"created\":\"2021-09-23T02:42:43Z\",\"dataReceived\":\"2021-10-23T10:51:29Z\",\"version\":\"uaodsfcpk\",\"sku\":\"odpuozmyzydag\"}") + "{\"serverCount\":2079646623,\"isGateway\":true,\"name\":\"awddjibab\",\"id\":\"ititvtzeexavoxt\",\"created\":\"2021-07-21T07:36:08Z\",\"dataReceived\":\"2021-10-13T21:26:08Z\",\"version\":\"m\",\"sku\":\"bwpypqtgsfjacb\"}") .toObject(ManagementGroupProperties.class); - Assertions.assertEquals(2101228547, model.serverCount()); - Assertions.assertFalse(model.isGateway()); - Assertions.assertEquals("mopjmc", model.name()); - Assertions.assertEquals("tuo", model.id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-23T02:42:43Z"), model.created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T10:51:29Z"), model.dataReceived()); - Assertions.assertEquals("uaodsfcpk", model.version()); - Assertions.assertEquals("odpuozmyzydag", model.sku()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagementGroupProperties model = new ManagementGroupProperties().withServerCount(2101228547) - .withIsGateway(false) - .withName("mopjmc") - .withId("tuo") - .withCreated(OffsetDateTime.parse("2021-09-23T02:42:43Z")) - .withDataReceived(OffsetDateTime.parse("2021-10-23T10:51:29Z")) - .withVersion("uaodsfcpk") - .withSku("odpuozmyzydag"); - model = BinaryData.fromObject(model).toObject(ManagementGroupProperties.class); - Assertions.assertEquals(2101228547, model.serverCount()); - Assertions.assertFalse(model.isGateway()); - Assertions.assertEquals("mopjmc", model.name()); - Assertions.assertEquals("tuo", model.id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-23T02:42:43Z"), model.created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T10:51:29Z"), model.dataReceived()); - Assertions.assertEquals("uaodsfcpk", model.version()); - Assertions.assertEquals("odpuozmyzydag", model.sku()); + Assertions.assertEquals(2079646623, model.serverCount()); + Assertions.assertTrue(model.isGateway()); + Assertions.assertEquals("awddjibab", model.name()); + Assertions.assertEquals("ititvtzeexavoxt", model.id()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T07:36:08Z"), model.created()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T21:26:08Z"), model.dataReceived()); + Assertions.assertEquals("m", model.version()); + Assertions.assertEquals("bwpypqtgsfjacb", model.sku()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListMockTests.java index 93bc4c379260..71bc98371b4f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ManagementGroupsListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class ManagementGroupsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"serverCount\":2014474860,\"isGateway\":true,\"name\":\"vnqvcd\",\"id\":\"uaucmf\",\"created\":\"2021-12-08T13:34:35Z\",\"dataReceived\":\"2021-10-13T05:52:15Z\",\"version\":\"xpunjqi\",\"sku\":\"zvvitacgxmfcs\"}}]}"; + = "{\"value\":[{\"properties\":{\"serverCount\":1660876742,\"isGateway\":true,\"name\":\"kgjiiytssikizbc\",\"id\":\"q\",\"created\":\"2021-10-15T11:52:21Z\",\"dataReceived\":\"2021-05-19T11:42:55Z\",\"version\":\"gmqsorhcekxg\",\"sku\":\"ykmxcpwzvm\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managementGroups().list("yjqtt", "wkpqhjpenuygbq", com.azure.core.util.Context.NONE); + = manager.managementGroups().list("rclsso", "jomevtfycnlb", com.azure.core.util.Context.NONE); - Assertions.assertEquals(2014474860, response.iterator().next().serverCount()); + Assertions.assertEquals(1660876742, response.iterator().next().serverCount()); Assertions.assertTrue(response.iterator().next().isGateway()); - Assertions.assertEquals("vnqvcd", response.iterator().next().name()); - Assertions.assertEquals("uaucmf", response.iterator().next().id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T13:34:35Z"), response.iterator().next().created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-13T05:52:15Z"), + Assertions.assertEquals("kgjiiytssikizbc", response.iterator().next().name()); + Assertions.assertEquals("q", response.iterator().next().id()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-15T11:52:21Z"), response.iterator().next().created()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-19T11:42:55Z"), response.iterator().next().dataReceived()); - Assertions.assertEquals("xpunjqi", response.iterator().next().version()); - Assertions.assertEquals("zvvitacgxmfcs", response.iterator().next().sku()); + Assertions.assertEquals("gmqsorhcekxg", response.iterator().next().version()); + Assertions.assertEquals("ykmxcpwzvm", response.iterator().next().sku()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/MetricNameTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/MetricNameTests.java index 0fee218fc5bb..efe727c3b2c1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/MetricNameTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/MetricNameTests.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.generated; @@ -11,17 +11,9 @@ public final class MetricNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - MetricName model = BinaryData.fromString("{\"value\":\"emdwzrmuhapfc\",\"localizedValue\":\"psqxq\"}") - .toObject(MetricName.class); - Assertions.assertEquals("emdwzrmuhapfc", model.value()); - Assertions.assertEquals("psqxq", model.localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricName model = new MetricName().withValue("emdwzrmuhapfc").withLocalizedValue("psqxq"); - model = BinaryData.fromObject(model).toObject(MetricName.class); - Assertions.assertEquals("emdwzrmuhapfc", model.value()); - Assertions.assertEquals("psqxq", model.localizedValue()); + MetricName model + = BinaryData.fromString("{\"value\":\"ubrjtl\",\"localizedValue\":\"xfuojrn\"}").toObject(MetricName.class); + Assertions.assertEquals("ubrjtl", model.value()); + Assertions.assertEquals("xfuojrn", model.localizedValue()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationInnerTests.java index 67d4c726b26b..463b38fdc27a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationInnerTests.java @@ -1,126 +1,41 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner; -import com.azure.resourcemanager.loganalytics.models.AccessRule; import com.azure.resourcemanager.loganalytics.models.AccessRuleDirection; -import com.azure.resourcemanager.loganalytics.models.AccessRuleProperties; -import com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile; -import com.azure.resourcemanager.loganalytics.models.ResourceAssociation; import com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class NetworkSecurityPerimeterConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"provisioningIssues\":[{\"name\":\"iglaecx\",\"properties\":{\"issueType\":\"ConfigurationPropagationFailure\",\"severity\":\"Warning\",\"description\":\"pvz\",\"suggestedResourceIds\":[\"t\",\"ld\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"irclnpk\",\"perimeterGuid\":\"fd6fe512-283f-438e-a8dc-e4e919074990\",\"location\":\"yzriykhy\"},\"resourceAssociation\":{\"name\":\"vjlboxqvk\",\"accessMode\":\"Enforced\"},\"profile\":{\"name\":\"omdynhdwdigum\",\"accessRulesVersion\":1924046982,\"accessRules\":[{\"name\":\"zzp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"dz\",\"ezwwv\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"fonkphhqyikvyla\",\"yavluwmncstt\",\"jfybvpoekrsgsgb\",\"huzqgn\"],\"emailAddresses\":[\"kynscliqhzv\",\"xnkomtkubo\",\"ppnvdxz\"],\"phoneNumbers\":[\"hfrbbc\",\"vqagtltdhlf\",\"qojpy\"]}},{\"name\":\"gtrd\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"zsdymbrnysuxmpra\",\"wgck\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"ffwafq\",\"oudaspavehhrvk\",\"unzo\",\"ud\"],\"emailAddresses\":[\"gkmoyxcdyuibhmfd\"],\"phoneNumbers\":[\"ydvfvfcjnae\",\"isrvhm\"]}},{\"name\":\"r\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"cvwmzhwplefa\",\"vxilcbt\",\"nhnzeyqxt\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"hycav\",\"dggxdbeesmi\",\"knlrariaawiuagy\",\"wqfbylyrfgiagt\"],\"emailAddresses\":[\"ocqwogfnzjvus\",\"zldmozuxy\",\"fsbtkad\",\"ysownbtgkbug\"],\"phoneNumbers\":[\"cto\",\"cmisofie\",\"pe\"]}}],\"diagnosticSettingsVersion\":419692653,\"enabledLogCategories\":[\"dh\",\"u\"]}},\"id\":\"cp\",\"name\":\"cwkhihi\",\"type\":\"lhzdsqtzb\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"provisioningIssues\":[{\"name\":\"savjcbpwxqps\",\"properties\":{\"issueType\":\"ConfigurationPropagationFailure\",\"severity\":\"Error\",\"description\":\"vriuhprwmdyvx\",\"suggestedResourceIds\":[\"yriwwroyqb\",\"xrmcqibycnojvk\",\"mefqsgzvahapjyzh\",\"vgqzcjrvxd\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"wlxkvugfhzovaw\",\"properties\":{\"issueType\":\"Unknown\",\"severity\":\"Warning\",\"description\":\"thnnpr\",\"suggestedResourceIds\":[\"peilpjzuaejxdu\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"zbbtdzumveek\",\"properties\":{\"issueType\":\"ConfigurationPropagationFailure\",\"severity\":\"Warning\",\"description\":\"kfpbs\",\"suggestedResourceIds\":[\"f\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"us\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Warning\",\"description\":\"boekqvkel\",\"suggestedResourceIds\":[\"vbxwyjsflhh\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"jixisxyawjoyaqcs\",\"perimeterGuid\":\"jpkiidzyexznelix\",\"location\":\"rzt\"},\"resourceAssociation\":{\"name\":\"hb\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"laulppg\",\"accessRulesVersion\":1987785731,\"accessRules\":[{\"name\":\"pnyiropuhp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"lgqg\",\"txmedj\",\"c\",\"lynqwwncwzzh\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"ucnapkteoellwp\",\"fdygpfqbuaceopz\",\"qrhhu\"],\"emailAddresses\":[\"ppcqeqxolz\",\"ahzxctobgbk\",\"moizpos\"],\"phoneNumbers\":[\"rcfbunrm\",\"qjhhkxbpv\"]}},{\"name\":\"mjh\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"u\",\"ivkrtsw\",\"xqzvszjfa\",\"vjfdx\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"cqaqtdoqmcbx\"],\"emailAddresses\":[\"xyslqbh\",\"fxoblytkb\"],\"phoneNumbers\":[\"ewwwfbkrvrnsv\"]}},{\"name\":\"q\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"sbfov\",\"srruvwbhsqfsubcg\",\"birx\",\"pybsrfbjfdtw\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"vjz\",\"exilzznfqqnvwpmq\"],\"emailAddresses\":[\"uoujmkcjhwqy\",\"jrybnwjewgdrjer\"],\"phoneNumbers\":[\"enq\"]}},{\"name\":\"hin\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"fthnzdn\",\"sl\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"ynduha\",\"hqlkthumaqo\"],\"emailAddresses\":[\"ycduier\",\"gccymvaolpssl\"],\"phoneNumbers\":[\"mmdnbbglzps\",\"iydmcwyhzdxs\"]}}],\"diagnosticSettingsVersion\":874839525,\"enabledLogCategories\":[\"mnvdfzn\",\"daodvxzbncblyl\",\"stdbhhxsrzdzu\",\"erscdntne\"]}},\"id\":\"iwjmygtdssls\",\"name\":\"tmweriofzpyq\",\"type\":\"emwabnet\"}") .toObject(NetworkSecurityPerimeterConfigurationInner.class); - Assertions.assertEquals("irclnpk", model.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("fd6fe512-283f-438e-a8dc-e4e919074990"), - model.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("yzriykhy", model.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("vjlboxqvk", model.properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.ENFORCED, + Assertions.assertEquals("jixisxyawjoyaqcs", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("jpkiidzyexznelix", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("rzt", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("hb", model.properties().resourceAssociation().name()); + Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, model.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("omdynhdwdigum", model.properties().profile().name()); - Assertions.assertEquals(1924046982, model.properties().profile().accessRulesVersion()); - Assertions.assertEquals("zzp", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals("laulppg", model.properties().profile().name()); + Assertions.assertEquals(1987785731, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("pnyiropuhp", model.properties().profile().accessRules().get(0).name()); Assertions.assertEquals(AccessRuleDirection.INBOUND, model.properties().profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("dz", + Assertions.assertEquals("lgqg", model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("fonkphhqyikvyla", + Assertions.assertEquals("ucnapkteoellwp", model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("kynscliqhzv", + Assertions.assertEquals("ppcqeqxolz", model.properties().profile().accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("hfrbbc", + Assertions.assertEquals("rcfbunrm", model.properties().profile().accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(419692653, model.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("dh", model.properties().profile().enabledLogCategories().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSecurityPerimeterConfigurationInner model = new NetworkSecurityPerimeterConfigurationInner() - .withProperties(new NetworkSecurityPerimeterConfigurationProperties() - .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("irclnpk") - .withPerimeterGuid(UUID.fromString("fd6fe512-283f-438e-a8dc-e4e919074990")) - .withLocation("yzriykhy")) - .withResourceAssociation(new ResourceAssociation().withName("vjlboxqvk") - .withAccessMode(ResourceAssociationAccessMode.ENFORCED)) - .withProfile(new NetworkSecurityProfile().withName("omdynhdwdigum") - .withAccessRulesVersion(1924046982) - .withAccessRules(Arrays.asList( - new AccessRule().withName("zzp") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.INBOUND) - .withAddressPrefixes(Arrays.asList("dz", "ezwwv")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters( - Arrays.asList(new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames( - Arrays.asList("fonkphhqyikvyla", "yavluwmncstt", "jfybvpoekrsgsgb", "huzqgn")) - .withEmailAddresses(Arrays.asList("kynscliqhzv", "xnkomtkubo", "ppnvdxz")) - .withPhoneNumbers(Arrays.asList("hfrbbc", "vqagtltdhlf", "qojpy"))), - new AccessRule().withName("gtrd") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("zsdymbrnysuxmpra", "wgck")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames(Arrays.asList("ffwafq", "oudaspavehhrvk", "unzo", "ud")) - .withEmailAddresses(Arrays.asList("gkmoyxcdyuibhmfd")) - .withPhoneNumbers(Arrays.asList("ydvfvfcjnae", "isrvhm"))), - new AccessRule().withName("r") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("cvwmzhwplefa", "vxilcbt", "nhnzeyqxt")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter(), - new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames( - Arrays.asList("hycav", "dggxdbeesmi", "knlrariaawiuagy", "wqfbylyrfgiagt")) - .withEmailAddresses( - Arrays.asList("ocqwogfnzjvus", "zldmozuxy", "fsbtkad", "ysownbtgkbug")) - .withPhoneNumbers(Arrays.asList("cto", "cmisofie", "pe"))))) - .withDiagnosticSettingsVersion(419692653) - .withEnabledLogCategories(Arrays.asList("dh", "u")))); - model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationInner.class); - Assertions.assertEquals("irclnpk", model.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("fd6fe512-283f-438e-a8dc-e4e919074990"), - model.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("yzriykhy", model.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("vjlboxqvk", model.properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.ENFORCED, - model.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("omdynhdwdigum", model.properties().profile().name()); - Assertions.assertEquals(1924046982, model.properties().profile().accessRulesVersion()); - Assertions.assertEquals("zzp", model.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(AccessRuleDirection.INBOUND, - model.properties().profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("dz", - model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("fonkphhqyikvyla", - model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("kynscliqhzv", - model.properties().profile().accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("hfrbbc", - model.properties().profile().accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(419692653, model.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("dh", model.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals(874839525, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("mnvdfzn", model.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationListResultTests.java index 8f6c8ee1048d..66651654b799 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationListResultTests.java @@ -1,103 +1,32 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner; -import com.azure.resourcemanager.loganalytics.models.AccessRule; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationListResult; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile; -import com.azure.resourcemanager.loganalytics.models.ResourceAssociation; +import com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult; import com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class NetworkSecurityPerimeterConfigurationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"provisioningIssues\":[{\"name\":\"tcyohpfkyrk\",\"properties\":{}},{\"name\":\"giogsjkmnwqjno\",\"properties\":{}},{\"name\":\"yhddvia\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"n\",\"perimeterGuid\":\"2b8bcab4-d52c-4c6c-8613-5d5653a5376c\",\"location\":\"fpmvmemfnczd\"},\"resourceAssociation\":{\"name\":\"b\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"lchpodbzevwrdn\",\"accessRulesVersion\":1073149595,\"accessRules\":[{}],\"diagnosticSettingsVersion\":1934709471,\"enabledLogCategories\":[\"swsmys\",\"uluqypfc\",\"lerchpq\"]}},\"id\":\"f\",\"name\":\"jbabwidf\",\"type\":\"xsspuunnoxyhk\"},{\"properties\":{\"provisioningState\":\"Updating\",\"provisioningIssues\":[{\"name\":\"hp\",\"properties\":{}},{\"name\":\"qcaaewdaomdjvl\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"kzbrmsgeivsiy\",\"perimeterGuid\":\"642c3ce5-05d9-4877-a0e0-b37d8749fb12\",\"location\":\"dncj\"},\"resourceAssociation\":{\"name\":\"nbzoggcu\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"y\",\"accessRulesVersion\":1152319383,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":902332511,\"enabledLogCategories\":[\"pnylb\",\"uajlyj\"]}},\"id\":\"vofqzhvfc\",\"name\":\"byfmowuxr\",\"type\":\"jpvd\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"vwzjbhyz\",\"properties\":{}},{\"name\":\"rkambt\",\"properties\":{}},{\"name\":\"gvmnvuqeq\",\"properties\":{}},{\"name\":\"spastjbkkdmf\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"tmjlx\",\"perimeterGuid\":\"4aab6725-cbdf-4862-9d2c-0eb6e5ba1978\",\"location\":\"lozapeewchpxlk\"},\"resourceAssociation\":{\"name\":\"uziycsl\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"ztcktyh\",\"accessRulesVersion\":400720959,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":1002446412,\"enabledLogCategories\":[\"lwmmrqzzrrjv\"]}},\"id\":\"lydzgk\",\"name\":\"vqeevtoep\",\"type\":\"yutnwytpzdmov\"}],\"nextLink\":\"fvaawzqa\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"qfxssmwutw\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"ezpdrhneu\",\"perimeterGuid\":\"wqkdwytisibi\",\"location\":\"gpikpzimejza\"},\"resourceAssociation\":{\"name\":\"zxiavrm\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"kixrj\",\"accessRulesVersion\":1122267125,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":2101008571,\"enabledLogCategories\":[\"lazszrn\",\"oiindfpwpjy\",\"wbtlhflsjcdh\"]}},\"id\":\"fjvfbgofeljagr\",\"name\":\"mqhldvrii\",\"type\":\"ojnal\"},{\"properties\":{\"provisioningState\":\"Creating\",\"provisioningIssues\":[{\"name\":\"sexso\",\"properties\":{}},{\"name\":\"luqhhahhxv\",\"properties\":{}},{\"name\":\"zkw\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"wspughftqsxhqx\",\"perimeterGuid\":\"xukndxdigr\",\"location\":\"uufzdmsyqtfihw\"},\"resourceAssociation\":{\"name\":\"tzingamvpph\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"udphqamvdkfwyn\",\"accessRulesVersion\":1976240660,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":840054115,\"enabledLogCategories\":[\"hmtnvy\",\"iatkzwpcnp\",\"zcjaesgvvsccy\"]}},\"id\":\"g\",\"name\":\"qfhwyg\",\"type\":\"lvdnkfx\"},{\"properties\":{\"provisioningState\":\"Updating\",\"provisioningIssues\":[{\"name\":\"rmuhapfcq\",\"properties\":{}},{\"name\":\"qxqvpsvuoymgc\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"ezrypql\",\"perimeterGuid\":\"eokerqwkyhkobopg\",\"location\":\"dkow\"},\"resourceAssociation\":{\"name\":\"qpcrf\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"snjvcdwxlpqekftn\",\"accessRulesVersion\":1378110099,\"accessRules\":[{},{},{},{}],\"diagnosticSettingsVersion\":84302397,\"enabledLogCategories\":[\"wfqatmtd\",\"tmdvypgikdgs\"]}},\"id\":\"w\",\"name\":\"birryuzhl\",\"type\":\"kj\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"provisioningIssues\":[{\"name\":\"atjinrvgoupmfiib\",\"properties\":{}},{\"name\":\"jioolvrwxk\",\"properties\":{}},{\"name\":\"k\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"wjygvjayvblmhvk\",\"perimeterGuid\":\"hbxvvyhgsopbyrqu\",\"location\":\"g\"},\"resourceAssociation\":{\"name\":\"wz\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"mctlpdngitv\",\"accessRulesVersion\":1795332478,\"accessRules\":[{},{},{},{}],\"diagnosticSettingsVersion\":731430664,\"enabledLogCategories\":[\"myijejvegr\",\"bpnaixexccbdre\",\"xhcexdrrvqahq\"]}},\"id\":\"htpwij\",\"name\":\"hyjsvfycx\",\"type\":\"bfvoowvrv\"}],\"nextLink\":\"gjqppy\"}") .toObject(NetworkSecurityPerimeterConfigurationListResult.class); - Assertions.assertEquals("n", model.value().get(0).properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("2b8bcab4-d52c-4c6c-8613-5d5653a5376c"), + Assertions.assertEquals("ezpdrhneu", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("wqkdwytisibi", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("fpmvmemfnczd", + Assertions.assertEquals("gpikpzimejza", model.value().get(0).properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("b", model.value().get(0).properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, + Assertions.assertEquals("zxiavrm", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals(ResourceAssociationAccessMode.AUDIT, model.value().get(0).properties().resourceAssociation().accessMode()); - Assertions.assertEquals("lchpodbzevwrdn", model.value().get(0).properties().profile().name()); - Assertions.assertEquals(1073149595, model.value().get(0).properties().profile().accessRulesVersion()); - Assertions.assertEquals(1934709471, model.value().get(0).properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("swsmys", model.value().get(0).properties().profile().enabledLogCategories().get(0)); - Assertions.assertEquals("fvaawzqa", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSecurityPerimeterConfigurationListResult model - = new NetworkSecurityPerimeterConfigurationListResult() - .withValue( - Arrays - .asList( - new NetworkSecurityPerimeterConfigurationInner() - .withProperties( - new NetworkSecurityPerimeterConfigurationProperties() - .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("n") - .withPerimeterGuid(UUID.fromString("2b8bcab4-d52c-4c6c-8613-5d5653a5376c")) - .withLocation("fpmvmemfnczd")) - .withResourceAssociation(new ResourceAssociation().withName("b") - .withAccessMode(ResourceAssociationAccessMode.LEARNING)) - .withProfile( - new NetworkSecurityProfile().withName("lchpodbzevwrdn") - .withAccessRulesVersion(1073149595) - .withAccessRules(Arrays.asList(new AccessRule())) - .withDiagnosticSettingsVersion(1934709471) - .withEnabledLogCategories(Arrays.asList("swsmys", "uluqypfc", - "lerchpq")))), - new NetworkSecurityPerimeterConfigurationInner() - .withProperties(new NetworkSecurityPerimeterConfigurationProperties() - .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("kzbrmsgeivsiy") - .withPerimeterGuid(UUID.fromString("642c3ce5-05d9-4877-a0e0-b37d8749fb12")) - .withLocation("dncj")) - .withResourceAssociation(new ResourceAssociation().withName("nbzoggcu") - .withAccessMode(ResourceAssociationAccessMode.AUDIT)) - .withProfile(new NetworkSecurityProfile().withName("y") - .withAccessRulesVersion(1152319383) - .withAccessRules(Arrays.asList(new AccessRule(), new AccessRule())) - .withDiagnosticSettingsVersion(902332511) - .withEnabledLogCategories(Arrays.asList("pnylb", "uajlyj")))), - new NetworkSecurityPerimeterConfigurationInner() - .withProperties(new NetworkSecurityPerimeterConfigurationProperties() - .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("tmjlx") - .withPerimeterGuid(UUID.fromString("4aab6725-cbdf-4862-9d2c-0eb6e5ba1978")) - .withLocation("lozapeewchpxlk")) - .withResourceAssociation(new ResourceAssociation().withName("uziycsl") - .withAccessMode(ResourceAssociationAccessMode.AUDIT)) - .withProfile(new NetworkSecurityProfile().withName("ztcktyh") - .withAccessRulesVersion(400720959) - .withAccessRules(Arrays.asList(new AccessRule(), new AccessRule())) - .withDiagnosticSettingsVersion(1002446412) - .withEnabledLogCategories(Arrays.asList("lwmmrqzzrrjv")))))) - .withNextLink("fvaawzqa"); - model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationListResult.class); - Assertions.assertEquals("n", model.value().get(0).properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("2b8bcab4-d52c-4c6c-8613-5d5653a5376c"), - model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("fpmvmemfnczd", - model.value().get(0).properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("b", model.value().get(0).properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, - model.value().get(0).properties().resourceAssociation().accessMode()); - Assertions.assertEquals("lchpodbzevwrdn", model.value().get(0).properties().profile().name()); - Assertions.assertEquals(1073149595, model.value().get(0).properties().profile().accessRulesVersion()); - Assertions.assertEquals(1934709471, model.value().get(0).properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("swsmys", model.value().get(0).properties().profile().enabledLogCategories().get(0)); - Assertions.assertEquals("fvaawzqa", model.nextLink()); + Assertions.assertEquals("kixrj", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(1122267125, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(2101008571, model.value().get(0).properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("lazszrn", model.value().get(0).properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("gjqppy", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java index 6560a84e4ac9..ab38cc1ef398 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java @@ -1,108 +1,39 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.models.AccessRule; import com.azure.resourcemanager.loganalytics.models.AccessRuleDirection; -import com.azure.resourcemanager.loganalytics.models.AccessRuleProperties; -import com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile; -import com.azure.resourcemanager.loganalytics.models.ResourceAssociation; import com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class NetworkSecurityPerimeterConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"provisioningIssues\":[{\"name\":\"cjhfgmvecactxmw\",\"properties\":{\"issueType\":\"Unknown\",\"severity\":\"Error\",\"description\":\"luqovekqvg\",\"suggestedResourceIds\":[\"wifzmp\",\"wyivqikf\",\"cvhrfsp\"],\"suggestedAccessRules\":[{\"name\":\"rttikteusqc\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"klxubyja\",\"perimeterGuid\":\"930005c2-8dba-4ead-93d7-e4d2e40bd7d2\",\"location\":\"mfblcqcuubg\"},\"resourceAssociation\":{\"name\":\"rtalmet\",\"accessMode\":\"Enforced\"},\"profile\":{\"name\":\"slqxi\",\"accessRulesVersion\":5802151,\"accessRules\":[{\"name\":\"i\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"xiutcx\",\"pzhyr\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"joxslhvnhla\",\"rqnkkzjcjbtr\"],\"emailAddresses\":[\"hvv\",\"brxjjsto\"],\"phoneNumbers\":[\"it\",\"kxzt\",\"oobklftidgfcwq\"]}},{\"name\":\"imaq\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"yhohujswtwkozzwc\",\"lkb\",\"wpfaj\",\"jwltlwtjjgu\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"vkcdmxzr\",\"oaimlnw\",\"aaomylweazu\"],\"emailAddresses\":[\"ethwwnpjhlfz\",\"wpchwahf\"],\"phoneNumbers\":[\"snfepgfewetwlyx\",\"ncxykxhdjhlimm\",\"cxfhbcporxv\"]}},{\"name\":\"jzh\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"xtgqscjavftjuh\",\"qaz\",\"mtggu\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"civmmg\",\"f\"],\"emailAddresses\":[\"wrxgkneuvy\",\"nzqodfvpg\"],\"phoneNumbers\":[\"xgsg\",\"p\",\"gzdjtxvzf\",\"bqvgaqv\"]}}],\"diagnosticSettingsVersion\":247476852,\"enabledLogCategories\":[\"qusrdvetnws\",\"tutnwlduycvuzhyr\"]}}") + "{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"edplvwiwubmw\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Error\",\"description\":\"k\",\"suggestedResourceIds\":[\"pp\",\"flcxoga\"],\"suggestedAccessRules\":[{\"name\":\"z\",\"properties\":{}}]}},{\"name\":\"ikvmkqzeqqk\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Error\",\"description\":\"hhvh\",\"suggestedResourceIds\":[\"eodkwobda\"],\"suggestedAccessRules\":[{\"name\":\"bqdxbx\",\"properties\":{}},{\"name\":\"bogqxndlkzgxhu\",\"properties\":{}},{\"name\":\"lbpodxunk\",\"properties\":{}}]}},{\"name\":\"xmubyyntwlrbq\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Error\",\"description\":\"eotg\",\"suggestedResourceIds\":[\"ltmuwlauwzizx\"],\"suggestedAccessRules\":[{\"name\":\"cjefuzmu\",\"properties\":{}},{\"name\":\"ttdumorppxebmnzb\",\"properties\":{}},{\"name\":\"jpglkfgohdne\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"phsdyhto\",\"perimeterGuid\":\"ikdowwquuvx\",\"location\":\"clvit\"},\"resourceAssociation\":{\"name\":\"zonosgg\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"fwdsj\",\"accessRulesVersion\":677812040,\"accessRules\":[{\"name\":\"tiiswacffg\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"kfvhqcrailvpn\",\"pfuflrw\",\"mh\",\"lxyjr\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"nihgwqapnedg\",\"bcvkcvqvpkeq\",\"cvdrhvoodsot\",\"obzdopcjwvnhdl\"],\"emailAddresses\":[\"gx\",\"xrslpm\",\"twuoegrpkhjwni\"],\"phoneNumbers\":[\"luicpdggkzzlvmbm\",\"axmodfvuef\",\"wsbpfvm\"]}},{\"name\":\"hrfou\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"cpwi\",\"zvqtmnubexkp\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"jmquxvypomgk\"],\"emailAddresses\":[\"whojvp\",\"jqg\",\"ysmocmbqfqvmkcxo\"],\"phoneNumbers\":[\"vhelxprglyatdd\",\"kcbcue\",\"rjxgciqib\"]}},{\"name\":\"osx\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"o\",\"m\",\"bmrqyibahwfl\",\"szdtmhrkwof\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"piexpbtgiw\"],\"emailAddresses\":[\"enwash\",\"tdtkcn\"],\"phoneNumbers\":[\"bpokulpiujwaasip\",\"i\",\"obyu\",\"erpqlpqwcciuqg\"]}}],\"diagnosticSettingsVersion\":1924773766,\"enabledLogCategories\":[\"auvfbtkuwhhmhyk\"]}}") .toObject(NetworkSecurityPerimeterConfigurationProperties.class); - Assertions.assertEquals("klxubyja", model.networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("930005c2-8dba-4ead-93d7-e4d2e40bd7d2"), - model.networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mfblcqcuubg", model.networkSecurityPerimeter().location()); - Assertions.assertEquals("rtalmet", model.resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.ENFORCED, model.resourceAssociation().accessMode()); - Assertions.assertEquals("slqxi", model.profile().name()); - Assertions.assertEquals(5802151, model.profile().accessRulesVersion()); - Assertions.assertEquals("i", model.profile().accessRules().get(0).name()); - Assertions.assertEquals(AccessRuleDirection.OUTBOUND, + Assertions.assertEquals("phsdyhto", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("ikdowwquuvx", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("clvit", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("zonosgg", model.resourceAssociation().name()); + Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, model.resourceAssociation().accessMode()); + Assertions.assertEquals("fwdsj", model.profile().name()); + Assertions.assertEquals(677812040, model.profile().accessRulesVersion()); + Assertions.assertEquals("tiiswacffg", model.profile().accessRules().get(0).name()); + Assertions.assertEquals(AccessRuleDirection.INBOUND, model.profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("xiutcx", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("joxslhvnhla", + Assertions.assertEquals("kfvhqcrailvpn", + model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("nihgwqapnedg", model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("hvv", model.profile().accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("it", model.profile().accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(247476852, model.profile().diagnosticSettingsVersion()); - Assertions.assertEquals("qusrdvetnws", model.profile().enabledLogCategories().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSecurityPerimeterConfigurationProperties model = new NetworkSecurityPerimeterConfigurationProperties() - .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("klxubyja") - .withPerimeterGuid(UUID.fromString("930005c2-8dba-4ead-93d7-e4d2e40bd7d2")) - .withLocation("mfblcqcuubg")) - .withResourceAssociation( - new ResourceAssociation().withName("rtalmet").withAccessMode(ResourceAssociationAccessMode.ENFORCED)) - .withProfile(new NetworkSecurityProfile().withName("slqxi") - .withAccessRulesVersion(5802151) - .withAccessRules(Arrays.asList( - new AccessRule().withName("i") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("xiutcx", "pzhyr")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames(Arrays.asList("joxslhvnhla", "rqnkkzjcjbtr")) - .withEmailAddresses(Arrays.asList("hvv", "brxjjsto")) - .withPhoneNumbers(Arrays.asList("it", "kxzt", "oobklftidgfcwq"))), - new AccessRule().withName("imaq") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.INBOUND) - .withAddressPrefixes(Arrays.asList("yhohujswtwkozzwc", "lkb", "wpfaj", "jwltlwtjjgu")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem(), - new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter(), - new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames(Arrays.asList("vkcdmxzr", "oaimlnw", "aaomylweazu")) - .withEmailAddresses(Arrays.asList("ethwwnpjhlfz", "wpchwahf")) - .withPhoneNumbers(Arrays.asList("snfepgfewetwlyx", "ncxykxhdjhlimm", "cxfhbcporxv"))), - new AccessRule().withName("jzh") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.OUTBOUND) - .withAddressPrefixes(Arrays.asList("xtgqscjavftjuh", "qaz", "mtggu")) - .withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem())) - .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter())) - .withFullyQualifiedDomainNames(Arrays.asList("civmmg", "f")) - .withEmailAddresses(Arrays.asList("wrxgkneuvy", "nzqodfvpg")) - .withPhoneNumbers(Arrays.asList("xgsg", "p", "gzdjtxvzf", "bqvgaqv"))))) - .withDiagnosticSettingsVersion(247476852) - .withEnabledLogCategories(Arrays.asList("qusrdvetnws", "tutnwlduycvuzhyr"))); - model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationProperties.class); - Assertions.assertEquals("klxubyja", model.networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("930005c2-8dba-4ead-93d7-e4d2e40bd7d2"), - model.networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mfblcqcuubg", model.networkSecurityPerimeter().location()); - Assertions.assertEquals("rtalmet", model.resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.ENFORCED, model.resourceAssociation().accessMode()); - Assertions.assertEquals("slqxi", model.profile().name()); - Assertions.assertEquals(5802151, model.profile().accessRulesVersion()); - Assertions.assertEquals("i", model.profile().accessRules().get(0).name()); - Assertions.assertEquals(AccessRuleDirection.OUTBOUND, - model.profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("xiutcx", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("joxslhvnhla", - model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("hvv", model.profile().accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("it", model.profile().accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(247476852, model.profile().diagnosticSettingsVersion()); - Assertions.assertEquals("qusrdvetnws", model.profile().enabledLogCategories().get(0)); + Assertions.assertEquals("gx", model.profile().accessRules().get(0).properties().emailAddresses().get(0)); + Assertions.assertEquals("luicpdggkzzlvmbm", + model.profile().accessRules().get(0).properties().phoneNumbers().get(0)); + Assertions.assertEquals(1924773766, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("auvfbtkuwhhmhyk", model.profile().enabledLogCategories().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterTests.java index b74ca6b42ac2..34449b8267b3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityPerimeterTests.java @@ -1,34 +1,21 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class NetworkSecurityPerimeterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeter model = BinaryData - .fromString( - "{\"id\":\"fdvruz\",\"perimeterGuid\":\"8a6215e5-b5c5-4c47-b2af-537d24ec44e7\",\"location\":\"ojhp\"}") + .fromString("{\"id\":\"xrbuukzclew\",\"perimeterGuid\":\"mlwpazt\",\"location\":\"ofncckwyfzqwhxxb\"}") .toObject(NetworkSecurityPerimeter.class); - Assertions.assertEquals("fdvruz", model.id()); - Assertions.assertEquals(UUID.fromString("8a6215e5-b5c5-4c47-b2af-537d24ec44e7"), model.perimeterGuid()); - Assertions.assertEquals("ojhp", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSecurityPerimeter model = new NetworkSecurityPerimeter().withId("fdvruz") - .withPerimeterGuid(UUID.fromString("8a6215e5-b5c5-4c47-b2af-537d24ec44e7")) - .withLocation("ojhp"); - model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeter.class); - Assertions.assertEquals("fdvruz", model.id()); - Assertions.assertEquals(UUID.fromString("8a6215e5-b5c5-4c47-b2af-537d24ec44e7"), model.perimeterGuid()); - Assertions.assertEquals("ojhp", model.location()); + Assertions.assertEquals("xrbuukzclew", model.id()); + Assertions.assertEquals("mlwpazt", model.perimeterGuid()); + Assertions.assertEquals("ofncckwyfzqwhxxb", model.location()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityProfileTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityProfileTests.java index 2838b2ae81e1..78ff3defe761 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityProfileTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/NetworkSecurityProfileTests.java @@ -1,109 +1,36 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.models.AccessRule; import com.azure.resourcemanager.loganalytics.models.AccessRuleDirection; -import com.azure.resourcemanager.loganalytics.models.AccessRuleProperties; -import com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem; -import com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter; import com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile; -import java.util.Arrays; -import java.util.UUID; import org.junit.jupiter.api.Assertions; public final class NetworkSecurityProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityProfile model = BinaryData.fromString( - "{\"name\":\"ugeyzihgrkyuiza\",\"accessRulesVersion\":1192399452,\"accessRules\":[{\"name\":\"phojeevyhy\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"zbgomfgbeg\",\"qgleohibetnluank\",\"rfxeeebtij\"],\"subscriptions\":[{\"id\":\"bmqzbqqxlajrnwx\"},{\"id\":\"evehjkuyxoaf\"}],\"networkSecurityPerimeters\":[{\"id\":\"lt\",\"perimeterGuid\":\"5eee6773-30c2-41ee-8777-049b1ca9b5ca\",\"location\":\"yl\"},{\"id\":\"mfgvxirpghriypo\",\"perimeterGuid\":\"cf775843-639b-4af3-9d9d-173c1d94e988\",\"location\":\"hlqhykprlpy\"}],\"fullyQualifiedDomainNames\":[\"ciqdsme\",\"iitdfuxt\"],\"emailAddresses\":[\"iibmi\",\"bnn\",\"stgnl\",\"hnmgixhcm\"],\"phoneNumbers\":[\"qfoudorhcgyy\",\"rotwypundmbxhugc\",\"jkavl\"]}},{\"name\":\"rb\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"tzfjltf\",\"nzcyjtotp\",\"opv\",\"bdb\"],\"subscriptions\":[{\"id\":\"q\"},{\"id\":\"edsvqwthmk\"},{\"id\":\"bcysih\"}],\"networkSecurityPerimeters\":[{\"id\":\"wdhohsdtmcdzsu\",\"perimeterGuid\":\"b8ed1dac-0f55-475e-b9a4-dc4a83a5ba76\",\"location\":\"hdxbzlm\"},{\"id\":\"uapcvhdbevwqqxe\",\"perimeterGuid\":\"693cdddf-6e03-4e37-84ce-6d575fe9460f\",\"location\":\"onqzinkfkbgbzbow\"}],\"fullyQualifiedDomainNames\":[\"o\"],\"emailAddresses\":[\"mygvkzqkj\",\"eokbze\"],\"phoneNumbers\":[\"rx\",\"czurtlei\",\"q\"]}}],\"diagnosticSettingsVersion\":796775151,\"enabledLogCategories\":[\"zgnzv\"]}") + "{\"name\":\"qztpp\",\"accessRulesVersion\":80294620,\"accessRules\":[{\"name\":\"rjaltolmncw\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"sdbnwdcfhucqdpf\",\"vglsbjjca\",\"vxb\"],\"subscriptions\":[{\"id\":\"dut\"},{\"id\":\"ormrlxqtvcofudfl\"},{\"id\":\"gj\"}],\"networkSecurityPerimeters\":[{\"id\":\"knnqvsaznq\",\"perimeterGuid\":\"orudsgsa\",\"location\":\"kycgrauwj\"},{\"id\":\"taeburuvdm\",\"perimeterGuid\":\"s\",\"location\":\"l\"}],\"fullyQualifiedDomainNames\":[\"b\"],\"emailAddresses\":[\"efkifr\",\"tpuqujmq\"],\"phoneNumbers\":[\"fbtndoaong\",\"jcntuj\",\"tcje\",\"ftwwaezkojvdc\"]}},{\"name\":\"foqouicybx\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ufoxc\"],\"subscriptions\":[{\"id\":\"idoamciodhkha\"},{\"id\":\"khnzbonlw\"},{\"id\":\"oegokdwbwh\"}],\"networkSecurityPerimeters\":[{\"id\":\"cmrvexzt\",\"perimeterGuid\":\"t\",\"location\":\"sfraoyzko\"}],\"fullyQualifiedDomainNames\":[\"lmnguxaw\",\"aldsy\"],\"emailAddresses\":[\"imerqfobwyznk\",\"ykutwpf\",\"pagmhrskdsnf\",\"sd\"],\"phoneNumbers\":[\"gtdlmk\",\"zev\",\"l\"]}},{\"name\":\"wpusdsttwvogv\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ngqqmoakuf\",\"m\",\"zr\",\"rdgrtw\"],\"subscriptions\":[{\"id\":\"uzkopbminrfd\"},{\"id\":\"yuhhziu\"},{\"id\":\"fozbhdmsmlmzqhof\"}],\"networkSecurityPerimeters\":[{\"id\":\"equi\",\"perimeterGuid\":\"xicslfao\",\"location\":\"piyylhalnswhccsp\"},{\"id\":\"aivwitqscywu\",\"perimeterGuid\":\"woluhczbwemhair\",\"location\":\"rgzdwmsweyp\"},{\"id\":\"dxggicccnxqhuexm\",\"perimeterGuid\":\"tlstvlzywem\",\"location\":\"rncsdtclu\"},{\"id\":\"ypbsfgytguslfead\",\"perimeterGuid\":\"gq\",\"location\":\"yhejhzisxgfp\"}],\"fullyQualifiedDomainNames\":[\"lppvksrpq\",\"ujzra\",\"htwdwrftswibyrcd\",\"bhshfwpracstwity\"],\"emailAddresses\":[\"vxccedcp\",\"md\",\"odn\"],\"phoneNumbers\":[\"ltjcvnhltiugcxna\",\"vwxqibyqunyo\",\"xwlmdjr\"]}},{\"name\":\"fgbvfvpdbo\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"j\"],\"subscriptions\":[{\"id\":\"rribd\"}],\"networkSecurityPerimeters\":[{\"id\":\"ipqkghvxndzwm\",\"perimeterGuid\":\"efajpj\",\"location\":\"wkqnyhg\"}],\"fullyQualifiedDomainNames\":[\"tjivfxzsjabib\"],\"emailAddresses\":[\"tawfsdjpvkvp\",\"jxbkzbzkdvn\",\"jabudurgkakmo\"],\"phoneNumbers\":[\"jjklff\",\"mouwqlgzrfzeey\"]}}],\"diagnosticSettingsVersion\":32622439,\"enabledLogCategories\":[\"kayuhqlbjbs\",\"bbqwrvtldg\",\"fp\",\"vm\"]}") .toObject(NetworkSecurityProfile.class); - Assertions.assertEquals("ugeyzihgrkyuiza", model.name()); - Assertions.assertEquals(1192399452, model.accessRulesVersion()); - Assertions.assertEquals("phojeevyhy", model.accessRules().get(0).name()); - Assertions.assertEquals(AccessRuleDirection.INBOUND, model.accessRules().get(0).properties().direction()); - Assertions.assertEquals("zbgomfgbeg", model.accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmqzbqqxlajrnwx", model.accessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("lt", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("5eee6773-30c2-41ee-8777-049b1ca9b5ca"), + Assertions.assertEquals("qztpp", model.name()); + Assertions.assertEquals(80294620, model.accessRulesVersion()); + Assertions.assertEquals("rjaltolmncw", model.accessRules().get(0).name()); + Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.accessRules().get(0).properties().direction()); + Assertions.assertEquals("sdbnwdcfhucqdpf", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("dut", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("knnqvsaznq", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("orudsgsa", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("yl", + Assertions.assertEquals("kycgrauwj", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("ciqdsme", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("iibmi", model.accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("qfoudorhcgyy", model.accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(796775151, model.diagnosticSettingsVersion()); - Assertions.assertEquals("zgnzv", model.enabledLogCategories().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkSecurityProfile model - = new NetworkSecurityProfile().withName("ugeyzihgrkyuiza") - .withAccessRulesVersion(1192399452) - .withAccessRules( - Arrays - .asList( - new AccessRule().withName("phojeevyhy") - .withProperties(new AccessRuleProperties().withDirection(AccessRuleDirection.INBOUND) - .withAddressPrefixes(Arrays.asList("zbgomfgbeg", "qgleohibetnluank", "rfxeeebtij")) - .withSubscriptions(Arrays - .asList(new AccessRulePropertiesSubscriptionsItem().withId("bmqzbqqxlajrnwx"), - new AccessRulePropertiesSubscriptionsItem().withId("evehjkuyxoaf"))) - .withNetworkSecurityPerimeters( - Arrays.asList( - new NetworkSecurityPerimeter().withId("lt") - .withPerimeterGuid( - UUID.fromString("5eee6773-30c2-41ee-8777-049b1ca9b5ca")) - .withLocation("yl"), - new NetworkSecurityPerimeter().withId("mfgvxirpghriypo") - .withPerimeterGuid( - UUID.fromString("cf775843-639b-4af3-9d9d-173c1d94e988")) - .withLocation("hlqhykprlpy"))) - .withFullyQualifiedDomainNames(Arrays.asList("ciqdsme", "iitdfuxt")) - .withEmailAddresses(Arrays.asList("iibmi", "bnn", "stgnl", "hnmgixhcm")) - .withPhoneNumbers(Arrays.asList("qfoudorhcgyy", "rotwypundmbxhugc", "jkavl"))), - new AccessRule().withName("rb") - .withProperties( - new AccessRuleProperties().withDirection(AccessRuleDirection.INBOUND) - .withAddressPrefixes(Arrays.asList("tzfjltf", "nzcyjtotp", "opv", "bdb")) - .withSubscriptions( - Arrays.asList(new AccessRulePropertiesSubscriptionsItem().withId("q"), - new AccessRulePropertiesSubscriptionsItem().withId("edsvqwthmk"), - new AccessRulePropertiesSubscriptionsItem().withId("bcysih"))) - .withNetworkSecurityPerimeters(Arrays.asList( - new NetworkSecurityPerimeter().withId("wdhohsdtmcdzsu") - .withPerimeterGuid( - UUID.fromString("b8ed1dac-0f55-475e-b9a4-dc4a83a5ba76")) - .withLocation("hdxbzlm"), - new NetworkSecurityPerimeter().withId("uapcvhdbevwqqxe") - .withPerimeterGuid( - UUID.fromString("693cdddf-6e03-4e37-84ce-6d575fe9460f")) - .withLocation("onqzinkfkbgbzbow"))) - .withFullyQualifiedDomainNames(Arrays.asList("o")) - .withEmailAddresses(Arrays.asList("mygvkzqkj", "eokbze")) - .withPhoneNumbers(Arrays.asList("rx", "czurtlei", "q"))))) - .withDiagnosticSettingsVersion(796775151) - .withEnabledLogCategories(Arrays.asList("zgnzv")); - model = BinaryData.fromObject(model).toObject(NetworkSecurityProfile.class); - Assertions.assertEquals("ugeyzihgrkyuiza", model.name()); - Assertions.assertEquals(1192399452, model.accessRulesVersion()); - Assertions.assertEquals("phojeevyhy", model.accessRules().get(0).name()); - Assertions.assertEquals(AccessRuleDirection.INBOUND, model.accessRules().get(0).properties().direction()); - Assertions.assertEquals("zbgomfgbeg", model.accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmqzbqqxlajrnwx", model.accessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("lt", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals(UUID.fromString("5eee6773-30c2-41ee-8777-049b1ca9b5ca"), - model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("yl", - model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("ciqdsme", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals("iibmi", model.accessRules().get(0).properties().emailAddresses().get(0)); - Assertions.assertEquals("qfoudorhcgyy", model.accessRules().get(0).properties().phoneNumbers().get(0)); - Assertions.assertEquals(796775151, model.diagnosticSettingsVersion()); - Assertions.assertEquals("zgnzv", model.enabledLogCategories().get(0)); + Assertions.assertEquals("b", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("efkifr", model.accessRules().get(0).properties().emailAddresses().get(0)); + Assertions.assertEquals("fbtndoaong", model.accessRules().get(0).properties().phoneNumbers().get(0)); + Assertions.assertEquals(32622439, model.diagnosticSettingsVersion()); + Assertions.assertEquals("kayuhqlbjbs", model.enabledLogCategories().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationDisplayTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationDisplayTests.java index 6f839b25fa58..53bb34213122 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationDisplayTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationDisplayTests.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.generated; @@ -12,24 +12,11 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"ugidyjrr\",\"resource\":\"y\",\"operation\":\"svexcsonpclhoco\",\"description\":\"lkevle\"}") + "{\"provider\":\"lx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"}") .toObject(OperationDisplay.class); - Assertions.assertEquals("ugidyjrr", model.provider()); - Assertions.assertEquals("y", model.resource()); - Assertions.assertEquals("svexcsonpclhoco", model.operation()); - Assertions.assertEquals("lkevle", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("ugidyjrr") - .withResource("y") - .withOperation("svexcsonpclhoco") - .withDescription("lkevle"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("ugidyjrr", model.provider()); - Assertions.assertEquals("y", model.resource()); - Assertions.assertEquals("svexcsonpclhoco", model.operation()); - Assertions.assertEquals("lkevle", model.description()); + Assertions.assertEquals("lx", model.provider()); + Assertions.assertEquals("kuksjtxukcdm", model.resource()); + Assertions.assertEquals("rcryuanzwuxzdxta", model.operation()); + Assertions.assertEquals("lhmwhfpmrqobm", model.description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationInnerTests.java index 230330b39037..3b4ee813c2b0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationInnerTests.java @@ -1,39 +1,23 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.fluent.models.OperationInner; -import com.azure.resourcemanager.loganalytics.models.OperationDisplay; import org.junit.jupiter.api.Assertions; public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"sa\",\"display\":{\"provider\":\"ku\",\"resource\":\"oskg\",\"operation\":\"auu\",\"description\":\"jmvxie\"}}") + "{\"name\":\"cmpoyfdkfogkny\",\"display\":{\"provider\":\"fjddeqs\",\"resource\":\"eupewnwreitjz\",\"operation\":\"lusarh\",\"description\":\"fcqhsmyurkd\"}}") .toObject(OperationInner.class); - Assertions.assertEquals("sa", model.name()); - Assertions.assertEquals("ku", model.display().provider()); - Assertions.assertEquals("oskg", model.display().resource()); - Assertions.assertEquals("auu", model.display().operation()); - Assertions.assertEquals("jmvxie", model.display().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withName("sa") - .withDisplay(new OperationDisplay().withProvider("ku") - .withResource("oskg") - .withOperation("auu") - .withDescription("jmvxie")); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("sa", model.name()); - Assertions.assertEquals("ku", model.display().provider()); - Assertions.assertEquals("oskg", model.display().resource()); - Assertions.assertEquals("auu", model.display().operation()); - Assertions.assertEquals("jmvxie", model.display().description()); + Assertions.assertEquals("cmpoyfdkfogkny", model.name()); + Assertions.assertEquals("fjddeqs", model.display().provider()); + Assertions.assertEquals("eupewnwreitjz", model.display().resource()); + Assertions.assertEquals("lusarh", model.display().operation()); + Assertions.assertEquals("fcqhsmyurkd", model.display().description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationListResultTests.java index 3b474d738a34..a1344bfe6123 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationListResultTests.java @@ -1,52 +1,24 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.OperationInner; -import com.azure.resourcemanager.loganalytics.models.OperationDisplay; -import com.azure.resourcemanager.loganalytics.models.OperationListResult; -import java.util.Arrays; +import com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult; import org.junit.jupiter.api.Assertions; public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"bezy\",\"display\":{\"provider\":\"kktwhrdxw\",\"resource\":\"wqsmbsur\",\"operation\":\"imoryocfsfksym\",\"description\":\"ys\"}},{\"name\":\"i\",\"display\":{\"provider\":\"hqyudxorrqnbpoc\",\"resource\":\"yifqrvkdvjsllrmv\",\"operation\":\"f\",\"description\":\"t\"}},{\"name\":\"n\",\"display\":{\"provider\":\"exxbczwtr\",\"resource\":\"iqzbq\",\"operation\":\"sovmyokacspkwl\",\"description\":\"dobpxjmflbvvn\"}}],\"nextLink\":\"rkcciwwzjuqk\"}") + "{\"value\":[{\"name\":\"hq\",\"display\":{\"provider\":\"jxpybczmeh\",\"resource\":\"zopbsphrupidgs\",\"operation\":\"bejhphoycmsxa\",\"description\":\"hdxbmtqio\"}},{\"name\":\"zehtbmu\",\"display\":{\"provider\":\"wnoi\",\"resource\":\"wlrxyb\",\"operation\":\"oqijgkdmbpaz\",\"description\":\"bc\"}},{\"name\":\"pdznrbtcqqjnqgl\",\"display\":{\"provider\":\"nufo\",\"resource\":\"jywif\",\"operation\":\"esaagdfm\",\"description\":\"zlhjxrifkwmrvkt\"}}],\"nextLink\":\"zntocipaouajps\"}") .toObject(OperationListResult.class); - Assertions.assertEquals("bezy", model.value().get(0).name()); - Assertions.assertEquals("kktwhrdxw", model.value().get(0).display().provider()); - Assertions.assertEquals("wqsmbsur", model.value().get(0).display().resource()); - Assertions.assertEquals("imoryocfsfksym", model.value().get(0).display().operation()); - Assertions.assertEquals("ys", model.value().get(0).display().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult().withValue(Arrays.asList( - new OperationInner().withName("bezy") - .withDisplay(new OperationDisplay().withProvider("kktwhrdxw") - .withResource("wqsmbsur") - .withOperation("imoryocfsfksym") - .withDescription("ys")), - new OperationInner().withName("i") - .withDisplay(new OperationDisplay().withProvider("hqyudxorrqnbpoc") - .withResource("yifqrvkdvjsllrmv") - .withOperation("f") - .withDescription("t")), - new OperationInner().withName("n") - .withDisplay(new OperationDisplay().withProvider("exxbczwtr") - .withResource("iqzbq") - .withOperation("sovmyokacspkwl") - .withDescription("dobpxjmflbvvn")))); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("bezy", model.value().get(0).name()); - Assertions.assertEquals("kktwhrdxw", model.value().get(0).display().provider()); - Assertions.assertEquals("wqsmbsur", model.value().get(0).display().resource()); - Assertions.assertEquals("imoryocfsfksym", model.value().get(0).display().operation()); - Assertions.assertEquals("ys", model.value().get(0).display().description()); + Assertions.assertEquals("hq", model.value().get(0).name()); + Assertions.assertEquals("jxpybczmeh", model.value().get(0).display().provider()); + Assertions.assertEquals("zopbsphrupidgs", model.value().get(0).display().resource()); + Assertions.assertEquals("bejhphoycmsxa", model.value().get(0).display().operation()); + Assertions.assertEquals("hdxbmtqio", model.value().get(0).display().description()); + Assertions.assertEquals("zntocipaouajps", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationsListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationsListMockTests.java index 5b44dd0d0ebd..01751b606762 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationsListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/OperationsListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"rxhtvso\",\"display\":{\"provider\":\"wntsjgqrsxy\",\"resource\":\"uuuybnchrsziz\",\"operation\":\"uelyetndn\",\"description\":\"qyggagfl\"}}]}"; + = "{\"value\":[{\"name\":\"zejywhslw\",\"display\":{\"provider\":\"pllndnp\",\"resource\":\"rpqaf\",\"operation\":\"ug\",\"description\":\"n\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("rxhtvso", response.iterator().next().name()); - Assertions.assertEquals("wntsjgqrsxy", response.iterator().next().display().provider()); - Assertions.assertEquals("uuuybnchrsziz", response.iterator().next().display().resource()); - Assertions.assertEquals("uelyetndn", response.iterator().next().display().operation()); - Assertions.assertEquals("qyggagfl", response.iterator().next().display().description()); + Assertions.assertEquals("zejywhslw", response.iterator().next().name()); + Assertions.assertEquals("pllndnp", response.iterator().next().display().provider()); + Assertions.assertEquals("rpqaf", response.iterator().next().display().resource()); + Assertions.assertEquals("ug", response.iterator().next().display().operation()); + Assertions.assertEquals("n", response.iterator().next().display().description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/PrivateLinkScopedResourceTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/PrivateLinkScopedResourceTests.java index 25393ad99897..3c457f94acb4 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/PrivateLinkScopedResourceTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/PrivateLinkScopedResourceTests.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.generated; @@ -11,17 +11,10 @@ public final class PrivateLinkScopedResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateLinkScopedResource model = BinaryData.fromString("{\"resourceId\":\"bar\",\"scopeId\":\"uayjkqa\"}") - .toObject(PrivateLinkScopedResource.class); - Assertions.assertEquals("bar", model.resourceId()); - Assertions.assertEquals("uayjkqa", model.scopeId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkScopedResource model = new PrivateLinkScopedResource().withResourceId("bar").withScopeId("uayjkqa"); - model = BinaryData.fromObject(model).toObject(PrivateLinkScopedResource.class); - Assertions.assertEquals("bar", model.resourceId()); - Assertions.assertEquals("uayjkqa", model.scopeId()); + PrivateLinkScopedResource model + = BinaryData.fromString("{\"resourceId\":\"xaqwoochcbonqv\",\"scopeId\":\"vlrxnjeaseiph\"}") + .toObject(PrivateLinkScopedResource.class); + Assertions.assertEquals("xaqwoochcbonqv", model.resourceId()); + Assertions.assertEquals("vlrxnjeaseiph", model.scopeId()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssuePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssuePropertiesTests.java index 4b2e70bcacba..2ae0326ce663 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssuePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssuePropertiesTests.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.generated; @@ -11,13 +11,7 @@ public final class ProvisioningIssuePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssueProperties model = BinaryData.fromString( - "{\"issueType\":\"ConfigurationPropagationFailure\",\"severity\":\"Error\",\"description\":\"jjidjk\",\"suggestedResourceIds\":[\"kyxvxevblbjedn\",\"jlageu\",\"ulxunsmjbnkpp\"],\"suggestedAccessRules\":[{\"name\":\"nlsvxeiz\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"srmffeycxcktpiym\",\"rteeamm\",\"qiekkkzddrt\"],\"subscriptions\":[{\"id\":\"jbmxvavre\"}],\"networkSecurityPerimeters\":[{\"id\":\"svecuijpxtxs\",\"perimeterGuid\":\"0888ade7-9e97-44f3-8fbc-ef9fff7091c1\",\"location\":\"rtujwsawddjibab\"},{\"id\":\"ititvtzeexavoxt\",\"perimeterGuid\":\"26df57b3-697b-46c1-8941-74b61b18ab53\",\"location\":\"ecdmdqbwpy\"}],\"fullyQualifiedDomainNames\":[\"gsfjac\",\"slhhxudbxv\"],\"emailAddresses\":[\"tnsi\",\"ud\"],\"phoneNumbers\":[\"mes\"]}},{\"name\":\"dlpagzrcxfail\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"boxdfgsftufq\",\"brjlnacgcckknhxk\",\"zvytnrzvuljraaer\",\"nok\"],\"subscriptions\":[{\"id\":\"kjq\"},{\"id\":\"broyla\"},{\"id\":\"ulcdisdosf\"},{\"id\":\"jsvg\"}],\"networkSecurityPerimeters\":[{\"id\":\"r\",\"perimeterGuid\":\"13dd419b-9823-4900-aa2a-c60009cd5ec1\",\"location\":\"cytdclxgccknfnwm\"},{\"id\":\"mvpdvjdhttzaef\",\"perimeterGuid\":\"a4b28acc-03b0-4e92-ac44-cd4e8f0b6239\",\"location\":\"ihchrphkmcrjdqn\"},{\"id\":\"fzpbgtgkyl\",\"perimeterGuid\":\"5a821df0-0c09-4e66-8d59-28631b348153\",\"location\":\"hrjeuutlw\"}],\"fullyQualifiedDomainNames\":[\"w\"],\"emailAddresses\":[\"kvbwnhhtqlgeh\",\"ppipifhpfeoa\",\"vgcxtx\",\"csheafidltugsr\"],\"phoneNumbers\":[\"kssjhoiftxfk\"]}},{\"name\":\"egprhptil\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"tgdqohmcwsldriz\",\"tpwb\",\"a\"],\"subscriptions\":[{\"id\":\"bphbqzmizakakank\"},{\"id\":\"dnjzh\"}],\"networkSecurityPerimeters\":[{\"id\":\"lhjlmuoyxprimr\",\"perimeterGuid\":\"95824214-f380-4d87-8e47-7eda5ebf0d01\",\"location\":\"teecjmeislst\"},{\"id\":\"sylwxdzaumweooh\",\"perimeterGuid\":\"4c9c2db2-5c35-4e99-8707-41f3d277d557\",\"location\":\"fuzboyjathwtzolb\"},{\"id\":\"mwmdxmebwjscjpa\",\"perimeterGuid\":\"31022458-bd5a-429f-ab1c-d4678c2f0b95\",\"location\":\"veabfqxnmwmqtib\"},{\"id\":\"ijddtvqc\",\"perimeterGuid\":\"d60506fe-97b9-4011-8367-88d41369b09c\",\"location\":\"dija\"}],\"fullyQualifiedDomainNames\":[\"mrsieekp\"],\"emailAddresses\":[\"aapm\",\"dqmeqwigpibudq\",\"yxeb\",\"ybpmzznrtffyaq\"],\"phoneNumbers\":[\"hheioqaqhvseuf\"]}}]}") + "{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Warning\",\"description\":\"pzbchck\",\"suggestedResourceIds\":[\"qioxi\",\"suiizynkedyat\",\"wyhqmibzyhwits\"],\"suggestedAccessRules\":[{\"name\":\"ynpcdpumnzgmwznm\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"orgjhxbldt\",\"wwrlkdmtncv\"],\"subscriptions\":[{\"id\":\"llxdyhgs\"},{\"id\":\"cogjltdtbn\"},{\"id\":\"adoocrkvc\"}],\"networkSecurityPerimeters\":[{\"id\":\"vpa\",\"perimeterGuid\":\"gxqquezik\",\"location\":\"ggxkallatmelwuip\"},{\"id\":\"cjzkzivgvvcna\",\"perimeterGuid\":\"hyrnxxmu\",\"location\":\"dndrdvstkwqqtche\"},{\"id\":\"mfmtdaaygdvw\",\"perimeterGuid\":\"piohgwxrtfu\",\"location\":\"epxgyqagvr\"}],\"fullyQualifiedDomainNames\":[\"pkukghi\",\"dblx\",\"wi\",\"fnjhfjxwmszkkfo\"],\"emailAddresses\":[\"yfkzik\",\"jawneaiv\",\"wczelpci\"],\"phoneNumbers\":[\"sfeaenwabfat\",\"lddxbjhwua\",\"nozj\",\"sphyoulpjrvxa\"]}}]}") .toObject(ProvisioningIssueProperties.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProvisioningIssueProperties model = new ProvisioningIssueProperties(); - model = BinaryData.fromObject(model).toObject(ProvisioningIssueProperties.class); - } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssueTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssueTests.java index 5dfb515c0292..863135bf69a8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssueTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ProvisioningIssueTests.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.generated; @@ -11,13 +11,7 @@ public final class ProvisioningIssueTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssue model = BinaryData.fromString( - "{\"name\":\"wipmvekdxuk\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Error\",\"description\":\"undxgketw\",\"suggestedResourceIds\":[\"zjhfjmhvv\",\"uvgp\"],\"suggestedAccessRules\":[{\"name\":\"qsxvmhf\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"hsasbhu\",\"ypoh\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"nsqyrpfoobrltt\",\"msjnygqdnfw\",\"zdzgtilaxhnfhqly\"],\"emailAddresses\":[\"ouwivkxoyzunbixx\"],\"phoneNumbers\":[\"kvcpwpgclr\",\"ivtsoxfrkenxpm\"]}},{\"name\":\"efrp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"skawaoqvmmb\",\"pqfrtqlkz\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"vkxlz\",\"qdrfegcealzxwhc\",\"nsymoyqhlwigd\"],\"emailAddresses\":[\"kbxgom\",\"ajuwas\",\"vdaeyyguxakjsq\"],\"phoneNumbers\":[\"bezkgimsidxasic\",\"dyvvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"]}}]}}") + "{\"name\":\"oxafn\",\"properties\":{\"issueType\":\"MissingPerimeterConfiguration\",\"severity\":\"Error\",\"description\":\"koymkcd\",\"suggestedResourceIds\":[\"pkkpw\",\"reqnovvqfov\",\"jxywsuws\"],\"suggestedAccessRules\":[{\"name\":\"dsytgadgvr\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"qnzarrwl\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"kacewiipfp\",\"bjibwwiftohq\"],\"emailAddresses\":[\"uvksgplsaknynfsy\",\"ljphuopxodl\"],\"phoneNumbers\":[\"ntorzihleosjswsr\"]}}]}}") .toObject(ProvisioningIssue.class); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProvisioningIssue model = new ProvisioningIssue(); - model = BinaryData.fromObject(model).toObject(ProvisioningIssue.class); - } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteWithResponseMockTests.java index c9626f6d165d..e931682ab965 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesDeleteWithResponseMockTests.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.generated; @@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.queries() - .deleteWithResponse("yjucejikzoeo", "vtzejetjklnti", "yjuzkdb", com.azure.core.util.Context.NONE); + manager.queries().deleteWithResponse("nx", "wqy", "llhdyzm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetWithResponseMockTests.java index 24a7a169654d..7555fd4ec062 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesGetWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class QueriesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"id\":\"rtws\",\"displayName\":\"hv\",\"timeCreated\":\"2021-09-06T01:44:02Z\",\"timeModified\":\"2021-03-26T17:24:30Z\",\"author\":\"vtrrmhwrbfdpyflu\",\"description\":\"vjglrocuyzlwhhme\",\"body\":\"hoocl\",\"related\":{\"categories\":[\"qmemc\",\"jk\"],\"resourceTypes\":[\"kyujxsglhsrrr\",\"ejylmbkzu\"],\"solutions\":[\"grfihotjewlp\",\"uzzjgnrefq\",\"hqo\"]},\"tags\":{\"tgbebj\":[\"iqakydiwfbr\",\"wpzdqtvhcspo\",\"aqa\",\"sipi\"],\"uhplrvkmjcwmjv\":[\"lbmoichd\",\"pnfpubntnbat\",\"viqsowsaaelcattc\"],\"idqlvhu\":[\"fggc\",\"kyylizr\",\"bjpsfxsfuztlvtm\",\"agb\"]},\"properties\":\"dataveo\"},\"id\":\"zrvjfnmjmvlwyzgi\",\"name\":\"lkujrllfojui\",\"type\":\"jpu\"}"; + = "{\"properties\":{\"id\":\"czjnc\",\"displayName\":\"uiyqvldaswvppi\",\"timeCreated\":\"2021-10-18T19:32Z\",\"timeModified\":\"2021-09-21T18:41:29Z\",\"author\":\"cndhzxrrfcfs\",\"description\":\"khgsnxuwwkpphefs\",\"body\":\"zxlb\",\"related\":{\"categories\":[\"eikjclwza\",\"nmwpf\"],\"resourceTypes\":[\"t\",\"azyqbxyxoyfp\",\"qqi\"],\"solutions\":[\"xlhdj\",\"qdcadwvps\",\"zjiihjr\",\"ybmrzoepnxwd\"]},\"tags\":{\"ibtyibuyvpirfqjp\":[\"kgvfnmxaursqf\"],\"znfaj\":[\"noow\",\"bedenrexkx\",\"hxvucnu\",\"gmnhjevd\"],\"mgnlqxsjxtel\":[\"kskmqozzkivyhjrl\",\"izjixlq\",\"hefkwabsolronqq\"]},\"properties\":\"\\\"datahvuqbo\\\"\"},\"id\":\"o\",\"name\":\"zqocarku\",\"type\":\"lbcnndt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,16 +30,15 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - LogAnalyticsQueryPackQuery response = manager.queries() - .getWithResponse("mtkhlowkxxpvbr", "fjmzsyzfho", "lhikcyychunsj", com.azure.core.util.Context.NONE) - .getValue(); + LogAnalyticsQueryPackQuery response + = manager.queries().getWithResponse("qjm", "g", "syparybjufp", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("hv", response.displayName()); - Assertions.assertEquals("vjglrocuyzlwhhme", response.description()); - Assertions.assertEquals("hoocl", response.body()); - Assertions.assertEquals("qmemc", response.related().categories().get(0)); - Assertions.assertEquals("kyujxsglhsrrr", response.related().resourceTypes().get(0)); - Assertions.assertEquals("grfihotjewlp", response.related().solutions().get(0)); - Assertions.assertEquals("iqakydiwfbr", response.tags().get("tgbebj").get(0)); + Assertions.assertEquals("uiyqvldaswvppi", response.displayName()); + Assertions.assertEquals("khgsnxuwwkpphefs", response.description()); + Assertions.assertEquals("zxlb", response.body()); + Assertions.assertEquals("eikjclwza", response.related().categories().get(0)); + Assertions.assertEquals("t", response.related().resourceTypes().get(0)); + Assertions.assertEquals("xlhdj", response.related().solutions().get(0)); + Assertions.assertEquals("kgvfnmxaursqf", response.tags().get("ibtyibuyvpirfqjp").get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesListMockTests.java index 57f1762ccd5f..fd1c84d8a44b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class QueriesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"id\":\"hpdulon\",\"displayName\":\"acn\",\"timeCreated\":\"2021-04-12T19:25:08Z\",\"timeModified\":\"2020-12-27T20:17:23Z\",\"author\":\"tuevrh\",\"description\":\"jyoogwxh\",\"body\":\"sd\",\"related\":{\"categories\":[\"bsre\",\"rfqkfuar\"],\"resourceTypes\":[\"vhhtklnvnaf\",\"vkyfedevjbosl\",\"qxypokkhminq\"],\"solutions\":[\"czngnbdxxe\",\"unin\"]},\"tags\":{\"xxdtddmflh\":[\"chaqdtvqec\",\"qct\"]},\"properties\":\"datatx\"},\"id\":\"tznapxbannovv\",\"name\":\"xc\",\"type\":\"ytprwnwvroev\"}]}"; + = "{\"value\":[{\"properties\":{\"id\":\"kiwrsiw\",\"displayName\":\"y\",\"timeCreated\":\"2021-04-10T17:11:24Z\",\"timeModified\":\"2021-10-02T11:42:35Z\",\"author\":\"crraueekcsu\",\"description\":\"ogd\",\"body\":\"acbcb\",\"related\":{\"categories\":[\"qidywmh\",\"ptyrilkfbnrqqxv\",\"tpbnfnqtxjtoma\"],\"resourceTypes\":[\"bnfddep\",\"dwq\",\"ns\"],\"solutions\":[\"gl\",\"exa\"]},\"tags\":{\"be\":[\"whsbrcary\",\"sjjzyvoaqajuveh\",\"ptdmkrrbhmpful\"],\"vfy\":[\"ybpmf\",\"fununmpzk\"]},\"properties\":\"\\\"datakdschlzvfictnkjj\\\"\"},\"id\":\"cwnphbkgfyrtogm\",\"name\":\"mjpjscdfpdqwty\",\"type\":\"ev\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.queries() - .list("eizjcpeogkhnmg", "ro", 3903099274195860527L, false, "bhfhpfpazjzoy", - com.azure.core.util.Context.NONE); + .list("ckze", "nxakckyw", 9170947391231491197L, true, "aabjkdtfohfao", com.azure.core.util.Context.NONE); - Assertions.assertEquals("acn", response.iterator().next().displayName()); - Assertions.assertEquals("jyoogwxh", response.iterator().next().description()); - Assertions.assertEquals("sd", response.iterator().next().body()); - Assertions.assertEquals("bsre", response.iterator().next().related().categories().get(0)); - Assertions.assertEquals("vhhtklnvnaf", response.iterator().next().related().resourceTypes().get(0)); - Assertions.assertEquals("czngnbdxxe", response.iterator().next().related().solutions().get(0)); - Assertions.assertEquals("chaqdtvqec", response.iterator().next().tags().get("xxdtddmflh").get(0)); + Assertions.assertEquals("y", response.iterator().next().displayName()); + Assertions.assertEquals("ogd", response.iterator().next().description()); + Assertions.assertEquals("acbcb", response.iterator().next().body()); + Assertions.assertEquals("qidywmh", response.iterator().next().related().categories().get(0)); + Assertions.assertEquals("bnfddep", response.iterator().next().related().resourceTypes().get(0)); + Assertions.assertEquals("gl", response.iterator().next().related().solutions().get(0)); + Assertions.assertEquals("whsbrcary", response.iterator().next().tags().get("be").get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutWithResponseMockTests.java index 14b3befb2419..d6fbb70c383d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesPutWithResponseMockTests.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.generated; @@ -25,7 +25,7 @@ public final class QueriesPutWithResponseMockTests { @Test public void testPutWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"id\":\"itdigsxcdgljp\",\"displayName\":\"keuachtomf\",\"timeCreated\":\"2021-03-19T13:19:35Z\",\"timeModified\":\"2021-09-29T06:45:15Z\",\"author\":\"fpfmdgycxnmskwh\",\"description\":\"jyslurl\",\"body\":\"shhkvpedw\",\"related\":{\"categories\":[\"rhmpqvwwsk\",\"ndcbrwi\",\"uvqejosovyrrle\"],\"resourceTypes\":[\"inuqtljq\",\"bbpihehcecy\",\"mrqbrjbbmpxdlv\",\"kfrexcrseqwjks\"],\"solutions\":[\"dgzhxogj\",\"gsv\",\"u\"]},\"tags\":{\"o\":[\"bdafhrkm\",\"yomkxfbvfbhdy\",\"rhpw\",\"gddeimaw\"],\"comlikytwvczc\":[\"kkum\",\"ikjcjcazt\",\"wsnsqowx\"],\"cvejyfdvlvhbwrn\":[\"k\"],\"nkcoeqswankltyt\":[\"tgddpqthehnmnaoy\"]},\"properties\":\"datadroznn\"},\"id\":\"rlktgjcsggu\",\"name\":\"hemlwywaee\",\"type\":\"zgfbukklelssx\"}"; + = "{\"properties\":{\"id\":\"ww\",\"displayName\":\"cknrzda\",\"timeCreated\":\"2021-05-07T04:36:17Z\",\"timeModified\":\"2021-03-04T20:06:42Z\",\"author\":\"tjxul\",\"description\":\"ucyrt\",\"body\":\"xqlehmc\",\"related\":{\"categories\":[\"inue\",\"oka\",\"vfejvqnttmbqda\"],\"resourceTypes\":[\"ivfokpysthhzagj\"],\"solutions\":[\"yrl\",\"g\",\"nuzejgvkveb\"]},\"tags\":{\"xtminklogxsvtzar\":[\"llrzlsmmdqgmihz\",\"imcqrh\"],\"mqbmfuvqarwz\":[\"vqnsqk\",\"cmbjwzzo\",\"lpky\",\"tglwkzpgajsqjc\"],\"vlyttaaknwfrke\":[\"qreblui\",\"mbwxsfg\",\"dmbvxekraok\",\"kbudbtwaokb\"],\"dig\":[\"mhpdu\"]},\"properties\":\"\\\"dataolekscbctnanqim\\\"\"},\"id\":\"zxpdcldpkawnsnl\",\"name\":\"imouxwksqmudmfco\",\"type\":\"bicziuswswj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,26 +35,27 @@ public void testPutWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LogAnalyticsQueryPackQuery response = manager.queries() - .define("rrkolawjmjs") - .withExistingQueryPack("zolxrzvhqjwtr", "tgvgzp") - .withTags(mapOf("gjekglklby", Arrays.asList("hzdtxetlgydlh", "vlnnpx", "b", "fiqgeaar"))) - .withDisplayName("tlhguynuchl") - .withDescription("pafolp") - .withBody("mwamxqzragpgdph") + .define("qrs") + .withExistingQueryPack("s", "cw") + .withTags(mapOf("djxyxgbkkqvjcteo", Arrays.asList("kayspthz", "dubtlmj", "gblioskkfmkm"), "xv", + Arrays.asList("l", "slskkz"))) + .withDisplayName("zbcyksiv") + .withDescription("ftsjcwj") + .withBody("xsgm") .withRelated(new LogAnalyticsQueryPackQueryPropertiesRelated() - .withCategories(Arrays.asList("lajv", "ejchcsrlz", "nmzlanru")) - .withResourceTypes(Arrays.asList("vnphc", "zqtpjhmq")) - .withSolutions(Arrays.asList("thlaiwdcxs"))) - .withProperties("dataidwcwvmzegjon") + .withCategories(Arrays.asList("ifdxkecifhocjxw", "loozrvt", "vcmuf", "nlcpxxviry")) + .withResourceTypes(Arrays.asList("gjgvr", "uvp", "gglpmcrdcuelj")) + .withSolutions(Arrays.asList("hxmfqryarvsxzqb"))) + .withProperties("\"datazdpv\"") .create(); - Assertions.assertEquals("keuachtomf", response.displayName()); - Assertions.assertEquals("jyslurl", response.description()); - Assertions.assertEquals("shhkvpedw", response.body()); - Assertions.assertEquals("rhmpqvwwsk", response.related().categories().get(0)); - Assertions.assertEquals("inuqtljq", response.related().resourceTypes().get(0)); - Assertions.assertEquals("dgzhxogj", response.related().solutions().get(0)); - Assertions.assertEquals("bdafhrkm", response.tags().get("o").get(0)); + Assertions.assertEquals("cknrzda", response.displayName()); + Assertions.assertEquals("ucyrt", response.description()); + Assertions.assertEquals("xqlehmc", response.body()); + Assertions.assertEquals("inue", response.related().categories().get(0)); + Assertions.assertEquals("ivfokpysthhzagj", response.related().resourceTypes().get(0)); + Assertions.assertEquals("yrl", response.related().solutions().get(0)); + Assertions.assertEquals("llrzlsmmdqgmihz", response.tags().get("xtminklogxsvtzar").get(0)); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchMockTests.java index a3324dc0be72..2f76a271f2e7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueriesSearchMockTests.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.generated; @@ -27,7 +27,7 @@ public final class QueriesSearchMockTests { @Test public void testSearch() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"id\":\"caac\",\"displayName\":\"dmmcpugmehqep\",\"timeCreated\":\"2021-03-30T21:15:26Z\",\"timeModified\":\"2021-08-04T03:32:09Z\",\"author\":\"ehewhoqh\",\"description\":\"bqnbl\",\"body\":\"xeaclgsc\",\"related\":{\"categories\":[\"mkrsrrmoucsofl\",\"puviyfcaabe\",\"lhbhl\"],\"resourceTypes\":[\"xuqibsxtkcudf\"],\"solutions\":[\"arfsi\",\"wlkjxn\"]},\"tags\":{\"ycjimryvwgcwwpbm\":[\"gf\",\"tmhqykiz\",\"d\",\"saoafcluqvox\"]},\"properties\":\"dataw\"},\"id\":\"ydsx\",\"name\":\"efoh\",\"type\":\"cbvopwndyqleallk\"}]}"; + = "{\"value\":[{\"properties\":{\"id\":\"xc\",\"displayName\":\"qhtkbt\",\"timeCreated\":\"2021-08-19T16:52:48Z\",\"timeModified\":\"2021-08-17T05:38:07Z\",\"author\":\"ld\",\"description\":\"iipsnawwlqkz\",\"body\":\"xhhllxricct\",\"related\":{\"categories\":[\"qqoajxeiyglesrw\",\"aexhdctrceqnk\"],\"resourceTypes\":[\"pobe\",\"dmljzacvumepjp\",\"ibnzp\"],\"solutions\":[\"pife\",\"leqirccjclykcgxv\",\"pjlvczuoda\",\"punettepdjxq\"]},\"tags\":{\"ylpckaewsedv\":[\"ynu\"],\"fn\":[\"kwxe\",\"qphr\"],\"daizupf\":[\"ctmjtsghpbcbc\",\"zarpzeqacdldt\",\"mpypefcpczshnuq\"],\"iukvzwydwt\":[\"uytuszxhmtvtv\",\"gw\"]},\"properties\":\"\\\"dataaokgkskjivbsshaj\\\"\"},\"id\":\"u\",\"name\":\"peexpgeumilhwuit\",\"type\":\"dexyionofninbdb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,24 +36,25 @@ public void testSearch() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.queries() - .search("tlyo", "rrrouuxvnsa", new LogAnalyticsQueryPackQuerySearchProperties() - .withRelated( - new LogAnalyticsQueryPackQuerySearchPropertiesRelated().withCategories(Arrays.asList("ymodizrxk")) - .withResourceTypes(Arrays.asList("d", "nazpmk")) - .withSolutions(Arrays.asList("vevfxz"))) - .withTags(mapOf("p", Arrays.asList("bzxliohrdddtfgxq", "awpcbbnzqcykn"), "bwwg", - Arrays.asList("fyuicdh", "bd"), "muvapc", Arrays.asList("vibidmhmwffpl"), "mfsvbpav", - Arrays.asList("crrvweyo", "oy", "ukphaimmoiroq", "oshbragapyy"))), - 5906080066098666385L, false, "ppdbwnupgahxkum", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.queries() + .search("wmseharxifvqn", "x", new LogAnalyticsQueryPackQuerySearchProperties() + .withRelated(new LogAnalyticsQueryPackQuerySearchPropertiesRelated() + .withCategories(Arrays.asList("jptnvwjhrsidqpx", "btpakftngatw")) + .withResourceTypes(Arrays.asList("yutrymd", "mfjhpycvjqdvdwkq", "ldrlefgnaavua", "n")) + .withSolutions(Arrays.asList("aou", "n", "dc"))) + .withTags( + mapOf("thhllnmwyne", Arrays.asList("pfe", "y", "hduyeuyldph", "tybkcgs"), "mdskjhhxdlajfoxc", + Arrays.asList("exlfciatxtjrrl"), "jmkxettcslojf", Arrays.asList("cvslxlhuavkrmukm"))), + 3241690957213566836L, true, "nqtoqx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("dmmcpugmehqep", response.iterator().next().displayName()); - Assertions.assertEquals("bqnbl", response.iterator().next().description()); - Assertions.assertEquals("xeaclgsc", response.iterator().next().body()); - Assertions.assertEquals("mkrsrrmoucsofl", response.iterator().next().related().categories().get(0)); - Assertions.assertEquals("xuqibsxtkcudf", response.iterator().next().related().resourceTypes().get(0)); - Assertions.assertEquals("arfsi", response.iterator().next().related().solutions().get(0)); - Assertions.assertEquals("gf", response.iterator().next().tags().get("ycjimryvwgcwwpbm").get(0)); + Assertions.assertEquals("qhtkbt", response.iterator().next().displayName()); + Assertions.assertEquals("iipsnawwlqkz", response.iterator().next().description()); + Assertions.assertEquals("xhhllxricct", response.iterator().next().body()); + Assertions.assertEquals("qqoajxeiyglesrw", response.iterator().next().related().categories().get(0)); + Assertions.assertEquals("pobe", response.iterator().next().related().resourceTypes().get(0)); + Assertions.assertEquals("pife", response.iterator().next().related().solutions().get(0)); + Assertions.assertEquals("ynu", response.iterator().next().tags().get("ylpckaewsedv").get(0)); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithResponseMockTests.java index 5c2cada33883..e40698bb4374 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithResponseMockTests.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.generated; @@ -23,7 +23,7 @@ public final class QueryPacksCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"queryPackId\":\"emv\",\"timeCreated\":\"2021-10-29T03:31:17Z\",\"timeModified\":\"2020-12-21T13:58:30Z\",\"provisioningState\":\"hmnr\"},\"location\":\"bsojk\",\"tags\":{\"ysprq\":\"hmdp\",\"pli\":\"gnzxojpslsvj\",\"qvapcohhoucq\":\"fiqwoy\"},\"id\":\"q\",\"name\":\"jxcx\",\"type\":\"rzdcgdzbenribcaw\"}"; + = "{\"properties\":{\"queryPackId\":\"hbgxvel\",\"timeCreated\":\"2021-11-20T23:44:43Z\",\"timeModified\":\"2021-03-24T00:40:29Z\",\"provisioningState\":\"d\"},\"location\":\"itmujdtvm\",\"tags\":{\"zuvrzmzqmz\":\"ymffhmjpddnyx\",\"jpp\":\"qrbrpvnmdyfoeboj\",\"t\":\"laohoqkp\"},\"id\":\"qjilaywkdcwmqsyr\",\"name\":\"lmhxdqaolfylnk\",\"type\":\"bjpjvlyw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,15 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LogAnalyticsQueryPack response = manager.queryPacks() - .define("byrrueqth") - .withRegion("yqyybxubmdna") - .withExistingResourceGroup("yueayfbpcmsp") - .withTags(mapOf("qacigeleo", "qwremjel", "vqvwzkjopwbe", "d", "x", "nrlkwzdqy")) + .define("mpwctoflds") + .withRegion("wjiyewhfjsrwq") + .withExistingResourceGroup("chl") + .withTags( + mapOf("dqntycnawthv", "tfgcwvrr", "nuyeamcmhud", "ax", "qtwloes", "jecehokwc", "vrbnyrukoil", "rg")) .create(); - Assertions.assertEquals("bsojk", response.location()); - Assertions.assertEquals("hmdp", response.tags().get("ysprq")); + Assertions.assertEquals("itmujdtvm", response.location()); + Assertions.assertEquals("ymffhmjpddnyx", response.tags().get("zuvrzmzqmz")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameWithResponseMockTests.java index b02f3f534120..9d15527c577e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksCreateOrUpdateWithoutNameWithResponseMockTests.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.generated; @@ -24,7 +24,7 @@ public final class QueryPacksCreateOrUpdateWithoutNameWithResponseMockTests { @Test public void testCreateOrUpdateWithoutNameWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"queryPackId\":\"rgmsplzga\",\"timeCreated\":\"2021-02-13T02:42:05Z\",\"timeModified\":\"2021-02-02T09:58:56Z\",\"provisioningState\":\"vnewgnxkympqanx\"},\"location\":\"kixtwbtaoy\",\"tags\":{\"pxycphdr\":\"ghshxcylhkgmnsg\"},\"id\":\"jjkhvyomaclu\",\"name\":\"vxnqmhrpqpd\",\"type\":\"wmkoisq\"}"; + = "{\"properties\":{\"queryPackId\":\"fgrlpun\",\"timeCreated\":\"2021-08-05T21:30:35Z\",\"timeModified\":\"2021-03-30T12:54:01Z\",\"provisioningState\":\"smmpathubt\"},\"location\":\"deani\",\"tags\":{\"tedousnktjtgrava\":\"lbvgwzsf\",\"xxw\":\"ogfkbebauzlqb\",\"njzudr\":\"f\",\"eboywhczzqrhm\":\"pzkg\"},\"id\":\"gqbedygi\",\"name\":\"rzwnyk\",\"type\":\"id\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 201, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,15 @@ public void testCreateOrUpdateWithoutNameWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LogAnalyticsQueryPack response = manager.queryPacks() - .createOrUpdateWithoutNameWithResponse("wfiwzcxmj", - new LogAnalyticsQueryPackInner().withLocation("cabvnuil") - .withTags(mapOf("ugmrmf", "aswlp", "oauk", "lrxw", "moaedsxj", "fkvcisi")), + .createOrUpdateWithoutNameWithResponse("euqlsdxeqztv", + new LogAnalyticsQueryPackInner().withLocation("lhsvidmytzlnglxp") + .withTags(mapOf("bcswqagyw", "yoan", "igvjrktp", "t", "hqnucs", "aeukyawohpm", "bninjgazlsvbzfc", + "lhsidsjtdl")), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kixtwbtaoy", response.location()); - Assertions.assertEquals("ghshxcylhkgmnsg", response.tags().get("pxycphdr")); + Assertions.assertEquals("deani", response.location()); + Assertions.assertEquals("lbvgwzsf", response.tags().get("tedousnktjtgrava")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteByResourceGroupWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteByResourceGroupWithResponseMockTests.java index ec13a6955468..63e0e3c95e72 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksDeleteByResourceGroupWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.queryPacks() - .deleteByResourceGroupWithResponse("ssffxuifmc", "ypobkdqzr", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("oabhjxwxqweuip", "pvksmit", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupWithResponseMockTests.java index 2048593384ce..d729433a4838 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksGetByResourceGroupWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class QueryPacksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"queryPackId\":\"uaurkihcir\",\"timeCreated\":\"2021-04-17T15:27:55Z\",\"timeModified\":\"2021-09-20T22:33:09Z\",\"provisioningState\":\"dcoxnbk\"},\"location\":\"anurnnqb\",\"tags\":{\"rxvbfihwuh\":\"pizxqltgrdogyp\",\"iowxi\":\"ctafsrbxrblm\",\"klsbsbqqqagw\":\"spnxwqagnepzw\"},\"id\":\"rxaomzisglrrcze\",\"name\":\"k\",\"type\":\"hltnjadhqoawjq\"}"; + = "{\"properties\":{\"queryPackId\":\"uyzwvbhlimbyqecr\",\"timeCreated\":\"2021-11-15T20:33:50Z\",\"timeModified\":\"2021-01-11T02:12:01Z\",\"provisioningState\":\"cdrdaasaxxo\"},\"location\":\"mfkwiyjvzuk\",\"tags\":{\"lnk\":\"nawnvz\"},\"id\":\"ywsxvjabjqqaxu\",\"name\":\"vym\",\"type\":\"nudn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); LogAnalyticsQueryPack response = manager.queryPacks() - .getByResourceGroupWithResponse("zsylollgt", "czzydmxzjij", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("kbqsjhbtqqvyfscy", "fwbivqvo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("anurnnqb", response.location()); - Assertions.assertEquals("pizxqltgrdogyp", response.tags().get("rxvbfihwuh")); + Assertions.assertEquals("mfkwiyjvzuk", response.location()); + Assertions.assertEquals("nawnvz", response.tags().get("lnk")); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupMockTests.java index 402d3c1d2c70..8bc5f54172a6 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListByResourceGroupMockTests.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.generated; @@ -22,7 +22,7 @@ public final class QueryPacksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"queryPackId\":\"wslmiiiovgqcg\",\"timeCreated\":\"2021-03-09T10:20:04Z\",\"timeModified\":\"2021-07-06T10:58:26Z\",\"provisioningState\":\"ctotiowlx\"},\"location\":\"qd\",\"tags\":{\"lwphqlkccuzgyg\":\"gwdtgukran\",\"gniiprglvaw\":\"wahoiul\",\"pmcubkmifoxxkub\":\"wzdufypivlsbb\",\"gvgovpbbttefjo\":\"phavpmhbrb\"},\"id\":\"nssqyzqed\",\"name\":\"kdfrdbiqmrjgeihf\",\"type\":\"lg\"}]}"; + = "{\"value\":[{\"properties\":{\"queryPackId\":\"hyrfrakkldgr\",\"timeCreated\":\"2021-03-03T23:48:26Z\",\"timeModified\":\"2021-04-27T04:59:50Z\",\"provisioningState\":\"cnrjajqmatxjtiel\"},\"location\":\"qgxxgfbb\",\"tags\":{\"calincryqxz\":\"pqagynoiprn\",\"mqimiymqru\":\"aqzi\"},\"id\":\"guhfupe\",\"name\":\"asvvoqsbpkfl\",\"type\":\"nfkgxsyaowuzowpu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.queryPacks().listByResourceGroup("kkflrmymyincqlhr", com.azure.core.util.Context.NONE); + = manager.queryPacks().listByResourceGroup("sqxtltclkrdpq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qd", response.iterator().next().location()); - Assertions.assertEquals("gwdtgukran", response.iterator().next().tags().get("lwphqlkccuzgyg")); + Assertions.assertEquals("qgxxgfbb", response.iterator().next().location()); + Assertions.assertEquals("pqagynoiprn", response.iterator().next().tags().get("calincryqxz")); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListMockTests.java index 5fb621aeec76..595db8febae6 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/QueryPacksListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class QueryPacksListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"queryPackId\":\"ycsxzu\",\"timeCreated\":\"2021-06-18T01:50:48Z\",\"timeModified\":\"2021-11-03T00:52:43Z\",\"provisioningState\":\"mdesqp\"},\"location\":\"vmjcdoewb\",\"tags\":{\"xvgpiude\":\"vteo\",\"axwk\":\"gfsxzec\",\"znabaobns\":\"fykhvuhxepmru\",\"ihywartspph\":\"ujdjltymkmvg\"},\"id\":\"ixkykxd\",\"name\":\"sj\",\"type\":\"emmucfxh\"}]}"; + = "{\"value\":[{\"properties\":{\"queryPackId\":\"dkcprg\",\"timeCreated\":\"2020-12-23T10:33:06Z\",\"timeModified\":\"2021-11-18T03:49:15Z\",\"provisioningState\":\"io\"},\"location\":\"lutixmq\",\"tags\":{\"nmfbc\":\"jizcbfzmcrunfhiu\",\"dkyzbfvxov\":\"aqktkrumzu\"},\"id\":\"kxiuxqggvqr\",\"name\":\"hyhlwcjsqg\",\"type\":\"jhffbxrqrkij\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,7 +33,7 @@ public void testList() throws Exception { PagedIterable response = manager.queryPacks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("vmjcdoewb", response.iterator().next().location()); - Assertions.assertEquals("vteo", response.iterator().next().tags().get("xvgpiude")); + Assertions.assertEquals("lutixmq", response.iterator().next().location()); + Assertions.assertEquals("jizcbfzmcrunfhiu", response.iterator().next().tags().get("nmfbc")); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResourceAssociationTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResourceAssociationTests.java index 4cf7556677b5..9654b4af090e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResourceAssociationTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResourceAssociationTests.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.generated; @@ -12,18 +12,9 @@ public final class ResourceAssociationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceAssociation model = BinaryData.fromString("{\"name\":\"fnmdxotn\",\"accessMode\":\"Learning\"}") + ResourceAssociation model = BinaryData.fromString("{\"name\":\"qa\",\"accessMode\":\"Learning\"}") .toObject(ResourceAssociation.class); - Assertions.assertEquals("fnmdxotn", model.name()); - Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, model.accessMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceAssociation model - = new ResourceAssociation().withName("fnmdxotn").withAccessMode(ResourceAssociationAccessMode.LEARNING); - model = BinaryData.fromObject(model).toObject(ResourceAssociation.class); - Assertions.assertEquals("fnmdxotn", model.name()); + Assertions.assertEquals("qa", model.name()); Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, model.accessMode()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RestoredLogsTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RestoredLogsTests.java index 27622c44b1bb..8c9564cd1187 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RestoredLogsTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RestoredLogsTests.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.generated; @@ -13,21 +13,21 @@ public final class RestoredLogsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestoredLogs model = BinaryData.fromString( - "{\"startRestoreTime\":\"2021-10-09T17:15:47Z\",\"endRestoreTime\":\"2021-11-26T04:46:53Z\",\"sourceTable\":\"cedcpnmdy\",\"azureAsyncOperationId\":\"nwzxltjcv\"}") + "{\"startRestoreTime\":\"2021-04-25T19:47:18Z\",\"endRestoreTime\":\"2021-02-28T21:39:36Z\",\"sourceTable\":\"xndticokpvzmlqtm\",\"azureAsyncOperationId\":\"gxobfirclnp\"}") .toObject(RestoredLogs.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T17:15:47Z"), model.startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T04:46:53Z"), model.endRestoreTime()); - Assertions.assertEquals("cedcpnmdy", model.sourceTable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T19:47:18Z"), model.startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T21:39:36Z"), model.endRestoreTime()); + Assertions.assertEquals("xndticokpvzmlqtm", model.sourceTable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RestoredLogs model = new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-10-09T17:15:47Z")) - .withEndRestoreTime(OffsetDateTime.parse("2021-11-26T04:46:53Z")) - .withSourceTable("cedcpnmdy"); + RestoredLogs model = new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-04-25T19:47:18Z")) + .withEndRestoreTime(OffsetDateTime.parse("2021-02-28T21:39:36Z")) + .withSourceTable("xndticokpvzmlqtm"); model = BinaryData.fromObject(model).toObject(RestoredLogs.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T17:15:47Z"), model.startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T04:46:53Z"), model.endRestoreTime()); - Assertions.assertEquals("cedcpnmdy", model.sourceTable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T19:47:18Z"), model.startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T21:39:36Z"), model.endRestoreTime()); + Assertions.assertEquals("xndticokpvzmlqtm", model.sourceTable()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResultStatisticsTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResultStatisticsTests.java index b72f364ca3ad..03828612ab0b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResultStatisticsTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/ResultStatisticsTests.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.generated; @@ -10,14 +10,9 @@ public final class ResultStatisticsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResultStatistics model - = BinaryData.fromString("{\"progress\":68.59587,\"ingestedRecords\":823307226,\"scannedGb\":19.583012}") - .toObject(ResultStatistics.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResultStatistics model = new ResultStatistics(); - model = BinaryData.fromObject(model).toObject(ResultStatistics.class); + ResultStatistics model = BinaryData + .fromString( + "{\"progress\":19.014139860609415,\"ingestedRecords\":1763691901,\"scannedGb\":25.84225084007603}") + .toObject(ResultStatistics.class); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RuleDefinitionTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RuleDefinitionTests.java index 58aab975fbdf..1fdca7c20da3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RuleDefinitionTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/RuleDefinitionTests.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.generated; @@ -14,30 +14,30 @@ public final class RuleDefinitionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RuleDefinition model = BinaryData.fromString( - "{\"query\":\"hahzvechndbnwi\",\"binSize\":1717475306,\"binDelay\":36238226,\"binStartTime\":\"2021-06-22T19:10:38Z\",\"timeSelector\":\"TimeGenerated\",\"destinationTable\":\"ubwefqs\"}") + "{\"query\":\"phuartv\",\"binSize\":2146264945,\"binDelay\":1848545940,\"binStartTime\":\"2021-04-14T09:14:30Z\",\"timeSelector\":\"TimeGenerated\",\"destinationTable\":\"mnahmnxh\"}") .toObject(RuleDefinition.class); - Assertions.assertEquals("hahzvechndbnwi", model.query()); - Assertions.assertEquals(1717475306, model.binSize()); - Assertions.assertEquals(36238226, model.binDelay()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T19:10:38Z"), model.binStartTime()); + Assertions.assertEquals("phuartv", model.query()); + Assertions.assertEquals(2146264945, model.binSize()); + Assertions.assertEquals(1848545940, model.binDelay()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-14T09:14:30Z"), model.binStartTime()); Assertions.assertEquals(TimeSelectorEnum.TIME_GENERATED, model.timeSelector()); - Assertions.assertEquals("ubwefqs", model.destinationTable()); + Assertions.assertEquals("mnahmnxh", model.destinationTable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RuleDefinition model = new RuleDefinition().withQuery("hahzvechndbnwi") - .withBinSize(1717475306) - .withBinDelay(36238226) - .withBinStartTime(OffsetDateTime.parse("2021-06-22T19:10:38Z")) + RuleDefinition model = new RuleDefinition().withQuery("phuartv") + .withBinSize(2146264945) + .withBinDelay(1848545940) + .withBinStartTime(OffsetDateTime.parse("2021-04-14T09:14:30Z")) .withTimeSelector(TimeSelectorEnum.TIME_GENERATED) - .withDestinationTable("ubwefqs"); + .withDestinationTable("mnahmnxh"); model = BinaryData.fromObject(model).toObject(RuleDefinition.class); - Assertions.assertEquals("hahzvechndbnwi", model.query()); - Assertions.assertEquals(1717475306, model.binSize()); - Assertions.assertEquals(36238226, model.binDelay()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T19:10:38Z"), model.binStartTime()); + Assertions.assertEquals("phuartv", model.query()); + Assertions.assertEquals(2146264945, model.binSize()); + Assertions.assertEquals(1848545940, model.binDelay()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-14T09:14:30Z"), model.binStartTime()); Assertions.assertEquals(TimeSelectorEnum.TIME_GENERATED, model.timeSelector()); - Assertions.assertEquals("ubwefqs", model.destinationTable()); + Assertions.assertEquals("mnahmnxh", model.destinationTable()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchInnerTests.java index 5712414c503d..071b88ef5a1d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchInnerTests.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.generated; @@ -14,38 +14,38 @@ public final class SavedSearchInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SavedSearchInner model = BinaryData.fromString( - "{\"etag\":\"mv\",\"properties\":{\"category\":\"ekg\",\"displayName\":\"wozuhkf\",\"query\":\"bsjyofdx\",\"functionAlias\":\"us\",\"functionParameters\":\"touwaboekqv\",\"version\":2699583635820054770,\"tags\":[{\"name\":\"vbxwyjsflhh\",\"value\":\"aalnjixi\"}]},\"id\":\"xyawj\",\"name\":\"yaqcslyjpkiidz\",\"type\":\"exznelixhnr\"}") + "{\"properties\":{\"category\":\"amrsreuzv\",\"displayName\":\"urisjnhnytxifqj\",\"query\":\"gxmrhublwp\",\"functionAlias\":\"sutrgjup\",\"functionParameters\":\"utpwoqhihejqgw\",\"version\":4031354256714886930,\"tags\":[{\"name\":\"tcypsxjvfoim\",\"value\":\"kslircizjxvydfc\"}]},\"etag\":\"cvlhv\",\"id\":\"dyftumrtwna\",\"name\":\"jslb\",\"type\":\"wkojgcyztsfmzn\"}") .toObject(SavedSearchInner.class); - Assertions.assertEquals("mv", model.etag()); - Assertions.assertEquals("ekg", model.category()); - Assertions.assertEquals("wozuhkf", model.displayName()); - Assertions.assertEquals("bsjyofdx", model.query()); - Assertions.assertEquals("us", model.functionAlias()); - Assertions.assertEquals("touwaboekqv", model.functionParameters()); - Assertions.assertEquals(2699583635820054770L, model.version()); - Assertions.assertEquals("vbxwyjsflhh", model.tags().get(0).name()); - Assertions.assertEquals("aalnjixi", model.tags().get(0).value()); + Assertions.assertEquals("cvlhv", model.etag()); + Assertions.assertEquals("amrsreuzv", model.category()); + Assertions.assertEquals("urisjnhnytxifqj", model.displayName()); + Assertions.assertEquals("gxmrhublwp", model.query()); + Assertions.assertEquals("sutrgjup", model.functionAlias()); + Assertions.assertEquals("utpwoqhihejqgw", model.functionParameters()); + Assertions.assertEquals(4031354256714886930L, model.version()); + Assertions.assertEquals("tcypsxjvfoim", model.tags().get(0).name()); + Assertions.assertEquals("kslircizjxvydfc", model.tags().get(0).value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SavedSearchInner model = new SavedSearchInner().withEtag("mv") - .withCategory("ekg") - .withDisplayName("wozuhkf") - .withQuery("bsjyofdx") - .withFunctionAlias("us") - .withFunctionParameters("touwaboekqv") - .withVersion(2699583635820054770L) - .withTags(Arrays.asList(new Tag().withName("vbxwyjsflhh").withValue("aalnjixi"))); + SavedSearchInner model = new SavedSearchInner().withEtag("cvlhv") + .withCategory("amrsreuzv") + .withDisplayName("urisjnhnytxifqj") + .withQuery("gxmrhublwp") + .withFunctionAlias("sutrgjup") + .withFunctionParameters("utpwoqhihejqgw") + .withVersion(4031354256714886930L) + .withTags(Arrays.asList(new Tag().withName("tcypsxjvfoim").withValue("kslircizjxvydfc"))); model = BinaryData.fromObject(model).toObject(SavedSearchInner.class); - Assertions.assertEquals("mv", model.etag()); - Assertions.assertEquals("ekg", model.category()); - Assertions.assertEquals("wozuhkf", model.displayName()); - Assertions.assertEquals("bsjyofdx", model.query()); - Assertions.assertEquals("us", model.functionAlias()); - Assertions.assertEquals("touwaboekqv", model.functionParameters()); - Assertions.assertEquals(2699583635820054770L, model.version()); - Assertions.assertEquals("vbxwyjsflhh", model.tags().get(0).name()); - Assertions.assertEquals("aalnjixi", model.tags().get(0).value()); + Assertions.assertEquals("cvlhv", model.etag()); + Assertions.assertEquals("amrsreuzv", model.category()); + Assertions.assertEquals("urisjnhnytxifqj", model.displayName()); + Assertions.assertEquals("gxmrhublwp", model.query()); + Assertions.assertEquals("sutrgjup", model.functionAlias()); + Assertions.assertEquals("utpwoqhihejqgw", model.functionParameters()); + Assertions.assertEquals(4031354256714886930L, model.version()); + Assertions.assertEquals("tcypsxjvfoim", model.tags().get(0).name()); + Assertions.assertEquals("kslircizjxvydfc", model.tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchPropertiesTests.java index 133048ecba43..c8fdb1d027b1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchPropertiesTests.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.generated; @@ -14,36 +14,36 @@ public final class SavedSearchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SavedSearchProperties model = BinaryData.fromString( - "{\"category\":\"tfolhbnx\",\"displayName\":\"nalaulppg\",\"query\":\"dtpnapnyiropuhp\",\"functionAlias\":\"vpgylgqgitxmed\",\"functionParameters\":\"c\",\"version\":6530746203139727560,\"tags\":[{\"name\":\"wncwzzhxgktrmg\",\"value\":\"cnapkteoell\"},{\"name\":\"pt\",\"value\":\"d\"},{\"name\":\"gpfqbuace\",\"value\":\"pzfqrhhuaoppp\"}]}") + "{\"category\":\"aeqphchqnr\",\"displayName\":\"rpxeh\",\"query\":\"wrykqgai\",\"functionAlias\":\"viklb\",\"functionParameters\":\"vkhbejdznx\",\"version\":9195569848009574946,\"tags\":[{\"name\":\"njivolvtnovq\",\"value\":\"zgemjdftuljlt\"},{\"name\":\"ucea\",\"value\":\"tmczuomejwcwwqi\"}]}") .toObject(SavedSearchProperties.class); - Assertions.assertEquals("tfolhbnx", model.category()); - Assertions.assertEquals("nalaulppg", model.displayName()); - Assertions.assertEquals("dtpnapnyiropuhp", model.query()); - Assertions.assertEquals("vpgylgqgitxmed", model.functionAlias()); - Assertions.assertEquals("c", model.functionParameters()); - Assertions.assertEquals(6530746203139727560L, model.version()); - Assertions.assertEquals("wncwzzhxgktrmg", model.tags().get(0).name()); - Assertions.assertEquals("cnapkteoell", model.tags().get(0).value()); + Assertions.assertEquals("aeqphchqnr", model.category()); + Assertions.assertEquals("rpxeh", model.displayName()); + Assertions.assertEquals("wrykqgai", model.query()); + Assertions.assertEquals("viklb", model.functionAlias()); + Assertions.assertEquals("vkhbejdznx", model.functionParameters()); + Assertions.assertEquals(9195569848009574946L, model.version()); + Assertions.assertEquals("njivolvtnovq", model.tags().get(0).name()); + Assertions.assertEquals("zgemjdftuljlt", model.tags().get(0).value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SavedSearchProperties model = new SavedSearchProperties().withCategory("tfolhbnx") - .withDisplayName("nalaulppg") - .withQuery("dtpnapnyiropuhp") - .withFunctionAlias("vpgylgqgitxmed") - .withFunctionParameters("c") - .withVersion(6530746203139727560L) - .withTags(Arrays.asList(new Tag().withName("wncwzzhxgktrmg").withValue("cnapkteoell"), - new Tag().withName("pt").withValue("d"), new Tag().withName("gpfqbuace").withValue("pzfqrhhuaoppp"))); + SavedSearchProperties model = new SavedSearchProperties().withCategory("aeqphchqnr") + .withDisplayName("rpxeh") + .withQuery("wrykqgai") + .withFunctionAlias("viklb") + .withFunctionParameters("vkhbejdznx") + .withVersion(9195569848009574946L) + .withTags(Arrays.asList(new Tag().withName("njivolvtnovq").withValue("zgemjdftuljlt"), + new Tag().withName("ucea").withValue("tmczuomejwcwwqi"))); model = BinaryData.fromObject(model).toObject(SavedSearchProperties.class); - Assertions.assertEquals("tfolhbnx", model.category()); - Assertions.assertEquals("nalaulppg", model.displayName()); - Assertions.assertEquals("dtpnapnyiropuhp", model.query()); - Assertions.assertEquals("vpgylgqgitxmed", model.functionAlias()); - Assertions.assertEquals("c", model.functionParameters()); - Assertions.assertEquals(6530746203139727560L, model.version()); - Assertions.assertEquals("wncwzzhxgktrmg", model.tags().get(0).name()); - Assertions.assertEquals("cnapkteoell", model.tags().get(0).value()); + Assertions.assertEquals("aeqphchqnr", model.category()); + Assertions.assertEquals("rpxeh", model.displayName()); + Assertions.assertEquals("wrykqgai", model.query()); + Assertions.assertEquals("viklb", model.functionAlias()); + Assertions.assertEquals("vkhbejdznx", model.functionParameters()); + Assertions.assertEquals(9195569848009574946L, model.version()); + Assertions.assertEquals("njivolvtnovq", model.tags().get(0).name()); + Assertions.assertEquals("zgemjdftuljlt", model.tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateWithResponseMockTests.java index 1a82fbfd7007..d746c13f3d2d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesCreateOrUpdateWithResponseMockTests.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.generated; @@ -23,7 +23,7 @@ public final class SavedSearchesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"etag\":\"nynkbwet\",\"properties\":{\"category\":\"juhpsprkzyau\",\"displayName\":\"ia\",\"query\":\"cxnafbwqrooh\",\"functionAlias\":\"ovmaonurjtum\",\"functionParameters\":\"ihpvecmslclblyj\",\"version\":1273828074911332298,\"tags\":[{\"name\":\"uscv\",\"value\":\"f\"},{\"name\":\"igctmgxuupbezq\",\"value\":\"cydrtceukdqkk\"}]},\"id\":\"ihztgeqmgqzgwldo\",\"name\":\"chillcecf\",\"type\":\"huwaoaguhic\"}"; + = "{\"properties\":{\"category\":\"nu\",\"displayName\":\"tggmuwdchozfnkfe\",\"query\":\"lv\",\"functionAlias\":\"oakizvoai\",\"functionParameters\":\"a\",\"version\":5916569228093212039,\"tags\":[{\"name\":\"guyxlyk\",\"value\":\"phvxz\"},{\"name\":\"wxh\",\"value\":\"pejtl\"},{\"name\":\"exaonwivkcq\",\"value\":\"rxhxkn\"}]},\"etag\":\"crmmkyupijuby\",\"id\":\"fkak\",\"name\":\"qfrkemyildudxj\",\"type\":\"sco\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,29 +33,29 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SavedSearch response = manager.savedSearches() - .define("uzivensrpmeyyvp") - .withExistingWorkspace("lpdwwexymzvlazi", "bhpwvqsgnyy") - .withCategory("jp") - .withDisplayName("gsksrfhf") - .withQuery("olmk") - .withTags(Arrays.asList(new Tag().withName("uiaclkiexhajlfn").withValue("hiqfyuttdiy"), - new Tag().withName("b").withValue("vnwsw"), - new Tag().withName("txkyctwwgzwxjlm").withValue("cvogygzyvne"), - new Tag().withName("zaifghtmoqqtlff").withValue("zbkr"))) - .withEtag("atlb") - .withFunctionAlias("nxwcdommpv") - .withFunctionParameters("awz") - .withVersion(371412437274292802L) + .define("iyoypsuhbrnnhj") + .withExistingWorkspace("rsxkr", "lbjazejww") + .withCategory("sqwjhqkbiwetpozy") + .withDisplayName("yqiq") + .withQuery("hgf") + .withTags(Arrays.asList(new Tag().withName("ziu").withValue("fbzkk"), + new Tag().withName("tnhqsycl").withValue("selpkpbaf"), + new Tag().withName("afhlbyl").withValue("cbevxrhyzdfw"), + new Tag().withName("sofpltd").withValue("mairrh"))) + .withEtag("fnrac") + .withFunctionAlias("tzlexbs") + .withFunctionParameters("e") + .withVersion(1155806277619986871L) .create(); - Assertions.assertEquals("nynkbwet", response.etag()); - Assertions.assertEquals("juhpsprkzyau", response.category()); - Assertions.assertEquals("ia", response.displayName()); - Assertions.assertEquals("cxnafbwqrooh", response.query()); - Assertions.assertEquals("ovmaonurjtum", response.functionAlias()); - Assertions.assertEquals("ihpvecmslclblyj", response.functionParameters()); - Assertions.assertEquals(1273828074911332298L, response.version()); - Assertions.assertEquals("uscv", response.tags().get(0).name()); - Assertions.assertEquals("f", response.tags().get(0).value()); + Assertions.assertEquals("crmmkyupijuby", response.etag()); + Assertions.assertEquals("nu", response.category()); + Assertions.assertEquals("tggmuwdchozfnkfe", response.displayName()); + Assertions.assertEquals("lv", response.query()); + Assertions.assertEquals("oakizvoai", response.functionAlias()); + Assertions.assertEquals("a", response.functionParameters()); + Assertions.assertEquals(5916569228093212039L, response.version()); + Assertions.assertEquals("guyxlyk", response.tags().get(0).name()); + Assertions.assertEquals("phvxz", response.tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteWithResponseMockTests.java index 4f5a5307d24f..2a99ebbcf137 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesDeleteWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.savedSearches() - .deleteWithResponse("tzqdd", "jwfljhznamtua", "mzwcjjncqt", com.azure.core.util.Context.NONE); + .deleteWithResponse("tkschgcgqyhl", "seyqrhvyeldotjv", "kwiswskukjtas", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetWithResponseMockTests.java index 852804f280c1..16bdbf937368 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesGetWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class SavedSearchesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"etag\":\"uvbxngr\",\"properties\":{\"category\":\"bwggahtt\",\"displayName\":\"lswva\",\"query\":\"qfutlxjo\",\"functionAlias\":\"asunwqrjzfrgq\",\"functionParameters\":\"ohcmbu\",\"version\":765942631551785851,\"tags\":[{\"name\":\"hmbpyryxamebly\",\"value\":\"yvk\"},{\"name\":\"kmrocxne\",\"value\":\"v\"}]},\"id\":\"mtodl\",\"name\":\"pyapucygvoav\",\"type\":\"unssxlghieegjl\"}"; + = "{\"properties\":{\"category\":\"cz\",\"displayName\":\"vodrrslblxydkxr\",\"query\":\"vvbxiwkgfbqljnq\",\"functionAlias\":\"ychocokulehu\",\"functionParameters\":\"lrqff\",\"version\":2398233648986691088,\"tags\":[{\"name\":\"kphyjdxrav\",\"value\":\"uqd\"},{\"name\":\"rxmrgchbapx\",\"value\":\"iyfjjkbajbuscg\"},{\"name\":\"uusioycblev\",\"value\":\"mclujyxkyxlzgs\"}]},\"etag\":\"kzzltafhbzf\",\"id\":\"vwmbjlzqsczpg\",\"name\":\"dwnapf\",\"type\":\"qwowftptnuw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,17 +30,18 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - SavedSearch response - = manager.savedSearches().getWithResponse("z", "izvg", "gat", com.azure.core.util.Context.NONE).getValue(); + SavedSearch response = manager.savedSearches() + .getWithResponse("lghwzhome", "jjstliuhqawmo", "ia", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("uvbxngr", response.etag()); - Assertions.assertEquals("bwggahtt", response.category()); - Assertions.assertEquals("lswva", response.displayName()); - Assertions.assertEquals("qfutlxjo", response.query()); - Assertions.assertEquals("asunwqrjzfrgq", response.functionAlias()); - Assertions.assertEquals("ohcmbu", response.functionParameters()); - Assertions.assertEquals(765942631551785851L, response.version()); - Assertions.assertEquals("hmbpyryxamebly", response.tags().get(0).name()); - Assertions.assertEquals("yvk", response.tags().get(0).value()); + Assertions.assertEquals("kzzltafhbzf", response.etag()); + Assertions.assertEquals("cz", response.category()); + Assertions.assertEquals("vodrrslblxydkxr", response.displayName()); + Assertions.assertEquals("vvbxiwkgfbqljnq", response.query()); + Assertions.assertEquals("ychocokulehu", response.functionAlias()); + Assertions.assertEquals("lrqff", response.functionParameters()); + Assertions.assertEquals(2398233648986691088L, response.version()); + Assertions.assertEquals("kphyjdxrav", response.tags().get(0).name()); + Assertions.assertEquals("uqd", response.tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceWithResponseMockTests.java index b5d812ed4b24..35aa83e62d62 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListByWorkspaceWithResponseMockTests.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.generated; @@ -21,7 +21,7 @@ public final class SavedSearchesListByWorkspaceWithResponseMockTests { @Test public void testListByWorkspaceWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"i\",\"properties\":{\"category\":\"irpiwrqofulopmj\",\"displayName\":\"lexwhcbjp\",\"query\":\"bke\",\"functionAlias\":\"uuuercta\",\"functionParameters\":\"yintqpbrlcy\",\"version\":5915975308764094349,\"tags\":[{\"name\":\"go\",\"value\":\"xyf\"}]},\"id\":\"rucvcrrpcjttbs\",\"name\":\"vjeaqnrmvvfkoxml\",\"type\":\"hktuidvrma\"}]}"; + = "{\"value\":[{\"properties\":{\"category\":\"mb\",\"displayName\":\"gtywatmqaqkue\",\"query\":\"tgroesh\",\"functionAlias\":\"gzcbyf\",\"functionParameters\":\"kfaoytehq\",\"version\":6597653080705813074,\"tags\":[{\"name\":\"qm\",\"value\":\"dwckygroe\"},{\"name\":\"n\",\"value\":\"dljdjuskb\"},{\"name\":\"req\",\"value\":\"n\"},{\"name\":\"ceysfaqeg\",\"value\":\"lwryshwddkvbxgkq\"}]},\"etag\":\"ybwptda\",\"id\":\"rvv\",\"name\":\"f\",\"type\":\"tymtpoiwenazer\"},{\"properties\":{\"category\":\"hzr\",\"displayName\":\"qalsxkd\",\"query\":\"wqapfgsdp\",\"functionAlias\":\"essmzhhku\",\"functionParameters\":\"pldqqct\",\"version\":1663891086263023910,\"tags\":[{\"name\":\"l\",\"value\":\"tjqvqyvweht\"},{\"name\":\"emxhzzy\",\"value\":\"ev\"}]},\"etag\":\"xivzrrry\",\"id\":\"imipskdyzatvfuz\",\"name\":\"aftjvvruxwigsy\",\"type\":\"ip\"},{\"properties\":{\"category\":\"dsmjtgr\",\"displayName\":\"gdgkki\",\"query\":\"eplkcsm\",\"functionAlias\":\"hwtbbaedorvvm\",\"functionParameters\":\"loyg\",\"version\":4180963914269164805,\"tags\":[{\"name\":\"gxdgdhpab\",\"value\":\"dexjddvjs\"},{\"name\":\"qwotmmwllcol\",\"value\":\"rsxaptefh\"},{\"name\":\"xcgjokjljnhvlq\",\"value\":\"bekpeeksnbksdqhj\"}]},\"etag\":\"klxesl\",\"id\":\"hustcpoqmavnwqjw\",\"name\":\"o\",\"type\":\"nlejjjkxybwf\"},{\"properties\":{\"category\":\"bkjbz\",\"displayName\":\"ensvkzykjtj\",\"query\":\"nsxfwu\",\"functionAlias\":\"cdp\",\"functionParameters\":\"pn\",\"version\":6778968687143087952,\"tags\":[{\"name\":\"bpkuwxeoio\",\"value\":\"fiz\"},{\"name\":\"av\",\"value\":\"jzwfb\"}]},\"etag\":\"aykmmf\",\"id\":\"bfw\",\"name\":\"rzx\",\"type\":\"dew\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testListByWorkspaceWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SavedSearchesListResult response = manager.savedSearches() - .listByWorkspaceWithResponse("vvpa", "eksgbuxantuygd", com.azure.core.util.Context.NONE) + .listByWorkspaceWithResponse("vwisp", "xkdtxfkndlqvtwkn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("i", response.value().get(0).etag()); - Assertions.assertEquals("irpiwrqofulopmj", response.value().get(0).category()); - Assertions.assertEquals("lexwhcbjp", response.value().get(0).displayName()); - Assertions.assertEquals("bke", response.value().get(0).query()); - Assertions.assertEquals("uuuercta", response.value().get(0).functionAlias()); - Assertions.assertEquals("yintqpbrlcy", response.value().get(0).functionParameters()); - Assertions.assertEquals(5915975308764094349L, response.value().get(0).version()); - Assertions.assertEquals("go", response.value().get(0).tags().get(0).name()); - Assertions.assertEquals("xyf", response.value().get(0).tags().get(0).value()); + Assertions.assertEquals("ybwptda", response.value().get(0).etag()); + Assertions.assertEquals("mb", response.value().get(0).category()); + Assertions.assertEquals("gtywatmqaqkue", response.value().get(0).displayName()); + Assertions.assertEquals("tgroesh", response.value().get(0).query()); + Assertions.assertEquals("gzcbyf", response.value().get(0).functionAlias()); + Assertions.assertEquals("kfaoytehq", response.value().get(0).functionParameters()); + Assertions.assertEquals(6597653080705813074L, response.value().get(0).version()); + Assertions.assertEquals("qm", response.value().get(0).tags().get(0).name()); + Assertions.assertEquals("dwckygroe", response.value().get(0).tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListResultInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListResultInnerTests.java index c21dae16b4ed..922106814fad 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListResultInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SavedSearchesListResultInnerTests.java @@ -1,63 +1,27 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner; import com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner; -import com.azure.resourcemanager.loganalytics.models.Tag; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class SavedSearchesListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SavedSearchesListResultInner model = BinaryData.fromString( - "{\"value\":[{\"etag\":\"xcto\",\"properties\":{\"category\":\"gbkdmoizpos\",\"displayName\":\"mgrcfbu\",\"query\":\"rmfqjhhkxbpvj\",\"functionAlias\":\"jhxxjyn\",\"functionParameters\":\"divkrt\",\"version\":4478371279557844955,\"tags\":[{\"name\":\"vszjfauvjfdxxi\",\"value\":\"e\"},{\"name\":\"vtcqaqtdo\",\"value\":\"mcbxvwvxysl\"}]},\"id\":\"bhsfxob\",\"name\":\"ytkblmpew\",\"type\":\"wfbkrvrns\"},{\"etag\":\"hqjohxcrsbfova\",\"properties\":{\"category\":\"rruvwbhsq\",\"displayName\":\"sub\",\"query\":\"gjb\",\"functionAlias\":\"xb\",\"functionParameters\":\"bsrfbj\",\"version\":3597217556472938019,\"tags\":[{\"name\":\"otftpvjzbexilz\",\"value\":\"nfqqnvwp\"},{\"name\":\"qtaruoujmkcjhwq\",\"value\":\"tjrybnwjewgdr\"}]},\"id\":\"ervnaenqpehi\",\"name\":\"doy\",\"type\":\"mifthnzdnd\"}]}") + "{\"value\":[{\"properties\":{\"category\":\"cfzq\",\"displayName\":\"jyxgtczh\",\"query\":\"ydbsd\",\"functionAlias\":\"m\",\"functionParameters\":\"maehvbbxurip\",\"version\":4472359779118204486,\"tags\":[{\"name\":\"baxk\",\"value\":\"xywr\"},{\"name\":\"kpyklyhp\",\"value\":\"uodpv\"}]},\"etag\":\"udlgzibthostgkts\",\"id\":\"dxeclzedqbcvh\",\"name\":\"lhpl\",\"type\":\"dqkdlwwqfbu\"},{\"properties\":{\"category\":\"lkxt\",\"displayName\":\"qjfsmlmbtxhw\",\"query\":\"fwsrtawcoezbrhu\",\"functionAlias\":\"kh\",\"functionParameters\":\"ygo\",\"version\":1410009075037068900,\"tags\":[{\"name\":\"qjbvleorfmlu\",\"value\":\"qtqzfavyv\"},{\"name\":\"qqybarye\",\"value\":\"ayjkqa\"}]},\"etag\":\"gzslesjcbhernnti\",\"id\":\"djc\",\"name\":\"bquwrbehw\",\"type\":\"gohbuffkmrq\"},{\"properties\":{\"category\":\"mvvhmxtdrjfuta\",\"displayName\":\"oe\",\"query\":\"jvewzcjznmwcp\",\"functionAlias\":\"uaadraufactkahzo\",\"functionParameters\":\"jjziuxxpsh\",\"version\":844041699983426233,\"tags\":[{\"name\":\"fgslqubkwdl\",\"value\":\"nrdsutujbazpjuoh\"}]},\"etag\":\"nyfln\",\"id\":\"wmd\",\"name\":\"vwpklvxwmygdxp\",\"type\":\"pqchiszep\"}]}") .toObject(SavedSearchesListResultInner.class); - Assertions.assertEquals("xcto", model.value().get(0).etag()); - Assertions.assertEquals("gbkdmoizpos", model.value().get(0).category()); - Assertions.assertEquals("mgrcfbu", model.value().get(0).displayName()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.value().get(0).query()); - Assertions.assertEquals("jhxxjyn", model.value().get(0).functionAlias()); - Assertions.assertEquals("divkrt", model.value().get(0).functionParameters()); - Assertions.assertEquals(4478371279557844955L, model.value().get(0).version()); - Assertions.assertEquals("vszjfauvjfdxxi", model.value().get(0).tags().get(0).name()); - Assertions.assertEquals("e", model.value().get(0).tags().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SavedSearchesListResultInner model = new SavedSearchesListResultInner().withValue(Arrays.asList( - new SavedSearchInner().withEtag("xcto") - .withCategory("gbkdmoizpos") - .withDisplayName("mgrcfbu") - .withQuery("rmfqjhhkxbpvj") - .withFunctionAlias("jhxxjyn") - .withFunctionParameters("divkrt") - .withVersion(4478371279557844955L) - .withTags(Arrays.asList(new Tag().withName("vszjfauvjfdxxi").withValue("e"), - new Tag().withName("vtcqaqtdo").withValue("mcbxvwvxysl"))), - new SavedSearchInner().withEtag("hqjohxcrsbfova") - .withCategory("rruvwbhsq") - .withDisplayName("sub") - .withQuery("gjb") - .withFunctionAlias("xb") - .withFunctionParameters("bsrfbj") - .withVersion(3597217556472938019L) - .withTags(Arrays.asList(new Tag().withName("otftpvjzbexilz").withValue("nfqqnvwp"), - new Tag().withName("qtaruoujmkcjhwq").withValue("tjrybnwjewgdr"))))); - model = BinaryData.fromObject(model).toObject(SavedSearchesListResultInner.class); - Assertions.assertEquals("xcto", model.value().get(0).etag()); - Assertions.assertEquals("gbkdmoizpos", model.value().get(0).category()); - Assertions.assertEquals("mgrcfbu", model.value().get(0).displayName()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.value().get(0).query()); - Assertions.assertEquals("jhxxjyn", model.value().get(0).functionAlias()); - Assertions.assertEquals("divkrt", model.value().get(0).functionParameters()); - Assertions.assertEquals(4478371279557844955L, model.value().get(0).version()); - Assertions.assertEquals("vszjfauvjfdxxi", model.value().get(0).tags().get(0).name()); - Assertions.assertEquals("e", model.value().get(0).tags().get(0).value()); + Assertions.assertEquals("udlgzibthostgkts", model.value().get(0).etag()); + Assertions.assertEquals("cfzq", model.value().get(0).category()); + Assertions.assertEquals("jyxgtczh", model.value().get(0).displayName()); + Assertions.assertEquals("ydbsd", model.value().get(0).query()); + Assertions.assertEquals("m", model.value().get(0).functionAlias()); + Assertions.assertEquals("maehvbbxurip", model.value().get(0).functionParameters()); + Assertions.assertEquals(4472359779118204486L, model.value().get(0).version()); + Assertions.assertEquals("baxk", model.value().get(0).tags().get(0).name()); + Assertions.assertEquals("xywr", model.value().get(0).tags().get(0).value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemaTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemaTests.java index f0a4da19d385..4d35f54ad356 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemaTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemaTests.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.generated; @@ -16,42 +16,47 @@ public final class SchemaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Schema model = BinaryData.fromString( - "{\"name\":\"xnavvwxq\",\"displayName\":\"y\",\"description\":\"nyowxwlmdjrkvfg\",\"columns\":[{\"name\":\"p\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"izsjqlhkrr\",\"description\":\"deibqip\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"ndzwmkrefa\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"kqnyh\",\"description\":\"ij\",\"isDefaultDisplay\":true,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"jabibsystawf\",\"type\":\"dynamic\",\"dataTypeHint\":\"uri\",\"displayName\":\"vp\",\"description\":\"xbkzbzkdvncj\",\"isDefaultDisplay\":true,\"isHidden\":true}],\"categories\":[\"kakmokzh\",\"jk\",\"ffhmouwqlgzr\",\"zeeyebi\"],\"labels\":[\"ayuhqlbjbsy\",\"bqwrvtldgm\",\"pgvmpipaslthaqfx\"],\"source\":\"customer\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"srezp\",\"rhneuyowq\",\"d\",\"ytisibir\"]}") + "{\"name\":\"hya\",\"displayName\":\"vjlboxqvk\",\"description\":\"mxho\",\"columns\":[{\"name\":\"hdwdi\",\"type\":\"boolean\",\"dataTypeHint\":\"guid\",\"displayName\":\"aauzzptjazysd\",\"description\":\"ezwwv\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"vfonkphhqyikvyl\",\"type\":\"dateTime\",\"dataTypeHint\":\"armPath\",\"displayName\":\"uwmncs\",\"description\":\"ijf\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"krsgsgb\",\"type\":\"guid\",\"dataTypeHint\":\"ip\",\"displayName\":\"njdgkynscliq\",\"description\":\"vhxnk\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"ppnvdxz\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"bbc\",\"description\":\"qagt\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"kqo\",\"type\":\"guid\",\"dataTypeHint\":\"ip\",\"displayName\":\"trdcnifmzzs\",\"description\":\"m\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"m\",\"rafwgckhocxvdf\"],\"labels\":[\"afqr\",\"udaspavehh\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"ud\",\"cxgkmoyxcdyui\"]}") .toObject(Schema.class); - Assertions.assertEquals("xnavvwxq", model.name()); - Assertions.assertEquals("y", model.displayName()); - Assertions.assertEquals("nyowxwlmdjrkvfg", model.description()); - Assertions.assertEquals("p", model.columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.REAL, model.columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.ARM_PATH, model.columns().get(0).dataTypeHint()); - Assertions.assertEquals("izsjqlhkrr", model.columns().get(0).displayName()); - Assertions.assertEquals("deibqip", model.columns().get(0).description()); + Assertions.assertEquals("hya", model.name()); + Assertions.assertEquals("vjlboxqvk", model.displayName()); + Assertions.assertEquals("mxho", model.description()); + Assertions.assertEquals("hdwdi", model.columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.BOOLEAN, model.columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.columns().get(0).dataTypeHint()); + Assertions.assertEquals("aauzzptjazysd", model.columns().get(0).displayName()); + Assertions.assertEquals("ezwwv", model.columns().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Schema model = new Schema().withName("xnavvwxq") - .withDisplayName("y") - .withDescription("nyowxwlmdjrkvfg") + Schema model = new Schema().withName("hya") + .withDisplayName("vjlboxqvk") + .withDescription("mxho") .withColumns(Arrays.asList( - new Column().withName("p") - .withType(ColumnTypeEnum.REAL) + new Column().withName("hdwdi") + .withType(ColumnTypeEnum.BOOLEAN) + .withDataTypeHint(ColumnDataTypeHintEnum.GUID) + .withDisplayName("aauzzptjazysd") + .withDescription("ezwwv"), + new Column().withName("vfonkphhqyikvyl") + .withType(ColumnTypeEnum.DATE_TIME) .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) - .withDisplayName("izsjqlhkrr") - .withDescription("deibqip"), - new Column().withName("ndzwmkrefa") + .withDisplayName("uwmncs") + .withDescription("ijf"), + new Column().withName("krsgsgb") .withType(ColumnTypeEnum.GUID) - .withDataTypeHint(ColumnDataTypeHintEnum.URI) - .withDisplayName("kqnyh") - .withDescription("ij"))); + .withDataTypeHint(ColumnDataTypeHintEnum.IP) + .withDisplayName("njdgkynscliq") + .withDescription("vhxnk"))); model = BinaryData.fromObject(model).toObject(Schema.class); - Assertions.assertEquals("xnavvwxq", model.name()); - Assertions.assertEquals("y", model.displayName()); - Assertions.assertEquals("nyowxwlmdjrkvfg", model.description()); - Assertions.assertEquals("p", model.columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.REAL, model.columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.ARM_PATH, model.columns().get(0).dataTypeHint()); - Assertions.assertEquals("izsjqlhkrr", model.columns().get(0).displayName()); - Assertions.assertEquals("deibqip", model.columns().get(0).description()); + Assertions.assertEquals("hya", model.name()); + Assertions.assertEquals("vjlboxqvk", model.displayName()); + Assertions.assertEquals("mxho", model.description()); + Assertions.assertEquals("hdwdi", model.columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.BOOLEAN, model.columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.columns().get(0).dataTypeHint()); + Assertions.assertEquals("aauzzptjazysd", model.columns().get(0).displayName()); + Assertions.assertEquals("ezwwv", model.columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java index f768497bb26e..5f73cda1ac63 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.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.generated; @@ -22,7 +22,7 @@ public final class SchemasGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"metadata\":{\"requestId\":\"hrweftkw\",\"resultType\":\"jp\",\"total\":2377130180811265800,\"top\":3632648174501059306,\"id\":\"pwamcxtczhupeuk\",\"coreSummaries\":[{\"status\":\"uyyes\",\"numberOfDocuments\":5177486878531490465},{\"status\":\"fbocyvhh\",\"numberOfDocuments\":7086241339877476619},{\"status\":\"ywikd\",\"numberOfDocuments\":1557781167596850119},{\"status\":\"kuflgbh\",\"numberOfDocuments\":6099044169152299925}],\"status\":\"cdixmx\",\"startTime\":\"2021-07-21T10:11:29Z\",\"lastUpdated\":\"2021-10-28T11:16:26Z\",\"eTag\":\"jqgdkfnozoeo\",\"sort\":[{\"name\":\"h\",\"order\":\"asc\"},{\"name\":\"wbmqjchntas\",\"order\":\"desc\"},{\"name\":\"xbulpzealbmqkyo\",\"order\":\"asc\"}],\"requestTime\":6096246762150938167,\"aggregatedValueField\":\"btsuahxs\",\"aggregatedGroupingFields\":\"jcmmzrrscub\",\"sum\":1482066446768394569,\"max\":9101534338635329443,\"schema\":{\"name\":\"wodiffjxc\",\"version\":1719649030}},\"value\":[{\"name\":\"bwi\",\"displayName\":\"jogjonmc\",\"type\":\"foyzbamwineof\",\"indexed\":false,\"stored\":false,\"facet\":true,\"ownerType\":[\"oldtvevboclzhz\"]},{\"name\":\"n\",\"displayName\":\"xgvttxp\",\"type\":\"upzaamrdixtre\",\"indexed\":false,\"stored\":false,\"facet\":true,\"ownerType\":[\"skbruffgllukkut\",\"lxhrp\"]},{\"name\":\"vmblcouqe\",\"displayName\":\"hbcdsziry\",\"type\":\"ndo\",\"indexed\":true,\"stored\":false,\"facet\":false,\"ownerType\":[\"oormkfqlwxldyka\"]}]}"; + = "{\"metadata\":{\"requestId\":\"ygtvxbyjanepub\",\"resultType\":\"kxyqvgxiaodetv\",\"total\":5988576146086744297,\"top\":6208516863971347094,\"id\":\"sai\",\"coreSummaries\":[{\"status\":\"nosbz\",\"numberOfDocuments\":3925687631690687216}],\"status\":\"cvk\",\"startTime\":\"2021-08-20T06:08Z\",\"lastUpdated\":\"2021-09-09T01:10:09Z\",\"eTag\":\"lgjyyxpvels\",\"sort\":[{\"name\":\"zevxoqein\",\"order\":\"desc\"}],\"requestTime\":3843017627663831527,\"aggregatedValueField\":\"lzoblqwaafr\",\"aggregatedGroupingFields\":\"lhm\",\"sum\":1237200805001740489,\"max\":3551420284848246514,\"schema\":{\"name\":\"jrqpjiyrqjcrga\",\"version\":1484991657}},\"value\":[{\"name\":\"fkb\",\"displayName\":\"z\",\"type\":\"pdltbq\",\"indexed\":true,\"stored\":false,\"facet\":true,\"ownerType\":[\"xxsaetgz\"]},{\"name\":\"vpyigdaqq\",\"displayName\":\"zdcduwjoedxng\",\"type\":\"aifpaurwwgil\",\"indexed\":true,\"stored\":false,\"facet\":true,\"ownerType\":[\"dmkxwxdcvjwcy\",\"iakeciqc\",\"xrtuicds\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,35 +31,36 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - SearchGetSchemaResponse response - = manager.schemas().getWithResponse("llizs", "ac", com.azure.core.util.Context.NONE).getValue(); + SearchGetSchemaResponse response = manager.schemas() + .getWithResponse("oksqdt", "wlwxlboncqbazqic", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("hrweftkw", response.metadata().searchId()); - Assertions.assertEquals("jp", response.metadata().resultType()); - Assertions.assertEquals(2377130180811265800L, response.metadata().total()); - Assertions.assertEquals(3632648174501059306L, response.metadata().top()); - Assertions.assertEquals("pwamcxtczhupeuk", response.metadata().id()); - Assertions.assertEquals("uyyes", response.metadata().coreSummaries().get(0).status()); - Assertions.assertEquals(5177486878531490465L, response.metadata().coreSummaries().get(0).numberOfDocuments()); - Assertions.assertEquals("cdixmx", response.metadata().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T10:11:29Z"), response.metadata().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-28T11:16:26Z"), response.metadata().lastUpdated()); - Assertions.assertEquals("jqgdkfnozoeo", response.metadata().etag()); - Assertions.assertEquals("h", response.metadata().sort().get(0).name()); - Assertions.assertEquals(SearchSortEnum.ASC, response.metadata().sort().get(0).order()); - Assertions.assertEquals(6096246762150938167L, response.metadata().requestTime()); - Assertions.assertEquals("btsuahxs", response.metadata().aggregatedValueField()); - Assertions.assertEquals("jcmmzrrscub", response.metadata().aggregatedGroupingFields()); - Assertions.assertEquals(1482066446768394569L, response.metadata().sum()); - Assertions.assertEquals(9101534338635329443L, response.metadata().max()); - Assertions.assertEquals("wodiffjxc", response.metadata().schema().name()); - Assertions.assertEquals(1719649030, response.metadata().schema().version()); - Assertions.assertEquals("bwi", response.value().get(0).name()); - Assertions.assertEquals("jogjonmc", response.value().get(0).displayName()); - Assertions.assertEquals("foyzbamwineof", response.value().get(0).type()); - Assertions.assertFalse(response.value().get(0).indexed()); + Assertions.assertEquals("ygtvxbyjanepub", response.metadata().searchId()); + Assertions.assertEquals("kxyqvgxiaodetv", response.metadata().resultType()); + Assertions.assertEquals(5988576146086744297L, response.metadata().total()); + Assertions.assertEquals(6208516863971347094L, response.metadata().top()); + Assertions.assertEquals("sai", response.metadata().id()); + Assertions.assertEquals("nosbz", response.metadata().coreSummaries().get(0).status()); + Assertions.assertEquals(3925687631690687216L, response.metadata().coreSummaries().get(0).numberOfDocuments()); + Assertions.assertEquals("cvk", response.metadata().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-20T06:08Z"), response.metadata().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T01:10:09Z"), response.metadata().lastUpdated()); + Assertions.assertEquals("lgjyyxpvels", response.metadata().eTag()); + Assertions.assertEquals("zevxoqein", response.metadata().sort().get(0).name()); + Assertions.assertEquals(SearchSortEnum.DESC, response.metadata().sort().get(0).order()); + Assertions.assertEquals(3843017627663831527L, response.metadata().requestTime()); + Assertions.assertEquals("lzoblqwaafr", response.metadata().aggregatedValueField()); + Assertions.assertEquals("lhm", response.metadata().aggregatedGroupingFields()); + Assertions.assertEquals(1237200805001740489L, response.metadata().sum()); + Assertions.assertEquals(3551420284848246514L, response.metadata().max()); + Assertions.assertEquals("jrqpjiyrqjcrga", response.metadata().schema().name()); + Assertions.assertEquals(1484991657, response.metadata().schema().version()); + Assertions.assertEquals("fkb", response.value().get(0).name()); + Assertions.assertEquals("z", response.value().get(0).displayName()); + Assertions.assertEquals("pdltbq", response.value().get(0).type()); + Assertions.assertTrue(response.value().get(0).indexed()); Assertions.assertFalse(response.value().get(0).stored()); Assertions.assertTrue(response.value().get(0).facet()); - Assertions.assertEquals("oldtvevboclzhz", response.value().get(0).ownerType().get(0)); + Assertions.assertEquals("xxsaetgz", response.value().get(0).ownerType().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java index 6c61eb99fb6b..28b7651e83ef 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java @@ -1,132 +1,47 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner; -import com.azure.resourcemanager.loganalytics.models.CoreSummary; -import com.azure.resourcemanager.loganalytics.models.SearchMetadata; -import com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema; -import com.azure.resourcemanager.loganalytics.models.SearchSchemaValue; -import com.azure.resourcemanager.loganalytics.models.SearchSort; import com.azure.resourcemanager.loganalytics.models.SearchSortEnum; import java.time.OffsetDateTime; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class SearchGetSchemaResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SearchGetSchemaResponseInner model = BinaryData.fromString( - "{\"metadata\":{\"requestId\":\"nayqi\",\"resultType\":\"nduhavhqlkthum\",\"total\":8390013026245928421,\"top\":5649591766559477880,\"id\":\"duiertgcc\",\"coreSummaries\":[{\"status\":\"olpsslqlf\",\"numberOfDocuments\":5488709340385622129},{\"status\":\"bbglzpswiydmc\",\"numberOfDocuments\":2535246333551569384},{\"status\":\"dxssadbzm\",\"numberOfDocuments\":6861155578766594130}],\"status\":\"znud\",\"startTime\":\"2021-05-14T14:21:36Z\",\"lastUpdated\":\"2021-09-27T09:43:19Z\",\"eTag\":\"bncblylpstdbhhx\",\"sort\":[{\"name\":\"zucerscdntnev\",\"order\":\"asc\"},{\"name\":\"mygtdssls\",\"order\":\"desc\"},{\"name\":\"eriofzpyqs\",\"order\":\"asc\"},{\"name\":\"bnetshh\",\"order\":\"asc\"}],\"requestTime\":87133014421625826,\"aggregatedValueField\":\"vwiwubmwmbesld\",\"aggregatedGroupingFields\":\"wwtppj\",\"sum\":3431932886317561144,\"max\":5668149621351966733,\"schema\":{\"name\":\"onz\",\"version\":1813308851}},\"value\":[{\"name\":\"mkqzeqqkdltfzxmh\",\"displayName\":\"hgure\",\"type\":\"kwobdagxtibq\",\"indexed\":false,\"stored\":false,\"facet\":false,\"ownerType\":[\"kbogqxndlkzgx\",\"uriplbpodxunkb\",\"bxmubyynt\",\"lrb\"]},{\"name\":\"koievseo\",\"displayName\":\"q\",\"type\":\"ltmuwlauwzizx\",\"indexed\":true,\"stored\":true,\"facet\":false,\"ownerType\":[\"efuzmuvpbttd\",\"morppxebmnzbtbh\",\"pglkf\",\"ohdneuel\"]},{\"name\":\"hsd\",\"displayName\":\"t\",\"type\":\"fikdowwqu\",\"indexed\":false,\"stored\":false,\"facet\":false,\"ownerType\":[\"lvithhqzonosgg\",\"hcohfwdsjnk\"]}]}") + "{\"metadata\":{\"requestId\":\"hxudbxvodht\",\"resultType\":\"irudh\",\"total\":2550766474480013536,\"top\":7363399788561617337,\"id\":\"lpagzrcx\",\"coreSummaries\":[{\"status\":\"cfxwmdbox\",\"numberOfDocuments\":1563332735084443990},{\"status\":\"ft\",\"numberOfDocuments\":4577252961697762531},{\"status\":\"brjlnacgcckknhxk\",\"numberOfDocuments\":9128547594412210827}],\"status\":\"tnrzvuljra\",\"startTime\":\"2021-08-05T18:00:04Z\",\"lastUpdated\":\"2021-09-14T23:57:30Z\",\"eTag\":\"kqg\",\"sort\":[{\"name\":\"qnvb\",\"order\":\"desc\"}],\"requestTime\":370105828993790153,\"aggregatedValueField\":\"ulcdisdosf\",\"aggregatedGroupingFields\":\"jsvg\",\"sum\":4500706087685713413,\"max\":7074453295008720253,\"schema\":{\"name\":\"ytdc\",\"version\":513530726}},\"value\":[{\"name\":\"nfnw\",\"displayName\":\"tmvpdvjdhtt\",\"type\":\"efedxihchrphkm\",\"indexed\":true,\"stored\":true,\"facet\":false,\"ownerType\":[\"sdf\",\"pbgtgkylkdghrj\",\"uutlwxezwzhok\"]},{\"name\":\"wnhhtqlgehgppip\",\"displayName\":\"hpfeoajvgcxtxjc\",\"type\":\"eafidltugsresm\",\"indexed\":true,\"stored\":true,\"facet\":true,\"ownerType\":[\"iftxfkf\",\"egprhptil\",\"ucb\",\"qtgdqohmcwsl\"]},{\"name\":\"izetpw\",\"displayName\":\"a\",\"type\":\"libph\",\"indexed\":false,\"stored\":true,\"facet\":false,\"ownerType\":[\"aka\",\"ankjpdnjzh\",\"joylh\"]},{\"name\":\"muoyxprimr\",\"displayName\":\"pteecjme\",\"type\":\"ls\",\"indexed\":true,\"stored\":false,\"facet\":true,\"ownerType\":[\"wxdzaumweoohgu\",\"fuzboyjathwtzolb\"]}]}") .toObject(SearchGetSchemaResponseInner.class); - Assertions.assertEquals("nayqi", model.metadata().searchId()); - Assertions.assertEquals("nduhavhqlkthum", model.metadata().resultType()); - Assertions.assertEquals(8390013026245928421L, model.metadata().total()); - Assertions.assertEquals(5649591766559477880L, model.metadata().top()); - Assertions.assertEquals("duiertgcc", model.metadata().id()); - Assertions.assertEquals("olpsslqlf", model.metadata().coreSummaries().get(0).status()); - Assertions.assertEquals(5488709340385622129L, model.metadata().coreSummaries().get(0).numberOfDocuments()); - Assertions.assertEquals("znud", model.metadata().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-14T14:21:36Z"), model.metadata().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T09:43:19Z"), model.metadata().lastUpdated()); - Assertions.assertEquals("bncblylpstdbhhx", model.metadata().etag()); - Assertions.assertEquals("zucerscdntnev", model.metadata().sort().get(0).name()); - Assertions.assertEquals(SearchSortEnum.ASC, model.metadata().sort().get(0).order()); - Assertions.assertEquals(87133014421625826L, model.metadata().requestTime()); - Assertions.assertEquals("vwiwubmwmbesld", model.metadata().aggregatedValueField()); - Assertions.assertEquals("wwtppj", model.metadata().aggregatedGroupingFields()); - Assertions.assertEquals(3431932886317561144L, model.metadata().sum()); - Assertions.assertEquals(5668149621351966733L, model.metadata().max()); - Assertions.assertEquals("onz", model.metadata().schema().name()); - Assertions.assertEquals(1813308851, model.metadata().schema().version()); - Assertions.assertEquals("mkqzeqqkdltfzxmh", model.value().get(0).name()); - Assertions.assertEquals("hgure", model.value().get(0).displayName()); - Assertions.assertEquals("kwobdagxtibq", model.value().get(0).type()); - Assertions.assertFalse(model.value().get(0).indexed()); - Assertions.assertFalse(model.value().get(0).stored()); + Assertions.assertEquals("hxudbxvodht", model.metadata().searchId()); + Assertions.assertEquals("irudh", model.metadata().resultType()); + Assertions.assertEquals(2550766474480013536L, model.metadata().total()); + Assertions.assertEquals(7363399788561617337L, model.metadata().top()); + Assertions.assertEquals("lpagzrcx", model.metadata().id()); + Assertions.assertEquals("cfxwmdbox", model.metadata().coreSummaries().get(0).status()); + Assertions.assertEquals(1563332735084443990L, model.metadata().coreSummaries().get(0).numberOfDocuments()); + Assertions.assertEquals("tnrzvuljra", model.metadata().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T18:00:04Z"), model.metadata().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:57:30Z"), model.metadata().lastUpdated()); + Assertions.assertEquals("kqg", model.metadata().eTag()); + Assertions.assertEquals("qnvb", model.metadata().sort().get(0).name()); + Assertions.assertEquals(SearchSortEnum.DESC, model.metadata().sort().get(0).order()); + Assertions.assertEquals(370105828993790153L, model.metadata().requestTime()); + Assertions.assertEquals("ulcdisdosf", model.metadata().aggregatedValueField()); + Assertions.assertEquals("jsvg", model.metadata().aggregatedGroupingFields()); + Assertions.assertEquals(4500706087685713413L, model.metadata().sum()); + Assertions.assertEquals(7074453295008720253L, model.metadata().max()); + Assertions.assertEquals("ytdc", model.metadata().schema().name()); + Assertions.assertEquals(513530726, model.metadata().schema().version()); + Assertions.assertEquals("nfnw", model.value().get(0).name()); + Assertions.assertEquals("tmvpdvjdhtt", model.value().get(0).displayName()); + Assertions.assertEquals("efedxihchrphkm", model.value().get(0).type()); + Assertions.assertTrue(model.value().get(0).indexed()); + Assertions.assertTrue(model.value().get(0).stored()); Assertions.assertFalse(model.value().get(0).facet()); - Assertions.assertEquals("kbogqxndlkzgx", model.value().get(0).ownerType().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SearchGetSchemaResponseInner model - = new SearchGetSchemaResponseInner() - .withMetadata(new SearchMetadata().withSearchId("nayqi") - .withResultType("nduhavhqlkthum") - .withTotal(8390013026245928421L) - .withTop(5649591766559477880L) - .withId("duiertgcc") - .withCoreSummaries(Arrays.asList( - new CoreSummary().withStatus("olpsslqlf").withNumberOfDocuments(5488709340385622129L), - new CoreSummary().withStatus("bbglzpswiydmc").withNumberOfDocuments(2535246333551569384L), - new CoreSummary().withStatus("dxssadbzm").withNumberOfDocuments(6861155578766594130L))) - .withStatus("znud") - .withStartTime(OffsetDateTime.parse("2021-05-14T14:21:36Z")) - .withLastUpdated(OffsetDateTime.parse("2021-09-27T09:43:19Z")) - .withEtag("bncblylpstdbhhx") - .withSort(Arrays.asList(new SearchSort().withName("zucerscdntnev").withOrder(SearchSortEnum.ASC), - new SearchSort().withName("mygtdssls").withOrder(SearchSortEnum.DESC), - new SearchSort().withName("eriofzpyqs").withOrder(SearchSortEnum.ASC), - new SearchSort().withName("bnetshh").withOrder(SearchSortEnum.ASC))) - .withRequestTime(87133014421625826L) - .withAggregatedValueField("vwiwubmwmbesld") - .withAggregatedGroupingFields("wwtppj") - .withSum(3431932886317561144L) - .withMax(5668149621351966733L) - .withSchema(new SearchMetadataSchema().withName("onz").withVersion(1813308851))) - .withValue(Arrays.asList( - new SearchSchemaValue().withName("mkqzeqqkdltfzxmh") - .withDisplayName("hgure") - .withType("kwobdagxtibq") - .withIndexed(false) - .withStored(false) - .withFacet(false) - .withOwnerType(Arrays.asList("kbogqxndlkzgx", "uriplbpodxunkb", "bxmubyynt", "lrb")), - new SearchSchemaValue().withName("koievseo") - .withDisplayName("q") - .withType("ltmuwlauwzizx") - .withIndexed(true) - .withStored(true) - .withFacet(false) - .withOwnerType(Arrays.asList("efuzmuvpbttd", "morppxebmnzbtbh", "pglkf", "ohdneuel")), - new SearchSchemaValue().withName("hsd") - .withDisplayName("t") - .withType("fikdowwqu") - .withIndexed(false) - .withStored(false) - .withFacet(false) - .withOwnerType(Arrays.asList("lvithhqzonosgg", "hcohfwdsjnk")))); - model = BinaryData.fromObject(model).toObject(SearchGetSchemaResponseInner.class); - Assertions.assertEquals("nayqi", model.metadata().searchId()); - Assertions.assertEquals("nduhavhqlkthum", model.metadata().resultType()); - Assertions.assertEquals(8390013026245928421L, model.metadata().total()); - Assertions.assertEquals(5649591766559477880L, model.metadata().top()); - Assertions.assertEquals("duiertgcc", model.metadata().id()); - Assertions.assertEquals("olpsslqlf", model.metadata().coreSummaries().get(0).status()); - Assertions.assertEquals(5488709340385622129L, model.metadata().coreSummaries().get(0).numberOfDocuments()); - Assertions.assertEquals("znud", model.metadata().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-14T14:21:36Z"), model.metadata().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T09:43:19Z"), model.metadata().lastUpdated()); - Assertions.assertEquals("bncblylpstdbhhx", model.metadata().etag()); - Assertions.assertEquals("zucerscdntnev", model.metadata().sort().get(0).name()); - Assertions.assertEquals(SearchSortEnum.ASC, model.metadata().sort().get(0).order()); - Assertions.assertEquals(87133014421625826L, model.metadata().requestTime()); - Assertions.assertEquals("vwiwubmwmbesld", model.metadata().aggregatedValueField()); - Assertions.assertEquals("wwtppj", model.metadata().aggregatedGroupingFields()); - Assertions.assertEquals(3431932886317561144L, model.metadata().sum()); - Assertions.assertEquals(5668149621351966733L, model.metadata().max()); - Assertions.assertEquals("onz", model.metadata().schema().name()); - Assertions.assertEquals(1813308851, model.metadata().schema().version()); - Assertions.assertEquals("mkqzeqqkdltfzxmh", model.value().get(0).name()); - Assertions.assertEquals("hgure", model.value().get(0).displayName()); - Assertions.assertEquals("kwobdagxtibq", model.value().get(0).type()); - Assertions.assertFalse(model.value().get(0).indexed()); - Assertions.assertFalse(model.value().get(0).stored()); - Assertions.assertFalse(model.value().get(0).facet()); - Assertions.assertEquals("kbogqxndlkzgx", model.value().get(0).ownerType().get(0)); + Assertions.assertEquals("sdf", model.value().get(0).ownerType().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataSchemaTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataSchemaTests.java index e0ab265f0d2d..c0a5d930ae99 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataSchemaTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataSchemaTests.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.generated; @@ -11,17 +11,9 @@ public final class SearchMetadataSchemaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SearchMetadataSchema model = BinaryData.fromString("{\"name\":\"pomgkopkwhojvp\",\"version\":996289807}") + SearchMetadataSchema model = BinaryData.fromString("{\"name\":\"rbdkelvidiz\",\"version\":2083883646}") .toObject(SearchMetadataSchema.class); - Assertions.assertEquals("pomgkopkwhojvp", model.name()); - Assertions.assertEquals(996289807, model.version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SearchMetadataSchema model = new SearchMetadataSchema().withName("pomgkopkwhojvp").withVersion(996289807); - model = BinaryData.fromObject(model).toObject(SearchMetadataSchema.class); - Assertions.assertEquals("pomgkopkwhojvp", model.name()); - Assertions.assertEquals(996289807, model.version()); + Assertions.assertEquals("rbdkelvidiz", model.name()); + Assertions.assertEquals(2083883646, model.version()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java index fa74123b19f0..9368ff547e36 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java @@ -1,91 +1,40 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.models.CoreSummary; import com.azure.resourcemanager.loganalytics.models.SearchMetadata; -import com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema; -import com.azure.resourcemanager.loganalytics.models.SearchSort; import com.azure.resourcemanager.loganalytics.models.SearchSortEnum; import java.time.OffsetDateTime; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class SearchMetadataTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SearchMetadata model = BinaryData.fromString( - "{\"requestId\":\"jutiiswacff\",\"resultType\":\"k\",\"total\":2817316502996814580,\"top\":4896642944442173063,\"id\":\"qcrailvpnppfufl\",\"coreSummaries\":[{\"status\":\"hdlxyjrxsagafcn\",\"numberOfDocuments\":3165727782283367859},{\"status\":\"qapnedgfbcv\",\"numberOfDocuments\":3094759713825353725},{\"status\":\"vpk\",\"numberOfDocuments\":1489368232618160329}],\"status\":\"vdrhvoo\",\"startTime\":\"2021-11-10T16:13:32Z\",\"lastUpdated\":\"2021-11-02T01:53:07Z\",\"eTag\":\"bzdopcj\",\"sort\":[{\"name\":\"dldwmgxc\",\"order\":\"desc\"},{\"name\":\"pmutwuo\",\"order\":\"asc\"},{\"name\":\"khjwn\",\"order\":\"asc\"}],\"requestTime\":9145208048517339786,\"aggregatedValueField\":\"cpdggkzzlvmbmp\",\"aggregatedGroupingFields\":\"modfvuefywsbpfvm\",\"sum\":5583429102583863786,\"max\":98342047801553484,\"schema\":{\"name\":\"taakc\",\"version\":369562825}}") + "{\"requestId\":\"mwmdxmebwjscjpa\",\"resultType\":\"xveabf\",\"total\":776426984096444035,\"top\":2510500677926597568,\"id\":\"ibxyijddtvqc\",\"coreSummaries\":[{\"status\":\"ijaeukm\",\"numberOfDocuments\":5738473959510971484},{\"status\":\"ekpndzaapmudq\",\"numberOfDocuments\":3142659872258126549},{\"status\":\"igpibud\",\"numberOfDocuments\":4563464136640865468},{\"status\":\"eb\",\"numberOfDocuments\":6734664061885363456}],\"status\":\"mzznrtffyaqitmhh\",\"startTime\":\"2021-09-29T18:13:10Z\",\"lastUpdated\":\"2021-09-26T20:49:04Z\",\"eTag\":\"hvseufuqyrx\",\"sort\":[{\"name\":\"gql\",\"order\":\"desc\"},{\"name\":\"jqfrddgamquh\",\"order\":\"desc\"},{\"name\":\"sjuivfcdisyir\",\"order\":\"desc\"}],\"requestTime\":8420679751963722456,\"aggregatedValueField\":\"xrxzbujrtr\",\"aggregatedGroupingFields\":\"vwrevkhgnlnzon\",\"sum\":432499304266915638,\"max\":2005313689678276388,\"schema\":{\"name\":\"cvjtszcofiz\",\"version\":965540047}}") .toObject(SearchMetadata.class); - Assertions.assertEquals("jutiiswacff", model.searchId()); - Assertions.assertEquals("k", model.resultType()); - Assertions.assertEquals(2817316502996814580L, model.total()); - Assertions.assertEquals(4896642944442173063L, model.top()); - Assertions.assertEquals("qcrailvpnppfufl", model.id()); - Assertions.assertEquals("hdlxyjrxsagafcn", model.coreSummaries().get(0).status()); - Assertions.assertEquals(3165727782283367859L, model.coreSummaries().get(0).numberOfDocuments()); - Assertions.assertEquals("vdrhvoo", model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T16:13:32Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T01:53:07Z"), model.lastUpdated()); - Assertions.assertEquals("bzdopcj", model.etag()); - Assertions.assertEquals("dldwmgxc", model.sort().get(0).name()); + Assertions.assertEquals("mwmdxmebwjscjpa", model.searchId()); + Assertions.assertEquals("xveabf", model.resultType()); + Assertions.assertEquals(776426984096444035L, model.total()); + Assertions.assertEquals(2510500677926597568L, model.top()); + Assertions.assertEquals("ibxyijddtvqc", model.id()); + Assertions.assertEquals("ijaeukm", model.coreSummaries().get(0).status()); + Assertions.assertEquals(5738473959510971484L, model.coreSummaries().get(0).numberOfDocuments()); + Assertions.assertEquals("mzznrtffyaqitmhh", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T18:13:10Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-26T20:49:04Z"), model.lastUpdated()); + Assertions.assertEquals("hvseufuqyrx", model.eTag()); + Assertions.assertEquals("gql", model.sort().get(0).name()); Assertions.assertEquals(SearchSortEnum.DESC, model.sort().get(0).order()); - Assertions.assertEquals(9145208048517339786L, model.requestTime()); - Assertions.assertEquals("cpdggkzzlvmbmp", model.aggregatedValueField()); - Assertions.assertEquals("modfvuefywsbpfvm", model.aggregatedGroupingFields()); - Assertions.assertEquals(5583429102583863786L, model.sum()); - Assertions.assertEquals(98342047801553484L, model.max()); - Assertions.assertEquals("taakc", model.schema().name()); - Assertions.assertEquals(369562825, model.schema().version()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SearchMetadata model = new SearchMetadata().withSearchId("jutiiswacff") - .withResultType("k") - .withTotal(2817316502996814580L) - .withTop(4896642944442173063L) - .withId("qcrailvpnppfufl") - .withCoreSummaries(Arrays.asList( - new CoreSummary().withStatus("hdlxyjrxsagafcn").withNumberOfDocuments(3165727782283367859L), - new CoreSummary().withStatus("qapnedgfbcv").withNumberOfDocuments(3094759713825353725L), - new CoreSummary().withStatus("vpk").withNumberOfDocuments(1489368232618160329L))) - .withStatus("vdrhvoo") - .withStartTime(OffsetDateTime.parse("2021-11-10T16:13:32Z")) - .withLastUpdated(OffsetDateTime.parse("2021-11-02T01:53:07Z")) - .withEtag("bzdopcj") - .withSort(Arrays.asList(new SearchSort().withName("dldwmgxc").withOrder(SearchSortEnum.DESC), - new SearchSort().withName("pmutwuo").withOrder(SearchSortEnum.ASC), - new SearchSort().withName("khjwn").withOrder(SearchSortEnum.ASC))) - .withRequestTime(9145208048517339786L) - .withAggregatedValueField("cpdggkzzlvmbmp") - .withAggregatedGroupingFields("modfvuefywsbpfvm") - .withSum(5583429102583863786L) - .withMax(98342047801553484L) - .withSchema(new SearchMetadataSchema().withName("taakc").withVersion(369562825)); - model = BinaryData.fromObject(model).toObject(SearchMetadata.class); - Assertions.assertEquals("jutiiswacff", model.searchId()); - Assertions.assertEquals("k", model.resultType()); - Assertions.assertEquals(2817316502996814580L, model.total()); - Assertions.assertEquals(4896642944442173063L, model.top()); - Assertions.assertEquals("qcrailvpnppfufl", model.id()); - Assertions.assertEquals("hdlxyjrxsagafcn", model.coreSummaries().get(0).status()); - Assertions.assertEquals(3165727782283367859L, model.coreSummaries().get(0).numberOfDocuments()); - Assertions.assertEquals("vdrhvoo", model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T16:13:32Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T01:53:07Z"), model.lastUpdated()); - Assertions.assertEquals("bzdopcj", model.etag()); - Assertions.assertEquals("dldwmgxc", model.sort().get(0).name()); - Assertions.assertEquals(SearchSortEnum.DESC, model.sort().get(0).order()); - Assertions.assertEquals(9145208048517339786L, model.requestTime()); - Assertions.assertEquals("cpdggkzzlvmbmp", model.aggregatedValueField()); - Assertions.assertEquals("modfvuefywsbpfvm", model.aggregatedGroupingFields()); - Assertions.assertEquals(5583429102583863786L, model.sum()); - Assertions.assertEquals(98342047801553484L, model.max()); - Assertions.assertEquals("taakc", model.schema().name()); - Assertions.assertEquals(369562825, model.schema().version()); + Assertions.assertEquals(8420679751963722456L, model.requestTime()); + Assertions.assertEquals("xrxzbujrtr", model.aggregatedValueField()); + Assertions.assertEquals("vwrevkhgnlnzon", model.aggregatedGroupingFields()); + Assertions.assertEquals(432499304266915638L, model.sum()); + Assertions.assertEquals(2005313689678276388L, model.max()); + Assertions.assertEquals("cvjtszcofiz", model.schema().name()); + Assertions.assertEquals(965540047, model.schema().version()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchResultsTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchResultsTests.java index 1b6934cb5846..99a232893a7b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchResultsTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchResultsTests.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.generated; @@ -13,27 +13,27 @@ public final class SearchResultsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SearchResults model = BinaryData.fromString( - "{\"query\":\"olppvksrpqvujz\",\"description\":\"ehtwdwrft\",\"limit\":767551661,\"startSearchTime\":\"2021-10-26T11:25:15Z\",\"endSearchTime\":\"2021-11-04T23:57:55Z\",\"sourceTable\":\"l\",\"azureAsyncOperationId\":\"shfwpracstwity\"}") + "{\"query\":\"pglydz\",\"description\":\"rvqeevtoepryutn\",\"limit\":2045022432,\"startSearchTime\":\"2021-12-10T03:43:23Z\",\"endSearchTime\":\"2021-01-20T06:32:43Z\",\"sourceTable\":\"vzvfvaawzqadfl\",\"azureAsyncOperationId\":\"ur\"}") .toObject(SearchResults.class); - Assertions.assertEquals("olppvksrpqvujz", model.query()); - Assertions.assertEquals("ehtwdwrft", model.description()); - Assertions.assertEquals(767551661, model.limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T11:25:15Z"), model.startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T23:57:55Z"), model.endSearchTime()); + Assertions.assertEquals("pglydz", model.query()); + Assertions.assertEquals("rvqeevtoepryutn", model.description()); + Assertions.assertEquals(2045022432, model.limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-10T03:43:23Z"), model.startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T06:32:43Z"), model.endSearchTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SearchResults model = new SearchResults().withQuery("olppvksrpqvujz") - .withDescription("ehtwdwrft") - .withLimit(767551661) - .withStartSearchTime(OffsetDateTime.parse("2021-10-26T11:25:15Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-11-04T23:57:55Z")); + SearchResults model = new SearchResults().withQuery("pglydz") + .withDescription("rvqeevtoepryutn") + .withLimit(2045022432) + .withStartSearchTime(OffsetDateTime.parse("2021-12-10T03:43:23Z")) + .withEndSearchTime(OffsetDateTime.parse("2021-01-20T06:32:43Z")); model = BinaryData.fromObject(model).toObject(SearchResults.class); - Assertions.assertEquals("olppvksrpqvujz", model.query()); - Assertions.assertEquals("ehtwdwrft", model.description()); - Assertions.assertEquals(767551661, model.limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T11:25:15Z"), model.startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T23:57:55Z"), model.endSearchTime()); + Assertions.assertEquals("pglydz", model.query()); + Assertions.assertEquals("rvqeevtoepryutn", model.description()); + Assertions.assertEquals(2045022432, model.limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-10T03:43:23Z"), model.startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T06:32:43Z"), model.endSearchTime()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSchemaValueTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSchemaValueTests.java index 1f563325e92d..049e7c54134e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSchemaValueTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSchemaValueTests.java @@ -1,45 +1,25 @@ // 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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.models.SearchSchemaValue; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class SearchSchemaValueTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SearchSchemaValue model = BinaryData.fromString( - "{\"name\":\"xysmoc\",\"displayName\":\"qfqvmkc\",\"type\":\"zapvhelx\",\"indexed\":false,\"stored\":true,\"facet\":false,\"ownerType\":[\"tddckcb\",\"uejrjxgc\"]}") + "{\"name\":\"bccxjmonfdgn\",\"displayName\":\"cypuuwwlt\",\"type\":\"qjctzenkeif\",\"indexed\":true,\"stored\":true,\"facet\":false,\"ownerType\":[\"as\",\"flyh\"]}") .toObject(SearchSchemaValue.class); - Assertions.assertEquals("xysmoc", model.name()); - Assertions.assertEquals("qfqvmkc", model.displayName()); - Assertions.assertEquals("zapvhelx", model.type()); - Assertions.assertFalse(model.indexed()); + Assertions.assertEquals("bccxjmonfdgn", model.name()); + Assertions.assertEquals("cypuuwwlt", model.displayName()); + Assertions.assertEquals("qjctzenkeif", model.type()); + Assertions.assertTrue(model.indexed()); Assertions.assertTrue(model.stored()); Assertions.assertFalse(model.facet()); - Assertions.assertEquals("tddckcb", model.ownerType().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SearchSchemaValue model = new SearchSchemaValue().withName("xysmoc") - .withDisplayName("qfqvmkc") - .withType("zapvhelx") - .withIndexed(false) - .withStored(true) - .withFacet(false) - .withOwnerType(Arrays.asList("tddckcb", "uejrjxgc")); - model = BinaryData.fromObject(model).toObject(SearchSchemaValue.class); - Assertions.assertEquals("xysmoc", model.name()); - Assertions.assertEquals("qfqvmkc", model.displayName()); - Assertions.assertEquals("zapvhelx", model.type()); - Assertions.assertFalse(model.indexed()); - Assertions.assertTrue(model.stored()); - Assertions.assertFalse(model.facet()); - Assertions.assertEquals("tddckcb", model.ownerType().get(0)); + Assertions.assertEquals("as", model.ownerType().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSortTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSortTests.java index 9952fac215ff..41a36583041d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSortTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchSortTests.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.generated; @@ -12,16 +12,9 @@ public final class SearchSortTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SearchSort model = BinaryData.fromString("{\"name\":\"ondjmq\",\"order\":\"desc\"}").toObject(SearchSort.class); - Assertions.assertEquals("ondjmq", model.name()); - Assertions.assertEquals(SearchSortEnum.DESC, model.order()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SearchSort model = new SearchSort().withName("ondjmq").withOrder(SearchSortEnum.DESC); - model = BinaryData.fromObject(model).toObject(SearchSort.class); - Assertions.assertEquals("ondjmq", model.name()); + SearchSort model + = BinaryData.fromString("{\"name\":\"vzmlovuanashcxl\",\"order\":\"desc\"}").toObject(SearchSort.class); + Assertions.assertEquals("vzmlovuanashcxl", model.name()); Assertions.assertEquals(SearchSortEnum.DESC, model.order()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteWithResponseMockTests.java index f483957f3e4b..dfc32f851d8c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightConfigsDeleteWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.storageInsightConfigs() - .deleteWithResponse("ewijymrhbguz", "zkye", "nfnzhhh", com.azure.core.util.Context.NONE); + .deleteWithResponse("zuu", "ljcirvpefycdvei", "itjn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightStatusTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightStatusTests.java index ac95b3a92c3a..002cd3fdb011 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightStatusTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/StorageInsightStatusTests.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.generated; @@ -12,18 +12,9 @@ public final class StorageInsightStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - StorageInsightStatus model = BinaryData.fromString("{\"state\":\"OK\",\"description\":\"kcdyhbpk\"}") + StorageInsightStatus model = BinaryData.fromString("{\"state\":\"OK\",\"description\":\"xgjiuqh\"}") .toObject(StorageInsightStatus.class); Assertions.assertEquals(StorageInsightState.OK, model.state()); - Assertions.assertEquals("kcdyhbpk", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageInsightStatus model - = new StorageInsightStatus().withState(StorageInsightState.OK).withDescription("kcdyhbpk"); - model = BinaryData.fromObject(model).toObject(StorageInsightStatus.class); - Assertions.assertEquals(StorageInsightState.OK, model.state()); - Assertions.assertEquals("kcdyhbpk", model.description()); + Assertions.assertEquals("xgjiuqh", model.description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationsStopWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationsStopWithResponseMockTests.java index bf0e2efcb40a..66e403df53ac 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationsStopWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsOperationsStopWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testStopWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.summaryLogsOperations() - .stopWithResponse("t", "inklogxs", "tzarhzvqnsqktc", com.azure.core.util.Context.NONE); + .stopWithResponse("eqtoyrpl", "xlaj", "llpquevhamfo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinPropertiesTests.java index 54f0d4458f74..5ba48374bc38 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinPropertiesTests.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.generated; @@ -12,16 +12,16 @@ public final class SummaryLogsRetryBinPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SummaryLogsRetryBinProperties model = BinaryData.fromString("{\"retryBinStartTime\":\"2021-07-20T22:39:45Z\"}") + SummaryLogsRetryBinProperties model = BinaryData.fromString("{\"retryBinStartTime\":\"2021-09-07T11:30:25Z\"}") .toObject(SummaryLogsRetryBinProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T22:39:45Z"), model.retryBinStartTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T11:30:25Z"), model.retryBinStartTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SummaryLogsRetryBinProperties model - = new SummaryLogsRetryBinProperties().withRetryBinStartTime(OffsetDateTime.parse("2021-07-20T22:39:45Z")); + = new SummaryLogsRetryBinProperties().withRetryBinStartTime(OffsetDateTime.parse("2021-09-07T11:30:25Z")); model = BinaryData.fromObject(model).toObject(SummaryLogsRetryBinProperties.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T22:39:45Z"), model.retryBinStartTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T11:30:25Z"), model.retryBinStartTime()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinTests.java index 060185115b7b..591abd9ed3b9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SummaryLogsRetryBinTests.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.generated; @@ -14,16 +14,16 @@ public final class SummaryLogsRetryBinTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SummaryLogsRetryBin model - = BinaryData.fromString("{\"properties\":{\"retryBinStartTime\":\"2021-09-02T16:11:18Z\"}}") + = BinaryData.fromString("{\"properties\":{\"retryBinStartTime\":\"2021-08-29T13:07:03Z\"}}") .toObject(SummaryLogsRetryBin.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-02T16:11:18Z"), model.properties().retryBinStartTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T13:07:03Z"), model.properties().retryBinStartTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SummaryLogsRetryBin model = new SummaryLogsRetryBin().withProperties( - new SummaryLogsRetryBinProperties().withRetryBinStartTime(OffsetDateTime.parse("2021-09-02T16:11:18Z"))); + new SummaryLogsRetryBinProperties().withRetryBinStartTime(OffsetDateTime.parse("2021-08-29T13:07:03Z"))); model = BinaryData.fromObject(model).toObject(SummaryLogsRetryBin.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-02T16:11:18Z"), model.properties().retryBinStartTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-29T13:07:03Z"), model.properties().retryBinStartTime()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java index c04c0f4b0c73..5fd6a9a556ee 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.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.generated; @@ -21,85 +21,75 @@ public final class TableInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableInner model = BinaryData.fromString( - "{\"properties\":{\"retentionInDays\":1450729079,\"totalRetentionInDays\":981222471,\"archiveRetentionInDays\":5055042,\"searchResults\":{\"query\":\"hhyxxrw\",\"description\":\"co\",\"limit\":381030924,\"startSearchTime\":\"2021-05-28T17:22:29Z\",\"endSearchTime\":\"2021-03-31T06:04:43Z\",\"sourceTable\":\"ymareqnajxqugj\",\"azureAsyncOperationId\":\"ycubeddgs\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-06-13T04:37:53Z\",\"endRestoreTime\":\"2021-04-05T12:57Z\",\"sourceTable\":\"qal\",\"azureAsyncOperationId\":\"mnjijpxacqqudf\"},\"resultStatistics\":{\"progress\":55.070568,\"ingestedRecords\":701185139,\"scannedGb\":23.900133},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"vayffimrzrt\",\"schema\":{\"name\":\"ogs\",\"displayName\":\"nevfdnw\",\"description\":\"mewzsyyc\",\"columns\":[{\"name\":\"oibjudpfrxtrthz\",\"type\":\"int\",\"dataTypeHint\":\"guid\",\"displayName\":\"kqb\",\"description\":\"ubpaxhe\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"pdtii\",\"type\":\"guid\",\"dataTypeHint\":\"armPath\",\"displayName\":\"axoruzfgsquy\",\"description\":\"rxxle\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"jezwlwnw\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"y\",\"description\":\"patdooaojkniodko\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"jhemms\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"odtji\",\"description\":\"wj\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"vefkdlfoakggk\",\"type\":\"dynamic\",\"dataTypeHint\":\"uri\",\"displayName\":\"wpu\",\"description\":\"qblylsyxkqj\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tiagx\",\"type\":\"string\",\"dataTypeHint\":\"uri\",\"displayName\":\"mpsbzkfzbeyv\",\"description\":\"qi\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"jjxd\",\"type\":\"guid\",\"dataTypeHint\":\"ip\",\"displayName\":\"zclewyhmlw\",\"description\":\"ztzp\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"categories\":[\"yfzqwhxxbu\",\"qa\",\"zfeqztppri\",\"lxorjaltolmncws\"],\"labels\":[\"wcsdbnwdcfhucq\",\"pfuvglsbjjca\",\"vxb\",\"t\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"Classic\",\"solutions\":[\"mr\",\"xqtvcofu\",\"f\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":false},\"id\":\"dknnqvsazn\",\"name\":\"n\",\"type\":\"orudsgsa\"}") + "{\"properties\":{\"retentionInDays\":1448184483,\"totalRetentionInDays\":1746749164,\"archiveRetentionInDays\":1933702310,\"searchResults\":{\"query\":\"bdaxconfozauorsu\",\"description\":\"kwbqplhlvnuu\",\"limit\":1920670315,\"startSearchTime\":\"2021-03-26T05:32:19Z\",\"endSearchTime\":\"2021-06-18T22:25:05Z\",\"sourceTable\":\"zsoldwey\",\"azureAsyncOperationId\":\"dunvmnnrwrbiorkt\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-04T00:16:10Z\",\"endRestoreTime\":\"2021-04-15T08:16:25Z\",\"sourceTable\":\"gdnhxmsiv\",\"azureAsyncOperationId\":\"miloxggdufiqndie\"},\"resultStatistics\":{\"progress\":73.16819782282242,\"ingestedRecords\":886290907,\"scannedGb\":23.888120940037084},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"s\",\"schema\":{\"name\":\"otcubi\",\"displayName\":\"uipwoqonmacje\",\"description\":\"izsh\",\"columns\":[{\"name\":\"m\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"b\",\"description\":\"rilbywdx\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"rwfscjfnynszquj\",\"type\":\"long\",\"dataTypeHint\":\"ip\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"oxoismsksbpim\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kcgxxlxsffgcvi\",\"description\":\"zdwlvwlyoupfgfb\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"hgkfmin\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"ttsttktlahbqact\",\"description\":\"gzukxitmm\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"hrnxrxc\"],\"labels\":[\"isavok\",\"dzf\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"qttbaj\",\"katnwxyi\",\"pidkqqfkuvscxkdm\",\"igovi\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}") .toObject(TableInner.class); - Assertions.assertEquals(1450729079, model.retentionInDays()); - Assertions.assertEquals(981222471, model.totalRetentionInDays()); - Assertions.assertEquals("hhyxxrw", model.searchResults().query()); - Assertions.assertEquals("co", model.searchResults().description()); - Assertions.assertEquals(381030924, model.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T17:22:29Z"), model.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-31T06:04:43Z"), model.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T04:37:53Z"), model.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-05T12:57Z"), model.restoredLogs().endRestoreTime()); - Assertions.assertEquals("qal", model.restoredLogs().sourceTable()); + Assertions.assertEquals(1448184483, model.retentionInDays()); + Assertions.assertEquals(1746749164, model.totalRetentionInDays()); + Assertions.assertEquals("bdaxconfozauorsu", model.searchResults().query()); + Assertions.assertEquals("kwbqplhlvnuu", model.searchResults().description()); + Assertions.assertEquals(1920670315, model.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T05:32:19Z"), model.searchResults().startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T22:25:05Z"), model.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T00:16:10Z"), model.restoredLogs().startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T08:16:25Z"), model.restoredLogs().endRestoreTime()); + Assertions.assertEquals("gdnhxmsiv", model.restoredLogs().sourceTable()); Assertions.assertEquals(TablePlanEnum.AUXILIARY, model.plan()); - Assertions.assertEquals("ogs", model.schema().name()); - Assertions.assertEquals("nevfdnw", model.schema().displayName()); - Assertions.assertEquals("mewzsyyc", model.schema().description()); - Assertions.assertEquals("oibjudpfrxtrthz", model.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.INT, model.schema().columns().get(0).type()); + Assertions.assertEquals("otcubi", model.schema().name()); + Assertions.assertEquals("uipwoqonmacje", model.schema().displayName()); + Assertions.assertEquals("izsh", model.schema().description()); + Assertions.assertEquals("m", model.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DATE_TIME, model.schema().columns().get(0).type()); Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("kqb", model.schema().columns().get(0).displayName()); - Assertions.assertEquals("ubpaxhe", model.schema().columns().get(0).description()); + Assertions.assertEquals("b", model.schema().columns().get(0).displayName()); + Assertions.assertEquals("rilbywdx", model.schema().columns().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TableInner model = new TableInner().withRetentionInDays(1450729079) - .withTotalRetentionInDays(981222471) - .withSearchResults(new SearchResults().withQuery("hhyxxrw") - .withDescription("co") - .withLimit(381030924) - .withStartSearchTime(OffsetDateTime.parse("2021-05-28T17:22:29Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-03-31T06:04:43Z"))) - .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-06-13T04:37:53Z")) - .withEndRestoreTime(OffsetDateTime.parse("2021-04-05T12:57Z")) - .withSourceTable("qal")) + TableInner model = new TableInner().withRetentionInDays(1448184483) + .withTotalRetentionInDays(1746749164) + .withSearchResults(new SearchResults().withQuery("bdaxconfozauorsu") + .withDescription("kwbqplhlvnuu") + .withLimit(1920670315) + .withStartSearchTime(OffsetDateTime.parse("2021-03-26T05:32:19Z")) + .withEndSearchTime(OffsetDateTime.parse("2021-06-18T22:25:05Z"))) + .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-03-04T00:16:10Z")) + .withEndRestoreTime(OffsetDateTime.parse("2021-04-15T08:16:25Z")) + .withSourceTable("gdnhxmsiv")) .withPlan(TablePlanEnum.AUXILIARY) - .withSchema(new Schema().withName("ogs") - .withDisplayName("nevfdnw") - .withDescription("mewzsyyc") + .withSchema(new Schema().withName("otcubi") + .withDisplayName("uipwoqonmacje") + .withDescription("izsh") .withColumns(Arrays.asList( - new Column().withName("oibjudpfrxtrthz") - .withType(ColumnTypeEnum.INT) + new Column().withName("m") + .withType(ColumnTypeEnum.DATE_TIME) .withDataTypeHint(ColumnDataTypeHintEnum.GUID) - .withDisplayName("kqb") - .withDescription("ubpaxhe"), - new Column().withName("pdtii") - .withType(ColumnTypeEnum.GUID) - .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) - .withDisplayName("axoruzfgsquy") - .withDescription("rxxle"), - new Column().withName("jezwlwnw") - .withType(ColumnTypeEnum.REAL) - .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) - .withDisplayName("y") - .withDescription("patdooaojkniodko"), - new Column().withName("jhemms") - .withType(ColumnTypeEnum.REAL) - .withDataTypeHint(ColumnDataTypeHintEnum.URI) - .withDisplayName("odtji") - .withDescription("wj")))); + .withDisplayName("b") + .withDescription("rilbywdx"), + new Column().withName("rwfscjfnynszquj") + .withType(ColumnTypeEnum.LONG) + .withDataTypeHint(ColumnDataTypeHintEnum.IP) + .withDisplayName("ytibyow") + .withDescription("lgy")))); model = BinaryData.fromObject(model).toObject(TableInner.class); - Assertions.assertEquals(1450729079, model.retentionInDays()); - Assertions.assertEquals(981222471, model.totalRetentionInDays()); - Assertions.assertEquals("hhyxxrw", model.searchResults().query()); - Assertions.assertEquals("co", model.searchResults().description()); - Assertions.assertEquals(381030924, model.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T17:22:29Z"), model.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-31T06:04:43Z"), model.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T04:37:53Z"), model.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-05T12:57Z"), model.restoredLogs().endRestoreTime()); - Assertions.assertEquals("qal", model.restoredLogs().sourceTable()); + Assertions.assertEquals(1448184483, model.retentionInDays()); + Assertions.assertEquals(1746749164, model.totalRetentionInDays()); + Assertions.assertEquals("bdaxconfozauorsu", model.searchResults().query()); + Assertions.assertEquals("kwbqplhlvnuu", model.searchResults().description()); + Assertions.assertEquals(1920670315, model.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T05:32:19Z"), model.searchResults().startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T22:25:05Z"), model.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T00:16:10Z"), model.restoredLogs().startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T08:16:25Z"), model.restoredLogs().endRestoreTime()); + Assertions.assertEquals("gdnhxmsiv", model.restoredLogs().sourceTable()); Assertions.assertEquals(TablePlanEnum.AUXILIARY, model.plan()); - Assertions.assertEquals("ogs", model.schema().name()); - Assertions.assertEquals("nevfdnw", model.schema().displayName()); - Assertions.assertEquals("mewzsyyc", model.schema().description()); - Assertions.assertEquals("oibjudpfrxtrthz", model.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.INT, model.schema().columns().get(0).type()); + Assertions.assertEquals("otcubi", model.schema().name()); + Assertions.assertEquals("uipwoqonmacje", model.schema().displayName()); + Assertions.assertEquals("izsh", model.schema().description()); + Assertions.assertEquals("m", model.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DATE_TIME, model.schema().columns().get(0).type()); Assertions.assertEquals(ColumnDataTypeHintEnum.GUID, model.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("kqb", model.schema().columns().get(0).displayName()); - Assertions.assertEquals("ubpaxhe", model.schema().columns().get(0).description()); + Assertions.assertEquals("b", model.schema().columns().get(0).displayName()); + Assertions.assertEquals("rilbywdx", model.schema().columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java index 909b4652dfee..01165566c645 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.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.generated; @@ -21,85 +21,80 @@ public final class TablePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableProperties model = BinaryData.fromString( - "{\"retentionInDays\":220532000,\"totalRetentionInDays\":103703544,\"archiveRetentionInDays\":830439521,\"searchResults\":{\"query\":\"wjue\",\"description\":\"eburu\",\"limit\":1850094254,\"startSearchTime\":\"2021-01-16T01:35:10Z\",\"endSearchTime\":\"2021-09-18T15:34:48Z\",\"sourceTable\":\"l\",\"azureAsyncOperationId\":\"ab\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-17T06:29:30Z\",\"endRestoreTime\":\"2021-03-04T19:19:07Z\",\"sourceTable\":\"frvtpuqu\",\"azureAsyncOperationId\":\"qlgkfbtn\"},\"resultStatistics\":{\"progress\":47.37398,\"ingestedRecords\":1440714343,\"scannedGb\":33.60299},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ujitcjedftww\",\"schema\":{\"name\":\"kojvd\",\"displayName\":\"zfoqouicybxar\",\"description\":\"szufoxciqopidoa\",\"columns\":[{\"name\":\"dhkha\",\"type\":\"boolean\",\"dataTypeHint\":\"uri\",\"displayName\":\"bon\",\"description\":\"ntoe\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"whkszzcmrvexztvb\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"aoyzkoow\",\"description\":\"mnguxawqaldsyu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"qfobwyz\",\"type\":\"long\",\"dataTypeHint\":\"guid\",\"displayName\":\"t\",\"description\":\"fhpagmhrskdsnf\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gtdlmk\",\"type\":\"long\",\"dataTypeHint\":\"guid\",\"displayName\":\"hewpusdsttwv\",\"description\":\"vbbejdcng\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"gm\",\"type\":\"int\",\"dataTypeHint\":\"guid\",\"displayName\":\"grtwae\",\"description\":\"uzkopbminrfd\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"ziuiefozbhdm\",\"type\":\"string\",\"dataTypeHint\":\"guid\",\"displayName\":\"hoftr\",\"description\":\"equi\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"lfaoqzpiyylhaln\",\"type\":\"string\",\"dataTypeHint\":\"guid\",\"displayName\":\"ph\",\"description\":\"ivwitqscywugg\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"categories\":[\"bwemhairs\",\"rgzdwmsweyp\"],\"labels\":[\"xggicccnxqhuexmk\",\"tlstvlzywem\",\"zrncsdt\",\"lusiy\"],\"source\":\"customer\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"Classic\",\"solutions\":[\"sl\",\"eadcygqukyhejhz\"]},\"provisioningState\":\"Succeeded\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") + "{\"retentionInDays\":1317019798,\"totalRetentionInDays\":889333374,\"archiveRetentionInDays\":1902606328,\"searchResults\":{\"query\":\"dilmyww\",\"description\":\"gkxnyedabg\",\"limit\":110774994,\"startSearchTime\":\"2021-04-27T22:18:57Z\",\"endSearchTime\":\"2021-01-03T05:28:43Z\",\"sourceTable\":\"wbcihxuuwh\",\"azureAsyncOperationId\":\"yxccyb\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-30T18:35:12Z\",\"endRestoreTime\":\"2021-07-25T04:23:40Z\",\"sourceTable\":\"udzpxgwjplmagstc\",\"azureAsyncOperationId\":\"hpfkyrkdbdgi\"},\"resultStatistics\":{\"progress\":37.102374420459185,\"ingestedRecords\":1929785909,\"scannedGb\":88.71489238122547},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"aiy\",\"schema\":{\"name\":\"viacegfnmntfpmv\",\"displayName\":\"mfnczd\",\"description\":\"vbalxlllc\",\"columns\":[{\"name\":\"bzevwrd\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vsjcswsmystuluqy\",\"description\":\"cvlerchpqbmfpjba\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"xsspuunnoxyhk\",\"type\":\"dynamic\",\"dataTypeHint\":\"ip\",\"displayName\":\"i\",\"description\":\"fhoqca\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"mdjvlpj\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"msgeivsiykzk\",\"description\":\"cjdx\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"ulapzwyrp\",\"type\":\"long\",\"dataTypeHint\":\"armPath\",\"displayName\":\"epnylbfu\",\"description\":\"lyjt\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"hvfcibyfmow\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"vdwxfzwi\",\"description\":\"wzjbh\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"labels\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"jtqedcgzulwmm\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") .toObject(TableProperties.class); - Assertions.assertEquals(220532000, model.retentionInDays()); - Assertions.assertEquals(103703544, model.totalRetentionInDays()); - Assertions.assertEquals("wjue", model.searchResults().query()); - Assertions.assertEquals("eburu", model.searchResults().description()); - Assertions.assertEquals(1850094254, model.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-16T01:35:10Z"), model.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T15:34:48Z"), model.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T06:29:30Z"), model.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T19:19:07Z"), model.restoredLogs().endRestoreTime()); - Assertions.assertEquals("frvtpuqu", model.restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.AUXILIARY, model.plan()); - Assertions.assertEquals("kojvd", model.schema().name()); - Assertions.assertEquals("zfoqouicybxar", model.schema().displayName()); - Assertions.assertEquals("szufoxciqopidoa", model.schema().description()); - Assertions.assertEquals("dhkha", model.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.BOOLEAN, model.schema().columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.URI, model.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("bon", model.schema().columns().get(0).displayName()); - Assertions.assertEquals("ntoe", model.schema().columns().get(0).description()); + Assertions.assertEquals(1317019798, model.retentionInDays()); + Assertions.assertEquals(889333374, model.totalRetentionInDays()); + Assertions.assertEquals("dilmyww", model.searchResults().query()); + Assertions.assertEquals("gkxnyedabg", model.searchResults().description()); + Assertions.assertEquals(110774994, model.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-27T22:18:57Z"), model.searchResults().startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T05:28:43Z"), model.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T18:35:12Z"), model.restoredLogs().startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T04:23:40Z"), model.restoredLogs().endRestoreTime()); + Assertions.assertEquals("udzpxgwjplmagstc", model.restoredLogs().sourceTable()); + Assertions.assertEquals(TablePlanEnum.ANALYTICS, model.plan()); + Assertions.assertEquals("viacegfnmntfpmv", model.schema().name()); + Assertions.assertEquals("mfnczd", model.schema().displayName()); + Assertions.assertEquals("vbalxlllc", model.schema().description()); + Assertions.assertEquals("bzevwrd", model.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DYNAMIC, model.schema().columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.ARM_PATH, model.schema().columns().get(0).dataTypeHint()); + Assertions.assertEquals("vsjcswsmystuluqy", model.schema().columns().get(0).displayName()); + Assertions.assertEquals("cvlerchpqbmfpjba", model.schema().columns().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TableProperties model = new TableProperties().withRetentionInDays(220532000) - .withTotalRetentionInDays(103703544) - .withSearchResults(new SearchResults().withQuery("wjue") - .withDescription("eburu") - .withLimit(1850094254) - .withStartSearchTime(OffsetDateTime.parse("2021-01-16T01:35:10Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-09-18T15:34:48Z"))) - .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-09-17T06:29:30Z")) - .withEndRestoreTime(OffsetDateTime.parse("2021-03-04T19:19:07Z")) - .withSourceTable("frvtpuqu")) - .withPlan(TablePlanEnum.AUXILIARY) - .withSchema(new Schema().withName("kojvd") - .withDisplayName("zfoqouicybxar") - .withDescription("szufoxciqopidoa") + TableProperties model = new TableProperties().withRetentionInDays(1317019798) + .withTotalRetentionInDays(889333374) + .withSearchResults(new SearchResults().withQuery("dilmyww") + .withDescription("gkxnyedabg") + .withLimit(110774994) + .withStartSearchTime(OffsetDateTime.parse("2021-04-27T22:18:57Z")) + .withEndSearchTime(OffsetDateTime.parse("2021-01-03T05:28:43Z"))) + .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-03-30T18:35:12Z")) + .withEndRestoreTime(OffsetDateTime.parse("2021-07-25T04:23:40Z")) + .withSourceTable("udzpxgwjplmagstc")) + .withPlan(TablePlanEnum.ANALYTICS) + .withSchema(new Schema().withName("viacegfnmntfpmv") + .withDisplayName("mfnczd") + .withDescription("vbalxlllc") .withColumns(Arrays.asList( - new Column().withName("dhkha") - .withType(ColumnTypeEnum.BOOLEAN) + new Column().withName("bzevwrd") + .withType(ColumnTypeEnum.DYNAMIC) + .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) + .withDisplayName("vsjcswsmystuluqy") + .withDescription("cvlerchpqbmfpjba"), + new Column().withName("xsspuunnoxyhk") + .withType(ColumnTypeEnum.DYNAMIC) + .withDataTypeHint(ColumnDataTypeHintEnum.IP) + .withDisplayName("i") + .withDescription("fhoqca"), + new Column().withName("mdjvlpj") + .withType(ColumnTypeEnum.GUID) .withDataTypeHint(ColumnDataTypeHintEnum.URI) - .withDisplayName("bon") - .withDescription("ntoe"), - new Column().withName("whkszzcmrvexztvb") - .withType(ColumnTypeEnum.DATE_TIME) - .withDataTypeHint(ColumnDataTypeHintEnum.URI) - .withDisplayName("aoyzkoow") - .withDescription("mnguxawqaldsyu"), - new Column().withName("qfobwyz") - .withType(ColumnTypeEnum.LONG) - .withDataTypeHint(ColumnDataTypeHintEnum.GUID) - .withDisplayName("t") - .withDescription("fhpagmhrskdsnf"), - new Column().withName("gtdlmk") - .withType(ColumnTypeEnum.LONG) - .withDataTypeHint(ColumnDataTypeHintEnum.GUID) - .withDisplayName("hewpusdsttwv") - .withDescription("vbbejdcng")))); + .withDisplayName("msgeivsiykzk") + .withDescription("cjdx")))); model = BinaryData.fromObject(model).toObject(TableProperties.class); - Assertions.assertEquals(220532000, model.retentionInDays()); - Assertions.assertEquals(103703544, model.totalRetentionInDays()); - Assertions.assertEquals("wjue", model.searchResults().query()); - Assertions.assertEquals("eburu", model.searchResults().description()); - Assertions.assertEquals(1850094254, model.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-16T01:35:10Z"), model.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T15:34:48Z"), model.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T06:29:30Z"), model.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T19:19:07Z"), model.restoredLogs().endRestoreTime()); - Assertions.assertEquals("frvtpuqu", model.restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.AUXILIARY, model.plan()); - Assertions.assertEquals("kojvd", model.schema().name()); - Assertions.assertEquals("zfoqouicybxar", model.schema().displayName()); - Assertions.assertEquals("szufoxciqopidoa", model.schema().description()); - Assertions.assertEquals("dhkha", model.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.BOOLEAN, model.schema().columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.URI, model.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("bon", model.schema().columns().get(0).displayName()); - Assertions.assertEquals("ntoe", model.schema().columns().get(0).description()); + Assertions.assertEquals(1317019798, model.retentionInDays()); + Assertions.assertEquals(889333374, model.totalRetentionInDays()); + Assertions.assertEquals("dilmyww", model.searchResults().query()); + Assertions.assertEquals("gkxnyedabg", model.searchResults().description()); + Assertions.assertEquals(110774994, model.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-27T22:18:57Z"), model.searchResults().startSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T05:28:43Z"), model.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T18:35:12Z"), model.restoredLogs().startRestoreTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T04:23:40Z"), model.restoredLogs().endRestoreTime()); + Assertions.assertEquals("udzpxgwjplmagstc", model.restoredLogs().sourceTable()); + Assertions.assertEquals(TablePlanEnum.ANALYTICS, model.plan()); + Assertions.assertEquals("viacegfnmntfpmv", model.schema().name()); + Assertions.assertEquals("mfnczd", model.schema().displayName()); + Assertions.assertEquals("vbalxlllc", model.schema().description()); + Assertions.assertEquals("bzevwrd", model.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DYNAMIC, model.schema().columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.ARM_PATH, model.schema().columns().get(0).dataTypeHint()); + Assertions.assertEquals("vsjcswsmystuluqy", model.schema().columns().get(0).displayName()); + Assertions.assertEquals("cvlerchpqbmfpjba", model.schema().columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchWithResponseMockTests.java index 9e7a5de90ff5..00ecf5bf3287 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCancelSearchWithResponseMockTests.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.generated; @@ -28,7 +28,7 @@ public void testCancelSearchWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.tables() - .cancelSearchWithResponse("bxsjybvitvqkj", "az", "umtggmuwdchozfn", com.azure.core.util.Context.NONE); + .cancelSearchWithResponse("bqsdtcjbctvi", "uzqymtuowog", "gitsqh", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateMockTests.java index 47b3fe36b9ae..d61fcee9d44d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesCreateOrUpdateMockTests.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.generated; @@ -29,7 +29,7 @@ public final class TablesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"retentionInDays\":1532200707,\"totalRetentionInDays\":543172402,\"archiveRetentionInDays\":699290789,\"searchResults\":{\"query\":\"fccnuhiigb\",\"description\":\"bui\",\"limit\":1764547970,\"startSearchTime\":\"2021-06-14T14:08:19Z\",\"endSearchTime\":\"2021-05-03T08:54:55Z\",\"sourceTable\":\"rkdlb\",\"azureAsyncOperationId\":\"qxvhcsyhzlwxa\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-21T01:21:46Z\",\"endRestoreTime\":\"2021-05-18T07:30Z\",\"sourceTable\":\"xdndsbdweaderzm\",\"azureAsyncOperationId\":\"t\"},\"resultStatistics\":{\"progress\":86.6211,\"ingestedRecords\":1639161747,\"scannedGb\":6.1114073},\"plan\":\"Basic\",\"lastPlanModifiedDate\":\"goaqylkjztj\",\"schema\":{\"name\":\"zjcg\",\"displayName\":\"itpfinzcpdl\",\"description\":\"rlgjm\",\"columns\":[{\"name\":\"vcqguefzh\",\"type\":\"string\",\"dataTypeHint\":\"ip\",\"displayName\":\"durelyujl\",\"description\":\"oumpcky\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"gptaj\",\"type\":\"boolean\",\"dataTypeHint\":\"armPath\",\"displayName\":\"ucycijo\",\"description\":\"xiutgjcyzyzj\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"txjeaoqaqbzgy\",\"type\":\"string\",\"dataTypeHint\":\"uri\",\"displayName\":\"atbwbqam\",\"description\":\"uliyslpkcv\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pmywbormcq\",\"type\":\"guid\",\"dataTypeHint\":\"ip\",\"displayName\":\"qpkzfbojxjmcsmy\",\"description\":\"ixvcpwnkwywzwo\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"uoiqt\",\"mt\"],\"labels\":[\"kn\",\"rwzawnvs\",\"cfhzagxnvhycv\",\"imwrzregzgyufu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Classic\",\"solutions\":[\"kzkdhmeott\",\"w\",\"yos\",\"wwhnhjtfvpn\"]},\"provisioningState\":\"Succeeded\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"wyn\",\"name\":\"dqllzsauzpjlxeeh\",\"type\":\"xiqhzlraymezxlsk\"}"; + = "{\"properties\":{\"retentionInDays\":177058827,\"totalRetentionInDays\":486728689,\"archiveRetentionInDays\":76978943,\"searchResults\":{\"query\":\"alybxawoijpo\",\"description\":\"blxpkkwjdjodq\",\"limit\":501010197,\"startSearchTime\":\"2021-07-23T17:17:38Z\",\"endSearchTime\":\"2020-12-31T11:52:10Z\",\"sourceTable\":\"emehllizh\",\"azureAsyncOperationId\":\"umoqodkad\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-01-08T20:54:38Z\",\"endRestoreTime\":\"2021-06-24T06:19:09Z\",\"sourceTable\":\"qladywrxwhydtlu\",\"azureAsyncOperationId\":\"adswz\"},\"resultStatistics\":{\"progress\":83.47022021832711,\"ingestedRecords\":1352834601,\"scannedGb\":65.32146691207679},\"plan\":\"Basic\",\"lastPlanModifiedDate\":\"lxlnwyrmo\",\"schema\":{\"name\":\"lgmokzkl\",\"displayName\":\"fowtdvrfmvlihcvj\",\"description\":\"qcrj\",\"columns\":[{\"name\":\"tuk\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"yojbfqzdkf\",\"description\":\"yixhafratqxmb\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"valqjrhuzgfxo\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"llywpvtiotzbp\",\"description\":\"ollgry\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"growsoc\"],\"labels\":[\"uygdjboqgr\",\"tqjkqevad\",\"mmwiuawvcmjz\",\"xiid\"],\"source\":\"customer\",\"tableType\":\"Microsoft\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"oqiqazugamx\",\"krrcoiisbamnpp\",\"cekuz\",\"dsbezaxyfu\"]},\"provisioningState\":\"Succeeded\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":false},\"id\":\"hnepkpeti\",\"name\":\"rx\",\"type\":\"iubxdukec\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,65 +39,65 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Table response = manager.tables() - .define("akizvoaikna") - .withExistingWorkspace("fexl", "xn") - .withRetentionInDays(427869575) - .withTotalRetentionInDays(915740665) - .withSearchResults(new SearchResults().withQuery("lykwphvxz") - .withDescription("xhmpejtlkex") - .withLimit(780657181) - .withStartSearchTime(OffsetDateTime.parse("2021-09-17T09:38:18Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-08-12T17:38:45Z"))) - .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-03-10T18:49:30Z")) - .withEndRestoreTime(OffsetDateTime.parse("2021-10-06T09:15:33Z")) - .withSourceTable("kyupijubyqj")) + .define("db") + .withExistingWorkspace("vbrzcdb", "nfzndscxmxeat") + .withRetentionInDays(1879583811) + .withTotalRetentionInDays(1943838526) + .withSearchResults(new SearchResults().withQuery("bnaomhjrmkuhmax") + .withDescription("alfihcjmobcancd") + .withLimit(1706912474) + .withStartSearchTime(OffsetDateTime.parse("2021-11-01T09:40:46Z")) + .withEndSearchTime(OffsetDateTime.parse("2021-07-03T01:21:24Z"))) + .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-08-17T03:42:25Z")) + .withEndRestoreTime(OffsetDateTime.parse("2021-10-01T02:22:41Z")) + .withSourceTable("yfytpq")) .withPlan(TablePlanEnum.ANALYTICS) - .withSchema(new Schema().withName("mgzvyfi") - .withDisplayName("kzuqnwsith") - .withDescription("olyahluqwqulsut") + .withSchema(new Schema().withName("yovwzdbpqv") + .withDisplayName("efgv") + .withDescription("nokcv") .withColumns(Arrays.asList( - new Column().withName("xykfhyq") + new Column().withName("seskvcuar") + .withType(ColumnTypeEnum.GUID) + .withDataTypeHint(ColumnDataTypeHintEnum.URI) + .withDisplayName("pirykycndzfqiv") + .withDescription("euy"), + new Column().withName("aglt") .withType(ColumnTypeEnum.DATE_TIME) + .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) + .withDisplayName("nqlnfwmyymvqd") + .withDescription("bhfckdvezcrcssb"), + new Column().withName("bnqfblhk") + .withType(ColumnTypeEnum.DYNAMIC) .withDataTypeHint(ColumnDataTypeHintEnum.IP) - .withDisplayName("g") - .withDescription("ftbcvexreuquow"), - new Column().withName("hreagk") - .withType(ColumnTypeEnum.STRING) - .withDataTypeHint(ColumnDataTypeHintEnum.IP) - .withDisplayName("tvbczsulm") - .withDescription("glmep"), - new Column().withName("kgsangpszng") + .withDisplayName("vawu") + .withDescription("qjtiogqgdm"), + new Column().withName("eajohiyg") .withType(ColumnTypeEnum.STRING) - .withDataTypeHint(ColumnDataTypeHintEnum.ARM_PATH) - .withDisplayName("kvec") - .withDescription("jcngoadyed"), - new Column().withName("oknub") - .withType(ColumnTypeEnum.DATE_TIME) .withDataTypeHint(ColumnDataTypeHintEnum.GUID) - .withDisplayName("pz") - .withDescription("gdgxvcoqraswug")))) + .withDisplayName("hpczykmktpvw") + .withDescription("csehchkhufm")))) .create(); - Assertions.assertEquals(1532200707, response.retentionInDays()); - Assertions.assertEquals(543172402, response.totalRetentionInDays()); - Assertions.assertEquals("fccnuhiigb", response.searchResults().query()); - Assertions.assertEquals("bui", response.searchResults().description()); - Assertions.assertEquals(1764547970, response.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-14T14:08:19Z"), + Assertions.assertEquals(177058827, response.retentionInDays()); + Assertions.assertEquals(486728689, response.totalRetentionInDays()); + Assertions.assertEquals("alybxawoijpo", response.searchResults().query()); + Assertions.assertEquals("blxpkkwjdjodq", response.searchResults().description()); + Assertions.assertEquals(501010197, response.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-23T17:17:38Z"), response.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-03T08:54:55Z"), response.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-21T01:21:46Z"), + Assertions.assertEquals(OffsetDateTime.parse("2020-12-31T11:52:10Z"), response.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T20:54:38Z"), response.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T07:30Z"), response.restoredLogs().endRestoreTime()); - Assertions.assertEquals("xdndsbdweaderzm", response.restoredLogs().sourceTable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T06:19:09Z"), response.restoredLogs().endRestoreTime()); + Assertions.assertEquals("qladywrxwhydtlu", response.restoredLogs().sourceTable()); Assertions.assertEquals(TablePlanEnum.BASIC, response.plan()); - Assertions.assertEquals("zjcg", response.schema().name()); - Assertions.assertEquals("itpfinzcpdl", response.schema().displayName()); - Assertions.assertEquals("rlgjm", response.schema().description()); - Assertions.assertEquals("vcqguefzh", response.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.STRING, response.schema().columns().get(0).type()); + Assertions.assertEquals("lgmokzkl", response.schema().name()); + Assertions.assertEquals("fowtdvrfmvlihcvj", response.schema().displayName()); + Assertions.assertEquals("qcrj", response.schema().description()); + Assertions.assertEquals("tuk", response.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DATE_TIME, response.schema().columns().get(0).type()); Assertions.assertEquals(ColumnDataTypeHintEnum.IP, response.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("durelyujl", response.schema().columns().get(0).displayName()); - Assertions.assertEquals("oumpcky", response.schema().columns().get(0).description()); + Assertions.assertEquals("yojbfqzdkf", response.schema().columns().get(0).displayName()); + Assertions.assertEquals("yixhafratqxmb", response.schema().columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteMockTests.java index eb4fe5983d9a..018a4b70d589 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesDeleteMockTests.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.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.tables().delete("rsofpltdbmairrh", "hfnrac", "npq", com.azure.core.util.Context.NONE); + manager.tables().delete("mtbdrvcqgu", "fzhompheq", "urelyujlfyoump", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java index 87a879528665..339a84a6e6f2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.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.generated; @@ -24,7 +24,7 @@ public final class TablesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"retentionInDays\":173129276,\"totalRetentionInDays\":1276247393,\"archiveRetentionInDays\":611963257,\"searchResults\":{\"query\":\"lblhtjq\",\"description\":\"yvwehtaemxh\",\"limit\":974813630,\"startSearchTime\":\"2021-07-22T16:02:08Z\",\"endSearchTime\":\"2021-06-03T23:18:21Z\",\"sourceTable\":\"xivzrrry\",\"azureAsyncOperationId\":\"imipskdyzatvfuz\"},\"restoredLogs\":{\"startRestoreTime\":\"2020-12-21T06:07:21Z\",\"endRestoreTime\":\"2021-03-13T04:29:21Z\",\"sourceTable\":\"ru\",\"azureAsyncOperationId\":\"igsyeipqdsmjt\"},\"resultStatistics\":{\"progress\":32.653797,\"ingestedRecords\":1529968527,\"scannedGb\":98.93236},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"plkcsm\",\"schema\":{\"name\":\"wtbbaedorvvmqf\",\"displayName\":\"ygbdgwumgxdgdhpa\",\"description\":\"dexjddvjs\",\"columns\":[{\"name\":\"tm\",\"type\":\"guid\",\"dataTypeHint\":\"ip\",\"displayName\":\"lsrs\",\"description\":\"pt\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gjokjljnhvlqjbek\",\"type\":\"guid\",\"dataTypeHint\":\"armPath\",\"displayName\":\"bksdqhjvyklxesl\",\"description\":\"hustcpoqmavnwqjw\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"jjjkxybwfdbk\",\"type\":\"guid\",\"dataTypeHint\":\"armPath\",\"displayName\":\"svkzykj\",\"description\":\"kns\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"cdp\",\"type\":\"string\",\"dataTypeHint\":\"armPath\",\"displayName\":\"mgjfbpkuwxeoio\",\"description\":\"izfavkjzwf\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"fz\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"zxmdew\",\"description\":\"sxkrpl\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"w\",\"iyoypsuhbrnnhj\"],\"labels\":[\"wjh\",\"kbiwetpozyc\",\"qiqyhgfsetzlexbs\",\"ledynojpz\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"tnhqsycl\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"afvafh\",\"name\":\"by\",\"type\":\"ccbevxrhyzdf\"}"; + = "{\"properties\":{\"retentionInDays\":1360413758,\"totalRetentionInDays\":303865624,\"archiveRetentionInDays\":1281180926,\"searchResults\":{\"query\":\"olyahluqwqulsut\",\"description\":\"bhxykfhyqezvqqug\",\"limit\":1475377134,\"startSearchTime\":\"2021-04-08T05:18:37Z\",\"endSearchTime\":\"2021-09-17T05:59:38Z\",\"sourceTable\":\"xreuquowtlj\",\"azureAsyncOperationId\":\"whreagkhyxvrq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-06T02:53:55Z\",\"endRestoreTime\":\"2021-03-28T20:35:45Z\",\"sourceTable\":\"lmdgglmepjp\",\"azureAsyncOperationId\":\"eykgsangpszngaf\"},\"resultStatistics\":{\"progress\":26.100731176789093,\"ingestedRecords\":2068016278,\"scannedGb\":51.703176428226385},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"goadyedmzr\",\"schema\":{\"name\":\"oknub\",\"displayName\":\"itpkpztrgdg\",\"description\":\"coqra\",\"columns\":[{\"name\":\"yxp\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"alwvskbu\",\"description\":\"acaqtyltcoqcu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"akuejk\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"jofqcvovjufycs\",\"description\":\"lbemyej\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"hortu\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"felqerpptc\",\"description\":\"qnzmnhiil\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gckbb\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"raoxnyuff\",\"description\":\"sgftipwc\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"iqdxyurnpnuh\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"uhiigbyl\",\"description\":\"igvxvatvcrk\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"vhcs\",\"hzlwxaea\"],\"labels\":[\"rexdndsbd\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ntopa\",\"ttmvmmagoaqylkjz\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"gmxitpfi\",\"name\":\"zc\",\"type\":\"dltkrlg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,29 +34,29 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Table response = manager.tables() - .getWithResponse("wqapfgsdp", "vessm", "hhkuuip", com.azure.core.util.Context.NONE) + .getWithResponse("vfdjkpdxp", "lkksnmgzvyfi", "dkz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(173129276, response.retentionInDays()); - Assertions.assertEquals(1276247393, response.totalRetentionInDays()); - Assertions.assertEquals("lblhtjq", response.searchResults().query()); - Assertions.assertEquals("yvwehtaemxh", response.searchResults().description()); - Assertions.assertEquals(974813630, response.searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T16:02:08Z"), + Assertions.assertEquals(1360413758, response.retentionInDays()); + Assertions.assertEquals(303865624, response.totalRetentionInDays()); + Assertions.assertEquals("olyahluqwqulsut", response.searchResults().query()); + Assertions.assertEquals("bhxykfhyqezvqqug", response.searchResults().description()); + Assertions.assertEquals(1475377134, response.searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-08T05:18:37Z"), response.searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T23:18:21Z"), response.searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T06:07:21Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T05:59:38Z"), response.searchResults().endSearchTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T02:53:55Z"), response.restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-13T04:29:21Z"), response.restoredLogs().endRestoreTime()); - Assertions.assertEquals("ru", response.restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.ANALYTICS, response.plan()); - Assertions.assertEquals("wtbbaedorvvmqf", response.schema().name()); - Assertions.assertEquals("ygbdgwumgxdgdhpa", response.schema().displayName()); - Assertions.assertEquals("dexjddvjs", response.schema().description()); - Assertions.assertEquals("tm", response.schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.GUID, response.schema().columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.IP, response.schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("lsrs", response.schema().columns().get(0).displayName()); - Assertions.assertEquals("pt", response.schema().columns().get(0).description()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-28T20:35:45Z"), response.restoredLogs().endRestoreTime()); + Assertions.assertEquals("lmdgglmepjp", response.restoredLogs().sourceTable()); + Assertions.assertEquals(TablePlanEnum.AUXILIARY, response.plan()); + Assertions.assertEquals("oknub", response.schema().name()); + Assertions.assertEquals("itpkpztrgdg", response.schema().displayName()); + Assertions.assertEquals("coqra", response.schema().description()); + Assertions.assertEquals("yxp", response.schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.DYNAMIC, response.schema().columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.ARM_PATH, response.schema().columns().get(0).dataTypeHint()); + Assertions.assertEquals("alwvskbu", response.schema().columns().get(0).displayName()); + Assertions.assertEquals("acaqtyltcoqcu", response.schema().columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java index da5b0231cd34..a66becdc6f1c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.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.generated; @@ -25,7 +25,7 @@ public final class TablesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"retentionInDays\":1986729733,\"totalRetentionInDays\":260996663,\"archiveRetentionInDays\":1750889059,\"searchResults\":{\"query\":\"cdxa\",\"description\":\"u\",\"limit\":2063766495,\"startSearchTime\":\"2021-08-26T08:46Z\",\"endSearchTime\":\"2021-09-09T20:53:20Z\",\"sourceTable\":\"bklqpxz\",\"azureAsyncOperationId\":\"afeddwwnlza\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-04-21T23:27:57Z\",\"endRestoreTime\":\"2021-11-21T23:37:33Z\",\"sourceTable\":\"hgookrtalvnbwgpb\",\"azureAsyncOperationId\":\"eluclvdjj\"},\"resultStatistics\":{\"progress\":84.43588,\"ingestedRecords\":574084923,\"scannedGb\":58.54812},\"plan\":\"Basic\",\"lastPlanModifiedDate\":\"hhxhq\",\"schema\":{\"name\":\"nvzoqgyipemch\",\"displayName\":\"v\",\"description\":\"zuejd\",\"columns\":[{\"name\":\"lghwzhome\",\"type\":\"string\",\"dataTypeHint\":\"uri\",\"displayName\":\"iuh\",\"description\":\"wmoaiancznvodrrs\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"kxrx\",\"type\":\"dateTime\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kgfbqljnqkhy\",\"description\":\"ocokule\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"qffawey\",\"type\":\"boolean\",\"dataTypeHint\":\"uri\",\"displayName\":\"jdxravjuqdbrx\",\"description\":\"gchbapxkiy\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"jbuscg\",\"type\":\"string\",\"dataTypeHint\":\"guid\",\"displayName\":\"ycblevpmcl\",\"description\":\"yxkyxlz\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"taf\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"vwmbjlzqsczpg\",\"description\":\"wnapfdq\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"tnuwjtkschgc\",\"type\":\"string\",\"dataTypeHint\":\"ip\",\"displayName\":\"seyqrhvyeldotjv\",\"description\":\"wiswskukjtasbvw\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"dtxfkndlqvtwknvg\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"yw\",\"description\":\"mqaqkueatgroes\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"byfqxkfaoy\",\"type\":\"string\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vjmvqmtdwckygr\",\"description\":\"jn\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"skbrreqynkc\",\"ysfaqegplwrysh\"],\"labels\":[\"kvb\"],\"source\":\"customer\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"Any\",\"solutions\":[\"ptdacarvvl\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":false},\"id\":\"iwenazero\",\"name\":\"zrsq\",\"type\":\"lsxkd\"}]}"; + = "{\"value\":[{\"properties\":{\"retentionInDays\":1067831194,\"totalRetentionInDays\":1338234971,\"archiveRetentionInDays\":81807021,\"searchResults\":{\"query\":\"jdnrqjbt\",\"description\":\"eaoqaqbzgyhf\",\"limit\":122929865,\"startSearchTime\":\"2021-09-21T19:14:48Z\",\"endSearchTime\":\"2021-03-20T20:58:19Z\",\"sourceTable\":\"bqamteuliyslpk\",\"azureAsyncOperationId\":\"mw\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-25T12:04:18Z\",\"endRestoreTime\":\"2021-01-21T00:53:39Z\",\"sourceTable\":\"myw\",\"azureAsyncOperationId\":\"rmcqmiciijqpkz\"},\"resultStatistics\":{\"progress\":58.73400554711503,\"ingestedRecords\":1008531310,\"scannedGb\":96.94226082279155},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ixvcpwnkwywzwo\",\"schema\":{\"name\":\"ickduoiqta\",\"displayName\":\"yvsk\",\"description\":\"rwzawnvs\",\"columns\":[{\"name\":\"zagxnvhycvdi\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"gzgy\",\"description\":\"utrwpweryekz\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tta\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"wwhnhjtfvpn\",\"description\":\"miljpnwynud\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pjlxeehuxiqhzl\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"xls\",\"description\":\"hmx\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"rednw\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"w\",\"description\":\"evuafpwzyifrk\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"qipxgzdyimsf\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"avkjog\",\"description\":\"labnsmjkwynq\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"kvwjtqpkevmy\",\"tjcrspxklurccl\",\"gxannnoytzposewx\",\"gpxvkqmaupxvpi\"],\"labels\":[\"aifyzyzeyuubeids\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"gygvfltgvdiho\",\"nkrxwetwkdrcy\",\"ucpcunnuzdqumoen\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"qh\",\"name\":\"knd\",\"type\":\"elqkaadlkn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,31 +35,31 @@ public void testListByWorkspace() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable
response - = manager.tables().listByWorkspace("kxrerlniylylyfwx", "utgqztwh", com.azure.core.util.Context.NONE); + = manager.tables().listByWorkspace("kyeclcdigpta", "brzmqxucycijoclx", com.azure.core.util.Context.NONE); - Assertions.assertEquals(1986729733, response.iterator().next().retentionInDays()); - Assertions.assertEquals(260996663, response.iterator().next().totalRetentionInDays()); - Assertions.assertEquals("cdxa", response.iterator().next().searchResults().query()); - Assertions.assertEquals("u", response.iterator().next().searchResults().description()); - Assertions.assertEquals(2063766495, response.iterator().next().searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-26T08:46Z"), + Assertions.assertEquals(1067831194, response.iterator().next().retentionInDays()); + Assertions.assertEquals(1338234971, response.iterator().next().totalRetentionInDays()); + Assertions.assertEquals("jdnrqjbt", response.iterator().next().searchResults().query()); + Assertions.assertEquals("eaoqaqbzgyhf", response.iterator().next().searchResults().description()); + Assertions.assertEquals(122929865, response.iterator().next().searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-21T19:14:48Z"), response.iterator().next().searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T20:53:20Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-20T20:58:19Z"), response.iterator().next().searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-21T23:27:57Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-25T12:04:18Z"), response.iterator().next().restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T23:37:33Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T00:53:39Z"), response.iterator().next().restoredLogs().endRestoreTime()); - Assertions.assertEquals("hgookrtalvnbwgpb", response.iterator().next().restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.BASIC, response.iterator().next().plan()); - Assertions.assertEquals("nvzoqgyipemch", response.iterator().next().schema().name()); - Assertions.assertEquals("v", response.iterator().next().schema().displayName()); - Assertions.assertEquals("zuejd", response.iterator().next().schema().description()); - Assertions.assertEquals("lghwzhome", response.iterator().next().schema().columns().get(0).name()); - Assertions.assertEquals(ColumnTypeEnum.STRING, response.iterator().next().schema().columns().get(0).type()); - Assertions.assertEquals(ColumnDataTypeHintEnum.URI, + Assertions.assertEquals("myw", response.iterator().next().restoredLogs().sourceTable()); + Assertions.assertEquals(TablePlanEnum.AUXILIARY, response.iterator().next().plan()); + Assertions.assertEquals("ickduoiqta", response.iterator().next().schema().name()); + Assertions.assertEquals("yvsk", response.iterator().next().schema().displayName()); + Assertions.assertEquals("rwzawnvs", response.iterator().next().schema().description()); + Assertions.assertEquals("zagxnvhycvdi", response.iterator().next().schema().columns().get(0).name()); + Assertions.assertEquals(ColumnTypeEnum.INT, response.iterator().next().schema().columns().get(0).type()); + Assertions.assertEquals(ColumnDataTypeHintEnum.IP, response.iterator().next().schema().columns().get(0).dataTypeHint()); - Assertions.assertEquals("iuh", response.iterator().next().schema().columns().get(0).displayName()); - Assertions.assertEquals("wmoaiancznvodrrs", response.iterator().next().schema().columns().get(0).description()); + Assertions.assertEquals("gzgy", response.iterator().next().schema().columns().get(0).displayName()); + Assertions.assertEquals("utrwpweryekz", response.iterator().next().schema().columns().get(0).description()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java index 7c2eff2f4ce6..50c35880d60f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java @@ -1,98 +1,39 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.TableInner; -import com.azure.resourcemanager.loganalytics.models.Column; -import com.azure.resourcemanager.loganalytics.models.RestoredLogs; -import com.azure.resourcemanager.loganalytics.models.Schema; -import com.azure.resourcemanager.loganalytics.models.SearchResults; +import com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult; import com.azure.resourcemanager.loganalytics.models.TablePlanEnum; -import com.azure.resourcemanager.loganalytics.models.TablesListResult; import java.time.OffsetDateTime; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class TablesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TablesListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"retentionInDays\":288092317,\"totalRetentionInDays\":1703781779,\"archiveRetentionInDays\":995419481,\"searchResults\":{\"query\":\"bwwift\",\"description\":\"qkvpuvksgplsakn\",\"limit\":792282663,\"startSearchTime\":\"2021-08-07T07:41:08Z\",\"endSearchTime\":\"2021-04-07T05:17:19Z\",\"sourceTable\":\"ph\",\"azureAsyncOperationId\":\"pxodlqiyntorzih\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-07-03T10:26:48Z\",\"endRestoreTime\":\"2021-08-13T08:44:45Z\",\"sourceTable\":\"srmslyzr\",\"azureAsyncOperationId\":\"bchckqqzqio\"},\"resultStatistics\":{\"progress\":77.20928,\"ingestedRecords\":1721034864,\"scannedGb\":44.14792},\"plan\":\"Basic\",\"lastPlanModifiedDate\":\"edyatrwyhqmibzyh\",\"schema\":{\"name\":\"smypyynpc\",\"displayName\":\"umnzgmwznmabik\",\"description\":\"orgjhxbldt\",\"columns\":[{},{}],\"standardColumns\":[{},{},{},{}],\"categories\":[\"m\",\"ncvokotllxdyhg\"],\"labels\":[\"cogjltdtbn\",\"hadoocrk\"],\"source\":\"customer\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mqg\",\"qqu\",\"zikywgg\",\"kallatmel\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"zkzivgvvcnay\",\"name\":\"hyrnxxmu\",\"type\":\"edndr\"},{\"properties\":{\"retentionInDays\":817024636,\"totalRetentionInDays\":467483193,\"archiveRetentionInDays\":768624981,\"searchResults\":{\"query\":\"healmfmtda\",\"description\":\"gdv\",\"limit\":1689077175,\"startSearchTime\":\"2021-06-05T03:50:49Z\",\"endSearchTime\":\"2021-10-30T10:52:42Z\",\"sourceTable\":\"wxrt\",\"azureAsyncOperationId\":\"dxepxgyq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-11-27T06:03:21Z\",\"endRestoreTime\":\"2020-12-28T18:07:39Z\",\"sourceTable\":\"pkukghi\",\"azureAsyncOperationId\":\"blxgwimf\"},\"resultStatistics\":{\"progress\":41.899403,\"ingestedRecords\":510557599,\"scannedGb\":39.004253},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"kfoqreyfkzikfj\",\"schema\":{\"name\":\"eaivxwczel\",\"displayName\":\"irels\",\"description\":\"aenwabf\",\"columns\":[{}],\"standardColumns\":[{},{},{},{}],\"categories\":[\"bjhwuaan\",\"zjosp\",\"youlp\",\"rvxaglrvimjwosy\"],\"labels\":[\"tcs\"],\"source\":\"customer\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ekkezzikhlyfjh\",\"gqggebdunygae\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"pxllrx\",\"name\":\"yjmoadsu\",\"type\":\"arm\"}]}") + "{\"value\":[{\"properties\":{\"retentionInDays\":215844644,\"totalRetentionInDays\":1198347507,\"archiveRetentionInDays\":261950952,\"searchResults\":{\"query\":\"tg\",\"description\":\"nzeyqxtjj\",\"limit\":715633855,\"startSearchTime\":\"2021-03-19T00:54:21Z\",\"endSearchTime\":\"2021-01-28T05:26:07Z\",\"sourceTable\":\"avodg\",\"azureAsyncOperationId\":\"dbeesmie\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-11T02:30:59Z\",\"endRestoreTime\":\"2021-01-30T20:04:42Z\",\"sourceTable\":\"aawiuagydwqfb\",\"azureAsyncOperationId\":\"yr\"},\"resultStatistics\":{\"progress\":16.077869516417877,\"ingestedRecords\":1957369662,\"scannedGb\":87.74515056919178},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ogfnzjvusf\",\"schema\":{\"name\":\"mozuxylfsb\",\"displayName\":\"adpysownbt\",\"description\":\"bugrj\",\"columns\":[{}],\"standardColumns\":[{}],\"categories\":[\"isofieypefojyqd\"],\"labels\":[\"plcplcwkhi\"],\"source\":\"customer\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"tzbsrgnowcjhf\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"xmwoteyowcluqo\",\"name\":\"ekqvgqouwif\",\"type\":\"mpjw\"},{\"properties\":{\"retentionInDays\":1750235907,\"totalRetentionInDays\":18074725,\"archiveRetentionInDays\":1813294766,\"searchResults\":{\"query\":\"hrfsphuagrtti\",\"description\":\"eusqczkvyklxu\",\"limit\":1413186708,\"startSearchTime\":\"2021-11-29T09:18:30Z\",\"endSearchTime\":\"2021-09-13T22:37:23Z\",\"sourceTable\":\"fblcq\",\"azureAsyncOperationId\":\"ubgq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-13T13:57:03Z\",\"endRestoreTime\":\"2021-08-13T22:08:40Z\",\"sourceTable\":\"etttwgdslqxihhr\",\"azureAsyncOperationId\":\"oi\"},\"resultStatistics\":{\"progress\":89.29105043029318,\"ingestedRecords\":1595822311,\"scannedGb\":53.37658518150889},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"pzhyr\",\"schema\":{\"name\":\"o\",\"displayName\":\"bjoxs\",\"description\":\"vnh\",\"columns\":[{},{},{}],\"standardColumns\":[{}],\"categories\":[\"kzjcjbtrgae\",\"vvib\",\"xjjs\"],\"labels\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"t\",\"kozzwculkb\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"wltlwtjjguktalh\",\"name\":\"nvkcdmxzrpoa\",\"type\":\"mlnwiaaomylweazu\"},{\"properties\":{\"retentionInDays\":958825204,\"totalRetentionInDays\":950658214,\"archiveRetentionInDays\":1686988700,\"searchResults\":{\"query\":\"jhlfzswpchwahf\",\"description\":\"usnfepgfewet\",\"limit\":1730417051,\"startSearchTime\":\"2021-01-13T00:28:43Z\",\"endSearchTime\":\"2021-06-27T13:13:13Z\",\"sourceTable\":\"ykxhdjh\",\"azureAsyncOperationId\":\"mmbcxfhbcp\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-20T00:41:29Z\",\"endRestoreTime\":\"2021-02-20T11:25:19Z\",\"sourceTable\":\"zhqizxf\",\"azureAsyncOperationId\":\"tgqscjavftjuh\"},\"resultStatistics\":{\"progress\":96.7049778336437,\"ingestedRecords\":1903127513,\"scannedGb\":27.661334456416895},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"jrajcivm\",\"schema\":{\"name\":\"f\",\"displayName\":\"iwrxgkn\",\"description\":\"vyi\",\"columns\":[{},{}],\"standardColumns\":[{},{}],\"categories\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"labels\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"source\":\"microsoft\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mhv\",\"muvgp\",\"uneqsxvmhf\",\"uzjyihsasbhudypo\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"}],\"nextLink\":\"jouw\"}") .toObject(TablesListResult.class); - Assertions.assertEquals(288092317, model.value().get(0).retentionInDays()); - Assertions.assertEquals(1703781779, model.value().get(0).totalRetentionInDays()); - Assertions.assertEquals("bwwift", model.value().get(0).searchResults().query()); - Assertions.assertEquals("qkvpuvksgplsakn", model.value().get(0).searchResults().description()); - Assertions.assertEquals(792282663, model.value().get(0).searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-07T07:41:08Z"), + Assertions.assertEquals(215844644, model.value().get(0).retentionInDays()); + Assertions.assertEquals(1198347507, model.value().get(0).totalRetentionInDays()); + Assertions.assertEquals("tg", model.value().get(0).searchResults().query()); + Assertions.assertEquals("nzeyqxtjj", model.value().get(0).searchResults().description()); + Assertions.assertEquals(715633855, model.value().get(0).searchResults().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-19T00:54:21Z"), model.value().get(0).searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T05:17:19Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T05:26:07Z"), model.value().get(0).searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T10:26:48Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-11T02:30:59Z"), model.value().get(0).restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-13T08:44:45Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T20:04:42Z"), model.value().get(0).restoredLogs().endRestoreTime()); - Assertions.assertEquals("srmslyzr", model.value().get(0).restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.BASIC, model.value().get(0).plan()); - Assertions.assertEquals("smypyynpc", model.value().get(0).schema().name()); - Assertions.assertEquals("umnzgmwznmabik", model.value().get(0).schema().displayName()); - Assertions.assertEquals("orgjhxbldt", model.value().get(0).schema().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TablesListResult model = new TablesListResult().withValue(Arrays.asList( - new TableInner().withRetentionInDays(288092317) - .withTotalRetentionInDays(1703781779) - .withSearchResults(new SearchResults().withQuery("bwwift") - .withDescription("qkvpuvksgplsakn") - .withLimit(792282663) - .withStartSearchTime(OffsetDateTime.parse("2021-08-07T07:41:08Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-04-07T05:17:19Z"))) - .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-07-03T10:26:48Z")) - .withEndRestoreTime(OffsetDateTime.parse("2021-08-13T08:44:45Z")) - .withSourceTable("srmslyzr")) - .withPlan(TablePlanEnum.BASIC) - .withSchema(new Schema().withName("smypyynpc") - .withDisplayName("umnzgmwznmabik") - .withDescription("orgjhxbldt") - .withColumns(Arrays.asList(new Column(), new Column()))), - new TableInner().withRetentionInDays(817024636) - .withTotalRetentionInDays(467483193) - .withSearchResults(new SearchResults().withQuery("healmfmtda") - .withDescription("gdv") - .withLimit(1689077175) - .withStartSearchTime(OffsetDateTime.parse("2021-06-05T03:50:49Z")) - .withEndSearchTime(OffsetDateTime.parse("2021-10-30T10:52:42Z"))) - .withRestoredLogs(new RestoredLogs().withStartRestoreTime(OffsetDateTime.parse("2021-11-27T06:03:21Z")) - .withEndRestoreTime(OffsetDateTime.parse("2020-12-28T18:07:39Z")) - .withSourceTable("pkukghi")) - .withPlan(TablePlanEnum.AUXILIARY) - .withSchema(new Schema().withName("eaivxwczel") - .withDisplayName("irels") - .withDescription("aenwabf") - .withColumns(Arrays.asList(new Column()))))); - model = BinaryData.fromObject(model).toObject(TablesListResult.class); - Assertions.assertEquals(288092317, model.value().get(0).retentionInDays()); - Assertions.assertEquals(1703781779, model.value().get(0).totalRetentionInDays()); - Assertions.assertEquals("bwwift", model.value().get(0).searchResults().query()); - Assertions.assertEquals("qkvpuvksgplsakn", model.value().get(0).searchResults().description()); - Assertions.assertEquals(792282663, model.value().get(0).searchResults().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-07T07:41:08Z"), - model.value().get(0).searchResults().startSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T05:17:19Z"), - model.value().get(0).searchResults().endSearchTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T10:26:48Z"), - model.value().get(0).restoredLogs().startRestoreTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-13T08:44:45Z"), - model.value().get(0).restoredLogs().endRestoreTime()); - Assertions.assertEquals("srmslyzr", model.value().get(0).restoredLogs().sourceTable()); - Assertions.assertEquals(TablePlanEnum.BASIC, model.value().get(0).plan()); - Assertions.assertEquals("smypyynpc", model.value().get(0).schema().name()); - Assertions.assertEquals("umnzgmwznmabik", model.value().get(0).schema().displayName()); - Assertions.assertEquals("orgjhxbldt", model.value().get(0).schema().description()); + Assertions.assertEquals("aawiuagydwqfb", model.value().get(0).restoredLogs().sourceTable()); + Assertions.assertEquals(TablePlanEnum.AUXILIARY, model.value().get(0).plan()); + Assertions.assertEquals("mozuxylfsb", model.value().get(0).schema().name()); + Assertions.assertEquals("adpysownbt", model.value().get(0).schema().displayName()); + Assertions.assertEquals("bugrj", model.value().get(0).schema().description()); + Assertions.assertEquals("jouw", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateWithResponseMockTests.java index 684c8b69cd1c..b83eaa7623bb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesMigrateWithResponseMockTests.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.generated; @@ -27,7 +27,8 @@ public void testMigrateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.tables().migrateWithResponse("g", "uuj", "ouhdawsigrb", com.azure.core.util.Context.NONE); + manager.tables() + .migrateWithResponse("foanniyopetx", "vcnrly", "nucaephblkwqpat", com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagTests.java index 273d2dc25289..44306a400952 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagTests.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.generated; @@ -11,16 +11,16 @@ public final class TagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Tag model = BinaryData.fromString("{\"name\":\"qeqxo\",\"value\":\"z\"}").toObject(Tag.class); - Assertions.assertEquals("qeqxo", model.name()); - Assertions.assertEquals("z", model.value()); + Tag model = BinaryData.fromString("{\"name\":\"knssxmojm\",\"value\":\"vpkjpr\"}").toObject(Tag.class); + Assertions.assertEquals("knssxmojm", model.name()); + Assertions.assertEquals("vpkjpr", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Tag model = new Tag().withName("qeqxo").withValue("z"); + Tag model = new Tag().withName("knssxmojm").withValue("vpkjpr"); model = BinaryData.fromObject(model).toObject(Tag.class); - Assertions.assertEquals("qeqxo", model.name()); - Assertions.assertEquals("z", model.value()); + Assertions.assertEquals("knssxmojm", model.name()); + Assertions.assertEquals("vpkjpr", model.value()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagsResourceTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagsResourceTests.java index b1800956571d..7b332e467e08 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagsResourceTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TagsResourceTests.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.generated; @@ -13,19 +13,15 @@ public final class TagsResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TagsResource model = BinaryData - .fromString( - "{\"tags\":{\"fhzovawjvzunluth\":\"vu\",\"rnxipei\":\"n\",\"e\":\"pjzu\",\"kzbbtd\":\"xdult\"}}") - .toObject(TagsResource.class); - Assertions.assertEquals("vu", model.tags().get("fhzovawjvzunluth")); + TagsResource model = BinaryData.fromString("{\"tags\":{\"kifmjn\":\"kpak\"}}").toObject(TagsResource.class); + Assertions.assertEquals("kpak", model.tags().get("kifmjn")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TagsResource model = new TagsResource() - .withTags(mapOf("fhzovawjvzunluth", "vu", "rnxipei", "n", "e", "pjzu", "kzbbtd", "xdult")); + TagsResource model = new TagsResource().withTags(mapOf("kifmjn", "kpak")); model = BinaryData.fromObject(model).toObject(TagsResource.class); - Assertions.assertEquals("vu", model.tags().get("fhzovawjvzunluth")); + Assertions.assertEquals("kpak", model.tags().get("kifmjn")); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsageMetricInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsageMetricInnerTests.java index b9f09fd2a085..a25d63bd5c2d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsageMetricInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsageMetricInnerTests.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.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner; -import com.azure.resourcemanager.loganalytics.models.MetricName; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; @@ -14,33 +13,14 @@ public final class UsageMetricInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageMetricInner model = BinaryData.fromString( - "{\"name\":{\"value\":\"hmtnvy\",\"localizedValue\":\"atkzwpcnpw\"},\"unit\":\"jaesgvvsccya\",\"currentValue\":7.14281993849214,\"limit\":21.496629598428008,\"nextResetTime\":\"2021-07-19T23:39:28Z\",\"quotaPeriod\":\"lvdnkfx\"}") + "{\"name\":{\"value\":\"qzhlctddunq\",\"localizedValue\":\"yfp\"},\"unit\":\"rqbnjjrc\",\"currentValue\":30.70145047647097,\"limit\":10.687766439748515,\"nextResetTime\":\"2021-11-25T15:39:13Z\",\"quotaPeriod\":\"jumvqqolihrraio\"}") .toObject(UsageMetricInner.class); - Assertions.assertEquals("hmtnvy", model.name().value()); - Assertions.assertEquals("atkzwpcnpw", model.name().localizedValue()); - Assertions.assertEquals("jaesgvvsccya", model.unit()); - Assertions.assertEquals(7.14281993849214D, model.currentValue()); - Assertions.assertEquals(21.496629598428008D, model.limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T23:39:28Z"), model.nextResetTime()); - Assertions.assertEquals("lvdnkfx", model.quotaPeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageMetricInner model - = new UsageMetricInner().withName(new MetricName().withValue("hmtnvy").withLocalizedValue("atkzwpcnpw")) - .withUnit("jaesgvvsccya") - .withCurrentValue(7.14281993849214D) - .withLimit(21.496629598428008D) - .withNextResetTime(OffsetDateTime.parse("2021-07-19T23:39:28Z")) - .withQuotaPeriod("lvdnkfx"); - model = BinaryData.fromObject(model).toObject(UsageMetricInner.class); - Assertions.assertEquals("hmtnvy", model.name().value()); - Assertions.assertEquals("atkzwpcnpw", model.name().localizedValue()); - Assertions.assertEquals("jaesgvvsccya", model.unit()); - Assertions.assertEquals(7.14281993849214D, model.currentValue()); - Assertions.assertEquals(21.496629598428008D, model.limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T23:39:28Z"), model.nextResetTime()); - Assertions.assertEquals("lvdnkfx", model.quotaPeriod()); + Assertions.assertEquals("qzhlctddunq", model.name().value()); + Assertions.assertEquals("yfp", model.name().localizedValue()); + Assertions.assertEquals("rqbnjjrc", model.unit()); + Assertions.assertEquals(30.70145047647097D, model.currentValue()); + Assertions.assertEquals(10.687766439748515D, model.limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-25T15:39:13Z"), model.nextResetTime()); + Assertions.assertEquals("jumvqqolihrraio", model.quotaPeriod()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsagesListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsagesListMockTests.java index 22c9edcecbae..f79a3ec73831 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsagesListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UsagesListMockTests.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.generated; @@ -22,7 +22,7 @@ public final class UsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":{\"value\":\"yshtuwgmev\",\"localizedValue\":\"fpwzyifrkgwltx\"},\"unit\":\"ipxgzdy\",\"currentValue\":99.77270946016633,\"limit\":29.475698926269988,\"nextResetTime\":\"2021-07-01T11:25:11Z\",\"quotaPeriod\":\"avkjog\"}]}"; + = "{\"value\":[{\"name\":{\"value\":\"zknxkv\",\"localizedValue\":\"xetyvku\"},\"unit\":\"ignohi\",\"currentValue\":82.9851494663549,\"limit\":1.3136952069757624,\"nextResetTime\":\"2021-07-10T13:10:44Z\",\"quotaPeriod\":\"nd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.usages().list("hmx", "fdsajred", com.azure.core.util.Context.NONE); + = manager.usages().list("iucijjcea", "lijjjrtvam", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yshtuwgmev", response.iterator().next().name().value()); - Assertions.assertEquals("fpwzyifrkgwltx", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("ipxgzdy", response.iterator().next().unit()); - Assertions.assertEquals(99.77270946016633D, response.iterator().next().currentValue()); - Assertions.assertEquals(29.475698926269988D, response.iterator().next().limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-01T11:25:11Z"), + Assertions.assertEquals("zknxkv", response.iterator().next().name().value()); + Assertions.assertEquals("xetyvku", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("ignohi", response.iterator().next().unit()); + Assertions.assertEquals(82.9851494663549D, response.iterator().next().currentValue()); + Assertions.assertEquals(1.3136952069757624D, response.iterator().next().limit()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-10T13:10:44Z"), response.iterator().next().nextResetTime()); - Assertions.assertEquals("avkjog", response.iterator().next().quotaPeriod()); + Assertions.assertEquals("nd", response.iterator().next().quotaPeriod()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserAssignedIdentityTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserAssignedIdentityTests.java index 8399d678232c..b1032ed4cbe2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserAssignedIdentityTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserAssignedIdentityTests.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.generated; @@ -10,8 +10,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"a2e47de8-c396-46a0-8fe5-8358df136d56\",\"clientId\":\"4d52d02f-e515-4f1f-94dd-463d488059fb\"}") + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"ahbc\",\"clientId\":\"ffdfdosygexpa\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserIdentityPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserIdentityPropertiesTests.java index 159cb494681f..1330b6dfb695 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserIdentityPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/UserIdentityPropertiesTests.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.generated; @@ -11,7 +11,7 @@ public final class UserIdentityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserIdentityProperties model - = BinaryData.fromString("{\"principalId\":\"ozauorsukokwb\",\"clientId\":\"lhlv\"}") + = BinaryData.fromString("{\"principalId\":\"unqecanoae\",\"clientId\":\"fhyhltrpmopjmcma\"}") .toObject(UserIdentityProperties.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceCappingTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceCappingTests.java index 1c6d3ad017b3..31b99163b7ad 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceCappingTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceCappingTests.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.generated; @@ -12,15 +12,15 @@ public final class WorkspaceCappingTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceCapping model = BinaryData.fromString( - "{\"dailyQuotaGb\":87.67426402803734,\"quotaNextResetTime\":\"qtqzfavyv\",\"dataIngestionStatus\":\"RespectQuota\"}") + "{\"dailyQuotaGb\":88.22387081583317,\"quotaNextResetTime\":\"pmng\",\"dataIngestionStatus\":\"ApproachingQuota\"}") .toObject(WorkspaceCapping.class); - Assertions.assertEquals(87.67426402803734D, model.dailyQuotaGb()); + Assertions.assertEquals(88.22387081583317D, model.dailyQuotaGb()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceCapping model = new WorkspaceCapping().withDailyQuotaGb(87.67426402803734D); + WorkspaceCapping model = new WorkspaceCapping().withDailyQuotaGb(88.22387081583317D); model = BinaryData.fromObject(model).toObject(WorkspaceCapping.class); - Assertions.assertEquals(87.67426402803734D, model.dailyQuotaGb()); + Assertions.assertEquals(88.22387081583317D, model.dailyQuotaGb()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFailoverPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFailoverPropertiesTests.java index 156ca6ac7ba2..c9240b536a10 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFailoverPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFailoverPropertiesTests.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.generated; @@ -11,7 +11,7 @@ public final class WorkspaceFailoverPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceFailoverProperties model - = BinaryData.fromString("{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-10-19T23:18:49Z\"}") + = BinaryData.fromString("{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-06-30T19:40:04Z\"}") .toObject(WorkspaceFailoverProperties.class); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFeaturesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFeaturesTests.java index 2f695f282279..dfa9e36f2e64 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFeaturesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceFeaturesTests.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.generated; @@ -16,32 +16,33 @@ public final class WorkspaceFeaturesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceFeatures model = BinaryData.fromString( - "{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"jcbhern\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"cv\"],\"ehwagoh\":\"datawr\",\"xtdr\":\"datauffkmrqemvvh\",\"znmwcp\":\"datafutacoebjvewzc\"}") + "{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"y\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"wtgrhpdjpj\",\"masxazjpqyegu\",\"lhbxxhejjzzvdud\"],\"ynpwlbj\":\"\\\"dataslfhotwm\\\"\",\"sop\":\"\\\"datapgacftadehxnlty\\\"\",\"nzwdejba\":\"\\\"datausue\\\"\"}") .toObject(WorkspaceFeatures.class); - Assertions.assertTrue(model.enableDataExport()); + Assertions.assertFalse(model.enableDataExport()); Assertions.assertTrue(model.immediatePurgeDataOn30Days()); - Assertions.assertTrue(model.enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("jcbhern", model.clusterResourceId()); + Assertions.assertFalse(model.enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("y", model.clusterResourceId()); Assertions.assertFalse(model.disableLocalAuth()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceFeatures model = new WorkspaceFeatures().withEnableDataExport(true) + WorkspaceFeatures model = new WorkspaceFeatures().withEnableDataExport(false) .withImmediatePurgeDataOn30Days(true) - .withEnableLogAccessUsingOnlyResourcePermissions(true) - .withClusterResourceId("jcbhern") + .withEnableLogAccessUsingOnlyResourcePermissions(false) + .withClusterResourceId("y") .withDisableLocalAuth(false) .withAdditionalProperties(mapOf("associations", JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"cv\"]", Object.class, SerializerEncoding.JSON), - "xtdr", "datauffkmrqemvvh", "ehwagoh", "datawr", "znmwcp", "datafutacoebjvewzc", - "unifiedSentinelBillingOnly", false)); + .deserialize("[\"wtgrhpdjpj\",\"masxazjpqyegu\",\"lhbxxhejjzzvdud\"]", Object.class, + SerializerEncoding.JSON), + "ynpwlbj", "\"dataslfhotwm\"", "sop", "\"datapgacftadehxnlty\"", "nzwdejba", "\"datausue\"", + "unifiedSentinelBillingOnly", true)); model = BinaryData.fromObject(model).toObject(WorkspaceFeatures.class); - Assertions.assertTrue(model.enableDataExport()); + Assertions.assertFalse(model.enableDataExport()); Assertions.assertTrue(model.immediatePurgeDataOn30Days()); - Assertions.assertTrue(model.enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("jcbhern", model.clusterResourceId()); + Assertions.assertFalse(model.enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("y", model.clusterResourceId()); Assertions.assertFalse(model.disableLocalAuth()); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceInnerTests.java index 12632a0568a3..6dd2d80dd672 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceInnerTests.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.generated; @@ -26,75 +26,77 @@ public final class WorkspaceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"gthrrghxjbdhq\",\"sku\":{\"name\":\"Free\",\"capacityReservationLevel\":441101019,\"lastSkuUpdate\":\"2021-08-03T04:18:25Z\"},\"retentionInDays\":469495787,\"workspaceCapping\":{\"dailyQuotaGb\":81.1170037569868,\"quotaNextResetTime\":\"hrnsvbu\",\"dataIngestionStatus\":\"SubscriptionSuspended\"},\"createdDate\":\"2021-09-08T03:32:01Z\",\"modifiedDate\":\"2021-07-28T13:53:22Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"rtkfawnopq\",\"scopeId\":\"kyzirtxdyux\"},{\"resourceId\":\"jntpsewgioilqu\",\"scopeId\":\"ydxtqm\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"f\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"ghhavgrvkffo\",\"jzhpjbibgjmfx\",\"mv\"],\"nbkfezzxscy\":\"datauyovw\",\"vzzbtdcq\":\"datawzdgirujbzbo\",\"dshf\":\"datapniyujviyl\",\"fmwncotmrfh\":\"datasnrbgyefrymsgao\"},\"defaultDataCollectionRuleResourceId\":\"ctymoxoftp\",\"replication\":{\"location\":\"wycz\",\"enabled\":false,\"provisioningState\":\"DisableRequested\",\"createdDate\":\"2021-11-29T08:27:09Z\",\"lastModifiedDate\":\"2021-01-05T07:46:41Z\"},\"failover\":{\"state\":\"Inactive\",\"lastModifiedDate\":\"2021-07-16T17:01:10Z\"}},\"identity\":{\"principalId\":\"skasdvlmfwdgzxu\",\"tenantId\":\"cvpa\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"jn\":{\"principalId\":\"uzvx\",\"clientId\":\"i\"},\"cesutrgjupauut\":{\"principalId\":\"ytxifqjzgxmrh\",\"clientId\":\"lw\"},\"pnfqntcyp\":{\"principalId\":\"oqh\",\"clientId\":\"ejqgw\"}}},\"etag\":\"vfoimwksli\",\"location\":\"cizjxvydfceacvl\",\"tags\":{\"jslb\":\"gdyftumrtwna\",\"aeqphchqnr\":\"wkojgcyztsfmzn\",\"wrykqgai\":\"rpxeh\"},\"id\":\"mvikl\",\"name\":\"ydv\",\"type\":\"hbejdznxcvdsrhnj\"}") + "{\"properties\":{\"provisioningState\":\"ProvisioningAccount\",\"customerId\":\"fsrpymzidnse\",\"sku\":{\"name\":\"CapacityReservation\",\"capacityReservationLevel\":564973983,\"lastSkuUpdate\":\"2021-03-29T14:50:19Z\"},\"retentionInDays\":820164188,\"workspaceCapping\":{\"dailyQuotaGb\":7.109363609468566,\"quotaNextResetTime\":\"ewmdw\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-10-01T04:55:24Z\",\"modifiedDate\":\"2021-08-09T00:52:58Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"sfqpteehz\",\"scopeId\":\"ypyqrimzinp\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"oodqxhcrm\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"whdsoifiyip\"],\"rcjxvsnbyxqabn\":\"\\\"dataqwpgrjbzn\\\"\",\"hurzafblj\":\"\\\"dataocpcy\\\"\"},\"defaultDataCollectionRuleResourceId\":\"pbtoqcjmkl\",\"replication\":{\"location\":\"bqidtqaj\",\"enabled\":true,\"provisioningState\":\"Canceled\",\"createdDate\":\"2021-04-22T22:07:48Z\",\"lastModifiedDate\":\"2021-11-19T04:41:57Z\"},\"failover\":{\"state\":\"Failed\",\"lastModifiedDate\":\"2021-10-21T07:00:30Z\"}},\"identity\":{\"principalId\":\"hfepgzgqex\",\"tenantId\":\"ocxscpaierhhbcs\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"odxobnbdxkqpxok\":{\"principalId\":\"a\",\"clientId\":\"j\"},\"dg\":{\"principalId\":\"ionpimexg\",\"clientId\":\"xgcp\"},\"jctbza\":{\"principalId\":\"ajrmvdjwzrlovmc\",\"clientId\":\"hijco\"}}},\"etag\":\"qsycbkbfkgu\",\"location\":\"kexxppof\",\"tags\":{\"fjpgddtocjjxhvp\":\"x\",\"exhd\":\"o\",\"bzv\":\"xibqeojnx\",\"pzaoqvuhr\":\"dntwndeicbtw\"},\"id\":\"cffcyddglmj\",\"name\":\"hjq\",\"type\":\"wpyeicxmqciwqvh\"}") .toObject(WorkspaceInner.class); - Assertions.assertEquals("cizjxvydfceacvl", model.location()); - Assertions.assertEquals("gdyftumrtwna", model.tags().get("jslb")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("vfoimwksli", model.etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.FREE, model.sku().name()); - Assertions.assertEquals(441101019, model.sku().capacityReservationLevel()); - Assertions.assertEquals(469495787, model.retentionInDays()); - Assertions.assertEquals(81.1170037569868D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals("kexxppof", model.location()); + Assertions.assertEquals("x", model.tags().get("fjpgddtocjjxhvp")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("qsycbkbfkgu", model.etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, model.sku().name()); + Assertions.assertEquals(564973983, model.sku().capacityReservationLevel()); + Assertions.assertEquals(820164188, model.retentionInDays()); + Assertions.assertEquals(7.109363609468566D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); - Assertions.assertTrue(model.forceCmkForQuery()); - Assertions.assertFalse(model.features().enableDataExport()); - Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); + Assertions.assertFalse(model.forceCmkForQuery()); + Assertions.assertTrue(model.features().enableDataExport()); + Assertions.assertTrue(model.features().immediatePurgeDataOn30Days()); Assertions.assertTrue(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("f", model.features().clusterResourceId()); - Assertions.assertTrue(model.features().disableLocalAuth()); - Assertions.assertEquals("ctymoxoftp", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("wycz", model.replication().location()); - Assertions.assertFalse(model.replication().enabled()); + Assertions.assertEquals("oodqxhcrm", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().disableLocalAuth()); + Assertions.assertEquals("pbtoqcjmkl", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("bqidtqaj", model.replication().location()); + Assertions.assertTrue(model.replication().enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceInner model = new WorkspaceInner().withLocation("cizjxvydfceacvl") - .withTags(mapOf("jslb", "gdyftumrtwna", "aeqphchqnr", "wkojgcyztsfmzn", "wrykqgai", "rpxeh")) - .withIdentity(new Identity().withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("jn", new UserIdentityProperties(), "cesutrgjupauut", - new UserIdentityProperties(), "pnfqntcyp", new UserIdentityProperties()))) - .withEtag("vfoimwksli") - .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.FREE).withCapacityReservationLevel(441101019)) - .withRetentionInDays(469495787) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(81.1170037569868D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.DISABLED) + WorkspaceInner model = new WorkspaceInner().withLocation("kexxppof") + .withTags(mapOf("fjpgddtocjjxhvp", "x", "exhd", "o", "bzv", "xibqeojnx", "pzaoqvuhr", "dntwndeicbtw")) + .withIdentity(new Identity().withType(IdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("odxobnbdxkqpxok", new UserIdentityProperties(), "dg", + new UserIdentityProperties(), "jctbza", new UserIdentityProperties()))) + .withEtag("qsycbkbfkgu") + .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.CAPACITY_RESERVATION) + .withCapacityReservationLevel(564973983)) + .withRetentionInDays(820164188) + .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(7.109363609468566D)) + .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.SECURED_BY_PERIMETER) .withPublicNetworkAccessForQuery(PublicNetworkAccessType.DISABLED) - .withForceCmkForQuery(true) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(false) - .withImmediatePurgeDataOn30Days(false) + .withForceCmkForQuery(false) + .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) + .withImmediatePurgeDataOn30Days(true) .withEnableLogAccessUsingOnlyResourcePermissions(true) - .withClusterResourceId("f") - .withDisableLocalAuth(true) - .withAdditionalProperties(mapOf("associations", JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"ghhavgrvkffo\",\"jzhpjbibgjmfx\",\"mv\"]", Object.class, SerializerEncoding.JSON), - "dshf", "datapniyujviyl", "vzzbtdcq", "datawzdgirujbzbo", "unifiedSentinelBillingOnly", false, - "nbkfezzxscy", "datauyovw", "fmwncotmrfh", "datasnrbgyefrymsgao"))) - .withDefaultDataCollectionRuleResourceId("ctymoxoftp") - .withReplication(new WorkspaceReplicationProperties().withLocation("wycz").withEnabled(false)) + .withClusterResourceId("oodqxhcrm") + .withDisableLocalAuth(false) + .withAdditionalProperties(mapOf("associations", + JacksonAdapter.createDefaultSerializerAdapter() + .deserialize("[\"whdsoifiyip\"]", Object.class, SerializerEncoding.JSON), + "hurzafblj", "\"dataocpcy\"", "rcjxvsnbyxqabn", "\"dataqwpgrjbzn\"", "unifiedSentinelBillingOnly", + false))) + .withDefaultDataCollectionRuleResourceId("pbtoqcjmkl") + .withReplication(new WorkspaceReplicationProperties().withLocation("bqidtqaj").withEnabled(true)) .withFailover(new WorkspaceFailoverProperties()); model = BinaryData.fromObject(model).toObject(WorkspaceInner.class); - Assertions.assertEquals("cizjxvydfceacvl", model.location()); - Assertions.assertEquals("gdyftumrtwna", model.tags().get("jslb")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("vfoimwksli", model.etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.FREE, model.sku().name()); - Assertions.assertEquals(441101019, model.sku().capacityReservationLevel()); - Assertions.assertEquals(469495787, model.retentionInDays()); - Assertions.assertEquals(81.1170037569868D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals("kexxppof", model.location()); + Assertions.assertEquals("x", model.tags().get("fjpgddtocjjxhvp")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("qsycbkbfkgu", model.etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, model.sku().name()); + Assertions.assertEquals(564973983, model.sku().capacityReservationLevel()); + Assertions.assertEquals(820164188, model.retentionInDays()); + Assertions.assertEquals(7.109363609468566D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); - Assertions.assertTrue(model.forceCmkForQuery()); - Assertions.assertFalse(model.features().enableDataExport()); - Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); + Assertions.assertFalse(model.forceCmkForQuery()); + Assertions.assertTrue(model.features().enableDataExport()); + Assertions.assertTrue(model.features().immediatePurgeDataOn30Days()); Assertions.assertTrue(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("f", model.features().clusterResourceId()); - Assertions.assertTrue(model.features().disableLocalAuth()); - Assertions.assertEquals("ctymoxoftp", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("wycz", model.replication().location()); - Assertions.assertFalse(model.replication().enabled()); + Assertions.assertEquals("oodqxhcrm", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().disableLocalAuth()); + Assertions.assertEquals("pbtoqcjmkl", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("bqidtqaj", model.replication().location()); + Assertions.assertTrue(model.replication().enabled()); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListManagementGroupsResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListManagementGroupsResultTests.java index ebca78d665ab..3c442b4f57b9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListManagementGroupsResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListManagementGroupsResultTests.java @@ -1,59 +1,28 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListManagementGroupsResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult; import java.time.OffsetDateTime; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class WorkspaceListManagementGroupsResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceListManagementGroupsResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"serverCount\":2119983807,\"isGateway\":true,\"name\":\"jjugwdkcglhslaz\",\"id\":\"yggdtjixh\",\"created\":\"2021-11-28T10:21:02Z\",\"dataReceived\":\"2021-03-09T09:26:42Z\",\"version\":\"wey\",\"sku\":\"menevfyexfwh\"}},{\"properties\":{\"serverCount\":148650220,\"isGateway\":false,\"name\":\"vdcsitynn\",\"id\":\"mdectehfiqscjey\",\"created\":\"2021-03-08T20:07:33Z\",\"dataReceived\":\"2021-01-16T02:36:56Z\",\"version\":\"kgqhcjrefovg\",\"sku\":\"qsl\"}}]}") + "{\"value\":[{\"properties\":{\"serverCount\":585664743,\"isGateway\":true,\"name\":\"awaoqvmmbnpqfrt\",\"id\":\"kzmegnitgvkxlz\",\"created\":\"2021-04-18T23:17Z\",\"dataReceived\":\"2021-09-29T03:03:45Z\",\"version\":\"gcealzxwh\",\"sku\":\"nsymoyqhlwigd\"}},{\"properties\":{\"serverCount\":1406005278,\"isGateway\":true,\"name\":\"omfaj\",\"id\":\"asqvd\",\"created\":\"2021-08-06T04:39:44Z\",\"dataReceived\":\"2020-12-24T11:41:16Z\",\"version\":\"xakjsqzhzb\",\"sku\":\"kgimsidxasic\"}},{\"properties\":{\"serverCount\":1482071473,\"isGateway\":true,\"name\":\"kgfmocwahpq\",\"id\":\"tjeaahhvjhh\",\"created\":\"2021-11-24T03:40:22Z\",\"dataReceived\":\"2021-02-08T20:51:05Z\",\"version\":\"bjjidjksyxky\",\"sku\":\"xevbl\"}},{\"properties\":{\"serverCount\":815119769,\"isGateway\":true,\"name\":\"lageuaulxun\",\"id\":\"jbnkpp\",\"created\":\"2021-09-29T01:40:14Z\",\"dataReceived\":\"2021-04-02T07:56:28Z\",\"version\":\"svxeizzgwklnsr\",\"sku\":\"feycxcktp\"}}],\"nextLink\":\"merteeammxqiek\"}") .toObject(WorkspaceListManagementGroupsResult.class); - Assertions.assertEquals(2119983807, model.value().get(0).serverCount()); + Assertions.assertEquals(585664743, model.value().get(0).serverCount()); Assertions.assertTrue(model.value().get(0).isGateway()); - Assertions.assertEquals("jjugwdkcglhslaz", model.value().get(0).name()); - Assertions.assertEquals("yggdtjixh", model.value().get(0).id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T10:21:02Z"), model.value().get(0).created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T09:26:42Z"), model.value().get(0).dataReceived()); - Assertions.assertEquals("wey", model.value().get(0).version()); - Assertions.assertEquals("menevfyexfwh", model.value().get(0).sku()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspaceListManagementGroupsResult model = new WorkspaceListManagementGroupsResult().withValue(Arrays.asList( - new ManagementGroupInner().withServerCount(2119983807) - .withIsGateway(true) - .withName("jjugwdkcglhslaz") - .withId("yggdtjixh") - .withCreated(OffsetDateTime.parse("2021-11-28T10:21:02Z")) - .withDataReceived(OffsetDateTime.parse("2021-03-09T09:26:42Z")) - .withVersion("wey") - .withSku("menevfyexfwh"), - new ManagementGroupInner().withServerCount(148650220) - .withIsGateway(false) - .withName("vdcsitynn") - .withId("mdectehfiqscjey") - .withCreated(OffsetDateTime.parse("2021-03-08T20:07:33Z")) - .withDataReceived(OffsetDateTime.parse("2021-01-16T02:36:56Z")) - .withVersion("kgqhcjrefovg") - .withSku("qsl"))); - model = BinaryData.fromObject(model).toObject(WorkspaceListManagementGroupsResult.class); - Assertions.assertEquals(2119983807, model.value().get(0).serverCount()); - Assertions.assertTrue(model.value().get(0).isGateway()); - Assertions.assertEquals("jjugwdkcglhslaz", model.value().get(0).name()); - Assertions.assertEquals("yggdtjixh", model.value().get(0).id()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T10:21:02Z"), model.value().get(0).created()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T09:26:42Z"), model.value().get(0).dataReceived()); - Assertions.assertEquals("wey", model.value().get(0).version()); - Assertions.assertEquals("menevfyexfwh", model.value().get(0).sku()); + Assertions.assertEquals("awaoqvmmbnpqfrt", model.value().get(0).name()); + Assertions.assertEquals("kzmegnitgvkxlz", model.value().get(0).id()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-18T23:17Z"), model.value().get(0).created()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T03:03:45Z"), model.value().get(0).dataReceived()); + Assertions.assertEquals("gcealzxwh", model.value().get(0).version()); + Assertions.assertEquals("nsymoyqhlwigd", model.value().get(0).sku()); + Assertions.assertEquals("merteeammxqiek", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListResultTests.java index 733c111eac29..02ffdb0bc24f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListResultTests.java @@ -1,145 +1,42 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner; -import com.azure.resourcemanager.loganalytics.models.Identity; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult; import com.azure.resourcemanager.loganalytics.models.IdentityType; import com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType; -import com.azure.resourcemanager.loganalytics.models.UserIdentityProperties; -import com.azure.resourcemanager.loganalytics.models.WorkspaceCapping; -import com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties; -import com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListResult; -import com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties; -import com.azure.resourcemanager.loganalytics.models.WorkspaceSku; import com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; import org.junit.jupiter.api.Assertions; public final class WorkspaceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"ProvisioningAccount\",\"customerId\":\"mtdh\",\"sku\":{\"name\":\"Standalone\",\"capacityReservationLevel\":1330472875,\"lastSkuUpdate\":\"2021-08-05T12:13:03Z\"},\"retentionInDays\":811019553,\"workspaceCapping\":{\"dailyQuotaGb\":64.53231022171681,\"quotaNextResetTime\":\"w\",\"dataIngestionStatus\":\"OverQuota\"},\"createdDate\":\"2021-12-09T01:29:35Z\",\"modifiedDate\":\"2021-03-20T05:32:50Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"vqqaatjinrvgo\",\"scopeId\":\"mfiibfggj\"},{\"resourceId\":\"olvrw\",\"scopeId\":\"v\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"ygvjayvblmh\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"vvyhg\"],\"uvwzfbnh\":\"databyrqufeg\",\"bmhrixkwmyijejv\":\"datamctlpdngitv\",\"ixexcc\":\"datagrhbpn\"},\"defaultDataCollectionRuleResourceId\":\"reaxhcexdr\",\"replication\":{\"location\":\"ahqkg\",\"enabled\":false,\"provisioningState\":\"DisableRequested\",\"createdDate\":\"2021-04-30T07:00:15Z\",\"lastModifiedDate\":\"2021-07-07T03:58:09Z\"},\"failover\":{\"state\":\"Failed\",\"lastModifiedDate\":\"2021-09-16T08:46:35Z\"}},\"identity\":{\"principalId\":\"z\",\"tenantId\":\"voowvr\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"yhgfipnsx\":{\"principalId\":\"qp\",\"clientId\":\"ostronz\"},\"gumhjglikkxws\":{\"principalId\":\"cwaekrrjre\",\"clientId\":\"xt\"}}},\"etag\":\"bq\",\"location\":\"vuzlm\",\"tags\":{\"noigbrnjwmwk\":\"lfktgplcrpwjxe\"},\"id\":\"nbsazejjoqkag\",\"name\":\"hsxttaugzxnf\",\"type\":\"azpxdtnkdmkqjjl\"},{\"properties\":{\"provisioningState\":\"ProvisioningAccount\",\"customerId\":\"rkpyouaibrebqaay\",\"sku\":{\"name\":\"PerGB2018\",\"capacityReservationLevel\":1330578772,\"lastSkuUpdate\":\"2021-11-17T18:36:32Z\"},\"retentionInDays\":2018222858,\"workspaceCapping\":{\"dailyQuotaGb\":15.097379092743646,\"quotaNextResetTime\":\"wfff\",\"dataIngestionStatus\":\"SubscriptionSuspended\"},\"createdDate\":\"2021-01-19T04:30:49Z\",\"modifiedDate\":\"2021-03-20T06:33:49Z\",\"publicNetworkAccessForIngestion\":\"Enabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"jihy\",\"scopeId\":\"zphv\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"upkvipmdsc\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"zhfstot\",\"hojujbypelmcuv\",\"ixbjx\"],\"lrcoolsttpki\":\"datan\"},\"defaultDataCollectionRuleResourceId\":\"kbnujr\",\"replication\":{\"location\":\"tylbfpncurdoiw\",\"enabled\":false,\"provisioningState\":\"Succeeded\",\"createdDate\":\"2021-05-04T20:05:44Z\",\"lastModifiedDate\":\"2021-07-16T11:50:04Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-08-12T00:10:56Z\"}},\"identity\":{\"principalId\":\"knfd\",\"tenantId\":\"wjchrdg\",\"type\":\"None\",\"userAssignedIdentities\":{\"tsbwtovvtgse\":{\"principalId\":\"mwctondzjluudfd\",\"clientId\":\"gg\"}}},\"etag\":\"fiufx\",\"location\":\"knpirgnepttwq\",\"tags\":{\"rxfrddhc\":\"iffcdmqnrojlpijn\",\"ronasxift\":\"atiz\",\"zh\":\"zq\"},\"id\":\"tw\",\"name\":\"sgogczhonnxk\",\"type\":\"lgnyhmo\"}]}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"customerId\":\"hoqqnwvlr\",\"sku\":{\"name\":\"CapacityReservation\",\"capacityReservationLevel\":866198392,\"lastSkuUpdate\":\"2021-11-18T07:56:25Z\"},\"retentionInDays\":953746264,\"workspaceCapping\":{\"dailyQuotaGb\":93.34921477363876,\"quotaNextResetTime\":\"yxzk\",\"dataIngestionStatus\":\"ForceOn\"},\"createdDate\":\"2021-05-16T08:19Z\",\"modifiedDate\":\"2021-03-20T11:43:44Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Enabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"uqszfk\",\"scopeId\":\"ypewrmjmwvvjekt\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"s\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"lqdqgbiqylihka\"],\"fcivfsnkym\":\"\\\"datakt\\\"\",\"jf\":\"\\\"datactq\\\"\",\"fuwutttxf\":\"\\\"dataebrjcxe\\\"\",\"hfnljkyq\":\"\\\"datajrbirphxepcyv\\\"\"},\"defaultDataCollectionRuleResourceId\":\"vuujq\",\"replication\":{\"location\":\"ok\",\"enabled\":true,\"provisioningState\":\"Failed\",\"createdDate\":\"2021-04-07T01:42:24Z\",\"lastModifiedDate\":\"2021-06-04T13:43:24Z\"},\"failover\":{\"state\":\"Inactive\",\"lastModifiedDate\":\"2021-02-06T17:51:21Z\"}},\"identity\":{\"principalId\":\"c\",\"tenantId\":\"kjeszz\",\"type\":\"None\",\"userAssignedIdentities\":{\"eh\":{\"principalId\":\"txfvgx\",\"clientId\":\"smx\"},\"lzlfbxzpuz\":{\"principalId\":\"vecxgodebfqkk\",\"clientId\":\"mpukgriw\"},\"kpikadrgvt\":{\"principalId\":\"ispnqzahmgkbrp\",\"clientId\":\"dhibnuq\"},\"utrc\":{\"principalId\":\"gnbuy\",\"clientId\":\"ijggmebfsiar\"}}},\"etag\":\"na\",\"location\":\"mhjrunmpxttdbhr\",\"tags\":{\"kcxywnyt\":\"ankxmyskpbhenb\"},\"id\":\"rsyn\",\"name\":\"qidybyx\",\"type\":\"zfcl\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"customerId\":\"babphlwrqlfk\",\"sku\":{\"name\":\"Standard\",\"capacityReservationLevel\":1927626418,\"lastSkuUpdate\":\"2021-11-18T02:17:24Z\"},\"retentionInDays\":296949281,\"workspaceCapping\":{\"dailyQuotaGb\":47.56353030523734,\"quotaNextResetTime\":\"zt\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-08-28T10:19:16Z\",\"modifiedDate\":\"2021-09-21T11:54:29Z\",\"publicNetworkAccessForIngestion\":\"Enabled\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"biexzfeyu\",\"scopeId\":\"xibxujwbhqwalm\"},{\"resourceId\":\"yoxa\",\"scopeId\":\"dkzjancuxrh\"},{\"resourceId\":\"bavxbniwdjswzt\",\"scopeId\":\"bpg\"},{\"resourceId\":\"ytxhp\",\"scopeId\":\"bzpfzab\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"tyq\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"plwzbhvgyugu\",\"svmkfssxquk\"],\"mg\":\"\\\"datal\\\"\",\"vlopwiyighx\":\"\\\"dataxnkjzkdesl\\\"\",\"upedeojnabckhs\":\"\\\"datakdwzbaiuebbaumny\\\"\"},\"defaultDataCollectionRuleResourceId\":\"xpsiebtfhvpes\",\"replication\":{\"location\":\"krdqmh\",\"enabled\":true,\"provisioningState\":\"Enabling\",\"createdDate\":\"2021-10-14T11:42:47Z\",\"lastModifiedDate\":\"2021-03-29T05:51:04Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-08-29T07:48:34Z\"}},\"identity\":{\"principalId\":\"ncwscwsvlxoto\",\"tenantId\":\"wrupqsxvnmicykvc\",\"type\":\"None\",\"userAssignedIdentities\":{\"jfcn\":{\"principalId\":\"lo\",\"clientId\":\"oty\"}}},\"etag\":\"k\",\"location\":\"x\",\"tags\":{\"mclfplphoxuscr\":\"ttkphywpnvjtoqne\"},\"id\":\"abgy\",\"name\":\"psbjta\",\"type\":\"qugxywpmueefjzwf\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"customerId\":\"ids\",\"sku\":{\"name\":\"Standalone\",\"capacityReservationLevel\":1003641811,\"lastSkuUpdate\":\"2021-02-03T04:11:23Z\"},\"retentionInDays\":776466755,\"workspaceCapping\":{\"dailyQuotaGb\":66.61317248822613,\"quotaNextResetTime\":\"ccm\",\"dataIngestionStatus\":\"ForceOff\"},\"createdDate\":\"2021-01-17T15:02:45Z\",\"modifiedDate\":\"2021-03-08T20:56:38Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"u\",\"scopeId\":\"pz\"},{\"resourceId\":\"xhdzhlrqjbhckf\",\"scopeId\":\"hrxsbk\"},{\"resourceId\":\"pycanuzbpz\",\"scopeId\":\"fkuwbcrnwbmehhse\"},{\"resourceId\":\"jusrtslhspk\",\"scopeId\":\"emaofmxagkvt\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"hvljuahaquh\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"laexqp\",\"fadmws\",\"crgvxpvgom\",\"lf\"],\"b\":\"\\\"datagwb\\\"\",\"dawkzbali\":\"\\\"datae\\\"\",\"hashsfwxosow\":\"\\\"dataurqhaka\\\"\"},\"defaultDataCollectionRuleResourceId\":\"cugicjoox\",\"replication\":{\"location\":\"bwpucwwfvovbv\",\"enabled\":false,\"provisioningState\":\"Failed\",\"createdDate\":\"2021-12-04T00:10:18Z\",\"lastModifiedDate\":\"2021-03-26T18:26:04Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-05-02T16:54:54Z\"}},\"identity\":{\"principalId\":\"jrwjueiotwm\",\"tenantId\":\"ytdxwit\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"jdauwhvy\":{\"principalId\":\"wgqwgxhn\",\"clientId\":\"kxfbkpycgklwndn\"},\"pow\":{\"principalId\":\"zbtd\",\"clientId\":\"ujznb\"}}},\"etag\":\"przqlveu\",\"location\":\"upjm\",\"tags\":{\"riplrbpbewtg\":\"xobbcswsrt\",\"c\":\"fgb\",\"gibtnm\":\"wxzvlvqhjkb\"},\"id\":\"iebwwaloayqcgwrt\",\"name\":\"j\",\"type\":\"zg\"}],\"nextLink\":\"zmh\"}") .toObject(WorkspaceListResult.class); - Assertions.assertEquals("vuzlm", model.value().get(0).location()); - Assertions.assertEquals("lfktgplcrpwjxe", model.value().get(0).tags().get("noigbrnjwmwk")); - Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("bq", model.value().get(0).etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.STANDALONE, model.value().get(0).sku().name()); - Assertions.assertEquals(1330472875, model.value().get(0).sku().capacityReservationLevel()); - Assertions.assertEquals(811019553, model.value().get(0).retentionInDays()); - Assertions.assertEquals(64.53231022171681D, model.value().get(0).workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals("mhjrunmpxttdbhr", model.value().get(0).location()); + Assertions.assertEquals("ankxmyskpbhenb", model.value().get(0).tags().get("kcxywnyt")); + Assertions.assertEquals(IdentityType.NONE, model.value().get(0).identity().type()); + Assertions.assertEquals("na", model.value().get(0).etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, model.value().get(0).sku().name()); + Assertions.assertEquals(866198392, model.value().get(0).sku().capacityReservationLevel()); + Assertions.assertEquals(953746264, model.value().get(0).retentionInDays()); + Assertions.assertEquals(93.34921477363876D, model.value().get(0).workspaceCapping().dailyQuotaGb()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.value().get(0).publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, - model.value().get(0).publicNetworkAccessForQuery()); + Assertions.assertEquals(PublicNetworkAccessType.ENABLED, model.value().get(0).publicNetworkAccessForQuery()); Assertions.assertTrue(model.value().get(0).forceCmkForQuery()); Assertions.assertFalse(model.value().get(0).features().enableDataExport()); - Assertions.assertTrue(model.value().get(0).features().immediatePurgeDataOn30Days()); - Assertions.assertTrue(model.value().get(0).features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("ygvjayvblmh", model.value().get(0).features().clusterResourceId()); + Assertions.assertFalse(model.value().get(0).features().immediatePurgeDataOn30Days()); + Assertions.assertFalse(model.value().get(0).features().enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("s", model.value().get(0).features().clusterResourceId()); Assertions.assertTrue(model.value().get(0).features().disableLocalAuth()); - Assertions.assertEquals("reaxhcexdr", model.value().get(0).defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("ahqkg", model.value().get(0).replication().location()); - Assertions.assertFalse(model.value().get(0).replication().enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspaceListResult model = new WorkspaceListResult().withValue(Arrays.asList( - new WorkspaceInner().withLocation("vuzlm") - .withTags(mapOf("noigbrnjwmwk", "lfktgplcrpwjxe")) - .withIdentity(new Identity().withType(IdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("yhgfipnsx", new UserIdentityProperties(), "gumhjglikkxws", - new UserIdentityProperties()))) - .withEtag("bq") - .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.STANDALONE) - .withCapacityReservationLevel(1330472875)) - .withRetentionInDays(811019553) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(64.53231022171681D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.DISABLED) - .withPublicNetworkAccessForQuery(PublicNetworkAccessType.SECURED_BY_PERIMETER) - .withForceCmkForQuery(true) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(false) - .withImmediatePurgeDataOn30Days(true) - .withEnableLogAccessUsingOnlyResourcePermissions(true) - .withClusterResourceId("ygvjayvblmh") - .withDisableLocalAuth(true) - .withAdditionalProperties(mapOf("associations", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"vvyhg\"]", Object.class, SerializerEncoding.JSON), - "ixexcc", "datagrhbpn", "uvwzfbnh", "databyrqufeg", "bmhrixkwmyijejv", "datamctlpdngitv", - "unifiedSentinelBillingOnly", true))) - .withDefaultDataCollectionRuleResourceId("reaxhcexdr") - .withReplication(new WorkspaceReplicationProperties().withLocation("ahqkg").withEnabled(false)) - .withFailover(new WorkspaceFailoverProperties()), - new WorkspaceInner().withLocation("knpirgnepttwq") - .withTags(mapOf("rxfrddhc", "iffcdmqnrojlpijn", "ronasxift", "atiz", "zh", "zq")) - .withIdentity(new Identity().withType(IdentityType.NONE) - .withUserAssignedIdentities(mapOf("tsbwtovvtgse", new UserIdentityProperties()))) - .withEtag("fiufx") - .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.PER_GB2018) - .withCapacityReservationLevel(1330578772)) - .withRetentionInDays(2018222858) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(15.097379092743646D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.ENABLED) - .withPublicNetworkAccessForQuery(PublicNetworkAccessType.DISABLED) - .withForceCmkForQuery(false) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(false) - .withImmediatePurgeDataOn30Days(false) - .withEnableLogAccessUsingOnlyResourcePermissions(false) - .withClusterResourceId("upkvipmdsc") - .withDisableLocalAuth(false) - .withAdditionalProperties(mapOf("associations", - JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"zhfstot\",\"hojujbypelmcuv\",\"ixbjx\"]", Object.class, - SerializerEncoding.JSON), - "lrcoolsttpki", "datan", "unifiedSentinelBillingOnly", false))) - .withDefaultDataCollectionRuleResourceId("kbnujr") - .withReplication(new WorkspaceReplicationProperties().withLocation("tylbfpncurdoiw").withEnabled(false)) - .withFailover(new WorkspaceFailoverProperties()))); - model = BinaryData.fromObject(model).toObject(WorkspaceListResult.class); - Assertions.assertEquals("vuzlm", model.value().get(0).location()); - Assertions.assertEquals("lfktgplcrpwjxe", model.value().get(0).tags().get("noigbrnjwmwk")); - Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("bq", model.value().get(0).etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.STANDALONE, model.value().get(0).sku().name()); - Assertions.assertEquals(1330472875, model.value().get(0).sku().capacityReservationLevel()); - Assertions.assertEquals(811019553, model.value().get(0).retentionInDays()); - Assertions.assertEquals(64.53231022171681D, model.value().get(0).workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, - model.value().get(0).publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, - model.value().get(0).publicNetworkAccessForQuery()); - Assertions.assertTrue(model.value().get(0).forceCmkForQuery()); - Assertions.assertFalse(model.value().get(0).features().enableDataExport()); - Assertions.assertTrue(model.value().get(0).features().immediatePurgeDataOn30Days()); - Assertions.assertTrue(model.value().get(0).features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("ygvjayvblmh", model.value().get(0).features().clusterResourceId()); - Assertions.assertTrue(model.value().get(0).features().disableLocalAuth()); - Assertions.assertEquals("reaxhcexdr", model.value().get(0).defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("ahqkg", model.value().get(0).replication().location()); - Assertions.assertFalse(model.value().get(0).replication().enabled()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + Assertions.assertEquals("vuujq", model.value().get(0).defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("ok", model.value().get(0).replication().location()); + Assertions.assertTrue(model.value().get(0).replication().enabled()); + Assertions.assertEquals("zmh", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListUsagesResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListUsagesResultTests.java index c1a080838866..350005bb7655 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListUsagesResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceListUsagesResultTests.java @@ -1,66 +1,27 @@ // 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.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner; -import com.azure.resourcemanager.loganalytics.models.MetricName; -import com.azure.resourcemanager.loganalytics.models.WorkspaceListUsagesResult; +import com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult; import java.time.OffsetDateTime; -import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class WorkspaceListUsagesResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceListUsagesResult model = BinaryData.fromString( - "{\"value\":[{\"name\":{\"value\":\"zrnw\",\"localizedValue\":\"indfpwpjyl\"},\"unit\":\"tlhflsjcdhszf\",\"currentValue\":93.507310013303,\"limit\":23.397589490400428,\"nextResetTime\":\"2021-12-07T09:36:22Z\",\"quotaPeriod\":\"a\"},{\"name\":{\"value\":\"mqhldvrii\",\"localizedValue\":\"jnalghf\"},\"unit\":\"tvsexsowuel\",\"currentValue\":95.82653467641371,\"limit\":72.21038300276933,\"nextResetTime\":\"2021-10-26T13:34:39Z\",\"quotaPeriod\":\"hmzk\"},{\"name\":{\"value\":\"g\",\"localizedValue\":\"spughftqsxhq\"},\"unit\":\"j\",\"currentValue\":65.12505098321063,\"limit\":37.6190498251855,\"nextResetTime\":\"2021-06-03T19:27:08Z\",\"quotaPeriod\":\"jguufzdm\"},{\"name\":{\"value\":\"tfih\",\"localizedValue\":\"botzingamvppho\"},\"unit\":\"qzudphq\",\"currentValue\":82.02103115304786,\"limit\":77.5366363877876,\"nextResetTime\":\"2021-09-19T17:28Z\",\"quotaPeriod\":\"cvtbv\"}]}") + "{\"value\":[{\"name\":{\"value\":\"srboldforobw\",\"localizedValue\":\"vizbfhfo\"},\"unit\":\"acqpbtuodxesza\",\"currentValue\":38.51105429345376,\"limit\":54.0208011364008,\"nextResetTime\":\"2020-12-26T02:35:36Z\",\"quotaPeriod\":\"slzkwrrwoycqu\"},{\"name\":{\"value\":\"hahnomdrkywuhps\",\"localizedValue\":\"uurutlwexxwlalni\"},\"unit\":\"zsrzpgepq\",\"currentValue\":9.72728980807548,\"limit\":36.487976768201,\"nextResetTime\":\"2021-01-12T22:49:06Z\",\"quotaPeriod\":\"k\"},{\"name\":{\"value\":\"yvlixqnrk\",\"localizedValue\":\"kjibnxmysuxswqrn\"},\"unit\":\"lwi\",\"currentValue\":27.409185409793103,\"limit\":77.61010221834363,\"nextResetTime\":\"2021-11-08T06:52:34Z\",\"quotaPeriod\":\"pwcyyufmhr\"}],\"nextLink\":\"cuwmqsp\"}") .toObject(WorkspaceListUsagesResult.class); - Assertions.assertEquals("zrnw", model.value().get(0).name().value()); - Assertions.assertEquals("indfpwpjyl", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("tlhflsjcdhszf", model.value().get(0).unit()); - Assertions.assertEquals(93.507310013303D, model.value().get(0).currentValue()); - Assertions.assertEquals(23.397589490400428D, model.value().get(0).limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T09:36:22Z"), model.value().get(0).nextResetTime()); - Assertions.assertEquals("a", model.value().get(0).quotaPeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspaceListUsagesResult model = new WorkspaceListUsagesResult().withValue(Arrays.asList( - new UsageMetricInner().withName(new MetricName().withValue("zrnw").withLocalizedValue("indfpwpjyl")) - .withUnit("tlhflsjcdhszf") - .withCurrentValue(93.507310013303D) - .withLimit(23.397589490400428D) - .withNextResetTime(OffsetDateTime.parse("2021-12-07T09:36:22Z")) - .withQuotaPeriod("a"), - new UsageMetricInner().withName(new MetricName().withValue("mqhldvrii").withLocalizedValue("jnalghf")) - .withUnit("tvsexsowuel") - .withCurrentValue(95.82653467641371D) - .withLimit(72.21038300276933D) - .withNextResetTime(OffsetDateTime.parse("2021-10-26T13:34:39Z")) - .withQuotaPeriod("hmzk"), - new UsageMetricInner().withName(new MetricName().withValue("g").withLocalizedValue("spughftqsxhq")) - .withUnit("j") - .withCurrentValue(65.12505098321063D) - .withLimit(37.6190498251855D) - .withNextResetTime(OffsetDateTime.parse("2021-06-03T19:27:08Z")) - .withQuotaPeriod("jguufzdm"), - new UsageMetricInner().withName(new MetricName().withValue("tfih").withLocalizedValue("botzingamvppho")) - .withUnit("qzudphq") - .withCurrentValue(82.02103115304786D) - .withLimit(77.5366363877876D) - .withNextResetTime(OffsetDateTime.parse("2021-09-19T17:28Z")) - .withQuotaPeriod("cvtbv"))); - model = BinaryData.fromObject(model).toObject(WorkspaceListUsagesResult.class); - Assertions.assertEquals("zrnw", model.value().get(0).name().value()); - Assertions.assertEquals("indfpwpjyl", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("tlhflsjcdhszf", model.value().get(0).unit()); - Assertions.assertEquals(93.507310013303D, model.value().get(0).currentValue()); - Assertions.assertEquals(23.397589490400428D, model.value().get(0).limit()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T09:36:22Z"), model.value().get(0).nextResetTime()); - Assertions.assertEquals("a", model.value().get(0).quotaPeriod()); + Assertions.assertEquals("srboldforobw", model.value().get(0).name().value()); + Assertions.assertEquals("vizbfhfo", model.value().get(0).name().localizedValue()); + Assertions.assertEquals("acqpbtuodxesza", model.value().get(0).unit()); + Assertions.assertEquals(38.51105429345376D, model.value().get(0).currentValue()); + Assertions.assertEquals(54.0208011364008D, model.value().get(0).limit()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T02:35:36Z"), model.value().get(0).nextResetTime()); + Assertions.assertEquals("slzkwrrwoycqu", model.value().get(0).quotaPeriod()); + Assertions.assertEquals("cuwmqsp", model.nextLink()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePatchTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePatchTests.java index 84df62623801..83fc11f2feb1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePatchTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePatchTests.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.generated; @@ -26,69 +26,70 @@ public final class WorkspacePatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspacePatch model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"zlrphwzs\",\"sku\":{\"name\":\"PerGB2018\",\"capacityReservationLevel\":1354895276,\"lastSkuUpdate\":\"2021-05-13T15:08:20Z\"},\"retentionInDays\":2112519300,\"workspaceCapping\":{\"dailyQuotaGb\":34.97869271736046,\"quotaNextResetTime\":\"nrwrbiork\",\"dataIngestionStatus\":\"RespectQuota\"},\"createdDate\":\"2021-03-04T00:16:10Z\",\"modifiedDate\":\"2021-04-15T08:16:25Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"Enabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"v\",\"scopeId\":\"miloxggdufiqndie\"},{\"resourceId\":\"ao\",\"scopeId\":\"chvcyyysfgdo\"},{\"resourceId\":\"ubiipuipwoqonma\",\"scopeId\":\"ekni\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"ev\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"ilbywdxsm\",\"ccwr\"],\"n\":\"datacj\",\"voqyt\":\"datanszqujiz\"},\"defaultDataCollectionRuleResourceId\":\"yo\",\"replication\":{\"location\":\"lgy\",\"enabled\":false,\"provisioningState\":\"Failed\",\"createdDate\":\"2021-06-15T10:26:37Z\",\"lastModifiedDate\":\"2021-11-07T15:05:03Z\"},\"failover\":{\"state\":\"Failed\",\"lastModifiedDate\":\"2021-01-31T04:26:46Z\"}},\"identity\":{\"principalId\":\"sbpimlq\",\"tenantId\":\"jxkcgxxlxsff\",\"type\":\"None\",\"userAssignedIdentities\":{\"sgow\":{\"principalId\":\"qzdwlvwlyoup\",\"clientId\":\"fbkjubdyhgkfmi\"},\"tg\":{\"principalId\":\"ttsttktlahbqact\",\"clientId\":\"gzukxitmm\"},\"isavok\":{\"principalId\":\"q\",\"clientId\":\"rnxrxcpj\"},\"rqttbajlkatnw\":{\"principalId\":\"zfvazi\",\"clientId\":\"l\"}}},\"tags\":{\"cxkdmligovi\":\"opidkqqfkuv\",\"goorbteo\":\"rxkpmloazuruoc\"},\"etag\":\"fhjxakvvjgs\",\"id\":\"ordilmywwtkgkxny\",\"name\":\"dabg\",\"type\":\"vudtjuewbcihx\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"customerId\":\"hfuiuaodsfc\",\"sku\":{\"name\":\"Premium\",\"capacityReservationLevel\":1076562523,\"lastSkuUpdate\":\"2021-07-31T05:00:25Z\"},\"retentionInDays\":711581953,\"workspaceCapping\":{\"dailyQuotaGb\":87.7533658981948,\"quotaNextResetTime\":\"dagfuaxbezyiuok\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-05-23T22:13:23Z\",\"modifiedDate\":\"2021-09-10T15:31:21Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"ureximoryocfs\",\"scopeId\":\"s\"},{\"resourceId\":\"ddystkiiuxhqy\",\"scopeId\":\"xorrqnb\"},{\"resourceId\":\"czvyifq\",\"scopeId\":\"kdvjsll\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"kpnpulexxbczwtr\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"j\",\"sovmyokacspkwl\",\"zdobpxjmflbvvnch\",\"kcciwwzjuqkhr\"],\"ghsauuimjmvxied\":\"\\\"dataiwkuofos\\\"\",\"byao\":\"\\\"dataugidyjrr\\\"\",\"xc\":\"\\\"datav\\\"\",\"hocohslkev\":\"\\\"dataonpc\\\"\"},\"defaultDataCollectionRuleResourceId\":\"ggzfbu\",\"replication\":{\"location\":\"vfaxkffeiith\",\"enabled\":false,\"provisioningState\":\"Enabling\",\"createdDate\":\"2021-02-22T20:01:28Z\",\"lastModifiedDate\":\"2021-08-05T17:04:54Z\"},\"failover\":{\"state\":\"Active\",\"lastModifiedDate\":\"2021-02-04T05:37:10Z\"}},\"identity\":{\"principalId\":\"oggigrxwburv\",\"tenantId\":\"xjnspy\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ipazyxoegukgjnpi\":{\"principalId\":\"enkouknvudw\",\"clientId\":\"ukbldngkpo\"}}},\"tags\":{\"drqjsdpy\":\"ygevqzntypmrbpiz\",\"eoejzic\":\"nfyhx\"},\"etag\":\"fsj\",\"id\":\"gzfbishcbk\",\"name\":\"ajdeyeamdphaga\",\"type\":\"pbuxwgipwhon\"}") .toObject(WorkspacePatch.class); - Assertions.assertEquals(IdentityType.NONE, model.identity().type()); - Assertions.assertEquals("opidkqqfkuv", model.tags().get("cxkdmligovi")); - Assertions.assertEquals(WorkspaceSkuNameEnum.PER_GB2018, model.sku().name()); - Assertions.assertEquals(1354895276, model.sku().capacityReservationLevel()); - Assertions.assertEquals(2112519300, model.retentionInDays()); - Assertions.assertEquals(34.97869271736046D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.ENABLED, model.publicNetworkAccessForQuery()); - Assertions.assertTrue(model.forceCmkForQuery()); - Assertions.assertFalse(model.features().enableDataExport()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("ygevqzntypmrbpiz", model.tags().get("drqjsdpy")); + Assertions.assertEquals(WorkspaceSkuNameEnum.PREMIUM, model.sku().name()); + Assertions.assertEquals(1076562523, model.sku().capacityReservationLevel()); + Assertions.assertEquals(711581953, model.retentionInDays()); + Assertions.assertEquals(87.7533658981948D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); + Assertions.assertFalse(model.forceCmkForQuery()); + Assertions.assertTrue(model.features().enableDataExport()); Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); Assertions.assertFalse(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("ev", model.features().clusterResourceId()); - Assertions.assertTrue(model.features().disableLocalAuth()); - Assertions.assertEquals("yo", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("lgy", model.replication().location()); + Assertions.assertEquals("kpnpulexxbczwtr", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().disableLocalAuth()); + Assertions.assertEquals("ggzfbu", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("vfaxkffeiith", model.replication().location()); Assertions.assertFalse(model.replication().enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspacePatch model = new WorkspacePatch().withIdentity(new Identity().withType(IdentityType.NONE) - .withUserAssignedIdentities(mapOf("sgow", new UserIdentityProperties(), "tg", new UserIdentityProperties(), - "isavok", new UserIdentityProperties(), "rqttbajlkatnw", new UserIdentityProperties()))) - .withTags(mapOf("cxkdmligovi", "opidkqqfkuv", "goorbteo", "rxkpmloazuruoc")) - .withSku( - new WorkspaceSku().withName(WorkspaceSkuNameEnum.PER_GB2018).withCapacityReservationLevel(1354895276)) - .withRetentionInDays(2112519300) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(34.97869271736046D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.SECURED_BY_PERIMETER) - .withPublicNetworkAccessForQuery(PublicNetworkAccessType.ENABLED) - .withForceCmkForQuery(true) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(false) + WorkspacePatch model = new WorkspacePatch() + .withIdentity(new Identity().withType(IdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("ipazyxoegukgjnpi", new UserIdentityProperties()))) + .withTags(mapOf("drqjsdpy", "ygevqzntypmrbpiz", "eoejzic", "nfyhx")) + .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.PREMIUM).withCapacityReservationLevel(1076562523)) + .withRetentionInDays(711581953) + .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(87.7533658981948D)) + .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.DISABLED) + .withPublicNetworkAccessForQuery(PublicNetworkAccessType.DISABLED) + .withForceCmkForQuery(false) + .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) .withImmediatePurgeDataOn30Days(false) .withEnableLogAccessUsingOnlyResourcePermissions(false) - .withClusterResourceId("ev") - .withDisableLocalAuth(true) + .withClusterResourceId("kpnpulexxbczwtr") + .withDisableLocalAuth(false) .withAdditionalProperties(mapOf("associations", JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"ilbywdxsm\",\"ccwr\"]", Object.class, SerializerEncoding.JSON), - "voqyt", "datanszqujiz", "unifiedSentinelBillingOnly", false, "n", "datacj"))) - .withDefaultDataCollectionRuleResourceId("yo") - .withReplication(new WorkspaceReplicationProperties().withLocation("lgy").withEnabled(false)) + .deserialize("[\"j\",\"sovmyokacspkwl\",\"zdobpxjmflbvvnch\",\"kcciwwzjuqkhr\"]", Object.class, + SerializerEncoding.JSON), + "ghsauuimjmvxied", "\"dataiwkuofos\"", "hocohslkev", "\"dataonpc\"", "byao", "\"dataugidyjrr\"", + "xc", "\"datav\"", "unifiedSentinelBillingOnly", false))) + .withDefaultDataCollectionRuleResourceId("ggzfbu") + .withReplication(new WorkspaceReplicationProperties().withLocation("vfaxkffeiith").withEnabled(false)) .withFailover(new WorkspaceFailoverProperties()); model = BinaryData.fromObject(model).toObject(WorkspacePatch.class); - Assertions.assertEquals(IdentityType.NONE, model.identity().type()); - Assertions.assertEquals("opidkqqfkuv", model.tags().get("cxkdmligovi")); - Assertions.assertEquals(WorkspaceSkuNameEnum.PER_GB2018, model.sku().name()); - Assertions.assertEquals(1354895276, model.sku().capacityReservationLevel()); - Assertions.assertEquals(2112519300, model.retentionInDays()); - Assertions.assertEquals(34.97869271736046D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.ENABLED, model.publicNetworkAccessForQuery()); - Assertions.assertTrue(model.forceCmkForQuery()); - Assertions.assertFalse(model.features().enableDataExport()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("ygevqzntypmrbpiz", model.tags().get("drqjsdpy")); + Assertions.assertEquals(WorkspaceSkuNameEnum.PREMIUM, model.sku().name()); + Assertions.assertEquals(1076562523, model.sku().capacityReservationLevel()); + Assertions.assertEquals(711581953, model.retentionInDays()); + Assertions.assertEquals(87.7533658981948D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); + Assertions.assertFalse(model.forceCmkForQuery()); + Assertions.assertTrue(model.features().enableDataExport()); Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); Assertions.assertFalse(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("ev", model.features().clusterResourceId()); - Assertions.assertTrue(model.features().disableLocalAuth()); - Assertions.assertEquals("yo", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("lgy", model.replication().location()); + Assertions.assertEquals("kpnpulexxbczwtr", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().disableLocalAuth()); + Assertions.assertEquals("ggzfbu", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("vfaxkffeiith", model.replication().location()); Assertions.assertFalse(model.replication().enabled()); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePropertiesTests.java index 74c47ce168c6..eb59f816def9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePropertiesTests.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.generated; @@ -23,62 +23,61 @@ public final class WorkspacePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"customerId\":\"v\",\"sku\":{\"name\":\"PerNode\",\"capacityReservationLevel\":1036527354,\"lastSkuUpdate\":\"2021-03-30T03:00:35Z\"},\"retentionInDays\":1960555856,\"workspaceCapping\":{\"dailyQuotaGb\":74.87413920302748,\"quotaNextResetTime\":\"uljltduceamtmcz\",\"dataIngestionStatus\":\"RespectQuota\"},\"createdDate\":\"2021-10-02T15:37:14Z\",\"modifiedDate\":\"2021-01-27T20:06:14Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"xmojmsvpkjp\",\"scopeId\":\"kwcf\"},{\"resourceId\":\"ljyxgtczhe\",\"scopeId\":\"bsdshmkxmaehvbbx\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"tbaxk\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"pyklyhpluodpvru\",\"dlgzibthostgkt\"],\"lhpl\":\"datadxeclzedqbcvh\",\"lkxt\":\"datadqkdlwwqfbu\"},\"defaultDataCollectionRuleResourceId\":\"jfsmlmbtxhwgfwsr\",\"replication\":{\"location\":\"coezbrhubskh\",\"enabled\":false,\"provisioningState\":\"Succeeded\",\"createdDate\":\"2021-02-04T04:44:46Z\",\"lastModifiedDate\":\"2021-10-06T17:04:50Z\"},\"failover\":{\"state\":\"Failed\",\"lastModifiedDate\":\"2021-07-12T13:05:01Z\"}}") + "{\"provisioningState\":\"Deleting\",\"customerId\":\"uigdtopbobjog\",\"sku\":{\"name\":\"Free\",\"capacityReservationLevel\":115410873,\"lastSkuUpdate\":\"2021-10-29T01:50:02Z\"},\"retentionInDays\":46444609,\"workspaceCapping\":{\"dailyQuotaGb\":5.773117540744533,\"quotaNextResetTime\":\"vvtpgvdfgio\",\"dataIngestionStatus\":\"SubscriptionSuspended\"},\"createdDate\":\"2021-02-26T17:36:33Z\",\"modifiedDate\":\"2021-04-23T07:33:15Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"ugnxkrxdqmi\",\"scopeId\":\"thz\"},{\"resourceId\":\"qdrabhjybigehoqf\",\"scopeId\":\"wska\"},{\"resourceId\":\"ktzlcuiywg\",\"scopeId\":\"wgndrvynhzgpp\"},{\"resourceId\":\"cgyncocpecf\",\"scopeId\":\"mcoo\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"m\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"pmivkwlzu\"],\"cfionl\":\"\\\"datafwnfnb\\\"\"},\"defaultDataCollectionRuleResourceId\":\"x\",\"replication\":{\"location\":\"gtzxdpn\",\"enabled\":false,\"provisioningState\":\"Failed\",\"createdDate\":\"2021-06-06T00:18:07Z\",\"lastModifiedDate\":\"2021-03-18T17:55:39Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-01-01T22:31:01Z\"}}") .toObject(WorkspaceProperties.class); - Assertions.assertEquals(WorkspaceSkuNameEnum.PER_NODE, model.sku().name()); - Assertions.assertEquals(1036527354, model.sku().capacityReservationLevel()); - Assertions.assertEquals(1960555856, model.retentionInDays()); - Assertions.assertEquals(74.87413920302748D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); + Assertions.assertEquals(WorkspaceSkuNameEnum.FREE, model.sku().name()); + Assertions.assertEquals(115410873, model.sku().capacityReservationLevel()); + Assertions.assertEquals(46444609, model.retentionInDays()); + Assertions.assertEquals(5.773117540744533D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForQuery()); Assertions.assertTrue(model.forceCmkForQuery()); Assertions.assertTrue(model.features().enableDataExport()); - Assertions.assertTrue(model.features().immediatePurgeDataOn30Days()); - Assertions.assertFalse(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("tbaxk", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); + Assertions.assertTrue(model.features().enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("m", model.features().clusterResourceId()); Assertions.assertFalse(model.features().disableLocalAuth()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("coezbrhubskh", model.replication().location()); + Assertions.assertEquals("x", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("gtzxdpn", model.replication().location()); Assertions.assertFalse(model.replication().enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceProperties model - = new WorkspaceProperties() - .withSku( - new WorkspaceSku().withName(WorkspaceSkuNameEnum.PER_NODE).withCapacityReservationLevel(1036527354)) - .withRetentionInDays(1960555856) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(74.87413920302748D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.SECURED_BY_PERIMETER) - .withPublicNetworkAccessForQuery(PublicNetworkAccessType.DISABLED) - .withForceCmkForQuery(true) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) - .withImmediatePurgeDataOn30Days(true) - .withEnableLogAccessUsingOnlyResourcePermissions(false) - .withClusterResourceId("tbaxk") - .withDisableLocalAuth(false) - .withAdditionalProperties(mapOf("associations", JacksonAdapter.createDefaultSerializerAdapter() - .deserialize("[\"pyklyhpluodpvru\",\"dlgzibthostgkt\"]", Object.class, SerializerEncoding.JSON), - "lkxt", "datadqkdlwwqfbu", "lhpl", "datadxeclzedqbcvh", "unifiedSentinelBillingOnly", false))) - .withDefaultDataCollectionRuleResourceId("jfsmlmbtxhwgfwsr") - .withReplication(new WorkspaceReplicationProperties().withLocation("coezbrhubskh").withEnabled(false)) - .withFailover(new WorkspaceFailoverProperties()); + WorkspaceProperties model = new WorkspaceProperties() + .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.FREE).withCapacityReservationLevel(115410873)) + .withRetentionInDays(46444609) + .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(5.773117540744533D)) + .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.DISABLED) + .withPublicNetworkAccessForQuery(PublicNetworkAccessType.SECURED_BY_PERIMETER) + .withForceCmkForQuery(true) + .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) + .withImmediatePurgeDataOn30Days(false) + .withEnableLogAccessUsingOnlyResourcePermissions(true) + .withClusterResourceId("m") + .withDisableLocalAuth(false) + .withAdditionalProperties(mapOf("associations", + JacksonAdapter.createDefaultSerializerAdapter() + .deserialize("[\"pmivkwlzu\"]", Object.class, SerializerEncoding.JSON), + "cfionl", "\"datafwnfnb\"", "unifiedSentinelBillingOnly", false))) + .withDefaultDataCollectionRuleResourceId("x") + .withReplication(new WorkspaceReplicationProperties().withLocation("gtzxdpn").withEnabled(false)) + .withFailover(new WorkspaceFailoverProperties()); model = BinaryData.fromObject(model).toObject(WorkspaceProperties.class); - Assertions.assertEquals(WorkspaceSkuNameEnum.PER_NODE, model.sku().name()); - Assertions.assertEquals(1036527354, model.sku().capacityReservationLevel()); - Assertions.assertEquals(1960555856, model.retentionInDays()); - Assertions.assertEquals(74.87413920302748D, model.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForQuery()); + Assertions.assertEquals(WorkspaceSkuNameEnum.FREE, model.sku().name()); + Assertions.assertEquals(115410873, model.sku().capacityReservationLevel()); + Assertions.assertEquals(46444609, model.retentionInDays()); + Assertions.assertEquals(5.773117540744533D, model.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, model.publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, model.publicNetworkAccessForQuery()); Assertions.assertTrue(model.forceCmkForQuery()); Assertions.assertTrue(model.features().enableDataExport()); - Assertions.assertTrue(model.features().immediatePurgeDataOn30Days()); - Assertions.assertFalse(model.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("tbaxk", model.features().clusterResourceId()); + Assertions.assertFalse(model.features().immediatePurgeDataOn30Days()); + Assertions.assertTrue(model.features().enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("m", model.features().clusterResourceId()); Assertions.assertFalse(model.features().disableLocalAuth()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("coezbrhubskh", model.replication().location()); + Assertions.assertEquals("x", model.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("gtzxdpn", model.replication().location()); Assertions.assertFalse(model.replication().enabled()); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeResponseInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeResponseInnerTests.java index 008eb5ecd653..ebf03025b91c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeResponseInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeResponseInnerTests.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.generated; @@ -12,14 +12,7 @@ public final class WorkspacePurgeResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspacePurgeResponseInner model - = BinaryData.fromString("{\"operationId\":\"y\"}").toObject(WorkspacePurgeResponseInner.class); - Assertions.assertEquals("y", model.operationId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspacePurgeResponseInner model = new WorkspacePurgeResponseInner().withOperationId("y"); - model = BinaryData.fromObject(model).toObject(WorkspacePurgeResponseInner.class); - Assertions.assertEquals("y", model.operationId()); + = BinaryData.fromString("{\"operationId\":\"evy\"}").toObject(WorkspacePurgeResponseInner.class); + Assertions.assertEquals("evy", model.operationId()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeStatusResponseInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeStatusResponseInnerTests.java index 40c016d15835..7559972e400f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeStatusResponseInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgeStatusResponseInnerTests.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.generated; @@ -16,12 +16,4 @@ public void testDeserialize() throws Exception { = BinaryData.fromString("{\"status\":\"pending\"}").toObject(WorkspacePurgeStatusResponseInner.class); Assertions.assertEquals(PurgeState.PENDING, model.status()); } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspacePurgeStatusResponseInner model - = new WorkspacePurgeStatusResponseInner().withStatus(PurgeState.PENDING); - model = BinaryData.fromObject(model).toObject(WorkspacePurgeStatusResponseInner.class); - Assertions.assertEquals(PurgeState.PENDING, model.status()); - } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgesGetPurgeStatusWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgesGetPurgeStatusWithResponseMockTests.java index 288fa7fc2f5e..6750bbf3939d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgesGetPurgeStatusWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacePurgesGetPurgeStatusWithResponseMockTests.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.generated; @@ -31,7 +31,7 @@ public void testGetPurgeStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); WorkspacePurgeStatusResponse response = manager.workspacePurges() - .getPurgeStatusWithResponse("osewxi", "pxvkqma", "pxvpifdfaif", com.azure.core.util.Context.NONE) + .getPurgeStatusWithResponse("yjmfczlfsyqkfr", "zgowox", "mj", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(PurgeState.COMPLETED, response.status()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceReplicationPropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceReplicationPropertiesTests.java index 8c4ef48a1d39..b75204d5169e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceReplicationPropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceReplicationPropertiesTests.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.generated; @@ -12,18 +12,18 @@ public final class WorkspaceReplicationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceReplicationProperties model = BinaryData.fromString( - "{\"location\":\"uaadraufactkahzo\",\"enabled\":true,\"provisioningState\":\"Canceled\",\"createdDate\":\"2021-03-14T01:25:46Z\",\"lastModifiedDate\":\"2021-02-20T11:59:59Z\"}") + "{\"location\":\"rxzdmohctbqvudwx\",\"enabled\":false,\"provisioningState\":\"Succeeded\",\"createdDate\":\"2021-04-03T23:08:08Z\",\"lastModifiedDate\":\"2021-02-13T18:55:04Z\"}") .toObject(WorkspaceReplicationProperties.class); - Assertions.assertEquals("uaadraufactkahzo", model.location()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals("rxzdmohctbqvudwx", model.location()); + Assertions.assertFalse(model.enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WorkspaceReplicationProperties model - = new WorkspaceReplicationProperties().withLocation("uaadraufactkahzo").withEnabled(true); + = new WorkspaceReplicationProperties().withLocation("rxzdmohctbqvudwx").withEnabled(false); model = BinaryData.fromObject(model).toObject(WorkspaceReplicationProperties.class); - Assertions.assertEquals("uaadraufactkahzo", model.location()); - Assertions.assertTrue(model.enabled()); + Assertions.assertEquals("rxzdmohctbqvudwx", model.location()); + Assertions.assertFalse(model.enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceSkuTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceSkuTests.java index 6fc300fc797b..839f687f7f90 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceSkuTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspaceSkuTests.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.generated; @@ -13,18 +13,18 @@ public final class WorkspaceSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkspaceSku model = BinaryData.fromString( - "{\"name\":\"CapacityReservation\",\"capacityReservationLevel\":173772181,\"lastSkuUpdate\":\"2020-12-31T22:39:11Z\"}") + "{\"name\":\"Standard\",\"capacityReservationLevel\":1586389833,\"lastSkuUpdate\":\"2021-03-05T06:08:28Z\"}") .toObject(WorkspaceSku.class); - Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, model.name()); - Assertions.assertEquals(173772181, model.capacityReservationLevel()); + Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, model.name()); + Assertions.assertEquals(1586389833, model.capacityReservationLevel()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WorkspaceSku model = new WorkspaceSku().withName(WorkspaceSkuNameEnum.CAPACITY_RESERVATION) - .withCapacityReservationLevel(173772181); + WorkspaceSku model + = new WorkspaceSku().withName(WorkspaceSkuNameEnum.STANDARD).withCapacityReservationLevel(1586389833); model = BinaryData.fromObject(model).toObject(WorkspaceSku.class); - Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, model.name()); - Assertions.assertEquals(173772181, model.capacityReservationLevel()); + Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, model.name()); + Assertions.assertEquals(1586389833, model.capacityReservationLevel()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateMockTests.java index b94e3856b518..f6364cd44573 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesCreateOrUpdateMockTests.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.generated; @@ -35,7 +35,7 @@ public final class WorkspacesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"customerId\":\"edenrexkxbhxv\",\"sku\":{\"name\":\"Standard\",\"capacityReservationLevel\":1049789640,\"lastSkuUpdate\":\"2021-02-13T23:06:36Z\"},\"retentionInDays\":1169492818,\"workspaceCapping\":{\"dailyQuotaGb\":33.579421975520674,\"quotaNextResetTime\":\"znfaj\",\"dataIngestionStatus\":\"ForceOn\"},\"createdDate\":\"2021-06-14T13:50:50Z\",\"modifiedDate\":\"2021-06-29T16:28:10Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"rl\",\"scopeId\":\"zji\"},{\"resourceId\":\"qfhefkwabsol\",\"scopeId\":\"nqqlmgnl\"},{\"resourceId\":\"sjxtel\",\"scopeId\":\"hvuqbo\"},{\"resourceId\":\"o\",\"scopeId\":\"qocarkuzlbc\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"qytl\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"ckze\",\"nxakckyw\"],\"hfaogzv\":\"datagaabjkdtf\"},\"defaultDataCollectionRuleResourceId\":\"wrsiwdyjqurykc\",\"replication\":{\"location\":\"ueekcsue\",\"enabled\":false,\"provisioningState\":\"Canceled\",\"createdDate\":\"2021-03-11T17:26:18Z\",\"lastModifiedDate\":\"2021-07-31T15:46:45Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-04-29T13:14:35Z\"}},\"identity\":{\"principalId\":\"d\",\"tenantId\":\"mhmpty\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"fnqt\":{\"principalId\":\"bnrqq\",\"clientId\":\"ztpb\"}}},\"etag\":\"omals\",\"location\":\"bnfddep\",\"tags\":{\"f\":\"qjn\",\"vmywhsbrcarycsjj\":\"ygleexa\",\"dmkrrb\":\"yvoaqajuvehzp\",\"ubefgybpmfbfunu\":\"mpfu\"},\"id\":\"mpzkrvfyifkd\",\"name\":\"chlzvfi\",\"type\":\"tnkjjwgcwnphb\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"customerId\":\"soqfyiaseqchkrt\",\"sku\":{\"name\":\"Premium\",\"capacityReservationLevel\":1599400117,\"lastSkuUpdate\":\"2021-09-05T10:46:34Z\"},\"retentionInDays\":1220153285,\"workspaceCapping\":{\"dailyQuotaGb\":17.180495186833046,\"quotaNextResetTime\":\"vanbwzohmnrxxbs\",\"dataIngestionStatus\":\"ForceOn\"},\"createdDate\":\"2021-07-15T01:35:01Z\",\"modifiedDate\":\"2021-04-26T03:57:47Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Enabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"sgnzxojpslsvjgpl\",\"scopeId\":\"fiqwoy\"},{\"resourceId\":\"vapcoh\",\"scopeId\":\"ucqpqojxcxzrz\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"ibcawetzqddtjw\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"mtuatmzwcjjncqtj\",\"mizvgbgatzuuvbx\",\"grebwggahttzlsw\",\"ajqfutlx\"],\"aohcmbuocn\":\"\\\"datazasunwqrjzfrgq\\\"\",\"hmbpyryxamebly\":\"\\\"datar\\\"\",\"kmrocxne\":\"\\\"datayvk\\\"\",\"mtodl\":\"\\\"datav\\\"\"},\"defaultDataCollectionRuleResourceId\":\"yapucygvoa\",\"replication\":{\"location\":\"nssxlgh\",\"enabled\":true,\"provisioningState\":\"Disabling\",\"createdDate\":\"2021-03-08T19:07:47Z\",\"lastModifiedDate\":\"2021-03-11T23:56:25Z\"},\"failover\":{\"state\":\"Active\",\"lastModifiedDate\":\"2021-03-25T17:51:10Z\"}},\"identity\":{\"principalId\":\"buxantuyg\",\"tenantId\":\"gaqi\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"pibkephuu\":{\"principalId\":\"wrq\",\"clientId\":\"ulopmjnlexwhcb\"},\"uczkgofxyfsruc\":{\"principalId\":\"rctat\",\"clientId\":\"intqpbrlcyr\"}}},\"etag\":\"rrp\",\"location\":\"ttbst\",\"tags\":{\"ktuidvrm\":\"aqnrmvvfkoxmlg\",\"mzvlazipbh\":\"zlpdwwex\",\"uuzivensrpmeyyvp\":\"wvqsgny\",\"gsksrfhf\":\"patlbijp\"},\"id\":\"olmk\",\"name\":\"bnxwc\",\"type\":\"ommpvfqaw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -44,56 +44,60 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Workspace response = manager.workspaces() - .define("gv") - .withRegion("oyfpuq") - .withExistingResourceGroup("yznclkfkee") - .withTags(mapOf("wvpsoz", "ezxlhdjzqdca", "pnx", "iihjriybmrzo")) - .withIdentity(new Identity().withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("xomeikjclwzacn", new UserIdentityProperties()))) - .withEtag("fsuqtaazyqbxy") - .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.FREE).withCapacityReservationLevel(965244387)) - .withRetentionInDays(1510649527) - .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(15.022557422512794D)) - .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.ENABLED) - .withPublicNetworkAccessForQuery(PublicNetworkAccessType.SECURED_BY_PERIMETER) - .withForceCmkForQuery(true) - .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) - .withImmediatePurgeDataOn30Days(false) - .withEnableLogAccessUsingOnlyResourcePermissions(true) - .withClusterResourceId("llqxbdmvrscm") - .withDisableLocalAuth(false) - .withAdditionalProperties(mapOf("associations", - SerializerFactory.createDefaultManagementSerializerAdapter() - .deserialize("[\"nyeofltfnnxrk\",\"dj\",\"ynnfmuiii\",\"ipfohykfkx\"]", Object.class, - SerializerEncoding.JSON), - "ewoi", "databrwjiutgnjizb", "uifr", "datad", "pezkis", "datavka", "unifiedSentinelBillingOnly", - true, "juyrsrziuctixg", "datamrvz"))) - .withDefaultDataCollectionRuleResourceId("jm") - .withReplication(new WorkspaceReplicationProperties().withLocation("syparybjufp").withEnabled(true)) - .withFailover(new WorkspaceFailoverProperties()) - .create(); + Workspace response + = manager.workspaces() + .define("ui") + .withRegion("bbxi") + .withExistingResourceGroup("gxhnpomyqwcabv") + .withTags(mapOf("wdpyq", "xiidloped", "cbq", "ybxubmdna", "laqacigele", "remj")) + .withIdentity( + new Identity().withType(IdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("owxih", new UserIdentityProperties(), "aklsbsbq", + new UserIdentityProperties(), "rczezkhhlt", new UserIdentityProperties(), "rrueqthwmg", + new UserIdentityProperties()))) + .withEtag("b") + .withSku(new WorkspaceSku().withName(WorkspaceSkuNameEnum.STANDALONE) + .withCapacityReservationLevel(1608686581)) + .withRetentionInDays(199152216) + .withWorkspaceCapping(new WorkspaceCapping().withDailyQuotaGb(24.2568244380545D)) + .withPublicNetworkAccessForIngestion(PublicNetworkAccessType.ENABLED) + .withPublicNetworkAccessForQuery(PublicNetworkAccessType.DISABLED) + .withForceCmkForQuery(false) + .withFeatures(new WorkspaceFeatures().withEnableDataExport(true) + .withImmediatePurgeDataOn30Days(false) + .withEnableLogAccessUsingOnlyResourcePermissions(false) + .withClusterResourceId("wgnxkympqanxrj") + .withDisableLocalAuth(false) + .withAdditionalProperties(mapOf("associations", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"aoypny\",\"hshxcylhkgmnsghp\",\"ycphdrwjjkhvyo\",\"ac\"]", Object.class, + SerializerEncoding.JSON), + "wmkoisq", "\"datavxnqmhrpqpd\"", "czzydmxzjij", "\"datazsylollgt\"", "ypobkdqzr", + "\"datassffxuifmc\"", "unifiedSentinelBillingOnly", false))) + .withDefaultDataCollectionRuleResourceId("uaurkihcir") + .withReplication(new WorkspaceReplicationProperties().withLocation("fx").withEnabled(false)) + .withFailover(new WorkspaceFailoverProperties()) + .create(); - Assertions.assertEquals("bnfddep", response.location()); - Assertions.assertEquals("qjn", response.tags().get("f")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("omals", response.etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, response.sku().name()); - Assertions.assertEquals(1049789640, response.sku().capacityReservationLevel()); - Assertions.assertEquals(1169492818, response.retentionInDays()); - Assertions.assertEquals(33.579421975520674D, response.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, - response.publicNetworkAccessForIngestion()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, response.publicNetworkAccessForQuery()); - Assertions.assertFalse(response.forceCmkForQuery()); + Assertions.assertEquals("ttbst", response.location()); + Assertions.assertEquals("aqnrmvvfkoxmlg", response.tags().get("ktuidvrm")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, response.identity().type()); + Assertions.assertEquals("rrp", response.etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.PREMIUM, response.sku().name()); + Assertions.assertEquals(1599400117, response.sku().capacityReservationLevel()); + Assertions.assertEquals(1220153285, response.retentionInDays()); + Assertions.assertEquals(17.180495186833046D, response.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, response.publicNetworkAccessForIngestion()); + Assertions.assertEquals(PublicNetworkAccessType.ENABLED, response.publicNetworkAccessForQuery()); + Assertions.assertTrue(response.forceCmkForQuery()); Assertions.assertFalse(response.features().enableDataExport()); - Assertions.assertFalse(response.features().immediatePurgeDataOn30Days()); - Assertions.assertTrue(response.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("qytl", response.features().clusterResourceId()); + Assertions.assertTrue(response.features().immediatePurgeDataOn30Days()); + Assertions.assertFalse(response.features().enableLogAccessUsingOnlyResourcePermissions()); + Assertions.assertEquals("ibcawetzqddtjw", response.features().clusterResourceId()); Assertions.assertFalse(response.features().disableLocalAuth()); - Assertions.assertEquals("wrsiwdyjqurykc", response.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("ueekcsue", response.replication().location()); - Assertions.assertFalse(response.replication().enabled()); + Assertions.assertEquals("yapucygvoa", response.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("nssxlgh", response.replication().location()); + Assertions.assertTrue(response.replication().enabled()); } // Use "Map.of" if available diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteMockTests.java index 3fd769770841..25c14763cd5b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesDeleteMockTests.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.generated; @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.workspaces().delete("xmbjroum", "znv", false, com.azure.core.util.Context.NONE); + manager.workspaces().delete("siowlkjxnqpv", "gf", false, com.azure.core.util.Context.NONE); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupWithResponseMockTests.java index 043403b84e0a..f599605cbe2d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetByResourceGroupWithResponseMockTests.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.generated; @@ -24,7 +24,7 @@ public final class WorkspacesGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"bpdbollgr\",\"sku\":{\"name\":\"Standalone\",\"capacityReservationLevel\":1441651500,\"lastSkuUpdate\":\"2021-01-18T17:52:58Z\"},\"retentionInDays\":693005184,\"workspaceCapping\":{\"dailyQuotaGb\":85.75670564450144,\"quotaNextResetTime\":\"nequy\",\"dataIngestionStatus\":\"OverQuota\"},\"createdDate\":\"2021-03-14T09:15:47Z\",\"modifiedDate\":\"2021-08-01T19:22:02Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"adrmmwiuawvcmjzk\",\"scopeId\":\"idisczskosw\"},{\"resourceId\":\"iqazugamxzkr\",\"scopeId\":\"oiisbamnppcce\"},{\"resourceId\":\"ztdsbeza\",\"scopeId\":\"f\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"hnepkpeti\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"xdukecpxd\",\"zvdhctmmkosz\",\"dblnsntrp\",\"aqkiofkb\"],\"ezyquw\":\"datahklbnldpvcbh\",\"brruyuuatv\":\"datasqxutr\"},\"defaultDataCollectionRuleResourceId\":\"bjwcolbmx\",\"replication\":{\"location\":\"w\",\"enabled\":true,\"provisioningState\":\"EnableRequested\",\"createdDate\":\"2020-12-20T15:37:07Z\",\"lastModifiedDate\":\"2021-02-13T22:53:47Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-01-25T19:22:53Z\"}},\"identity\":{\"principalId\":\"hocn\",\"tenantId\":\"cmj\",\"type\":\"None\",\"userAssignedIdentities\":{\"tjfdoesxxhmw\":{\"principalId\":\"oqrxtdisnjevhdlm\",\"clientId\":\"idwhepfw\"},\"t\":{\"principalId\":\"bckyoikxk\",\"clientId\":\"negknjzrb\"},\"hjhgem\":{\"principalId\":\"plvukaobrlbpg\",\"clientId\":\"bagn\"}}},\"etag\":\"akywalhjymxcgqta\",\"location\":\"drclssoljome\",\"tags\":{\"gjiiytssiki\":\"ycnlbvgjcodk\",\"gmqsorhcekxg\":\"bcufqbvntn\"},\"id\":\"lykmxcpwzvmdo\",\"name\":\"sqdtiwlwxlbon\",\"type\":\"qba\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"customerId\":\"cymczngn\",\"sku\":{\"name\":\"Premium\",\"capacityReservationLevel\":91780906,\"lastSkuUpdate\":\"2021-02-27T13:54:20Z\"},\"retentionInDays\":1950061387,\"workspaceCapping\":{\"dailyQuotaGb\":59.42455838282628,\"quotaNextResetTime\":\"chaqdtvqec\",\"dataIngestionStatus\":\"SubscriptionSuspended\"},\"createdDate\":\"2021-07-29T21:58:39Z\",\"modifiedDate\":\"2021-01-26T14:26:41Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"ytxzvtznapxbanno\",\"scopeId\":\"oxczytp\"},{\"resourceId\":\"nwvroevytlyokrr\",\"scopeId\":\"uuxvnsasbcry\"},{\"resourceId\":\"dizr\",\"scopeId\":\"lobdxna\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"vfxzopjh\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"rdddtfgxqbawpcb\"],\"napqo\":\"\\\"dataqcy\\\"\",\"wwgbdv\":\"\\\"datayuicdhzbdy\\\"\"},\"defaultDataCollectionRuleResourceId\":\"idmhmwf\",\"replication\":{\"location\":\"fmuvapckccr\",\"enabled\":false,\"provisioningState\":\"Failed\",\"createdDate\":\"2021-12-04T19:48:14Z\",\"lastModifiedDate\":\"2021-10-21T19:22Z\"},\"failover\":{\"state\":\"Failed\",\"lastModifiedDate\":\"2021-11-22T14:26:47Z\"}},\"identity\":{\"principalId\":\"mmoiroqboshbra\",\"tenantId\":\"pyyrmfs\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"pugmehqe\":{\"principalId\":\"bopfppdbwnup\",\"clientId\":\"hxkumasjcaacfdmm\"},\"ewhoqh\":{\"principalId\":\"u\",\"clientId\":\"bze\"}}},\"etag\":\"bqnbl\",\"location\":\"eaclgschorimk\",\"tags\":{\"puviyfcaabe\":\"rmoucsofl\"},\"id\":\"lhbhl\",\"name\":\"bmxuqib\",\"type\":\"xtkcudfbsfar\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,28 +34,27 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Workspace response = manager.workspaces() - .getByResourceGroupWithResponse("qjrhuzgfxonj", "pusllywpv", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("yfedevjbo", "lcqxypokk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("drclssoljome", response.location()); - Assertions.assertEquals("ycnlbvgjcodk", response.tags().get("gjiiytssiki")); - Assertions.assertEquals(IdentityType.NONE, response.identity().type()); - Assertions.assertEquals("akywalhjymxcgqta", response.etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.STANDALONE, response.sku().name()); - Assertions.assertEquals(1441651500, response.sku().capacityReservationLevel()); - Assertions.assertEquals(693005184, response.retentionInDays()); - Assertions.assertEquals(85.75670564450144D, response.workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, - response.publicNetworkAccessForIngestion()); + Assertions.assertEquals("eaclgschorimk", response.location()); + Assertions.assertEquals("rmoucsofl", response.tags().get("puviyfcaabe")); + Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("bqnbl", response.etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.PREMIUM, response.sku().name()); + Assertions.assertEquals(91780906, response.sku().capacityReservationLevel()); + Assertions.assertEquals(1950061387, response.retentionInDays()); + Assertions.assertEquals(59.42455838282628D, response.workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.DISABLED, response.publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, response.publicNetworkAccessForQuery()); Assertions.assertTrue(response.forceCmkForQuery()); - Assertions.assertTrue(response.features().enableDataExport()); + Assertions.assertFalse(response.features().enableDataExport()); Assertions.assertFalse(response.features().immediatePurgeDataOn30Days()); Assertions.assertFalse(response.features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("hnepkpeti", response.features().clusterResourceId()); + Assertions.assertEquals("vfxzopjh", response.features().clusterResourceId()); Assertions.assertTrue(response.features().disableLocalAuth()); - Assertions.assertEquals("bjwcolbmx", response.defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("w", response.replication().location()); - Assertions.assertTrue(response.replication().enabled()); + Assertions.assertEquals("idmhmwf", response.defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("fmuvapckccr", response.replication().location()); + Assertions.assertFalse(response.replication().enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspWithResponseMockTests.java index cfd8d9d65886..763159914739 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesGetNspWithResponseMockTests.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.generated; @@ -14,7 +14,6 @@ import com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -23,7 +22,7 @@ public final class WorkspacesGetNspWithResponseMockTests { @Test public void testGetNspWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"provisioningIssues\":[{\"name\":\"qkaye\",\"properties\":{\"issueType\":\"MissingPerimeterConfiguration\",\"severity\":\"Error\",\"description\":\"lwfgziiu\",\"suggestedResourceIds\":[\"jceatlijjjrtva\",\"caszk\",\"xk\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"etyvkunmignohi\",\"properties\":{\"issueType\":\"Unknown\",\"severity\":\"Warning\",\"description\":\"wpin\",\"suggestedResourceIds\":[\"vabbx\",\"hmedeilbjywfcfxz\",\"rzzihvwypus\",\"vjslczwcii\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"fryvdmvxadqac\",\"perimeterGuid\":\"9bde5da3-3ba4-4215-8b61-6e214c73bc9f\",\"location\":\"naw\"},\"resourceAssociation\":{\"name\":\"gfbktyjmf\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"yq\",\"accessRulesVersion\":988633110,\"accessRules\":[{\"name\":\"owoxqmj\",\"properties\":{}},{\"name\":\"cxn\",\"properties\":{}}],\"diagnosticSettingsVersion\":473965533,\"enabledLogCategories\":[\"usrvx\",\"simjceagbjqvlsu\"]}},\"id\":\"wzas\",\"name\":\"xgo\",\"type\":\"oyjfqipu\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"awzovgkk\",\"properties\":{\"issueType\":\"MissingPerimeterConfiguration\",\"severity\":\"Warning\",\"description\":\"jcazt\",\"suggestedResourceIds\":[\"nsq\",\"wxwcomli\",\"ytwvczcswkacve\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"lvhbwrnf\",\"perimeterGuid\":\"gddpq\",\"location\":\"ehnmnaoyankco\"},\"resourceAssociation\":{\"name\":\"wankltytmhdroznn\",\"accessMode\":\"Audit\"},\"profile\":{\"name\":\"tgjcsgguxheml\",\"accessRulesVersion\":133075669,\"accessRules\":[{\"name\":\"czg\",\"properties\":{}},{\"name\":\"kklelssxblycs\",\"properties\":{}}],\"diagnosticSettingsVersion\":802444072,\"enabledLogCategories\":[\"rlsmdesqplpvmjc\",\"oewbid\"]}},\"id\":\"t\",\"name\":\"owx\",\"type\":\"gpiudeug\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,20 +32,19 @@ public void testGetNspWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.workspaces() - .getNspWithResponse("grpxncakiqaondjr", "clamgglvlmfejdoq", "ykglt", com.azure.core.util.Context.NONE) + .getNspWithResponse("hrkmdyomkxfbvfbh", "y", "rhpw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fryvdmvxadqac", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("9bde5da3-3ba4-4215-8b61-6e214c73bc9f"), - response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("naw", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("gfbktyjmf", response.properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, + Assertions.assertEquals("lvhbwrnf", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("gddpq", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("ehnmnaoyankco", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("wankltytmhdroznn", response.properties().resourceAssociation().name()); + Assertions.assertEquals(ResourceAssociationAccessMode.AUDIT, response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("yq", response.properties().profile().name()); - Assertions.assertEquals(988633110, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("owoxqmj", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(473965533, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("usrvx", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("tgjcsgguxheml", response.properties().profile().name()); + Assertions.assertEquals(133075669, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("czg", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(802444072, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("rlsmdesqplpvmjc", response.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupMockTests.java index e3375af4e2b8..9a243663a0da 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListByResourceGroupMockTests.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.generated; @@ -25,7 +25,7 @@ public final class WorkspacesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"customerId\":\"vezcrcssbzhdd\",\"sku\":{\"name\":\"PerNode\",\"capacityReservationLevel\":1056555607,\"lastSkuUpdate\":\"2021-11-16T04:37:45Z\"},\"retentionInDays\":106775575,\"workspaceCapping\":{\"dailyQuotaGb\":55.74174962524516,\"quotaNextResetTime\":\"pavawugiqjtio\",\"dataIngestionStatus\":\"ForceOff\"},\"createdDate\":\"2021-09-30T21:30:49Z\",\"modifiedDate\":\"2021-08-09T13:44:28Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"iygspnbonhpczyk\",\"scopeId\":\"tp\"},{\"resourceId\":\"xqcsehch\",\"scopeId\":\"ufmpqumqyjgy\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"uzanhsfnhsenwphp\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"lidftujwjj\"],\"ssruqnmdvhazcvj\":\"databeqrkuorh\",\"wbqerzwxiytxtd\":\"datatiq\",\"ktg\":\"dataukvlb\"},\"defaultDataCollectionRuleResourceId\":\"tyouambewreswmow\",\"replication\":{\"location\":\"mut\",\"enabled\":false,\"provisioningState\":\"DisableRequested\",\"createdDate\":\"2021-05-23T20:36:12Z\",\"lastModifiedDate\":\"2021-05-17T10:49:14Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-06-23T04:35:50Z\"}},\"identity\":{\"principalId\":\"spxlzde\",\"tenantId\":\"grijwaiufanrayb\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ygzmxieqvdsmak\":{\"principalId\":\"rojsydg\",\"clientId\":\"ydkygywezskieca\"},\"ybxawoijpodtblx\":{\"principalId\":\"xq\",\"clientId\":\"hyhxa\"},\"emehllizh\":{\"principalId\":\"kwjdjodqhy\",\"clientId\":\"ncn\"},\"dtluvvadswzsn\":{\"principalId\":\"umoqodkad\",\"clientId\":\"yibngqladywrxwh\"}}},\"etag\":\"mlowuowhl\",\"location\":\"lnwy\",\"tags\":{\"okzkltr\":\"uvblg\",\"rqcrjidhftukvh\":\"owtdvrfmvlihcvj\"},\"id\":\"xlwyoj\",\"name\":\"fqz\",\"type\":\"kfnjyixhafrat\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"uqvoxmycjimryv\",\"sku\":{\"name\":\"Standard\",\"capacityReservationLevel\":2058010573,\"lastSkuUpdate\":\"2020-12-22T05:57:37Z\"},\"retentionInDays\":853527765,\"workspaceCapping\":{\"dailyQuotaGb\":26.058005777495264,\"quotaNextResetTime\":\"dsxwefoh\",\"dataIngestionStatus\":\"SubscriptionSuspended\"},\"createdDate\":\"2021-09-26T17:40:29Z\",\"modifiedDate\":\"2021-01-07T15:19:45Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"Disabled\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"klmtkhlowkx\",\"scopeId\":\"vbrdfjmzsyzfho\"},{\"resourceId\":\"h\",\"scopeId\":\"cyychunsjlp\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":false,\"enableLogAccessUsingOnlyResourcePermissions\":false,\"clusterResourceId\":\"uic\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"hwrbfdpyflubh\",\"jgl\"],\"hmem\":\"\\\"datauyzlw\\\"\",\"memczjkmmyk\":\"\\\"dataooclutnp\\\"\",\"rye\":\"\\\"dataujxsglhsr\\\"\",\"rfih\":\"\\\"dataylmbkzudni\\\"\"},\"defaultDataCollectionRuleResourceId\":\"jewlpxuzzjg\",\"replication\":{\"location\":\"fqyhqoto\",\"enabled\":true,\"provisioningState\":\"Enabling\",\"createdDate\":\"2021-02-15T08:32:44Z\",\"lastModifiedDate\":\"2021-05-19T02:12:21Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2020-12-30T21:06:49Z\"}},\"identity\":{\"principalId\":\"zdq\",\"tenantId\":\"hcspo\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"lbmoichd\":{\"principalId\":\"sipi\",\"clientId\":\"gbebjf\"},\"wsaae\":{\"principalId\":\"nfpubntnbatz\",\"clientId\":\"qs\"},\"mjvlgfgg\":{\"principalId\":\"attcju\",\"clientId\":\"lrvkmjc\"}}},\"etag\":\"kyylizr\",\"location\":\"jpsfxsfu\",\"tags\":{\"bwidql\":\"vtmva\"},\"id\":\"hukoveofizrv\",\"name\":\"f\",\"type\":\"mjm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,28 +35,28 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.workspaces().listByResourceGroup("dbpb", com.azure.core.util.Context.NONE); + = manager.workspaces().listByResourceGroup("mhqykizmdksa", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lnwy", response.iterator().next().location()); - Assertions.assertEquals("uvblg", response.iterator().next().tags().get("okzkltr")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("mlowuowhl", response.iterator().next().etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.PER_NODE, response.iterator().next().sku().name()); - Assertions.assertEquals(1056555607, response.iterator().next().sku().capacityReservationLevel()); - Assertions.assertEquals(106775575, response.iterator().next().retentionInDays()); - Assertions.assertEquals(55.74174962524516D, response.iterator().next().workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals("jpsfxsfu", response.iterator().next().location()); + Assertions.assertEquals("vtmva", response.iterator().next().tags().get("bwidql")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); + Assertions.assertEquals("kyylizr", response.iterator().next().etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.STANDARD, response.iterator().next().sku().name()); + Assertions.assertEquals(2058010573, response.iterator().next().sku().capacityReservationLevel()); + Assertions.assertEquals(853527765, response.iterator().next().retentionInDays()); + Assertions.assertEquals(26.058005777495264D, response.iterator().next().workspaceCapping().dailyQuotaGb()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, response.iterator().next().publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.DISABLED, response.iterator().next().publicNetworkAccessForQuery()); - Assertions.assertFalse(response.iterator().next().forceCmkForQuery()); - Assertions.assertFalse(response.iterator().next().features().enableDataExport()); - Assertions.assertTrue(response.iterator().next().features().immediatePurgeDataOn30Days()); + Assertions.assertTrue(response.iterator().next().forceCmkForQuery()); + Assertions.assertTrue(response.iterator().next().features().enableDataExport()); + Assertions.assertFalse(response.iterator().next().features().immediatePurgeDataOn30Days()); Assertions.assertFalse(response.iterator().next().features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("uzanhsfnhsenwphp", response.iterator().next().features().clusterResourceId()); + Assertions.assertEquals("uic", response.iterator().next().features().clusterResourceId()); Assertions.assertTrue(response.iterator().next().features().disableLocalAuth()); - Assertions.assertEquals("tyouambewreswmow", response.iterator().next().defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("mut", response.iterator().next().replication().location()); - Assertions.assertFalse(response.iterator().next().replication().enabled()); + Assertions.assertEquals("jewlpxuzzjg", response.iterator().next().defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("fqyhqoto", response.iterator().next().replication().location()); + Assertions.assertTrue(response.iterator().next().replication().enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListMockTests.java index dd45f0116751..a9b9e0774033 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListMockTests.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.generated; @@ -25,7 +25,7 @@ public final class WorkspacesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"customerId\":\"uubeid\",\"sku\":{\"name\":\"Free\",\"capacityReservationLevel\":932346466,\"lastSkuUpdate\":\"2021-08-27T04:01:07Z\"},\"retentionInDays\":1084613444,\"workspaceCapping\":{\"dailyQuotaGb\":83.86160418016159,\"quotaNextResetTime\":\"fltgvdiho\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-07-12T20:14:31Z\",\"modifiedDate\":\"2021-07-25T19:58:40Z\",\"publicNetworkAccessForIngestion\":\"Disabled\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":false,\"privateLinkScopedResources\":[{\"resourceId\":\"cpcunnuzdqum\",\"scopeId\":\"nod\"},{\"resourceId\":\"ienhqhskndnelq\",\"scopeId\":\"adlknwfoanni\"},{\"resourceId\":\"petxivcnrlyxnu\",\"scopeId\":\"ephblkwqpatvbqs\"}],\"features\":{\"enableDataExport\":false,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"vuzqymt\",\"disableLocalAuth\":true,\"unifiedSentinelBillingOnly\":true,\"associations\":[\"it\",\"qhzvb\"],\"cxmxeatkdb\":\"datadbanfznd\"},\"defaultDataCollectionRuleResourceId\":\"nrd\",\"replication\":{\"location\":\"bqbnaomhjrmkuh\",\"enabled\":true,\"provisioningState\":\"DisableRequested\",\"createdDate\":\"2021-08-22T07:08:52Z\",\"lastModifiedDate\":\"2021-07-09T10:57:05Z\"},\"failover\":{\"state\":\"Deactivating\",\"lastModifiedDate\":\"2021-03-26T01:09:54Z\"}},\"identity\":{\"principalId\":\"anc\",\"tenantId\":\"xxqcwgaxf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"zyyfy\":{\"principalId\":\"okzwjjzrlt\",\"clientId\":\"l\"},\"ujivyqlkjuvsm\":{\"principalId\":\"qsix\",\"clientId\":\"m\"}}},\"etag\":\"lzoy\",\"location\":\"vwzdbpqvyb\",\"tags\":{\"okcvtlubses\":\"vmx\",\"pirykycndzfqiv\":\"vcuartrhun\"},\"id\":\"reuykbbmnwagl\",\"name\":\"bxoeeonql\",\"type\":\"fwmyymv\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"customerId\":\"giblkujrllf\",\"sku\":{\"name\":\"CapacityReservation\",\"capacityReservationLevel\":558783309,\"lastSkuUpdate\":\"2021-11-08T09:17:31Z\"},\"retentionInDays\":776019677,\"workspaceCapping\":{\"dailyQuotaGb\":83.90522457109182,\"quotaNextResetTime\":\"jikzoeovvtzej\",\"dataIngestionStatus\":\"ApproachingQuota\"},\"createdDate\":\"2021-05-27T14:47:36Z\",\"modifiedDate\":\"2021-09-09T18:41:11Z\",\"publicNetworkAccessForIngestion\":\"SecuredByPerimeter\",\"publicNetworkAccessForQuery\":\"SecuredByPerimeter\",\"forceCmkForQuery\":true,\"privateLinkScopedResources\":[{\"resourceId\":\"qzolxrzvhqjw\",\"scopeId\":\"htgv\"},{\"resourceId\":\"pcrrk\",\"scopeId\":\"awjmjsmw\"},{\"resourceId\":\"kcdxfzzzw\",\"scopeId\":\"afitlhguynuchlg\"},{\"resourceId\":\"txd\",\"scopeId\":\"mozusgzvlnsnnjz\"}],\"features\":{\"enableDataExport\":true,\"immediatePurgeDataOn30Days\":true,\"enableLogAccessUsingOnlyResourcePermissions\":true,\"clusterResourceId\":\"wamxqzrag\",\"disableLocalAuth\":false,\"unifiedSentinelBillingOnly\":false,\"associations\":[\"dulajvlejchcs\",\"lzk\"],\"cnzqtpjhmqr\":\"\\\"datalanrupdwvnp\\\"\",\"hlaiwd\":\"\\\"datav\\\"\",\"hzdtxetlgydlh\":\"\\\"dataxsmlz\\\"\",\"b\":\"\\\"datavlnnpx\\\"\"},\"defaultDataCollectionRuleResourceId\":\"iqge\",\"replication\":{\"location\":\"bgj\",\"enabled\":false,\"provisioningState\":\"Canceled\",\"createdDate\":\"2021-06-15T08:23:11Z\",\"lastModifiedDate\":\"2021-02-11T09:12:46Z\"},\"failover\":{\"state\":\"Activating\",\"lastModifiedDate\":\"2021-08-06T16:10:44Z\"}},\"identity\":{\"principalId\":\"mzegjon\",\"tenantId\":\"jirwgdnqzbrfk\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ytswfp\":{\"principalId\":\"mtksjcitdigsx\",\"clientId\":\"gljplkeuachtomfl\"},\"vpedwqslsrh\":{\"principalId\":\"dgycxnmskwhqjjy\",\"clientId\":\"urlpshh\"}}},\"etag\":\"qvwwsko\",\"location\":\"cbrwi\",\"tags\":{\"ovyrrleaesinu\":\"qejo\",\"hcecybmrqbr\":\"tljqobbpih\",\"crse\":\"bbmpxdlvykfre\"},\"id\":\"wjksghudgzhxo\",\"name\":\"jggsvo\",\"type\":\"jkxibda\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,26 +36,26 @@ public void testList() throws Exception { PagedIterable response = manager.workspaces().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("vwzdbpqvyb", response.iterator().next().location()); - Assertions.assertEquals("vmx", response.iterator().next().tags().get("okcvtlubses")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("lzoy", response.iterator().next().etag()); - Assertions.assertEquals(WorkspaceSkuNameEnum.FREE, response.iterator().next().sku().name()); - Assertions.assertEquals(932346466, response.iterator().next().sku().capacityReservationLevel()); - Assertions.assertEquals(1084613444, response.iterator().next().retentionInDays()); - Assertions.assertEquals(83.86160418016159D, response.iterator().next().workspaceCapping().dailyQuotaGb()); - Assertions.assertEquals(PublicNetworkAccessType.DISABLED, + Assertions.assertEquals("cbrwi", response.iterator().next().location()); + Assertions.assertEquals("qejo", response.iterator().next().tags().get("ovyrrleaesinu")); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); + Assertions.assertEquals("qvwwsko", response.iterator().next().etag()); + Assertions.assertEquals(WorkspaceSkuNameEnum.CAPACITY_RESERVATION, response.iterator().next().sku().name()); + Assertions.assertEquals(558783309, response.iterator().next().sku().capacityReservationLevel()); + Assertions.assertEquals(776019677, response.iterator().next().retentionInDays()); + Assertions.assertEquals(83.90522457109182D, response.iterator().next().workspaceCapping().dailyQuotaGb()); + Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, response.iterator().next().publicNetworkAccessForIngestion()); Assertions.assertEquals(PublicNetworkAccessType.SECURED_BY_PERIMETER, response.iterator().next().publicNetworkAccessForQuery()); - Assertions.assertFalse(response.iterator().next().forceCmkForQuery()); - Assertions.assertFalse(response.iterator().next().features().enableDataExport()); + Assertions.assertTrue(response.iterator().next().forceCmkForQuery()); + Assertions.assertTrue(response.iterator().next().features().enableDataExport()); Assertions.assertTrue(response.iterator().next().features().immediatePurgeDataOn30Days()); Assertions.assertTrue(response.iterator().next().features().enableLogAccessUsingOnlyResourcePermissions()); - Assertions.assertEquals("vuzqymt", response.iterator().next().features().clusterResourceId()); - Assertions.assertTrue(response.iterator().next().features().disableLocalAuth()); - Assertions.assertEquals("nrd", response.iterator().next().defaultDataCollectionRuleResourceId()); - Assertions.assertEquals("bqbnaomhjrmkuh", response.iterator().next().replication().location()); - Assertions.assertTrue(response.iterator().next().replication().enabled()); + Assertions.assertEquals("wamxqzrag", response.iterator().next().features().clusterResourceId()); + Assertions.assertFalse(response.iterator().next().features().disableLocalAuth()); + Assertions.assertEquals("iqge", response.iterator().next().defaultDataCollectionRuleResourceId()); + Assertions.assertEquals("bgj", response.iterator().next().replication().location()); + Assertions.assertFalse(response.iterator().next().replication().enabled()); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspMockTests.java index f7ef055fa986..b540025444d8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/WorkspacesListNspMockTests.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.generated; @@ -15,7 +15,6 @@ import com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import java.util.UUID; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -24,7 +23,7 @@ public final class WorkspacesListNspMockTests { @Test public void testListNsp() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"provisioningIssues\":[{\"name\":\"kxyqvgxiaodetv\",\"properties\":{\"issueType\":\"MissingPerimeterConfiguration\",\"severity\":\"Warning\",\"description\":\"wsaifmcwno\",\"suggestedResourceIds\":[\"lehgcvkbc\",\"njolgjyyxpv\",\"lszerqzevx\",\"qe\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"waljglzoblqwaaf\",\"properties\":{\"issueType\":\"Unknown\",\"severity\":\"Warning\",\"description\":\"yqbhd\",\"suggestedResourceIds\":[\"jrqpjiyrqjcrga\",\"wmzwdfkbnrzorpdl\",\"bqc\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"xxsaetgz\",\"perimeterGuid\":\"356dc794-27de-474a-b01f-8e647225fb47\",\"location\":\"pyigdaqqilzdc\"},\"resourceAssociation\":{\"name\":\"joedx\",\"accessMode\":\"Enforced\"},\"profile\":{\"name\":\"i\",\"accessRulesVersion\":652197370,\"accessRules\":[{\"name\":\"wgilfjqqac\",\"properties\":{}},{\"name\":\"xwxdcvjwc\",\"properties\":{}}],\"diagnosticSettingsVersion\":148579488,\"enabledLogCategories\":[\"ciqchxrtuicd\",\"iw\"]}},\"id\":\"m\",\"name\":\"p\",\"type\":\"hzzwvywrgyngy\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"provisioningIssues\":[{\"name\":\"mrutznabaobnsluj\",\"properties\":{\"issueType\":\"MissingIdentityConfiguration\",\"severity\":\"Error\",\"description\":\"mvguihywart\",\"suggestedResourceIds\":[\"hkixkykxdssj\",\"emmucfxh\",\"kkflrmymyincqlhr\",\"s\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"iiiovgqcgxuugq\",\"properties\":{\"issueType\":\"MissingPerimeterConfiguration\",\"severity\":\"Error\",\"description\":\"wlxte\",\"suggestedResourceIds\":[\"tjgwdtguk\",\"anblwphqlkccu\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"wahoiul\",\"perimeterGuid\":\"niiprglvaw\",\"location\":\"z\"},\"resourceAssociation\":{\"name\":\"ypivlsbb\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"bkmifoxxkub\",\"accessRulesVersion\":1199627786,\"accessRules\":[{\"name\":\"mhbrbqgvg\",\"properties\":{}}],\"diagnosticSettingsVersion\":2074347527,\"enabledLogCategories\":[\"tefjoknssqyzq\",\"dikdfrdbi\",\"mrjgeihfqlggwfi\"]}},\"id\":\"cxmjpbyephmg\",\"name\":\"vljvrc\",\"type\":\"yfqi\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +33,22 @@ public void testListNsp() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.workspaces().listNsp("qicqchygt", "xbyja", com.azure.core.util.Context.NONE); + = manager.workspaces().listNsp("sxze", "paxwkufyk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xxsaetgz", response.iterator().next().properties().networkSecurityPerimeter().id()); - Assertions.assertEquals(UUID.fromString("356dc794-27de-474a-b01f-8e647225fb47"), + Assertions.assertEquals("wahoiul", response.iterator().next().properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("niiprglvaw", response.iterator().next().properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("pyigdaqqilzdc", - response.iterator().next().properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("joedx", response.iterator().next().properties().resourceAssociation().name()); - Assertions.assertEquals(ResourceAssociationAccessMode.ENFORCED, + Assertions.assertEquals("z", response.iterator().next().properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("ypivlsbb", response.iterator().next().properties().resourceAssociation().name()); + Assertions.assertEquals(ResourceAssociationAccessMode.LEARNING, response.iterator().next().properties().resourceAssociation().accessMode()); - Assertions.assertEquals("i", response.iterator().next().properties().profile().name()); - Assertions.assertEquals(652197370, response.iterator().next().properties().profile().accessRulesVersion()); - Assertions.assertEquals("wgilfjqqac", + Assertions.assertEquals("bkmifoxxkub", response.iterator().next().properties().profile().name()); + Assertions.assertEquals(1199627786, response.iterator().next().properties().profile().accessRulesVersion()); + Assertions.assertEquals("mhbrbqgvg", response.iterator().next().properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(148579488, + Assertions.assertEquals(2074347527, response.iterator().next().properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("ciqchxrtuicd", + Assertions.assertEquals("tefjoknssqyzq", response.iterator().next().properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml new file mode 100644 index 000000000000..d790c6dc9db3 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights +commit: 61ef1085014acf8197d8b44e9dec699ef635a750 +repo: Azure/azure-rest-api-specs +additionalDirectories: From 2432858ec7c6fbb1c67586b7a6c328a7043bacde Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 04:00:30 +0000 Subject: [PATCH 2/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', and CommitSHA: 'a81c0695834fbb2651594d008437670bb365e168' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6274261 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 106 ++++++++---------- .../pom.xml | 1 - .../fluent/models/TableInner.java | 4 +- .../fluent/models/TableProperties.java | 8 +- .../implementation/TableImpl.java | 4 +- ...ationalInsightsTableProvisioningState.java | 64 ----------- .../models/ProvisioningStateEnum.java | 72 ++++++------ .../loganalytics/models/SearchMetadata.java | 14 +-- .../loganalytics/models/Table.java | 2 +- ...resourcemanager-loganalytics_metadata.json | 2 +- .../SchemasGetWithResponseMockTests.java | 2 +- .../SearchGetSchemaResponseInnerTests.java | 2 +- .../generated/SearchMetadataTests.java | 2 +- .../generated/TableInnerTests.java | 2 +- .../generated/TablePropertiesTests.java | 2 +- .../TablesGetWithResponseMockTests.java | 2 +- .../TablesListByWorkspaceMockTests.java | 2 +- .../generated/TablesListResultTests.java | 2 +- .../tsp-location.yaml | 2 +- 19 files changed, 115 insertions(+), 180 deletions(-) delete mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index a022d6da7e2f..b1824cb9d682 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -68,9 +68,9 @@ #### `models.ManagedServiceIdentity` was modified +* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `java.util.UUID tenantId()` -> `java.lang.String tenantId()` * `validate()` was removed -* `java.util.UUID principalId()` -> `java.lang.String principalId()` #### `models.UserIdentityProperties` was modified @@ -88,20 +88,20 @@ #### `models.AccessRuleProperties` was modified * `AccessRuleProperties()` was changed to private access -* `withSubscriptions(java.util.List)` was removed -* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withAddressPrefixes(java.util.List)` was removed * `withEmailAddresses(java.util.List)` was removed * `withNetworkSecurityPerimeters(java.util.List)` was removed -* `validate()` was removed -* `withPhoneNumbers(java.util.List)` was removed * `withDirection(models.AccessRuleDirection)` was removed -* `withAddressPrefixes(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withPhoneNumbers(java.util.List)` was removed +* `validate()` was removed +* `withSubscriptions(java.util.List)` was removed #### `models.PrivateLinkScopedResource` was modified * `PrivateLinkScopedResource()` was changed to private access -* `validate()` was removed * `withResourceId(java.lang.String)` was removed +* `validate()` was removed * `withScopeId(java.lang.String)` was removed #### `models.ClusterReplicationProperties` was modified @@ -140,9 +140,9 @@ * `NetworkSecurityPerimeter()` was changed to private access * `withLocation(java.lang.String)` was removed * `withPerimeterGuid(java.util.UUID)` was removed -* `withId(java.lang.String)` was removed * `validate()` was removed * `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` +* `withId(java.lang.String)` was removed #### `models.CapacityReservationProperties` was modified @@ -163,9 +163,9 @@ #### `models.MetricName` was modified * `MetricName()` was changed to private access +* `withLocalizedValue(java.lang.String)` was removed * `validate()` was removed * `withValue(java.lang.String)` was removed -* `withLocalizedValue(java.lang.String)` was removed #### `models.WorkspacePatch` was modified @@ -178,9 +178,9 @@ #### `models.ResourceAssociation` was modified * `ResourceAssociation()` was changed to private access +* `withName(java.lang.String)` was removed * `validate()` was removed * `withAccessMode(models.ResourceAssociationAccessMode)` was removed -* `withName(java.lang.String)` was removed #### `models.RestoredLogs` was modified @@ -193,9 +193,9 @@ #### `models.ResultStatistics` was modified * `ResultStatistics()` was changed to private access -* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()` -* `java.lang.Float progress()` -> `java.lang.Double progress()` * `validate()` was removed +* `java.lang.Float progress()` -> `java.lang.Double progress()` +* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()` #### `models.WorkspaceCapping` was modified @@ -204,34 +204,34 @@ #### `models.CoreSummary` was modified * `CoreSummary()` was changed to private access -* `validate()` was removed * `withNumberOfDocuments(long)` was removed * `withStatus(java.lang.String)` was removed +* `validate()` was removed #### `models.LinkedServices` was modified -* `models.LinkedService deleteById(java.lang.String)` -> `void deleteById(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.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.LinkedService deleteById(java.lang.String)` -> `void deleteById(java.lang.String)` #### `models.NetworkSecurityProfile` was modified * `NetworkSecurityProfile()` was changed to private access +* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed * `validate()` was removed +* `withEnabledLogCategories(java.util.List)` was removed * `withAccessRules(java.util.List)` was removed * `withAccessRulesVersion(java.lang.Integer)` was removed -* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed -* `withEnabledLogCategories(java.util.List)` was removed * `withName(java.lang.String)` was removed #### `models.NetworkSecurityPerimeterConfigurationProperties` was modified * `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access -* `validate()` was removed +* `withProfile(models.NetworkSecurityProfile)` was removed * `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed +* `validate()` was removed * `withResourceAssociation(models.ResourceAssociation)` was removed -* `withProfile(models.NetworkSecurityProfile)` was removed #### `models.SummaryLogsRetryBin` was modified @@ -240,9 +240,9 @@ #### `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 -* `withVersion(java.lang.Integer)` was removed #### `models.KeyVaultProperties` was modified @@ -250,9 +250,9 @@ #### `models.UserAssignedIdentity` was modified +* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `java.util.UUID clientId()` -> `java.lang.String clientId()` * `validate()` was removed -* `java.util.UUID principalId()` -> `java.lang.String principalId()` #### `models.WorkspaceSku` was modified @@ -265,11 +265,11 @@ #### `models.OperationDisplay` was modified * `OperationDisplay()` was changed to private access -* `withProvider(java.lang.String)` was removed -* `withOperation(java.lang.String)` was removed * `validate()` was removed -* `withDescription(java.lang.String)` was removed * `withResource(java.lang.String)` was removed +* `withOperation(java.lang.String)` was removed +* `withDescription(java.lang.String)` was removed +* `withProvider(java.lang.String)` was removed #### `models.ProvisioningIssueProperties` was modified @@ -278,12 +278,8 @@ #### `models.AssociatedWorkspace` was modified -* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` * `validate()` was removed - -#### `models.Table` was modified - -* `models.ProvisioningStateEnum provisioningState()` -> `models.OperationalInsightsTableProvisioningState provisioningState()` +* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` #### `models.TagsResource` was modified @@ -292,37 +288,36 @@ #### `models.SearchSchemaValue` was modified * `SearchSchemaValue()` was changed to private access -* `withFacet(boolean)` was removed * `withOwnerType(java.util.List)` was removed -* `withStored(boolean)` was removed -* `withDisplayName(java.lang.String)` was removed * `withType(java.lang.String)` was removed -* `withIndexed(boolean)` was removed * `validate()` was removed +* `withIndexed(boolean)` was removed +* `withFacet(boolean)` was removed +* `withStored(boolean)` was removed +* `withDisplayName(java.lang.String)` was removed * `withName(java.lang.String)` was removed #### `models.SearchMetadata` was modified * `SearchMetadata()` was changed to private access +* `withSort(java.util.List)` was removed +* `withAggregatedGroupingFields(java.lang.String)` was removed +* `withSchema(models.SearchMetadataSchema)` was removed +* `withLastUpdated(java.time.OffsetDateTime)` was removed * `withResultType(java.lang.String)` was removed -* `etag()` was removed +* `withRequestTime(java.lang.Long)` was removed * `withTop(java.lang.Long)` was removed -* `withSum(java.lang.Long)` was removed * `withId(java.lang.String)` was removed -* `withLastUpdated(java.time.OffsetDateTime)` was removed +* `withSum(java.lang.Long)` was removed +* `withEtag(java.lang.String)` was removed +* `withCoreSummaries(java.util.List)` was removed +* `withStartTime(java.time.OffsetDateTime)` was removed +* `withAggregatedValueField(java.lang.String)` was removed +* `withSearchId(java.lang.String)` was removed * `withTotal(java.lang.Long)` was removed -* `withSchema(models.SearchMetadataSchema)` was removed -* `withSort(java.util.List)` was removed +* `validate()` was removed * `withMax(java.lang.Long)` was removed -* `withRequestTime(java.lang.Long)` was removed * `withStatus(java.lang.String)` was removed -* `validate()` was removed -* `withSearchId(java.lang.String)` was removed -* `withStartTime(java.time.OffsetDateTime)` was removed -* `withAggregatedGroupingFields(java.lang.String)` was removed -* `withCoreSummaries(java.util.List)` was removed -* `withEtag(java.lang.String)` was removed -* `withAggregatedValueField(java.lang.String)` was removed #### `models.SummaryLogsRetryBinProperties` was modified @@ -330,19 +325,20 @@ #### `models.ProvisioningStateEnum` was modified -* `IN_PROGRESS` was removed +* `ProvisioningStateEnum()` was removed +* `java.util.Collection values()` -> `models.ProvisioningStateEnum[] values()` #### `models.WorkspacePurgesPurgeHeaders` was modified -* `withXMsStatusLocation(java.lang.String)` was removed * `validate()` was removed +* `withXMsStatusLocation(java.lang.String)` was removed #### `models.StorageInsightStatus` was modified * `StorageInsightStatus()` was changed to private access +* `withState(models.StorageInsightState)` was removed * `validate()` was removed * `withDescription(java.lang.String)` was removed -* `withState(models.StorageInsightState)` was removed #### `models.WorkspacePurgeBody` was modified @@ -355,9 +351,9 @@ #### `models.SearchSort` was modified * `SearchSort()` was changed to private access +* `withOrder(models.SearchSortEnum)` was removed * `validate()` was removed * `withName(java.lang.String)` was removed -* `withOrder(models.SearchSortEnum)` was removed #### `models.ClusterSku` was modified @@ -365,8 +361,6 @@ ### Features Added -* `models.OperationalInsightsTableProvisioningState` was added - #### `models.StorageInsight$Definition` was modified * `withETag(java.lang.String)` was added @@ -410,15 +404,13 @@ #### `models.Workspace` was modified -* `failback()` was added * `failback(com.azure.core.util.Context)` was added - -#### `models.SearchMetadata` was modified - -* `eTag()` was added +* `failback()` was added #### `models.ProvisioningStateEnum` was modified +* `toString()` was added +* `valueOf(java.lang.String)` was added * `FAILED` was added * `CANCELED` was added diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml index 88162a211072..76844b8ebf8c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml @@ -45,7 +45,6 @@ UTF-8 0 0 - false diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java index 86db61e9e2b4..7a94d43aa25f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java @@ -10,7 +10,7 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState; +import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -281,7 +281,7 @@ public TableInner withSchema(Schema schema) { * * @return the provisioningState value. */ - public OperationalInsightsTableProvisioningState provisioningState() { + public ProvisioningStateEnum provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java index fa0cbf1cd391..47e13225c9ad 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java @@ -9,7 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState; +import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -73,7 +73,7 @@ public final class TableProperties implements JsonSerializable * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, * forbidding any update to the table until the ongoing operation is concluded. */ - private OperationalInsightsTableProvisioningState provisioningState; + private ProvisioningStateEnum provisioningState; /* * True - Value originates from workspace retention in days, False - Customer specific. @@ -252,7 +252,7 @@ public TableProperties withSchema(Schema schema) { * * @return the provisioningState value. */ - public OperationalInsightsTableProvisioningState provisioningState() { + public ProvisioningStateEnum provisioningState() { return this.provisioningState; } @@ -326,7 +326,7 @@ public static TableProperties fromJson(JsonReader jsonReader) throws IOException deserializedTableProperties.schema = Schema.fromJson(reader); } else if ("provisioningState".equals(fieldName)) { deserializedTableProperties.provisioningState - = OperationalInsightsTableProvisioningState.fromString(reader.getString()); + = ProvisioningStateEnum.fromString(reader.getString()); } else if ("retentionInDaysAsDefault".equals(fieldName)) { deserializedTableProperties.retentionInDaysAsDefault = reader.getNullable(JsonReader::getBoolean); } else if ("totalRetentionInDaysAsDefault".equals(fieldName)) { diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java index 788a360acab1..568ed37270c7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java @@ -8,7 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.TableInner; -import com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState; +import com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum; import com.azure.resourcemanager.loganalytics.models.RestoredLogs; import com.azure.resourcemanager.loganalytics.models.ResultStatistics; import com.azure.resourcemanager.loganalytics.models.Schema; @@ -73,7 +73,7 @@ public Schema schema() { return this.innerModel().schema(); } - public OperationalInsightsTableProvisioningState provisioningState() { + public ProvisioningStateEnum provisioningState() { return this.innerModel().provisioningState(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java deleted file mode 100644 index 62397e6c8fd7..000000000000 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.loganalytics.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, - * forbidding any update to the table until the ongoing operation is concluded. - */ -public final class OperationalInsightsTableProvisioningState - extends ExpandableStringEnum { - /** - * Table schema is still being built and updated, table is currently locked for any changes till the procedure is - * done. - */ - public static final OperationalInsightsTableProvisioningState UPDATING = fromString("Updating"); - - /** - * Table schema is stable and without changes, table data is being updated. - */ - public static final OperationalInsightsTableProvisioningState IN_PROGRESS = fromString("InProgress"); - - /** - * Table state is stable and without changes, table is unlocked and open for new updates. - */ - public static final OperationalInsightsTableProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** - * Table state is deleting. - */ - public static final OperationalInsightsTableProvisioningState DELETING = fromString("Deleting"); - - /** - * Creates a new instance of OperationalInsightsTableProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public OperationalInsightsTableProvisioningState() { - } - - /** - * Creates or finds a OperationalInsightsTableProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding OperationalInsightsTableProvisioningState. - */ - public static OperationalInsightsTableProvisioningState fromString(String name) { - return fromString(name, OperationalInsightsTableProvisioningState.class); - } - - /** - * Gets known OperationalInsightsTableProvisioningState values. - * - * @return known OperationalInsightsTableProvisioningState values. - */ - public static Collection values() { - return values(OperationalInsightsTableProvisioningState.class); - } -} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java index f5649c5e14f0..315169ee7516 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java @@ -4,65 +4,73 @@ package com.azure.resourcemanager.loganalytics.models; -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - /** - * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, - * forbidding any update to the table until the ongoing operation is concluded. + * Defines values for ProvisioningStateEnum. */ -public final class ProvisioningStateEnum extends ExpandableStringEnum { +public enum ProvisioningStateEnum { /** - * Table schema is still being built and updated, table is currently locked for any changes till the procedure is - * done. + * Enum value Updating. */ - public static final ProvisioningStateEnum UPDATING = fromString("Updating"); + UPDATING("Updating"), /** - * Table state is stable and without changes, table is unlocked and open for new updates. + * Enum value InProgress. */ - public static final ProvisioningStateEnum SUCCEEDED = fromString("Succeeded"); + IN_PROGRESS("InProgress"), /** - * Table state is deleting. + * Enum value Succeeded. */ - public static final ProvisioningStateEnum DELETING = fromString("Deleting"); + SUCCEEDED("Succeeded"), /** - * Table state is failed. + * Enum value Deleting. */ - public static final ProvisioningStateEnum FAILED = fromString("Failed"); + DELETING("Deleting"), /** - * Table state is canceled. + * Enum value Failed. */ - public static final ProvisioningStateEnum CANCELED = fromString("Canceled"); + FAILED("Failed"), /** - * Creates a new instance of ProvisioningStateEnum value. - * - * @deprecated Use the {@link #fromString(String)} factory method. + * Enum value Canceled. */ - @Deprecated - public ProvisioningStateEnum() { + CANCELED("Canceled"); + + /** + * The actual serialized value for a ProvisioningStateEnum instance. + */ + private final String value; + + ProvisioningStateEnum(String value) { + this.value = value; } /** - * Creates or finds a ProvisioningStateEnum from its string representation. + * Parses a serialized value to a ProvisioningStateEnum instance. * - * @param name a name to look for. - * @return the corresponding ProvisioningStateEnum. + * @param value the serialized value to parse. + * @return the parsed ProvisioningStateEnum object, or null if unable to parse. */ - public static ProvisioningStateEnum fromString(String name) { - return fromString(name, ProvisioningStateEnum.class); + public static ProvisioningStateEnum fromString(String value) { + if (value == null) { + return null; + } + ProvisioningStateEnum[] items = ProvisioningStateEnum.values(); + for (ProvisioningStateEnum item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; } /** - * Gets known ProvisioningStateEnum values. - * - * @return known ProvisioningStateEnum values. + * {@inheritDoc} */ - public static Collection values() { - return values(ProvisioningStateEnum.class); + @Override + public String toString() { + return this.value; } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java index a5facb042ec9..65ad62131af9 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java @@ -68,7 +68,7 @@ public final class SearchMetadata implements JsonSerializable { /* * The ETag of the search results. */ - private String eTag; + private String etag; /* * How the results are sorted. @@ -193,12 +193,12 @@ public OffsetDateTime lastUpdated() { } /** - * Get the eTag property: The ETag of the search results. + * Get the etag property: The ETag of the search results. * - * @return the eTag value. + * @return the etag value. */ - public String eTag() { - return this.eTag; + public String etag() { + return this.etag; } /** @@ -281,7 +281,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime)); jsonWriter.writeStringField("lastUpdated", this.lastUpdated == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastUpdated)); - jsonWriter.writeStringField("eTag", this.eTag); + jsonWriter.writeStringField("eTag", this.etag); jsonWriter.writeArrayField("sort", this.sort, (writer, element) -> writer.writeJson(element)); jsonWriter.writeNumberField("requestTime", this.requestTime); jsonWriter.writeStringField("aggregatedValueField", this.aggregatedValueField); @@ -329,7 +329,7 @@ public static SearchMetadata fromJson(JsonReader jsonReader) throws IOException deserializedSearchMetadata.lastUpdated = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("eTag".equals(fieldName)) { - deserializedSearchMetadata.eTag = reader.getString(); + deserializedSearchMetadata.etag = reader.getString(); } else if ("sort".equals(fieldName)) { List sort = reader.readArray(reader1 -> SearchSort.fromJson(reader1)); deserializedSearchMetadata.sort = sort; diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java index f5d8f933fa8f..fb491f433a06 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java @@ -115,7 +115,7 @@ public interface Table { * * @return the provisioningState value. */ - OperationalInsightsTableProvisioningState provisioningState(); + ProvisioningStateEnum provisioningState(); /** * Gets the retentionInDaysAsDefault property: True - Value originates from workspace retention in days, False - diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json index 8f2eca702731..7141e0a7b73e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.OperationalInsights":"2025-07-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspace":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ClustersClient":"Microsoft.OperationalInsights.Clusters","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginDelete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginUpdate":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.createOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.delete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroup":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.list":"Microsoft.OperationalInsights.Clusters.list","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.listByResourceGroup":"Microsoft.OperationalInsights.Clusters.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.update":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient":"Microsoft.OperationalInsights.DataExports","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdate":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.delete":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.deleteWithResponse":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.get":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.getWithResponse":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.listByWorkspace":"Microsoft.OperationalInsights.DataExports.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient":"Microsoft.OperationalInsights.DataSources","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdate":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.delete":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.deleteWithResponse":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.get":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.getWithResponse":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.listByWorkspace":"Microsoft.OperationalInsights.DataSources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.list":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.list","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.delete":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.deleteWithResponse":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disable":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disableWithResponse":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enable":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enableWithResponse":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.list":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.listWithResponse":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient":"Microsoft.OperationalInsights.LinkedServices","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginDelete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.delete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.get":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.getWithResponse":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedServices.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.delete":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.deleteWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.get":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.getWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient.list":"Microsoft.OperationalInsights.Workspaces.managementGroupsList","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.get":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.getWithResponse":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationalInsightsManagementClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationsClient":"Microsoft.OperationalInsights.Operations","com.azure.resourcemanager.loganalytics.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.get":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.getWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.put":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.putWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.search":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.search","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.update":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.updateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdate":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutName":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutNameWithResponse":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.list","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.listByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTags":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTagsWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient":"Microsoft.OperationalInsights.SavedSearches","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdate":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.delete":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.deleteWithResponse":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.get":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.getWithResponse":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspace":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SchemasClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.get":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.getWithResponse":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeys":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeysWithResponse":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerate":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerateWithResponse":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdate":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.delete":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.deleteWithResponse":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.get":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.getWithResponse":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.listByWorkspace":"Microsoft.OperationalInsights.StorageInsights.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginDelete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginRetryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginStart":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.createOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.delete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.get":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.getWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.listByWorkspace":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.retryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.start":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stop":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stopWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.TablesClient":"Microsoft.OperationalInsights.Tables","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginDelete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginUpdate":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearch":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearchWithResponse":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.createOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.delete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.get":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.getWithResponse":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.listByWorkspace":"Microsoft.OperationalInsights.Tables.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrate":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrateWithResponse":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.update":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.UsagesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.UsagesClient.list":"Microsoft.OperationalInsights.Workspaces.usagesList","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatus":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatusWithResponse":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purge":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purgeWithResponse":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient":"Microsoft.OperationalInsights.Workspaces","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginDelete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginReconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.createOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.delete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroup":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNspWithResponse":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.list":"Microsoft.OperationalInsights.Workspaces.list","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.Workspaces.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.listNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.reconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.update":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.updateWithResponse":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner":"Microsoft.OperationalInsights.AvailableServiceTier","com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner":"Microsoft.OperationalInsights.Cluster","com.azure.resourcemanager.loganalytics.fluent.models.ClusterPatchProperties":"Microsoft.OperationalInsights.ClusterPatchProperties","com.azure.resourcemanager.loganalytics.fluent.models.ClusterProperties":"Microsoft.OperationalInsights.ClusterProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner":"Microsoft.OperationalInsights.DataExport","com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties":"Microsoft.OperationalInsights.DataExportProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner":"Microsoft.OperationalInsights.DataSource","com.azure.resourcemanager.loganalytics.fluent.models.Destination":"Microsoft.OperationalInsights.Destination","com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata":"Microsoft.OperationalInsights.DestinationMetaData","com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner":"Microsoft.OperationalInsights.IntelligencePack","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner":"Microsoft.OperationalInsights.LinkedService","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties":"Microsoft.OperationalInsights.LinkedServiceProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsProperties":"Microsoft.OperationalInsights.LinkedStorageAccountsProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner":"Microsoft.OperationalInsights.LinkedStorageAccountsResource","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPack","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackProperties","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuery","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryProperties","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner":"Microsoft.OperationalInsights.ManagementGroup","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupProperties":"Microsoft.OperationalInsights.ManagementGroupProperties","com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.loganalytics.fluent.models.OperationInner":"Microsoft.OperationalInsights.Operation","com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner":"Microsoft.OperationalInsights.OperationStatus","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner":"Microsoft.OperationalInsights.SavedSearch","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchProperties":"Microsoft.OperationalInsights.SavedSearchProperties","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner":"Microsoft.OperationalInsights.SavedSearchesListResult","com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner":"Microsoft.OperationalInsights.SearchGetSchemaResponse","com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner":"Microsoft.OperationalInsights.SharedKeys","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner":"Microsoft.OperationalInsights.StorageInsight","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightProperties":"Microsoft.OperationalInsights.StorageInsightProperties","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner":"Microsoft.OperationalInsights.SummaryLogs","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsProperties":"Microsoft.OperationalInsights.SummaryLogsProperties","com.azure.resourcemanager.loganalytics.fluent.models.TableInner":"Microsoft.OperationalInsights.Table","com.azure.resourcemanager.loganalytics.fluent.models.TableProperties":"Microsoft.OperationalInsights.TableProperties","com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner":"Microsoft.OperationalInsights.UsageMetric","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner":"Microsoft.OperationalInsights.Workspace","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceProperties":"Microsoft.OperationalInsights.WorkspaceProperties","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeResponse","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeStatusResponse","com.azure.resourcemanager.loganalytics.implementation.OperationalInsightsManagementClientBuilder":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult":"Microsoft.OperationalInsights.DataExportListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult":"Microsoft.OperationalInsights.LinkedServiceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult":"Microsoft.OperationalInsights.LinkedStorageAccountsListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult","com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult":"Microsoft.OperationalInsights.OperationListResult","com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult":"Microsoft.OperationalInsights.StorageInsightListResult","com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult":"Microsoft.OperationalInsights.TablesListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult":"Microsoft.OperationalInsights.WorkspaceListManagementGroupsResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult":"Microsoft.OperationalInsights.WorkspaceListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult":"Microsoft.OperationalInsights.WorkspaceListUsagesResult","com.azure.resourcemanager.loganalytics.models.AccessRule":"Azure.ResourceManager.CommonTypes.AccessRule","com.azure.resourcemanager.loganalytics.models.AccessRuleDirection":"Azure.ResourceManager.CommonTypes.AccessRuleDirection","com.azure.resourcemanager.loganalytics.models.AccessRuleProperties":"Azure.ResourceManager.CommonTypes.AccessRuleProperties","com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem":"AccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace":"Microsoft.OperationalInsights.AssociatedWorkspace","com.azure.resourcemanager.loganalytics.models.AzureEntityResource":"Microsoft.OperationalInsights.AzureEntityResource","com.azure.resourcemanager.loganalytics.models.BillingType":"Microsoft.OperationalInsights.BillingType","com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties":"Microsoft.OperationalInsights.CapacityReservationProperties","com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus":"Microsoft.OperationalInsights.ClusterEntityStatus","com.azure.resourcemanager.loganalytics.models.ClusterPatch":"Microsoft.OperationalInsights.ClusterPatch","com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties":"Microsoft.OperationalInsights.ClusterReplicationProperties","com.azure.resourcemanager.loganalytics.models.ClusterReplicationState":"Microsoft.OperationalInsights.ClusterReplicationState","com.azure.resourcemanager.loganalytics.models.ClusterSku":"Microsoft.OperationalInsights.ClusterSku","com.azure.resourcemanager.loganalytics.models.ClusterSkuNameEnum":"Microsoft.OperationalInsights.ClusterSkuNameEnum","com.azure.resourcemanager.loganalytics.models.Column":"Microsoft.OperationalInsights.Column","com.azure.resourcemanager.loganalytics.models.ColumnDataTypeHintEnum":"Microsoft.OperationalInsights.ColumnDataTypeHintEnum","com.azure.resourcemanager.loganalytics.models.ColumnTypeEnum":"Microsoft.OperationalInsights.ColumnTypeEnum","com.azure.resourcemanager.loganalytics.models.CoreSummary":"Microsoft.OperationalInsights.CoreSummary","com.azure.resourcemanager.loganalytics.models.DataIngestionStatus":"Microsoft.OperationalInsights.DataIngestionStatus","com.azure.resourcemanager.loganalytics.models.DataSourceKind":"Microsoft.OperationalInsights.DataSourceKind","com.azure.resourcemanager.loganalytics.models.DataSourceType":"Microsoft.OperationalInsights.DataSourceType","com.azure.resourcemanager.loganalytics.models.Identity":"Microsoft.OperationalInsights.Identity","com.azure.resourcemanager.loganalytics.models.IdentityType":"Microsoft.OperationalInsights.IdentityType","com.azure.resourcemanager.loganalytics.models.IssueType":"Azure.ResourceManager.CommonTypes.IssueType","com.azure.resourcemanager.loganalytics.models.KeyVaultProperties":"Microsoft.OperationalInsights.KeyVaultProperties","com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus":"Microsoft.OperationalInsights.LinkedServiceEntityStatus","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryPropertiesRelated","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchProperties","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.loganalytics.models.MetricName":"Microsoft.OperationalInsights.MetricName","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProvisioningState":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState","com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile":"Azure.ResourceManager.CommonTypes.NetworkSecurityProfile","com.azure.resourcemanager.loganalytics.models.OperationDisplay":"Microsoft.OperationalInsights.OperationDisplay","com.azure.resourcemanager.loganalytics.models.OperationalInsightsTableProvisioningState":"Microsoft.OperationalInsights.OperationalInsightsTableProvisioningState","com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource":"Microsoft.OperationalInsights.PrivateLinkScopedResource","com.azure.resourcemanager.loganalytics.models.ProvisioningIssue":"Azure.ResourceManager.CommonTypes.ProvisioningIssue","com.azure.resourcemanager.loganalytics.models.ProvisioningIssueProperties":"Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties","com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum":"Microsoft.OperationalInsights.ProvisioningStateEnum","com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType":"Microsoft.OperationalInsights.PublicNetworkAccessType","com.azure.resourcemanager.loganalytics.models.PurgeState":"Microsoft.OperationalInsights.PurgeState","com.azure.resourcemanager.loganalytics.models.ResourceAssociation":"Azure.ResourceManager.CommonTypes.ResourceAssociation","com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode":"Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode","com.azure.resourcemanager.loganalytics.models.RestoredLogs":"Microsoft.OperationalInsights.RestoredLogs","com.azure.resourcemanager.loganalytics.models.ResultStatistics":"Microsoft.OperationalInsights.ResultStatistics","com.azure.resourcemanager.loganalytics.models.RuleDefinition":"Microsoft.OperationalInsights.RuleDefinition","com.azure.resourcemanager.loganalytics.models.RuleTypeEnum":"Microsoft.OperationalInsights.RuleTypeEnum","com.azure.resourcemanager.loganalytics.models.Schema":"Microsoft.OperationalInsights.Schema","com.azure.resourcemanager.loganalytics.models.SearchMetadata":"Microsoft.OperationalInsights.SearchMetadata","com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema":"Microsoft.OperationalInsights.SearchMetadataSchema","com.azure.resourcemanager.loganalytics.models.SearchResults":"Microsoft.OperationalInsights.SearchResults","com.azure.resourcemanager.loganalytics.models.SearchSchemaValue":"Microsoft.OperationalInsights.SearchSchemaValue","com.azure.resourcemanager.loganalytics.models.SearchSort":"Microsoft.OperationalInsights.SearchSort","com.azure.resourcemanager.loganalytics.models.SearchSortEnum":"Microsoft.OperationalInsights.SearchSortEnum","com.azure.resourcemanager.loganalytics.models.Severity":"Azure.ResourceManager.CommonTypes.Severity","com.azure.resourcemanager.loganalytics.models.SkuNameEnum":"Microsoft.OperationalInsights.SkuNameEnum","com.azure.resourcemanager.loganalytics.models.SourceEnum":"Microsoft.OperationalInsights.SourceEnum","com.azure.resourcemanager.loganalytics.models.StatusCodeEnum":"Microsoft.OperationalInsights.StatusCodeEnum","com.azure.resourcemanager.loganalytics.models.StorageAccount":"Microsoft.OperationalInsights.StorageAccount","com.azure.resourcemanager.loganalytics.models.StorageInsightState":"Microsoft.OperationalInsights.StorageInsightState","com.azure.resourcemanager.loganalytics.models.StorageInsightStatus":"Microsoft.OperationalInsights.StorageInsightStatus","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin":"Microsoft.OperationalInsights.SummaryLogsRetryBin","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBinProperties":"Microsoft.OperationalInsights.SummaryLogsRetryBinProperties","com.azure.resourcemanager.loganalytics.models.TablePlanEnum":"Microsoft.OperationalInsights.TablePlanEnum","com.azure.resourcemanager.loganalytics.models.TableSubTypeEnum":"Microsoft.OperationalInsights.TableSubTypeEnum","com.azure.resourcemanager.loganalytics.models.TableTypeEnum":"Microsoft.OperationalInsights.TableTypeEnum","com.azure.resourcemanager.loganalytics.models.Tag":"Microsoft.OperationalInsights.Tag","com.azure.resourcemanager.loganalytics.models.TagsResource":"Microsoft.OperationalInsights.TagsResource","com.azure.resourcemanager.loganalytics.models.TimeSelectorEnum":"Microsoft.OperationalInsights.TimeSelectorEnum","com.azure.resourcemanager.loganalytics.models.Type":"Microsoft.OperationalInsights.Type","com.azure.resourcemanager.loganalytics.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.loganalytics.models.UserIdentityProperties":"Microsoft.OperationalInsights.UserIdentityProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceCapping":"Microsoft.OperationalInsights.WorkspaceCapping","com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus":"Microsoft.OperationalInsights.WorkspaceEntityStatus","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties":"Microsoft.OperationalInsights.WorkspaceFailoverProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverState":"Microsoft.OperationalInsights.WorkspaceFailoverState","com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures":"Microsoft.OperationalInsights.WorkspaceFeatures","com.azure.resourcemanager.loganalytics.models.WorkspacePatch":"Microsoft.OperationalInsights.WorkspacePatch","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody":"Microsoft.OperationalInsights.WorkspacePurgeBody","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters":"Microsoft.OperationalInsights.WorkspacePurgeBodyFilters","com.azure.resourcemanager.loganalytics.models.WorkspacePurgesPurgeHeaders":null,"com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties":"Microsoft.OperationalInsights.WorkspaceReplicationProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationState":"Microsoft.OperationalInsights.WorkspaceReplicationState","com.azure.resourcemanager.loganalytics.models.WorkspaceSku":"Microsoft.OperationalInsights.WorkspaceSku","com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum":"Microsoft.OperationalInsights.WorkspaceSkuNameEnum"},"generatedFiles":["src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java","src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatuses.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationalInsightsTableProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java","src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleDefinition.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchResults.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSchemaValue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.OperationalInsights":"2025-07-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspace":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ClustersClient":"Microsoft.OperationalInsights.Clusters","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginDelete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginUpdate":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.createOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.delete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroup":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.list":"Microsoft.OperationalInsights.Clusters.list","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.listByResourceGroup":"Microsoft.OperationalInsights.Clusters.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.update":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient":"Microsoft.OperationalInsights.DataExports","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdate":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.delete":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.deleteWithResponse":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.get":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.getWithResponse":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.listByWorkspace":"Microsoft.OperationalInsights.DataExports.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient":"Microsoft.OperationalInsights.DataSources","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdate":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.delete":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.deleteWithResponse":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.get":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.getWithResponse":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.listByWorkspace":"Microsoft.OperationalInsights.DataSources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.list":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.list","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.delete":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.deleteWithResponse":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disable":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disableWithResponse":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enable":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enableWithResponse":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.list":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.listWithResponse":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient":"Microsoft.OperationalInsights.LinkedServices","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginDelete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.delete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.get":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.getWithResponse":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedServices.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.delete":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.deleteWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.get":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.getWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient.list":"Microsoft.OperationalInsights.Workspaces.managementGroupsList","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.get":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.getWithResponse":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationalInsightsManagementClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationsClient":"Microsoft.OperationalInsights.Operations","com.azure.resourcemanager.loganalytics.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.get":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.getWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.put":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.putWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.search":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.search","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.update":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.updateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdate":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutName":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutNameWithResponse":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.list","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.listByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTags":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTagsWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient":"Microsoft.OperationalInsights.SavedSearches","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdate":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.delete":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.deleteWithResponse":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.get":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.getWithResponse":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspace":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SchemasClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.get":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.getWithResponse":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeys":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeysWithResponse":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerate":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerateWithResponse":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdate":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.delete":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.deleteWithResponse":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.get":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.getWithResponse":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.listByWorkspace":"Microsoft.OperationalInsights.StorageInsights.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginDelete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginRetryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginStart":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.createOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.delete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.get":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.getWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.listByWorkspace":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.retryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.start":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stop":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stopWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.TablesClient":"Microsoft.OperationalInsights.Tables","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginDelete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginUpdate":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearch":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearchWithResponse":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.createOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.delete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.get":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.getWithResponse":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.listByWorkspace":"Microsoft.OperationalInsights.Tables.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrate":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrateWithResponse":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.update":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.UsagesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.UsagesClient.list":"Microsoft.OperationalInsights.Workspaces.usagesList","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatus":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatusWithResponse":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purge":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purgeWithResponse":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient":"Microsoft.OperationalInsights.Workspaces","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginDelete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginReconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.createOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.delete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroup":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNspWithResponse":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.list":"Microsoft.OperationalInsights.Workspaces.list","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.Workspaces.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.listNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.reconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.update":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.updateWithResponse":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner":"Microsoft.OperationalInsights.AvailableServiceTier","com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner":"Microsoft.OperationalInsights.Cluster","com.azure.resourcemanager.loganalytics.fluent.models.ClusterPatchProperties":"Microsoft.OperationalInsights.ClusterPatchProperties","com.azure.resourcemanager.loganalytics.fluent.models.ClusterProperties":"Microsoft.OperationalInsights.ClusterProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner":"Microsoft.OperationalInsights.DataExport","com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties":"Microsoft.OperationalInsights.DataExportProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner":"Microsoft.OperationalInsights.DataSource","com.azure.resourcemanager.loganalytics.fluent.models.Destination":"Microsoft.OperationalInsights.Destination","com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata":"Microsoft.OperationalInsights.DestinationMetaData","com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner":"Microsoft.OperationalInsights.IntelligencePack","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner":"Microsoft.OperationalInsights.LinkedService","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties":"Microsoft.OperationalInsights.LinkedServiceProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsProperties":"Microsoft.OperationalInsights.LinkedStorageAccountsProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner":"Microsoft.OperationalInsights.LinkedStorageAccountsResource","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPack","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackProperties","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuery","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryProperties","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner":"Microsoft.OperationalInsights.ManagementGroup","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupProperties":"Microsoft.OperationalInsights.ManagementGroupProperties","com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.loganalytics.fluent.models.OperationInner":"Microsoft.OperationalInsights.Operation","com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner":"Microsoft.OperationalInsights.OperationStatus","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner":"Microsoft.OperationalInsights.SavedSearch","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchProperties":"Microsoft.OperationalInsights.SavedSearchProperties","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner":"Microsoft.OperationalInsights.SavedSearchesListResult","com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner":"Microsoft.OperationalInsights.SearchGetSchemaResponse","com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner":"Microsoft.OperationalInsights.SharedKeys","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner":"Microsoft.OperationalInsights.StorageInsight","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightProperties":"Microsoft.OperationalInsights.StorageInsightProperties","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner":"Microsoft.OperationalInsights.SummaryLogs","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsProperties":"Microsoft.OperationalInsights.SummaryLogsProperties","com.azure.resourcemanager.loganalytics.fluent.models.TableInner":"Microsoft.OperationalInsights.Table","com.azure.resourcemanager.loganalytics.fluent.models.TableProperties":"Microsoft.OperationalInsights.TableProperties","com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner":"Microsoft.OperationalInsights.UsageMetric","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner":"Microsoft.OperationalInsights.Workspace","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceProperties":"Microsoft.OperationalInsights.WorkspaceProperties","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeResponse","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeStatusResponse","com.azure.resourcemanager.loganalytics.implementation.OperationalInsightsManagementClientBuilder":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult":"Microsoft.OperationalInsights.DataExportListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult":"Microsoft.OperationalInsights.LinkedServiceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult":"Microsoft.OperationalInsights.LinkedStorageAccountsListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult","com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult":"Microsoft.OperationalInsights.OperationListResult","com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult":"Microsoft.OperationalInsights.StorageInsightListResult","com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult":"Microsoft.OperationalInsights.TablesListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult":"Microsoft.OperationalInsights.WorkspaceListManagementGroupsResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult":"Microsoft.OperationalInsights.WorkspaceListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult":"Microsoft.OperationalInsights.WorkspaceListUsagesResult","com.azure.resourcemanager.loganalytics.models.AccessRule":"Azure.ResourceManager.CommonTypes.AccessRule","com.azure.resourcemanager.loganalytics.models.AccessRuleDirection":"Azure.ResourceManager.CommonTypes.AccessRuleDirection","com.azure.resourcemanager.loganalytics.models.AccessRuleProperties":"Azure.ResourceManager.CommonTypes.AccessRuleProperties","com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem":"AccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace":"Microsoft.OperationalInsights.AssociatedWorkspace","com.azure.resourcemanager.loganalytics.models.AzureEntityResource":"Microsoft.OperationalInsights.AzureEntityResource","com.azure.resourcemanager.loganalytics.models.BillingType":"Microsoft.OperationalInsights.BillingType","com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties":"Microsoft.OperationalInsights.CapacityReservationProperties","com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus":"Microsoft.OperationalInsights.ClusterEntityStatus","com.azure.resourcemanager.loganalytics.models.ClusterPatch":"Microsoft.OperationalInsights.ClusterPatch","com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties":"Microsoft.OperationalInsights.ClusterReplicationProperties","com.azure.resourcemanager.loganalytics.models.ClusterReplicationState":"Microsoft.OperationalInsights.ClusterReplicationState","com.azure.resourcemanager.loganalytics.models.ClusterSku":"Microsoft.OperationalInsights.ClusterSku","com.azure.resourcemanager.loganalytics.models.ClusterSkuNameEnum":"Microsoft.OperationalInsights.ClusterSkuNameEnum","com.azure.resourcemanager.loganalytics.models.Column":"Microsoft.OperationalInsights.Column","com.azure.resourcemanager.loganalytics.models.ColumnDataTypeHintEnum":"Microsoft.OperationalInsights.ColumnDataTypeHintEnum","com.azure.resourcemanager.loganalytics.models.ColumnTypeEnum":"Microsoft.OperationalInsights.ColumnTypeEnum","com.azure.resourcemanager.loganalytics.models.CoreSummary":"Microsoft.OperationalInsights.CoreSummary","com.azure.resourcemanager.loganalytics.models.DataIngestionStatus":"Microsoft.OperationalInsights.DataIngestionStatus","com.azure.resourcemanager.loganalytics.models.DataSourceKind":"Microsoft.OperationalInsights.DataSourceKind","com.azure.resourcemanager.loganalytics.models.DataSourceType":"Microsoft.OperationalInsights.DataSourceType","com.azure.resourcemanager.loganalytics.models.Identity":"Microsoft.OperationalInsights.Identity","com.azure.resourcemanager.loganalytics.models.IdentityType":"Microsoft.OperationalInsights.IdentityType","com.azure.resourcemanager.loganalytics.models.IssueType":"Azure.ResourceManager.CommonTypes.IssueType","com.azure.resourcemanager.loganalytics.models.KeyVaultProperties":"Microsoft.OperationalInsights.KeyVaultProperties","com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus":"Microsoft.OperationalInsights.LinkedServiceEntityStatus","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryPropertiesRelated","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchProperties","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.loganalytics.models.MetricName":"Microsoft.OperationalInsights.MetricName","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProvisioningState":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState","com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile":"Azure.ResourceManager.CommonTypes.NetworkSecurityProfile","com.azure.resourcemanager.loganalytics.models.OperationDisplay":"Microsoft.OperationalInsights.OperationDisplay","com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource":"Microsoft.OperationalInsights.PrivateLinkScopedResource","com.azure.resourcemanager.loganalytics.models.ProvisioningIssue":"Azure.ResourceManager.CommonTypes.ProvisioningIssue","com.azure.resourcemanager.loganalytics.models.ProvisioningIssueProperties":"Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties","com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum":"CompatibleProvisioningStateEnum","com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType":"Microsoft.OperationalInsights.PublicNetworkAccessType","com.azure.resourcemanager.loganalytics.models.PurgeState":"Microsoft.OperationalInsights.PurgeState","com.azure.resourcemanager.loganalytics.models.ResourceAssociation":"Azure.ResourceManager.CommonTypes.ResourceAssociation","com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode":"Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode","com.azure.resourcemanager.loganalytics.models.RestoredLogs":"Microsoft.OperationalInsights.RestoredLogs","com.azure.resourcemanager.loganalytics.models.ResultStatistics":"Microsoft.OperationalInsights.ResultStatistics","com.azure.resourcemanager.loganalytics.models.RuleDefinition":"Microsoft.OperationalInsights.RuleDefinition","com.azure.resourcemanager.loganalytics.models.RuleTypeEnum":"Microsoft.OperationalInsights.RuleTypeEnum","com.azure.resourcemanager.loganalytics.models.Schema":"Microsoft.OperationalInsights.Schema","com.azure.resourcemanager.loganalytics.models.SearchMetadata":"Microsoft.OperationalInsights.SearchMetadata","com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema":"Microsoft.OperationalInsights.SearchMetadataSchema","com.azure.resourcemanager.loganalytics.models.SearchResults":"Microsoft.OperationalInsights.SearchResults","com.azure.resourcemanager.loganalytics.models.SearchSchemaValue":"Microsoft.OperationalInsights.SearchSchemaValue","com.azure.resourcemanager.loganalytics.models.SearchSort":"Microsoft.OperationalInsights.SearchSort","com.azure.resourcemanager.loganalytics.models.SearchSortEnum":"Microsoft.OperationalInsights.SearchSortEnum","com.azure.resourcemanager.loganalytics.models.Severity":"Azure.ResourceManager.CommonTypes.Severity","com.azure.resourcemanager.loganalytics.models.SkuNameEnum":"Microsoft.OperationalInsights.SkuNameEnum","com.azure.resourcemanager.loganalytics.models.SourceEnum":"Microsoft.OperationalInsights.SourceEnum","com.azure.resourcemanager.loganalytics.models.StatusCodeEnum":"Microsoft.OperationalInsights.StatusCodeEnum","com.azure.resourcemanager.loganalytics.models.StorageAccount":"Microsoft.OperationalInsights.StorageAccount","com.azure.resourcemanager.loganalytics.models.StorageInsightState":"Microsoft.OperationalInsights.StorageInsightState","com.azure.resourcemanager.loganalytics.models.StorageInsightStatus":"Microsoft.OperationalInsights.StorageInsightStatus","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin":"Microsoft.OperationalInsights.SummaryLogsRetryBin","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBinProperties":"Microsoft.OperationalInsights.SummaryLogsRetryBinProperties","com.azure.resourcemanager.loganalytics.models.TablePlanEnum":"Microsoft.OperationalInsights.TablePlanEnum","com.azure.resourcemanager.loganalytics.models.TableSubTypeEnum":"Microsoft.OperationalInsights.TableSubTypeEnum","com.azure.resourcemanager.loganalytics.models.TableTypeEnum":"Microsoft.OperationalInsights.TableTypeEnum","com.azure.resourcemanager.loganalytics.models.Tag":"Microsoft.OperationalInsights.Tag","com.azure.resourcemanager.loganalytics.models.TagsResource":"Microsoft.OperationalInsights.TagsResource","com.azure.resourcemanager.loganalytics.models.TimeSelectorEnum":"Microsoft.OperationalInsights.TimeSelectorEnum","com.azure.resourcemanager.loganalytics.models.Type":"Microsoft.OperationalInsights.Type","com.azure.resourcemanager.loganalytics.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.loganalytics.models.UserIdentityProperties":"Microsoft.OperationalInsights.UserIdentityProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceCapping":"Microsoft.OperationalInsights.WorkspaceCapping","com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus":"Microsoft.OperationalInsights.WorkspaceEntityStatus","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties":"Microsoft.OperationalInsights.WorkspaceFailoverProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverState":"Microsoft.OperationalInsights.WorkspaceFailoverState","com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures":"Microsoft.OperationalInsights.WorkspaceFeatures","com.azure.resourcemanager.loganalytics.models.WorkspacePatch":"Microsoft.OperationalInsights.WorkspacePatch","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody":"Microsoft.OperationalInsights.WorkspacePurgeBody","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters":"Microsoft.OperationalInsights.WorkspacePurgeBodyFilters","com.azure.resourcemanager.loganalytics.models.WorkspacePurgesPurgeHeaders":null,"com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties":"Microsoft.OperationalInsights.WorkspaceReplicationProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationState":"Microsoft.OperationalInsights.WorkspaceReplicationState","com.azure.resourcemanager.loganalytics.models.WorkspaceSku":"Microsoft.OperationalInsights.WorkspaceSku","com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum":"Microsoft.OperationalInsights.WorkspaceSkuNameEnum"},"generatedFiles":["src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java","src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatuses.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java","src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleDefinition.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchResults.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSchemaValue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java index 5f73cda1ac63..16b9a24935cb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SchemasGetWithResponseMockTests.java @@ -45,7 +45,7 @@ public void testGetWithResponse() throws Exception { Assertions.assertEquals("cvk", response.metadata().status()); Assertions.assertEquals(OffsetDateTime.parse("2021-08-20T06:08Z"), response.metadata().startTime()); Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T01:10:09Z"), response.metadata().lastUpdated()); - Assertions.assertEquals("lgjyyxpvels", response.metadata().eTag()); + Assertions.assertEquals("lgjyyxpvels", response.metadata().etag()); Assertions.assertEquals("zevxoqein", response.metadata().sort().get(0).name()); Assertions.assertEquals(SearchSortEnum.DESC, response.metadata().sort().get(0).order()); Assertions.assertEquals(3843017627663831527L, response.metadata().requestTime()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java index 28b7651e83ef..c30e108519a2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchGetSchemaResponseInnerTests.java @@ -26,7 +26,7 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("tnrzvuljra", model.metadata().status()); Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T18:00:04Z"), model.metadata().startTime()); Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:57:30Z"), model.metadata().lastUpdated()); - Assertions.assertEquals("kqg", model.metadata().eTag()); + Assertions.assertEquals("kqg", model.metadata().etag()); Assertions.assertEquals("qnvb", model.metadata().sort().get(0).name()); Assertions.assertEquals(SearchSortEnum.DESC, model.metadata().sort().get(0).order()); Assertions.assertEquals(370105828993790153L, model.metadata().requestTime()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java index 9368ff547e36..c17b21c9b291 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/SearchMetadataTests.java @@ -26,7 +26,7 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("mzznrtffyaqitmhh", model.status()); Assertions.assertEquals(OffsetDateTime.parse("2021-09-29T18:13:10Z"), model.startTime()); Assertions.assertEquals(OffsetDateTime.parse("2021-09-26T20:49:04Z"), model.lastUpdated()); - Assertions.assertEquals("hvseufuqyrx", model.eTag()); + Assertions.assertEquals("hvseufuqyrx", model.etag()); Assertions.assertEquals("gql", model.sort().get(0).name()); Assertions.assertEquals(SearchSortEnum.DESC, model.sort().get(0).order()); Assertions.assertEquals(8420679751963722456L, model.requestTime()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java index 5fd6a9a556ee..2d0f7b0a45ca 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java @@ -21,7 +21,7 @@ public final class TableInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableInner model = BinaryData.fromString( - "{\"properties\":{\"retentionInDays\":1448184483,\"totalRetentionInDays\":1746749164,\"archiveRetentionInDays\":1933702310,\"searchResults\":{\"query\":\"bdaxconfozauorsu\",\"description\":\"kwbqplhlvnuu\",\"limit\":1920670315,\"startSearchTime\":\"2021-03-26T05:32:19Z\",\"endSearchTime\":\"2021-06-18T22:25:05Z\",\"sourceTable\":\"zsoldwey\",\"azureAsyncOperationId\":\"dunvmnnrwrbiorkt\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-04T00:16:10Z\",\"endRestoreTime\":\"2021-04-15T08:16:25Z\",\"sourceTable\":\"gdnhxmsiv\",\"azureAsyncOperationId\":\"miloxggdufiqndie\"},\"resultStatistics\":{\"progress\":73.16819782282242,\"ingestedRecords\":886290907,\"scannedGb\":23.888120940037084},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"s\",\"schema\":{\"name\":\"otcubi\",\"displayName\":\"uipwoqonmacje\",\"description\":\"izsh\",\"columns\":[{\"name\":\"m\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"b\",\"description\":\"rilbywdx\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"rwfscjfnynszquj\",\"type\":\"long\",\"dataTypeHint\":\"ip\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"oxoismsksbpim\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kcgxxlxsffgcvi\",\"description\":\"zdwlvwlyoupfgfb\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"hgkfmin\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"ttsttktlahbqact\",\"description\":\"gzukxitmm\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"hrnxrxc\"],\"labels\":[\"isavok\",\"dzf\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"qttbaj\",\"katnwxyi\",\"pidkqqfkuvscxkdm\",\"igovi\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}") + "{\"properties\":{\"retentionInDays\":1448184483,\"totalRetentionInDays\":1746749164,\"archiveRetentionInDays\":1933702310,\"searchResults\":{\"query\":\"bdaxconfozauorsu\",\"description\":\"kwbqplhlvnuu\",\"limit\":1920670315,\"startSearchTime\":\"2021-03-26T05:32:19Z\",\"endSearchTime\":\"2021-06-18T22:25:05Z\",\"sourceTable\":\"zsoldwey\",\"azureAsyncOperationId\":\"dunvmnnrwrbiorkt\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-04T00:16:10Z\",\"endRestoreTime\":\"2021-04-15T08:16:25Z\",\"sourceTable\":\"gdnhxmsiv\",\"azureAsyncOperationId\":\"miloxggdufiqndie\"},\"resultStatistics\":{\"progress\":73.16819782282242,\"ingestedRecords\":886290907,\"scannedGb\":23.888120940037084},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"s\",\"schema\":{\"name\":\"otcubi\",\"displayName\":\"uipwoqonmacje\",\"description\":\"izsh\",\"columns\":[{\"name\":\"m\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"b\",\"description\":\"rilbywdx\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"rwfscjfnynszquj\",\"type\":\"long\",\"dataTypeHint\":\"ip\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"oxoismsksbpim\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kcgxxlxsffgcvi\",\"description\":\"zdwlvwlyoupfgfb\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"hgkfmin\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"ttsttktlahbqact\",\"description\":\"gzukxitmm\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"hrnxrxc\"],\"labels\":[\"isavok\",\"dzf\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"qttbaj\",\"katnwxyi\",\"pidkqqfkuvscxkdm\",\"igovi\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}") .toObject(TableInner.class); Assertions.assertEquals(1448184483, model.retentionInDays()); Assertions.assertEquals(1746749164, model.totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java index 01165566c645..a1acfcdc8eab 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java @@ -21,7 +21,7 @@ public final class TablePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableProperties model = BinaryData.fromString( - "{\"retentionInDays\":1317019798,\"totalRetentionInDays\":889333374,\"archiveRetentionInDays\":1902606328,\"searchResults\":{\"query\":\"dilmyww\",\"description\":\"gkxnyedabg\",\"limit\":110774994,\"startSearchTime\":\"2021-04-27T22:18:57Z\",\"endSearchTime\":\"2021-01-03T05:28:43Z\",\"sourceTable\":\"wbcihxuuwh\",\"azureAsyncOperationId\":\"yxccyb\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-30T18:35:12Z\",\"endRestoreTime\":\"2021-07-25T04:23:40Z\",\"sourceTable\":\"udzpxgwjplmagstc\",\"azureAsyncOperationId\":\"hpfkyrkdbdgi\"},\"resultStatistics\":{\"progress\":37.102374420459185,\"ingestedRecords\":1929785909,\"scannedGb\":88.71489238122547},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"aiy\",\"schema\":{\"name\":\"viacegfnmntfpmv\",\"displayName\":\"mfnczd\",\"description\":\"vbalxlllc\",\"columns\":[{\"name\":\"bzevwrd\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vsjcswsmystuluqy\",\"description\":\"cvlerchpqbmfpjba\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"xsspuunnoxyhk\",\"type\":\"dynamic\",\"dataTypeHint\":\"ip\",\"displayName\":\"i\",\"description\":\"fhoqca\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"mdjvlpj\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"msgeivsiykzk\",\"description\":\"cjdx\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"ulapzwyrp\",\"type\":\"long\",\"dataTypeHint\":\"armPath\",\"displayName\":\"epnylbfu\",\"description\":\"lyjt\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"hvfcibyfmow\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"vdwxfzwi\",\"description\":\"wzjbh\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"labels\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"jtqedcgzulwmm\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") + "{\"retentionInDays\":1317019798,\"totalRetentionInDays\":889333374,\"archiveRetentionInDays\":1902606328,\"searchResults\":{\"query\":\"dilmyww\",\"description\":\"gkxnyedabg\",\"limit\":110774994,\"startSearchTime\":\"2021-04-27T22:18:57Z\",\"endSearchTime\":\"2021-01-03T05:28:43Z\",\"sourceTable\":\"wbcihxuuwh\",\"azureAsyncOperationId\":\"yxccyb\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-30T18:35:12Z\",\"endRestoreTime\":\"2021-07-25T04:23:40Z\",\"sourceTable\":\"udzpxgwjplmagstc\",\"azureAsyncOperationId\":\"hpfkyrkdbdgi\"},\"resultStatistics\":{\"progress\":37.102374420459185,\"ingestedRecords\":1929785909,\"scannedGb\":88.71489238122547},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"aiy\",\"schema\":{\"name\":\"viacegfnmntfpmv\",\"displayName\":\"mfnczd\",\"description\":\"vbalxlllc\",\"columns\":[{\"name\":\"bzevwrd\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vsjcswsmystuluqy\",\"description\":\"cvlerchpqbmfpjba\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"xsspuunnoxyhk\",\"type\":\"dynamic\",\"dataTypeHint\":\"ip\",\"displayName\":\"i\",\"description\":\"fhoqca\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"mdjvlpj\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"msgeivsiykzk\",\"description\":\"cjdx\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"ulapzwyrp\",\"type\":\"long\",\"dataTypeHint\":\"armPath\",\"displayName\":\"epnylbfu\",\"description\":\"lyjt\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"hvfcibyfmow\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"vdwxfzwi\",\"description\":\"wzjbh\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"labels\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"jtqedcgzulwmm\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") .toObject(TableProperties.class); Assertions.assertEquals(1317019798, model.retentionInDays()); Assertions.assertEquals(889333374, model.totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java index 339a84a6e6f2..6434b1475b4b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class TablesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"retentionInDays\":1360413758,\"totalRetentionInDays\":303865624,\"archiveRetentionInDays\":1281180926,\"searchResults\":{\"query\":\"olyahluqwqulsut\",\"description\":\"bhxykfhyqezvqqug\",\"limit\":1475377134,\"startSearchTime\":\"2021-04-08T05:18:37Z\",\"endSearchTime\":\"2021-09-17T05:59:38Z\",\"sourceTable\":\"xreuquowtlj\",\"azureAsyncOperationId\":\"whreagkhyxvrq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-06T02:53:55Z\",\"endRestoreTime\":\"2021-03-28T20:35:45Z\",\"sourceTable\":\"lmdgglmepjp\",\"azureAsyncOperationId\":\"eykgsangpszngaf\"},\"resultStatistics\":{\"progress\":26.100731176789093,\"ingestedRecords\":2068016278,\"scannedGb\":51.703176428226385},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"goadyedmzr\",\"schema\":{\"name\":\"oknub\",\"displayName\":\"itpkpztrgdg\",\"description\":\"coqra\",\"columns\":[{\"name\":\"yxp\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"alwvskbu\",\"description\":\"acaqtyltcoqcu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"akuejk\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"jofqcvovjufycs\",\"description\":\"lbemyej\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"hortu\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"felqerpptc\",\"description\":\"qnzmnhiil\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gckbb\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"raoxnyuff\",\"description\":\"sgftipwc\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"iqdxyurnpnuh\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"uhiigbyl\",\"description\":\"igvxvatvcrk\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"vhcs\",\"hzlwxaea\"],\"labels\":[\"rexdndsbd\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ntopa\",\"ttmvmmagoaqylkjz\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"gmxitpfi\",\"name\":\"zc\",\"type\":\"dltkrlg\"}"; + = "{\"properties\":{\"retentionInDays\":1360413758,\"totalRetentionInDays\":303865624,\"archiveRetentionInDays\":1281180926,\"searchResults\":{\"query\":\"olyahluqwqulsut\",\"description\":\"bhxykfhyqezvqqug\",\"limit\":1475377134,\"startSearchTime\":\"2021-04-08T05:18:37Z\",\"endSearchTime\":\"2021-09-17T05:59:38Z\",\"sourceTable\":\"xreuquowtlj\",\"azureAsyncOperationId\":\"whreagkhyxvrq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-06T02:53:55Z\",\"endRestoreTime\":\"2021-03-28T20:35:45Z\",\"sourceTable\":\"lmdgglmepjp\",\"azureAsyncOperationId\":\"eykgsangpszngaf\"},\"resultStatistics\":{\"progress\":26.100731176789093,\"ingestedRecords\":2068016278,\"scannedGb\":51.703176428226385},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"goadyedmzr\",\"schema\":{\"name\":\"oknub\",\"displayName\":\"itpkpztrgdg\",\"description\":\"coqra\",\"columns\":[{\"name\":\"yxp\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"alwvskbu\",\"description\":\"acaqtyltcoqcu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"akuejk\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"jofqcvovjufycs\",\"description\":\"lbemyej\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"hortu\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"felqerpptc\",\"description\":\"qnzmnhiil\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gckbb\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"raoxnyuff\",\"description\":\"sgftipwc\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"iqdxyurnpnuh\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"uhiigbyl\",\"description\":\"igvxvatvcrk\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"vhcs\",\"hzlwxaea\"],\"labels\":[\"rexdndsbd\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ntopa\",\"ttmvmmagoaqylkjz\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"gmxitpfi\",\"name\":\"zc\",\"type\":\"dltkrlg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java index a66becdc6f1c..77791a6a3191 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java @@ -25,7 +25,7 @@ public final class TablesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"retentionInDays\":1067831194,\"totalRetentionInDays\":1338234971,\"archiveRetentionInDays\":81807021,\"searchResults\":{\"query\":\"jdnrqjbt\",\"description\":\"eaoqaqbzgyhf\",\"limit\":122929865,\"startSearchTime\":\"2021-09-21T19:14:48Z\",\"endSearchTime\":\"2021-03-20T20:58:19Z\",\"sourceTable\":\"bqamteuliyslpk\",\"azureAsyncOperationId\":\"mw\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-25T12:04:18Z\",\"endRestoreTime\":\"2021-01-21T00:53:39Z\",\"sourceTable\":\"myw\",\"azureAsyncOperationId\":\"rmcqmiciijqpkz\"},\"resultStatistics\":{\"progress\":58.73400554711503,\"ingestedRecords\":1008531310,\"scannedGb\":96.94226082279155},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ixvcpwnkwywzwo\",\"schema\":{\"name\":\"ickduoiqta\",\"displayName\":\"yvsk\",\"description\":\"rwzawnvs\",\"columns\":[{\"name\":\"zagxnvhycvdi\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"gzgy\",\"description\":\"utrwpweryekz\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tta\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"wwhnhjtfvpn\",\"description\":\"miljpnwynud\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pjlxeehuxiqhzl\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"xls\",\"description\":\"hmx\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"rednw\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"w\",\"description\":\"evuafpwzyifrk\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"qipxgzdyimsf\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"avkjog\",\"description\":\"labnsmjkwynq\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"kvwjtqpkevmy\",\"tjcrspxklurccl\",\"gxannnoytzposewx\",\"gpxvkqmaupxvpi\"],\"labels\":[\"aifyzyzeyuubeids\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"gygvfltgvdiho\",\"nkrxwetwkdrcy\",\"ucpcunnuzdqumoen\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"qh\",\"name\":\"knd\",\"type\":\"elqkaadlkn\"}]}"; + = "{\"value\":[{\"properties\":{\"retentionInDays\":1067831194,\"totalRetentionInDays\":1338234971,\"archiveRetentionInDays\":81807021,\"searchResults\":{\"query\":\"jdnrqjbt\",\"description\":\"eaoqaqbzgyhf\",\"limit\":122929865,\"startSearchTime\":\"2021-09-21T19:14:48Z\",\"endSearchTime\":\"2021-03-20T20:58:19Z\",\"sourceTable\":\"bqamteuliyslpk\",\"azureAsyncOperationId\":\"mw\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-25T12:04:18Z\",\"endRestoreTime\":\"2021-01-21T00:53:39Z\",\"sourceTable\":\"myw\",\"azureAsyncOperationId\":\"rmcqmiciijqpkz\"},\"resultStatistics\":{\"progress\":58.73400554711503,\"ingestedRecords\":1008531310,\"scannedGb\":96.94226082279155},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ixvcpwnkwywzwo\",\"schema\":{\"name\":\"ickduoiqta\",\"displayName\":\"yvsk\",\"description\":\"rwzawnvs\",\"columns\":[{\"name\":\"zagxnvhycvdi\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"gzgy\",\"description\":\"utrwpweryekz\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tta\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"wwhnhjtfvpn\",\"description\":\"miljpnwynud\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pjlxeehuxiqhzl\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"xls\",\"description\":\"hmx\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"rednw\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"w\",\"description\":\"evuafpwzyifrk\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"qipxgzdyimsf\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"avkjog\",\"description\":\"labnsmjkwynq\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"kvwjtqpkevmy\",\"tjcrspxklurccl\",\"gxannnoytzposewx\",\"gpxvkqmaupxvpi\"],\"labels\":[\"aifyzyzeyuubeids\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"gygvfltgvdiho\",\"nkrxwetwkdrcy\",\"ucpcunnuzdqumoen\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"qh\",\"name\":\"knd\",\"type\":\"elqkaadlkn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java index 50c35880d60f..417cf617899c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java @@ -14,7 +14,7 @@ public final class TablesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TablesListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"retentionInDays\":215844644,\"totalRetentionInDays\":1198347507,\"archiveRetentionInDays\":261950952,\"searchResults\":{\"query\":\"tg\",\"description\":\"nzeyqxtjj\",\"limit\":715633855,\"startSearchTime\":\"2021-03-19T00:54:21Z\",\"endSearchTime\":\"2021-01-28T05:26:07Z\",\"sourceTable\":\"avodg\",\"azureAsyncOperationId\":\"dbeesmie\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-11T02:30:59Z\",\"endRestoreTime\":\"2021-01-30T20:04:42Z\",\"sourceTable\":\"aawiuagydwqfb\",\"azureAsyncOperationId\":\"yr\"},\"resultStatistics\":{\"progress\":16.077869516417877,\"ingestedRecords\":1957369662,\"scannedGb\":87.74515056919178},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ogfnzjvusf\",\"schema\":{\"name\":\"mozuxylfsb\",\"displayName\":\"adpysownbt\",\"description\":\"bugrj\",\"columns\":[{}],\"standardColumns\":[{}],\"categories\":[\"isofieypefojyqd\"],\"labels\":[\"plcplcwkhi\"],\"source\":\"customer\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"tzbsrgnowcjhf\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"xmwoteyowcluqo\",\"name\":\"ekqvgqouwif\",\"type\":\"mpjw\"},{\"properties\":{\"retentionInDays\":1750235907,\"totalRetentionInDays\":18074725,\"archiveRetentionInDays\":1813294766,\"searchResults\":{\"query\":\"hrfsphuagrtti\",\"description\":\"eusqczkvyklxu\",\"limit\":1413186708,\"startSearchTime\":\"2021-11-29T09:18:30Z\",\"endSearchTime\":\"2021-09-13T22:37:23Z\",\"sourceTable\":\"fblcq\",\"azureAsyncOperationId\":\"ubgq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-13T13:57:03Z\",\"endRestoreTime\":\"2021-08-13T22:08:40Z\",\"sourceTable\":\"etttwgdslqxihhr\",\"azureAsyncOperationId\":\"oi\"},\"resultStatistics\":{\"progress\":89.29105043029318,\"ingestedRecords\":1595822311,\"scannedGb\":53.37658518150889},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"pzhyr\",\"schema\":{\"name\":\"o\",\"displayName\":\"bjoxs\",\"description\":\"vnh\",\"columns\":[{},{},{}],\"standardColumns\":[{}],\"categories\":[\"kzjcjbtrgae\",\"vvib\",\"xjjs\"],\"labels\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"t\",\"kozzwculkb\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"wltlwtjjguktalh\",\"name\":\"nvkcdmxzrpoa\",\"type\":\"mlnwiaaomylweazu\"},{\"properties\":{\"retentionInDays\":958825204,\"totalRetentionInDays\":950658214,\"archiveRetentionInDays\":1686988700,\"searchResults\":{\"query\":\"jhlfzswpchwahf\",\"description\":\"usnfepgfewet\",\"limit\":1730417051,\"startSearchTime\":\"2021-01-13T00:28:43Z\",\"endSearchTime\":\"2021-06-27T13:13:13Z\",\"sourceTable\":\"ykxhdjh\",\"azureAsyncOperationId\":\"mmbcxfhbcp\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-20T00:41:29Z\",\"endRestoreTime\":\"2021-02-20T11:25:19Z\",\"sourceTable\":\"zhqizxf\",\"azureAsyncOperationId\":\"tgqscjavftjuh\"},\"resultStatistics\":{\"progress\":96.7049778336437,\"ingestedRecords\":1903127513,\"scannedGb\":27.661334456416895},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"jrajcivm\",\"schema\":{\"name\":\"f\",\"displayName\":\"iwrxgkn\",\"description\":\"vyi\",\"columns\":[{},{}],\"standardColumns\":[{},{}],\"categories\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"labels\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"source\":\"microsoft\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mhv\",\"muvgp\",\"uneqsxvmhf\",\"uzjyihsasbhudypo\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"}],\"nextLink\":\"jouw\"}") + "{\"value\":[{\"properties\":{\"retentionInDays\":215844644,\"totalRetentionInDays\":1198347507,\"archiveRetentionInDays\":261950952,\"searchResults\":{\"query\":\"tg\",\"description\":\"nzeyqxtjj\",\"limit\":715633855,\"startSearchTime\":\"2021-03-19T00:54:21Z\",\"endSearchTime\":\"2021-01-28T05:26:07Z\",\"sourceTable\":\"avodg\",\"azureAsyncOperationId\":\"dbeesmie\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-11T02:30:59Z\",\"endRestoreTime\":\"2021-01-30T20:04:42Z\",\"sourceTable\":\"aawiuagydwqfb\",\"azureAsyncOperationId\":\"yr\"},\"resultStatistics\":{\"progress\":16.077869516417877,\"ingestedRecords\":1957369662,\"scannedGb\":87.74515056919178},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ogfnzjvusf\",\"schema\":{\"name\":\"mozuxylfsb\",\"displayName\":\"adpysownbt\",\"description\":\"bugrj\",\"columns\":[{}],\"standardColumns\":[{}],\"categories\":[\"isofieypefojyqd\"],\"labels\":[\"plcplcwkhi\"],\"source\":\"customer\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"tzbsrgnowcjhf\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"xmwoteyowcluqo\",\"name\":\"ekqvgqouwif\",\"type\":\"mpjw\"},{\"properties\":{\"retentionInDays\":1750235907,\"totalRetentionInDays\":18074725,\"archiveRetentionInDays\":1813294766,\"searchResults\":{\"query\":\"hrfsphuagrtti\",\"description\":\"eusqczkvyklxu\",\"limit\":1413186708,\"startSearchTime\":\"2021-11-29T09:18:30Z\",\"endSearchTime\":\"2021-09-13T22:37:23Z\",\"sourceTable\":\"fblcq\",\"azureAsyncOperationId\":\"ubgq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-13T13:57:03Z\",\"endRestoreTime\":\"2021-08-13T22:08:40Z\",\"sourceTable\":\"etttwgdslqxihhr\",\"azureAsyncOperationId\":\"oi\"},\"resultStatistics\":{\"progress\":89.29105043029318,\"ingestedRecords\":1595822311,\"scannedGb\":53.37658518150889},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"pzhyr\",\"schema\":{\"name\":\"o\",\"displayName\":\"bjoxs\",\"description\":\"vnh\",\"columns\":[{},{},{}],\"standardColumns\":[{}],\"categories\":[\"kzjcjbtrgae\",\"vvib\",\"xjjs\"],\"labels\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"t\",\"kozzwculkb\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"wltlwtjjguktalh\",\"name\":\"nvkcdmxzrpoa\",\"type\":\"mlnwiaaomylweazu\"},{\"properties\":{\"retentionInDays\":958825204,\"totalRetentionInDays\":950658214,\"archiveRetentionInDays\":1686988700,\"searchResults\":{\"query\":\"jhlfzswpchwahf\",\"description\":\"usnfepgfewet\",\"limit\":1730417051,\"startSearchTime\":\"2021-01-13T00:28:43Z\",\"endSearchTime\":\"2021-06-27T13:13:13Z\",\"sourceTable\":\"ykxhdjh\",\"azureAsyncOperationId\":\"mmbcxfhbcp\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-20T00:41:29Z\",\"endRestoreTime\":\"2021-02-20T11:25:19Z\",\"sourceTable\":\"zhqizxf\",\"azureAsyncOperationId\":\"tgqscjavftjuh\"},\"resultStatistics\":{\"progress\":96.7049778336437,\"ingestedRecords\":1903127513,\"scannedGb\":27.661334456416895},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"jrajcivm\",\"schema\":{\"name\":\"f\",\"displayName\":\"iwrxgkn\",\"description\":\"vyi\",\"columns\":[{},{}],\"standardColumns\":[{},{}],\"categories\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"labels\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"source\":\"microsoft\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mhv\",\"muvgp\",\"uneqsxvmhf\",\"uzjyihsasbhudypo\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"}],\"nextLink\":\"jouw\"}") .toObject(TablesListResult.class); Assertions.assertEquals(215844644, model.value().get(0).retentionInDays()); Assertions.assertEquals(1198347507, model.value().get(0).totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml index d790c6dc9db3..b3b6c3647ea8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: 61ef1085014acf8197d8b44e9dec699ef635a750 +commit: a81c0695834fbb2651594d008437670bb365e168 repo: Azure/azure-rest-api-specs additionalDirectories: From 21927e91b00488eb43d3c5060a388bd6f2b22e24 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 04:28:32 +0000 Subject: [PATCH 3/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', and CommitSHA: '4a6a2f7d8f3be8e4d18ece57ad33b34f64611c7a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6274339 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 94 +++++++++---------- .../tsp-location.yaml | 2 +- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index b1824cb9d682..fda85bfa31dc 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -68,8 +68,8 @@ #### `models.ManagedServiceIdentity` was modified -* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `java.util.UUID tenantId()` -> `java.lang.String tenantId()` +* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `validate()` was removed #### `models.UserIdentityProperties` was modified @@ -88,21 +88,21 @@ #### `models.AccessRuleProperties` was modified * `AccessRuleProperties()` was changed to private access -* `withAddressPrefixes(java.util.List)` was removed -* `withEmailAddresses(java.util.List)` was removed * `withNetworkSecurityPerimeters(java.util.List)` was removed -* `withDirection(models.AccessRuleDirection)` was removed -* `withFullyQualifiedDomainNames(java.util.List)` was removed -* `withPhoneNumbers(java.util.List)` was removed +* `withAddressPrefixes(java.util.List)` was removed * `validate()` was removed +* `withDirection(models.AccessRuleDirection)` was removed * `withSubscriptions(java.util.List)` was removed +* `withPhoneNumbers(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withEmailAddresses(java.util.List)` was removed #### `models.PrivateLinkScopedResource` was modified * `PrivateLinkScopedResource()` was changed to private access * `withResourceId(java.lang.String)` was removed -* `validate()` was removed * `withScopeId(java.lang.String)` was removed +* `validate()` was removed #### `models.ClusterReplicationProperties` was modified @@ -115,9 +115,9 @@ #### `models.AccessRule` was modified * `AccessRule()` was changed to private access -* `validate()` was removed -* `withName(java.lang.String)` was removed * `withProperties(models.AccessRuleProperties)` was removed +* `withName(java.lang.String)` was removed +* `validate()` was removed #### `models.StorageInsight$Update` was modified @@ -138,11 +138,11 @@ #### `models.NetworkSecurityPerimeter` was modified * `NetworkSecurityPerimeter()` was changed to private access -* `withLocation(java.lang.String)` was removed -* `withPerimeterGuid(java.util.UUID)` was removed * `validate()` was removed +* `withPerimeterGuid(java.util.UUID)` was removed * `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` * `withId(java.lang.String)` was removed +* `withLocation(java.lang.String)` was removed #### `models.CapacityReservationProperties` was modified @@ -163,8 +163,8 @@ #### `models.MetricName` was modified * `MetricName()` was changed to private access -* `withLocalizedValue(java.lang.String)` was removed * `validate()` was removed +* `withLocalizedValue(java.lang.String)` was removed * `withValue(java.lang.String)` was removed #### `models.WorkspacePatch` was modified @@ -178,9 +178,9 @@ #### `models.ResourceAssociation` was modified * `ResourceAssociation()` was changed to private access -* `withName(java.lang.String)` was removed * `validate()` was removed * `withAccessMode(models.ResourceAssociationAccessMode)` was removed +* `withName(java.lang.String)` was removed #### `models.RestoredLogs` was modified @@ -210,27 +210,27 @@ #### `models.LinkedServices` was modified -* `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.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.NetworkSecurityProfile` was modified * `NetworkSecurityProfile()` was changed to private access -* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed -* `validate()` was removed -* `withEnabledLogCategories(java.util.List)` was removed -* `withAccessRules(java.util.List)` was removed * `withAccessRulesVersion(java.lang.Integer)` was removed +* `withAccessRules(java.util.List)` was removed +* `withEnabledLogCategories(java.util.List)` was removed * `withName(java.lang.String)` was removed +* `validate()` was removed +* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed #### `models.NetworkSecurityPerimeterConfigurationProperties` was modified * `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access +* `validate()` was removed * `withProfile(models.NetworkSecurityProfile)` was removed * `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed -* `validate()` was removed * `withResourceAssociation(models.ResourceAssociation)` was removed #### `models.SummaryLogsRetryBin` was modified @@ -240,8 +240,8 @@ #### `models.SearchMetadataSchema` was modified * `SearchMetadataSchema()` was changed to private access -* `withVersion(java.lang.Integer)` was removed * `validate()` was removed +* `withVersion(java.lang.Integer)` was removed * `withName(java.lang.String)` was removed #### `models.KeyVaultProperties` was modified @@ -250,8 +250,8 @@ #### `models.UserAssignedIdentity` was modified -* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `validate()` was removed #### `models.WorkspaceSku` was modified @@ -265,11 +265,11 @@ #### `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 -* `withDescription(java.lang.String)` was removed -* `withProvider(java.lang.String)` was removed #### `models.ProvisioningIssueProperties` was modified @@ -278,8 +278,8 @@ #### `models.AssociatedWorkspace` was modified -* `validate()` was removed * `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` +* `validate()` was removed #### `models.TagsResource` was modified @@ -288,36 +288,36 @@ #### `models.SearchSchemaValue` was modified * `SearchSchemaValue()` was changed to private access -* `withOwnerType(java.util.List)` was removed -* `withType(java.lang.String)` was removed * `validate()` was removed -* `withIndexed(boolean)` was removed -* `withFacet(boolean)` was removed -* `withStored(boolean)` was removed * `withDisplayName(java.lang.String)` was removed * `withName(java.lang.String)` was removed +* `withIndexed(boolean)` was removed +* `withStored(boolean)` was removed +* `withOwnerType(java.util.List)` was removed +* `withType(java.lang.String)` was removed +* `withFacet(boolean)` was removed #### `models.SearchMetadata` was modified * `SearchMetadata()` was changed to private access -* `withSort(java.util.List)` was removed -* `withAggregatedGroupingFields(java.lang.String)` was removed +* `withAggregatedValueField(java.lang.String)` was removed * `withSchema(models.SearchMetadataSchema)` was removed -* `withLastUpdated(java.time.OffsetDateTime)` was removed -* `withResultType(java.lang.String)` was removed -* `withRequestTime(java.lang.Long)` was removed -* `withTop(java.lang.Long)` was removed -* `withId(java.lang.String)` was removed -* `withSum(java.lang.Long)` was removed -* `withEtag(java.lang.String)` was removed -* `withCoreSummaries(java.util.List)` was removed +* `withTotal(java.lang.Long)` was removed * `withStartTime(java.time.OffsetDateTime)` was removed -* `withAggregatedValueField(java.lang.String)` was removed +* `withSum(java.lang.Long)` was removed * `withSearchId(java.lang.String)` was removed -* `withTotal(java.lang.Long)` was removed +* `withStatus(java.lang.String)` was removed +* `withResultType(java.lang.String)` was removed +* `withCoreSummaries(java.util.List)` was removed +* `withId(java.lang.String)` was removed +* `withSort(java.util.List)` was removed +* `withRequestTime(java.lang.Long)` was removed * `validate()` was removed * `withMax(java.lang.Long)` was removed -* `withStatus(java.lang.String)` was removed +* `withTop(java.lang.Long)` was removed +* `withLastUpdated(java.time.OffsetDateTime)` was removed +* `withAggregatedGroupingFields(java.lang.String)` was removed +* `withEtag(java.lang.String)` was removed #### `models.SummaryLogsRetryBinProperties` was modified @@ -330,15 +330,15 @@ #### `models.WorkspacePurgesPurgeHeaders` was modified -* `validate()` was removed * `withXMsStatusLocation(java.lang.String)` was removed +* `validate()` was removed #### `models.StorageInsightStatus` was modified * `StorageInsightStatus()` was changed to private access -* `withState(models.StorageInsightState)` was removed * `validate()` was removed * `withDescription(java.lang.String)` was removed +* `withState(models.StorageInsightState)` was removed #### `models.WorkspacePurgeBody` was modified @@ -351,8 +351,8 @@ #### `models.SearchSort` was modified * `SearchSort()` was changed to private access -* `withOrder(models.SearchSortEnum)` was removed * `validate()` was removed +* `withOrder(models.SearchSortEnum)` was removed * `withName(java.lang.String)` was removed #### `models.ClusterSku` was modified @@ -367,8 +367,8 @@ #### `models.StorageInsight` was modified -* `eTag()` was added * `systemData()` was added +* `eTag()` was added #### `models.AzureEntityResource` was modified @@ -409,8 +409,8 @@ #### `models.ProvisioningStateEnum` was modified -* `toString()` was added * `valueOf(java.lang.String)` was added +* `toString()` was added * `FAILED` was added * `CANCELED` was added diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml index b3b6c3647ea8..3714f07982bd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: a81c0695834fbb2651594d008437670bb365e168 +commit: 4a6a2f7d8f3be8e4d18ece57ad33b34f64611c7a repo: Azure/azure-rest-api-specs additionalDirectories: From b3dbfb580975e95fb89afe5e873fab601a37d105 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 06:07:24 +0000 Subject: [PATCH 4/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', and CommitSHA: '57f1f65b67c01832427b0b3518ee789b960a5e07' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6274600 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 91 +++++++++---------- .../models/ProvisioningStateEnum.java | 71 +++++++-------- .../tsp-location.yaml | 2 +- 3 files changed, 77 insertions(+), 87 deletions(-) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index fda85bfa31dc..8103a1390210 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -51,8 +51,8 @@ #### `models.AccessRulePropertiesSubscriptionsItem` was modified * `AccessRulePropertiesSubscriptionsItem()` was changed to private access -* `validate()` was removed * `withId(java.lang.String)` was removed +* `validate()` was removed #### `models.Tag` was modified @@ -69,8 +69,8 @@ #### `models.ManagedServiceIdentity` was modified * `java.util.UUID tenantId()` -> `java.lang.String tenantId()` -* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `validate()` was removed +* `java.util.UUID principalId()` -> `java.lang.String principalId()` #### `models.UserIdentityProperties` was modified @@ -88,20 +88,20 @@ #### `models.AccessRuleProperties` was modified * `AccessRuleProperties()` was changed to private access -* `withNetworkSecurityPerimeters(java.util.List)` was removed +* `withEmailAddresses(java.util.List)` was removed * `withAddressPrefixes(java.util.List)` was removed -* `validate()` was removed -* `withDirection(models.AccessRuleDirection)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withNetworkSecurityPerimeters(java.util.List)` was removed * `withSubscriptions(java.util.List)` was removed +* `withDirection(models.AccessRuleDirection)` was removed +* `validate()` was removed * `withPhoneNumbers(java.util.List)` was removed -* `withFullyQualifiedDomainNames(java.util.List)` was removed -* `withEmailAddresses(java.util.List)` was removed #### `models.PrivateLinkScopedResource` was modified * `PrivateLinkScopedResource()` was changed to private access -* `withResourceId(java.lang.String)` was removed * `withScopeId(java.lang.String)` was removed +* `withResourceId(java.lang.String)` was removed * `validate()` was removed #### `models.ClusterReplicationProperties` was modified @@ -115,9 +115,9 @@ #### `models.AccessRule` was modified * `AccessRule()` was changed to private access -* `withProperties(models.AccessRuleProperties)` was removed * `withName(java.lang.String)` was removed * `validate()` was removed +* `withProperties(models.AccessRuleProperties)` was removed #### `models.StorageInsight$Update` was modified @@ -138,11 +138,11 @@ #### `models.NetworkSecurityPerimeter` was modified * `NetworkSecurityPerimeter()` was changed to private access -* `validate()` was removed -* `withPerimeterGuid(java.util.UUID)` was removed -* `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` * `withId(java.lang.String)` was removed +* `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` +* `withPerimeterGuid(java.util.UUID)` was removed * `withLocation(java.lang.String)` was removed +* `validate()` was removed #### `models.CapacityReservationProperties` was modified @@ -178,9 +178,9 @@ #### `models.ResourceAssociation` was modified * `ResourceAssociation()` was changed to private access +* `withName(java.lang.String)` was removed * `validate()` was removed * `withAccessMode(models.ResourceAssociationAccessMode)` was removed -* `withName(java.lang.String)` was removed #### `models.RestoredLogs` was modified @@ -193,9 +193,9 @@ #### `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()` +* `java.lang.Float progress()` -> `java.lang.Double progress()` +* `validate()` was removed #### `models.WorkspaceCapping` was modified @@ -204,25 +204,25 @@ #### `models.CoreSummary` was modified * `CoreSummary()` was changed to private access -* `withNumberOfDocuments(long)` was removed * `withStatus(java.lang.String)` was removed * `validate()` was removed +* `withNumberOfDocuments(long)` was removed #### `models.LinkedServices` was modified -* `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.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 deleteById(java.lang.String)` -> `void deleteById(java.lang.String)` +* `models.LinkedService delete(java.lang.String,java.lang.String,java.lang.String)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)` #### `models.NetworkSecurityProfile` was modified * `NetworkSecurityProfile()` was changed to private access * `withAccessRulesVersion(java.lang.Integer)` was removed -* `withAccessRules(java.util.List)` was removed * `withEnabledLogCategories(java.util.List)` was removed -* `withName(java.lang.String)` was removed +* `withAccessRules(java.util.List)` was removed * `validate()` was removed +* `withName(java.lang.String)` was removed * `withDiagnosticSettingsVersion(java.lang.Integer)` was removed #### `models.NetworkSecurityPerimeterConfigurationProperties` was modified @@ -251,8 +251,8 @@ #### `models.UserAssignedIdentity` was modified * `java.util.UUID clientId()` -> `java.lang.String clientId()` -* `java.util.UUID principalId()` -> `java.lang.String principalId()` * `validate()` was removed +* `java.util.UUID principalId()` -> `java.lang.String principalId()` #### `models.WorkspaceSku` was modified @@ -265,11 +265,11 @@ #### `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 +* `withDescription(java.lang.String)` was removed * `withOperation(java.lang.String)` was removed +* `withProvider(java.lang.String)` was removed #### `models.ProvisioningIssueProperties` was modified @@ -288,46 +288,41 @@ #### `models.SearchSchemaValue` was modified * `SearchSchemaValue()` was changed to private access -* `validate()` was removed * `withDisplayName(java.lang.String)` was removed -* `withName(java.lang.String)` was removed -* `withIndexed(boolean)` was removed -* `withStored(boolean)` was removed -* `withOwnerType(java.util.List)` was removed * `withType(java.lang.String)` was removed +* `withOwnerType(java.util.List)` was removed * `withFacet(boolean)` was removed +* `withStored(boolean)` was removed +* `validate()` was removed +* `withIndexed(boolean)` was removed +* `withName(java.lang.String)` was removed #### `models.SearchMetadata` was modified * `SearchMetadata()` was changed to private access +* `withCoreSummaries(java.util.List)` was removed +* `withTop(java.lang.Long)` was removed +* `withMax(java.lang.Long)` was removed +* `withLastUpdated(java.time.OffsetDateTime)` was removed * `withAggregatedValueField(java.lang.String)` was removed +* `withAggregatedGroupingFields(java.lang.String)` was removed +* `withResultType(java.lang.String)` was removed +* `withStatus(java.lang.String)` was removed * `withSchema(models.SearchMetadataSchema)` was removed +* `withRequestTime(java.lang.Long)` was removed +* `withSort(java.util.List)` was removed +* `validate()` was removed +* `withId(java.lang.String)` was removed * `withTotal(java.lang.Long)` was removed +* `withEtag(java.lang.String)` was removed * `withStartTime(java.time.OffsetDateTime)` was removed * `withSum(java.lang.Long)` was removed * `withSearchId(java.lang.String)` was removed -* `withStatus(java.lang.String)` was removed -* `withResultType(java.lang.String)` was removed -* `withCoreSummaries(java.util.List)` was removed -* `withId(java.lang.String)` was removed -* `withSort(java.util.List)` was removed -* `withRequestTime(java.lang.Long)` was removed -* `validate()` was removed -* `withMax(java.lang.Long)` was removed -* `withTop(java.lang.Long)` was removed -* `withLastUpdated(java.time.OffsetDateTime)` was removed -* `withAggregatedGroupingFields(java.lang.String)` was removed -* `withEtag(java.lang.String)` was removed #### `models.SummaryLogsRetryBinProperties` was modified * `validate()` was removed -#### `models.ProvisioningStateEnum` was modified - -* `ProvisioningStateEnum()` was removed -* `java.util.Collection values()` -> `models.ProvisioningStateEnum[] values()` - #### `models.WorkspacePurgesPurgeHeaders` was modified * `withXMsStatusLocation(java.lang.String)` was removed @@ -337,8 +332,8 @@ * `StorageInsightStatus()` was changed to private access * `validate()` was removed -* `withDescription(java.lang.String)` was removed * `withState(models.StorageInsightState)` was removed +* `withDescription(java.lang.String)` was removed #### `models.WorkspacePurgeBody` was modified @@ -351,9 +346,9 @@ #### `models.SearchSort` was modified * `SearchSort()` was changed to private access -* `validate()` was removed * `withOrder(models.SearchSortEnum)` was removed * `withName(java.lang.String)` was removed +* `validate()` was removed #### `models.ClusterSku` was modified @@ -409,8 +404,6 @@ #### `models.ProvisioningStateEnum` was modified -* `valueOf(java.lang.String)` was added -* `toString()` was added * `FAILED` was added * `CANCELED` was added diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java index 315169ee7516..dbcd1c199872 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java @@ -4,73 +4,70 @@ package com.azure.resourcemanager.loganalytics.models; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + /** - * Defines values for ProvisioningStateEnum. + * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, + * forbidding any update to the table until the ongoing operation is concluded. */ -public enum ProvisioningStateEnum { +public final class ProvisioningStateEnum extends ExpandableStringEnum { /** - * Enum value Updating. + * Table schema is still being built and updated, table is currently locked for any changes till the procedure is + * done. */ - UPDATING("Updating"), + public static final ProvisioningStateEnum UPDATING = fromString("Updating"); /** - * Enum value InProgress. + * Table schema is stable and without changes, table data is being updated. */ - IN_PROGRESS("InProgress"), + public static final ProvisioningStateEnum IN_PROGRESS = fromString("InProgress"); /** - * Enum value Succeeded. + * Table state is stable and without changes, table is unlocked and open for new updates. */ - SUCCEEDED("Succeeded"), + public static final ProvisioningStateEnum SUCCEEDED = fromString("Succeeded"); /** - * Enum value Deleting. + * Table state is deleting. */ - DELETING("Deleting"), + public static final ProvisioningStateEnum DELETING = fromString("Deleting"); /** - * Enum value Failed. + * Table state is failed. */ - FAILED("Failed"), + public static final ProvisioningStateEnum FAILED = fromString("Failed"); /** - * Enum value Canceled. + * Table state is canceled. */ - CANCELED("Canceled"); + public static final ProvisioningStateEnum CANCELED = fromString("Canceled"); /** - * The actual serialized value for a ProvisioningStateEnum instance. + * Creates a new instance of ProvisioningStateEnum value. + * + * @deprecated Use the {@link #fromString(String)} factory method. */ - private final String value; - - ProvisioningStateEnum(String value) { - this.value = value; + @Deprecated + public ProvisioningStateEnum() { } /** - * Parses a serialized value to a ProvisioningStateEnum instance. + * Creates or finds a ProvisioningStateEnum from its string representation. * - * @param value the serialized value to parse. - * @return the parsed ProvisioningStateEnum object, or null if unable to parse. + * @param name a name to look for. + * @return the corresponding ProvisioningStateEnum. */ - public static ProvisioningStateEnum fromString(String value) { - if (value == null) { - return null; - } - ProvisioningStateEnum[] items = ProvisioningStateEnum.values(); - for (ProvisioningStateEnum item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ProvisioningStateEnum fromString(String name) { + return fromString(name, ProvisioningStateEnum.class); } /** - * {@inheritDoc} + * Gets known ProvisioningStateEnum values. + * + * @return known ProvisioningStateEnum values. */ - @Override - public String toString() { - return this.value; + public static Collection values() { + return values(ProvisioningStateEnum.class); } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml index 3714f07982bd..d64f349318b0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: 4a6a2f7d8f3be8e4d18ece57ad33b34f64611c7a +commit: 57f1f65b67c01832427b0b3518ee789b960a5e07 repo: Azure/azure-rest-api-specs additionalDirectories: From 698d9509840f06aeadc9db3b5cf17c29bce301bc Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 06:42:06 +0000 Subject: [PATCH 5/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', and CommitSHA: '7455cf25b43833f380f4cae2fc625109563084ce' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6274714 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 103 +++++++++--------- .../fluent/models/SummaryLogsInner.java | 4 +- .../fluent/models/SummaryLogsProperties.java | 8 +- .../implementation/SummaryLogsImpl.java | 4 +- .../models/ProvisioningStateEnum.java | 10 -- .../loganalytics/models/SummaryLogs.java | 2 +- .../models/SummaryLogsProvisioningState.java | 68 ++++++++++++ ...resourcemanager-loganalytics_metadata.json | 2 +- .../generated/TableInnerTests.java | 2 +- .../generated/TablePropertiesTests.java | 2 +- .../TablesGetWithResponseMockTests.java | 2 +- .../TablesListByWorkspaceMockTests.java | 2 +- .../generated/TablesListResultTests.java | 2 +- .../tsp-location.yaml | 2 +- 14 files changed, 136 insertions(+), 77 deletions(-) create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsProvisioningState.java diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index 8103a1390210..f1a54d889264 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -68,9 +68,9 @@ #### `models.ManagedServiceIdentity` was modified -* `java.util.UUID tenantId()` -> `java.lang.String tenantId()` * `validate()` was removed * `java.util.UUID principalId()` -> `java.lang.String principalId()` +* `java.util.UUID tenantId()` -> `java.lang.String tenantId()` #### `models.UserIdentityProperties` was modified @@ -88,21 +88,21 @@ #### `models.AccessRuleProperties` was modified * `AccessRuleProperties()` was changed to private access +* `withPhoneNumbers(java.util.List)` was removed +* `validate()` was removed * `withEmailAddresses(java.util.List)` was removed * `withAddressPrefixes(java.util.List)` was removed -* `withFullyQualifiedDomainNames(java.util.List)` was removed * `withNetworkSecurityPerimeters(java.util.List)` was removed * `withSubscriptions(java.util.List)` was removed * `withDirection(models.AccessRuleDirection)` was removed -* `validate()` was removed -* `withPhoneNumbers(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed #### `models.PrivateLinkScopedResource` was modified * `PrivateLinkScopedResource()` was changed to private access -* `withScopeId(java.lang.String)` was removed * `withResourceId(java.lang.String)` was removed * `validate()` was removed +* `withScopeId(java.lang.String)` was removed #### `models.ClusterReplicationProperties` was modified @@ -115,9 +115,9 @@ #### `models.AccessRule` was modified * `AccessRule()` was changed to private access +* `withProperties(models.AccessRuleProperties)` was removed * `withName(java.lang.String)` was removed * `validate()` was removed -* `withProperties(models.AccessRuleProperties)` was removed #### `models.StorageInsight$Update` was modified @@ -138,11 +138,11 @@ #### `models.NetworkSecurityPerimeter` was modified * `NetworkSecurityPerimeter()` was changed to private access -* `withId(java.lang.String)` was removed +* `validate()` was removed * `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` -* `withPerimeterGuid(java.util.UUID)` was removed * `withLocation(java.lang.String)` was removed -* `validate()` was removed +* `withId(java.lang.String)` was removed +* `withPerimeterGuid(java.util.UUID)` was removed #### `models.CapacityReservationProperties` was modified @@ -164,8 +164,8 @@ * `MetricName()` was changed to private access * `validate()` was removed -* `withLocalizedValue(java.lang.String)` was removed * `withValue(java.lang.String)` was removed +* `withLocalizedValue(java.lang.String)` was removed #### `models.WorkspacePatch` was modified @@ -178,9 +178,9 @@ #### `models.ResourceAssociation` was modified * `ResourceAssociation()` was changed to private access -* `withName(java.lang.String)` was removed -* `validate()` was removed * `withAccessMode(models.ResourceAssociationAccessMode)` was removed +* `validate()` was removed +* `withName(java.lang.String)` was removed #### `models.RestoredLogs` was modified @@ -193,8 +193,8 @@ #### `models.ResultStatistics` was modified * `ResultStatistics()` was changed to private access -* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()` * `java.lang.Float progress()` -> `java.lang.Double progress()` +* `java.lang.Float scannedGb()` -> `java.lang.Double scannedGb()` * `validate()` was removed #### `models.WorkspaceCapping` was modified @@ -204,34 +204,34 @@ #### `models.CoreSummary` was modified * `CoreSummary()` was changed to private access +* `withNumberOfDocuments(long)` was removed * `withStatus(java.lang.String)` was removed * `validate()` was removed -* `withNumberOfDocuments(long)` was removed #### `models.LinkedServices` was modified * `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.LinkedService deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -* `models.LinkedService deleteById(java.lang.String)` -> `void deleteById(java.lang.String)` * `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 deleteById(java.lang.String)` -> `void deleteById(java.lang.String)` #### `models.NetworkSecurityProfile` was modified * `NetworkSecurityProfile()` was changed to private access -* `withAccessRulesVersion(java.lang.Integer)` was removed -* `withEnabledLogCategories(java.util.List)` was removed +* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed +* `withName(java.lang.String)` was removed * `withAccessRules(java.util.List)` was removed +* `withAccessRulesVersion(java.lang.Integer)` was removed * `validate()` was removed -* `withName(java.lang.String)` was removed -* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed +* `withEnabledLogCategories(java.util.List)` was removed #### `models.NetworkSecurityPerimeterConfigurationProperties` was modified * `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access +* `withResourceAssociation(models.ResourceAssociation)` was removed * `validate()` was removed -* `withProfile(models.NetworkSecurityProfile)` was removed * `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed -* `withResourceAssociation(models.ResourceAssociation)` was removed +* `withProfile(models.NetworkSecurityProfile)` was removed #### `models.SummaryLogsRetryBin` was modified @@ -240,9 +240,9 @@ #### `models.SearchMetadataSchema` was modified * `SearchMetadataSchema()` was changed to private access +* `withName(java.lang.String)` was removed * `validate()` was removed * `withVersion(java.lang.Integer)` was removed -* `withName(java.lang.String)` was removed #### `models.KeyVaultProperties` was modified @@ -250,9 +250,9 @@ #### `models.UserAssignedIdentity` was modified -* `java.util.UUID clientId()` -> `java.lang.String clientId()` * `validate()` was removed * `java.util.UUID principalId()` -> `java.lang.String principalId()` +* `java.util.UUID clientId()` -> `java.lang.String clientId()` #### `models.WorkspaceSku` was modified @@ -265,11 +265,11 @@ #### `models.OperationDisplay` was modified * `OperationDisplay()` was changed to private access -* `validate()` was removed -* `withResource(java.lang.String)` was removed -* `withDescription(java.lang.String)` was removed * `withOperation(java.lang.String)` was removed +* `withResource(java.lang.String)` was removed +* `validate()` was removed * `withProvider(java.lang.String)` was removed +* `withDescription(java.lang.String)` was removed #### `models.ProvisioningIssueProperties` was modified @@ -288,52 +288,56 @@ #### `models.SearchSchemaValue` was modified * `SearchSchemaValue()` was changed to private access +* `withStored(boolean)` was removed +* `withFacet(boolean)` was removed +* `validate()` was removed * `withDisplayName(java.lang.String)` was removed * `withType(java.lang.String)` was removed * `withOwnerType(java.util.List)` was removed -* `withFacet(boolean)` was removed -* `withStored(boolean)` was removed -* `validate()` was removed * `withIndexed(boolean)` was removed * `withName(java.lang.String)` was removed #### `models.SearchMetadata` was modified * `SearchMetadata()` was changed to private access -* `withCoreSummaries(java.util.List)` was removed -* `withTop(java.lang.Long)` was removed -* `withMax(java.lang.Long)` was removed -* `withLastUpdated(java.time.OffsetDateTime)` was removed -* `withAggregatedValueField(java.lang.String)` was removed * `withAggregatedGroupingFields(java.lang.String)` was removed -* `withResultType(java.lang.String)` was removed -* `withStatus(java.lang.String)` was removed +* `withLastUpdated(java.time.OffsetDateTime)` was removed +* `validate()` was removed +* `withMax(java.lang.Long)` was removed * `withSchema(models.SearchMetadataSchema)` was removed +* `withSearchId(java.lang.String)` was removed +* `withTop(java.lang.Long)` was removed +* `withCoreSummaries(java.util.List)` was removed * `withRequestTime(java.lang.Long)` was removed -* `withSort(java.util.List)` was removed -* `validate()` was removed +* `withResultType(java.lang.String)` was removed * `withId(java.lang.String)` was removed -* `withTotal(java.lang.Long)` was removed -* `withEtag(java.lang.String)` was removed -* `withStartTime(java.time.OffsetDateTime)` was removed +* `withStatus(java.lang.String)` was removed * `withSum(java.lang.Long)` was removed -* `withSearchId(java.lang.String)` was removed +* `withStartTime(java.time.OffsetDateTime)` was removed +* `withEtag(java.lang.String)` was removed +* `withAggregatedValueField(java.lang.String)` was removed +* `withSort(java.util.List)` was removed +* `withTotal(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 -* `withXMsStatusLocation(java.lang.String)` was removed * `validate()` was removed +* `withXMsStatusLocation(java.lang.String)` was removed #### `models.StorageInsightStatus` was modified * `StorageInsightStatus()` was changed to private access * `validate()` was removed -* `withState(models.StorageInsightState)` was removed * `withDescription(java.lang.String)` was removed +* `withState(models.StorageInsightState)` was removed #### `models.WorkspacePurgeBody` was modified @@ -356,14 +360,16 @@ ### 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 +* `systemData()` was added #### `models.AzureEntityResource` was modified @@ -399,13 +405,8 @@ #### `models.Workspace` was modified -* `failback(com.azure.core.util.Context)` was added * `failback()` was added - -#### `models.ProvisioningStateEnum` was modified - -* `FAILED` was added -* `CANCELED` was added +* `failback(com.azure.core.util.Context)` was added #### `models.Cluster` was modified 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 7a08fda73809..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 @@ -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(); } 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 e4f1e2de739b..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 @@ -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 { + /** + * Table schema is still being built and updated, table is currently locked for any changes till the procedure is + * done. + */ + public static final SummaryLogsProvisioningState UPDATING = fromString("Updating"); + + /** + * Table state is stable and without changes, table is unlocked and open for new updates. + */ + public static final SummaryLogsProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Table state is deleting. + */ + public static final SummaryLogsProvisioningState DELETING = fromString("Deleting"); + + /** + * Table state is failed. + */ + public static final SummaryLogsProvisioningState FAILED = fromString("Failed"); + + /** + * Table state is canceled. + */ + public static final SummaryLogsProvisioningState CANCELED = fromString("Canceled"); + + /** + * Creates a new instance of SummaryLogsProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SummaryLogsProvisioningState() { + } + + /** + * Creates or finds a SummaryLogsProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding SummaryLogsProvisioningState. + */ + public static SummaryLogsProvisioningState fromString(String name) { + return fromString(name, SummaryLogsProvisioningState.class); + } + + /** + * Gets known SummaryLogsProvisioningState values. + * + * @return known SummaryLogsProvisioningState values. + */ + public static Collection values() { + return values(SummaryLogsProvisioningState.class); + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json index 7141e0a7b73e..dd021bab571c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/resources/META-INF/azure-resourcemanager-loganalytics_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.OperationalInsights":"2025-07-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspace":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ClustersClient":"Microsoft.OperationalInsights.Clusters","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginDelete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginUpdate":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.createOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.delete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroup":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.list":"Microsoft.OperationalInsights.Clusters.list","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.listByResourceGroup":"Microsoft.OperationalInsights.Clusters.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.update":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient":"Microsoft.OperationalInsights.DataExports","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdate":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.delete":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.deleteWithResponse":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.get":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.getWithResponse":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.listByWorkspace":"Microsoft.OperationalInsights.DataExports.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient":"Microsoft.OperationalInsights.DataSources","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdate":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.delete":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.deleteWithResponse":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.get":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.getWithResponse":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.listByWorkspace":"Microsoft.OperationalInsights.DataSources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.list":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.list","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.delete":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.deleteWithResponse":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disable":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disableWithResponse":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enable":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enableWithResponse":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.list":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.listWithResponse":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient":"Microsoft.OperationalInsights.LinkedServices","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginDelete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.delete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.get":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.getWithResponse":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedServices.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.delete":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.deleteWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.get":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.getWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient.list":"Microsoft.OperationalInsights.Workspaces.managementGroupsList","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.get":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.getWithResponse":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationalInsightsManagementClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationsClient":"Microsoft.OperationalInsights.Operations","com.azure.resourcemanager.loganalytics.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.get":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.getWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.put":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.putWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.search":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.search","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.update":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.updateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdate":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutName":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutNameWithResponse":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.list","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.listByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTags":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTagsWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient":"Microsoft.OperationalInsights.SavedSearches","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdate":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.delete":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.deleteWithResponse":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.get":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.getWithResponse":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspace":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SchemasClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.get":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.getWithResponse":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeys":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeysWithResponse":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerate":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerateWithResponse":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdate":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.delete":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.deleteWithResponse":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.get":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.getWithResponse":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.listByWorkspace":"Microsoft.OperationalInsights.StorageInsights.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginDelete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginRetryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginStart":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.createOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.delete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.get":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.getWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.listByWorkspace":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.retryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.start":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stop":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stopWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.TablesClient":"Microsoft.OperationalInsights.Tables","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginDelete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginUpdate":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearch":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearchWithResponse":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.createOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.delete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.get":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.getWithResponse":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.listByWorkspace":"Microsoft.OperationalInsights.Tables.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrate":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrateWithResponse":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.update":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.UsagesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.UsagesClient.list":"Microsoft.OperationalInsights.Workspaces.usagesList","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatus":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatusWithResponse":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purge":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purgeWithResponse":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient":"Microsoft.OperationalInsights.Workspaces","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginDelete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginReconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.createOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.delete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroup":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNspWithResponse":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.list":"Microsoft.OperationalInsights.Workspaces.list","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.Workspaces.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.listNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.reconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.update":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.updateWithResponse":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner":"Microsoft.OperationalInsights.AvailableServiceTier","com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner":"Microsoft.OperationalInsights.Cluster","com.azure.resourcemanager.loganalytics.fluent.models.ClusterPatchProperties":"Microsoft.OperationalInsights.ClusterPatchProperties","com.azure.resourcemanager.loganalytics.fluent.models.ClusterProperties":"Microsoft.OperationalInsights.ClusterProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner":"Microsoft.OperationalInsights.DataExport","com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties":"Microsoft.OperationalInsights.DataExportProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner":"Microsoft.OperationalInsights.DataSource","com.azure.resourcemanager.loganalytics.fluent.models.Destination":"Microsoft.OperationalInsights.Destination","com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata":"Microsoft.OperationalInsights.DestinationMetaData","com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner":"Microsoft.OperationalInsights.IntelligencePack","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner":"Microsoft.OperationalInsights.LinkedService","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties":"Microsoft.OperationalInsights.LinkedServiceProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsProperties":"Microsoft.OperationalInsights.LinkedStorageAccountsProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner":"Microsoft.OperationalInsights.LinkedStorageAccountsResource","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPack","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackProperties","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuery","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryProperties","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner":"Microsoft.OperationalInsights.ManagementGroup","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupProperties":"Microsoft.OperationalInsights.ManagementGroupProperties","com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.loganalytics.fluent.models.OperationInner":"Microsoft.OperationalInsights.Operation","com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner":"Microsoft.OperationalInsights.OperationStatus","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner":"Microsoft.OperationalInsights.SavedSearch","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchProperties":"Microsoft.OperationalInsights.SavedSearchProperties","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner":"Microsoft.OperationalInsights.SavedSearchesListResult","com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner":"Microsoft.OperationalInsights.SearchGetSchemaResponse","com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner":"Microsoft.OperationalInsights.SharedKeys","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner":"Microsoft.OperationalInsights.StorageInsight","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightProperties":"Microsoft.OperationalInsights.StorageInsightProperties","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner":"Microsoft.OperationalInsights.SummaryLogs","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsProperties":"Microsoft.OperationalInsights.SummaryLogsProperties","com.azure.resourcemanager.loganalytics.fluent.models.TableInner":"Microsoft.OperationalInsights.Table","com.azure.resourcemanager.loganalytics.fluent.models.TableProperties":"Microsoft.OperationalInsights.TableProperties","com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner":"Microsoft.OperationalInsights.UsageMetric","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner":"Microsoft.OperationalInsights.Workspace","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceProperties":"Microsoft.OperationalInsights.WorkspaceProperties","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeResponse","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeStatusResponse","com.azure.resourcemanager.loganalytics.implementation.OperationalInsightsManagementClientBuilder":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult":"Microsoft.OperationalInsights.DataExportListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult":"Microsoft.OperationalInsights.LinkedServiceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult":"Microsoft.OperationalInsights.LinkedStorageAccountsListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult","com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult":"Microsoft.OperationalInsights.OperationListResult","com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult":"Microsoft.OperationalInsights.StorageInsightListResult","com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult":"Microsoft.OperationalInsights.TablesListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult":"Microsoft.OperationalInsights.WorkspaceListManagementGroupsResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult":"Microsoft.OperationalInsights.WorkspaceListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult":"Microsoft.OperationalInsights.WorkspaceListUsagesResult","com.azure.resourcemanager.loganalytics.models.AccessRule":"Azure.ResourceManager.CommonTypes.AccessRule","com.azure.resourcemanager.loganalytics.models.AccessRuleDirection":"Azure.ResourceManager.CommonTypes.AccessRuleDirection","com.azure.resourcemanager.loganalytics.models.AccessRuleProperties":"Azure.ResourceManager.CommonTypes.AccessRuleProperties","com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem":"AccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace":"Microsoft.OperationalInsights.AssociatedWorkspace","com.azure.resourcemanager.loganalytics.models.AzureEntityResource":"Microsoft.OperationalInsights.AzureEntityResource","com.azure.resourcemanager.loganalytics.models.BillingType":"Microsoft.OperationalInsights.BillingType","com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties":"Microsoft.OperationalInsights.CapacityReservationProperties","com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus":"Microsoft.OperationalInsights.ClusterEntityStatus","com.azure.resourcemanager.loganalytics.models.ClusterPatch":"Microsoft.OperationalInsights.ClusterPatch","com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties":"Microsoft.OperationalInsights.ClusterReplicationProperties","com.azure.resourcemanager.loganalytics.models.ClusterReplicationState":"Microsoft.OperationalInsights.ClusterReplicationState","com.azure.resourcemanager.loganalytics.models.ClusterSku":"Microsoft.OperationalInsights.ClusterSku","com.azure.resourcemanager.loganalytics.models.ClusterSkuNameEnum":"Microsoft.OperationalInsights.ClusterSkuNameEnum","com.azure.resourcemanager.loganalytics.models.Column":"Microsoft.OperationalInsights.Column","com.azure.resourcemanager.loganalytics.models.ColumnDataTypeHintEnum":"Microsoft.OperationalInsights.ColumnDataTypeHintEnum","com.azure.resourcemanager.loganalytics.models.ColumnTypeEnum":"Microsoft.OperationalInsights.ColumnTypeEnum","com.azure.resourcemanager.loganalytics.models.CoreSummary":"Microsoft.OperationalInsights.CoreSummary","com.azure.resourcemanager.loganalytics.models.DataIngestionStatus":"Microsoft.OperationalInsights.DataIngestionStatus","com.azure.resourcemanager.loganalytics.models.DataSourceKind":"Microsoft.OperationalInsights.DataSourceKind","com.azure.resourcemanager.loganalytics.models.DataSourceType":"Microsoft.OperationalInsights.DataSourceType","com.azure.resourcemanager.loganalytics.models.Identity":"Microsoft.OperationalInsights.Identity","com.azure.resourcemanager.loganalytics.models.IdentityType":"Microsoft.OperationalInsights.IdentityType","com.azure.resourcemanager.loganalytics.models.IssueType":"Azure.ResourceManager.CommonTypes.IssueType","com.azure.resourcemanager.loganalytics.models.KeyVaultProperties":"Microsoft.OperationalInsights.KeyVaultProperties","com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus":"Microsoft.OperationalInsights.LinkedServiceEntityStatus","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryPropertiesRelated","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchProperties","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.loganalytics.models.MetricName":"Microsoft.OperationalInsights.MetricName","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProvisioningState":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState","com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile":"Azure.ResourceManager.CommonTypes.NetworkSecurityProfile","com.azure.resourcemanager.loganalytics.models.OperationDisplay":"Microsoft.OperationalInsights.OperationDisplay","com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource":"Microsoft.OperationalInsights.PrivateLinkScopedResource","com.azure.resourcemanager.loganalytics.models.ProvisioningIssue":"Azure.ResourceManager.CommonTypes.ProvisioningIssue","com.azure.resourcemanager.loganalytics.models.ProvisioningIssueProperties":"Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties","com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum":"CompatibleProvisioningStateEnum","com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType":"Microsoft.OperationalInsights.PublicNetworkAccessType","com.azure.resourcemanager.loganalytics.models.PurgeState":"Microsoft.OperationalInsights.PurgeState","com.azure.resourcemanager.loganalytics.models.ResourceAssociation":"Azure.ResourceManager.CommonTypes.ResourceAssociation","com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode":"Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode","com.azure.resourcemanager.loganalytics.models.RestoredLogs":"Microsoft.OperationalInsights.RestoredLogs","com.azure.resourcemanager.loganalytics.models.ResultStatistics":"Microsoft.OperationalInsights.ResultStatistics","com.azure.resourcemanager.loganalytics.models.RuleDefinition":"Microsoft.OperationalInsights.RuleDefinition","com.azure.resourcemanager.loganalytics.models.RuleTypeEnum":"Microsoft.OperationalInsights.RuleTypeEnum","com.azure.resourcemanager.loganalytics.models.Schema":"Microsoft.OperationalInsights.Schema","com.azure.resourcemanager.loganalytics.models.SearchMetadata":"Microsoft.OperationalInsights.SearchMetadata","com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema":"Microsoft.OperationalInsights.SearchMetadataSchema","com.azure.resourcemanager.loganalytics.models.SearchResults":"Microsoft.OperationalInsights.SearchResults","com.azure.resourcemanager.loganalytics.models.SearchSchemaValue":"Microsoft.OperationalInsights.SearchSchemaValue","com.azure.resourcemanager.loganalytics.models.SearchSort":"Microsoft.OperationalInsights.SearchSort","com.azure.resourcemanager.loganalytics.models.SearchSortEnum":"Microsoft.OperationalInsights.SearchSortEnum","com.azure.resourcemanager.loganalytics.models.Severity":"Azure.ResourceManager.CommonTypes.Severity","com.azure.resourcemanager.loganalytics.models.SkuNameEnum":"Microsoft.OperationalInsights.SkuNameEnum","com.azure.resourcemanager.loganalytics.models.SourceEnum":"Microsoft.OperationalInsights.SourceEnum","com.azure.resourcemanager.loganalytics.models.StatusCodeEnum":"Microsoft.OperationalInsights.StatusCodeEnum","com.azure.resourcemanager.loganalytics.models.StorageAccount":"Microsoft.OperationalInsights.StorageAccount","com.azure.resourcemanager.loganalytics.models.StorageInsightState":"Microsoft.OperationalInsights.StorageInsightState","com.azure.resourcemanager.loganalytics.models.StorageInsightStatus":"Microsoft.OperationalInsights.StorageInsightStatus","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin":"Microsoft.OperationalInsights.SummaryLogsRetryBin","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBinProperties":"Microsoft.OperationalInsights.SummaryLogsRetryBinProperties","com.azure.resourcemanager.loganalytics.models.TablePlanEnum":"Microsoft.OperationalInsights.TablePlanEnum","com.azure.resourcemanager.loganalytics.models.TableSubTypeEnum":"Microsoft.OperationalInsights.TableSubTypeEnum","com.azure.resourcemanager.loganalytics.models.TableTypeEnum":"Microsoft.OperationalInsights.TableTypeEnum","com.azure.resourcemanager.loganalytics.models.Tag":"Microsoft.OperationalInsights.Tag","com.azure.resourcemanager.loganalytics.models.TagsResource":"Microsoft.OperationalInsights.TagsResource","com.azure.resourcemanager.loganalytics.models.TimeSelectorEnum":"Microsoft.OperationalInsights.TimeSelectorEnum","com.azure.resourcemanager.loganalytics.models.Type":"Microsoft.OperationalInsights.Type","com.azure.resourcemanager.loganalytics.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.loganalytics.models.UserIdentityProperties":"Microsoft.OperationalInsights.UserIdentityProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceCapping":"Microsoft.OperationalInsights.WorkspaceCapping","com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus":"Microsoft.OperationalInsights.WorkspaceEntityStatus","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties":"Microsoft.OperationalInsights.WorkspaceFailoverProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverState":"Microsoft.OperationalInsights.WorkspaceFailoverState","com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures":"Microsoft.OperationalInsights.WorkspaceFeatures","com.azure.resourcemanager.loganalytics.models.WorkspacePatch":"Microsoft.OperationalInsights.WorkspacePatch","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody":"Microsoft.OperationalInsights.WorkspacePurgeBody","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters":"Microsoft.OperationalInsights.WorkspacePurgeBodyFilters","com.azure.resourcemanager.loganalytics.models.WorkspacePurgesPurgeHeaders":null,"com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties":"Microsoft.OperationalInsights.WorkspaceReplicationProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationState":"Microsoft.OperationalInsights.WorkspaceReplicationState","com.azure.resourcemanager.loganalytics.models.WorkspaceSku":"Microsoft.OperationalInsights.WorkspaceSku","com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum":"Microsoft.OperationalInsights.WorkspaceSkuNameEnum"},"generatedFiles":["src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java","src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatuses.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java","src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleDefinition.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchResults.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSchemaValue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.OperationalInsights":"2025-07-01"},"crossLanguageDefinitions":{"com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspace":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.AvailableServiceTiersClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.Workspaces.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ClustersClient":"Microsoft.OperationalInsights.Clusters","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginDelete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.beginUpdate":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.createOrUpdate":"Microsoft.OperationalInsights.Clusters.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.delete":"Microsoft.OperationalInsights.Clusters.delete","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroup":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Clusters.get","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.list":"Microsoft.OperationalInsights.Clusters.list","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.listByResourceGroup":"Microsoft.OperationalInsights.Clusters.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.ClustersClient.update":"Microsoft.OperationalInsights.Clusters.update","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient":"Microsoft.OperationalInsights.DataExports","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdate":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataExports.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.delete":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.deleteWithResponse":"Microsoft.OperationalInsights.DataExports.delete","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.get":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.getWithResponse":"Microsoft.OperationalInsights.DataExports.get","com.azure.resourcemanager.loganalytics.fluent.DataExportsClient.listByWorkspace":"Microsoft.OperationalInsights.DataExports.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient":"Microsoft.OperationalInsights.DataSources","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdate":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.DataSources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.delete":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.deleteWithResponse":"Microsoft.OperationalInsights.DataSources.delete","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.get":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.getWithResponse":"Microsoft.OperationalInsights.DataSources.get","com.azure.resourcemanager.loganalytics.fluent.DataSourcesClient.listByWorkspace":"Microsoft.OperationalInsights.DataSources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.list":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.list","com.azure.resourcemanager.loganalytics.fluent.DeletedWorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.DeletedWorkspacesOperationGroup.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.delete":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.GatewaysClient.deleteWithResponse":"Microsoft.OperationalInsights.Workspaces.gatewaysDelete","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disable":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.disableWithResponse":"Microsoft.OperationalInsights.Workspaces.disable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enable":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.enableWithResponse":"Microsoft.OperationalInsights.Workspaces.enable","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.list":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.IntelligencePacksClient.listWithResponse":"Microsoft.OperationalInsights.Workspaces.intelligencePacksList","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient":"Microsoft.OperationalInsights.LinkedServices","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.beginDelete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedServices.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.delete":"Microsoft.OperationalInsights.LinkedServices.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.get":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.getWithResponse":"Microsoft.OperationalInsights.LinkedServices.get","com.azure.resourcemanager.loganalytics.fluent.LinkedServicesClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedServices.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdate":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.delete":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.deleteWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.delete","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.get":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.getWithResponse":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.get","com.azure.resourcemanager.loganalytics.fluent.LinkedStorageAccountsClient.listByWorkspace":"Microsoft.OperationalInsights.LinkedStorageAccountsResources.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.ManagementGroupsClient.list":"Microsoft.OperationalInsights.Workspaces.managementGroupsList","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.get":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationStatusesClient.getWithResponse":"Microsoft.OperationalInsights.OperationStatusesOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.OperationalInsightsManagementClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.OperationsClient":"Microsoft.OperationalInsights.Operations","com.azure.resourcemanager.loganalytics.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.delete","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.get":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.getWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.get","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.list","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.put":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.putWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.put","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.search":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.search","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.update":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueriesClient.updateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueries.update","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdate":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutName":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.createOrUpdateWithoutNameWithResponse":"Microsoft.OperationalInsights.QueryPacksOperationGroup.createOrUpdateWithoutName","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.delete":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.deleteWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.delete","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.get","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.list":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.list","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.listByResourceGroup":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTags":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.QueryPacksClient.updateTagsWithResponse":"Microsoft.OperationalInsights.LogAnalyticsQueryPacks.updateTags","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient":"Microsoft.OperationalInsights.SavedSearches","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdate":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.SavedSearches.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.delete":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.deleteWithResponse":"Microsoft.OperationalInsights.SavedSearches.delete","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.get":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.getWithResponse":"Microsoft.OperationalInsights.SavedSearches.get","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspace":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SavedSearchesClient.listByWorkspaceWithResponse":"Microsoft.OperationalInsights.SavedSearches.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SchemasClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.get":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SchemasClient.getWithResponse":"Microsoft.OperationalInsights.Workspaces.schemaGet","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeys":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.getSharedKeysWithResponse":"Microsoft.OperationalInsights.Workspaces.getSharedKeys","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerate":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.SharedKeysOperationsClient.regenerateWithResponse":"Microsoft.OperationalInsights.Workspaces.regenerate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdate":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.createOrUpdateWithResponse":"Microsoft.OperationalInsights.StorageInsights.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.delete":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.deleteWithResponse":"Microsoft.OperationalInsights.StorageInsights.delete","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.get":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.getWithResponse":"Microsoft.OperationalInsights.StorageInsights.get","com.azure.resourcemanager.loganalytics.fluent.StorageInsightConfigsClient.listByWorkspace":"Microsoft.OperationalInsights.StorageInsights.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginDelete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginRetryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.beginStart":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.createOrUpdate":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.delete":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.delete","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.get":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.getWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.get","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.listByWorkspace":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.retryBin":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.retryBin","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.start":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.start","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stop":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.SummaryLogsOperationsClient.stopWithResponse":"Microsoft.OperationalInsights.SummaryLogsOperationGroup.stop","com.azure.resourcemanager.loganalytics.fluent.TablesClient":"Microsoft.OperationalInsights.Tables","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginDelete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.beginUpdate":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearch":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.cancelSearchWithResponse":"Microsoft.OperationalInsights.Tables.cancelSearch","com.azure.resourcemanager.loganalytics.fluent.TablesClient.createOrUpdate":"Microsoft.OperationalInsights.Tables.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.delete":"Microsoft.OperationalInsights.Tables.delete","com.azure.resourcemanager.loganalytics.fluent.TablesClient.get":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.getWithResponse":"Microsoft.OperationalInsights.Tables.get","com.azure.resourcemanager.loganalytics.fluent.TablesClient.listByWorkspace":"Microsoft.OperationalInsights.Tables.listByWorkspace","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrate":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.migrateWithResponse":"Microsoft.OperationalInsights.Tables.migrate","com.azure.resourcemanager.loganalytics.fluent.TablesClient.update":"Microsoft.OperationalInsights.Tables.update","com.azure.resourcemanager.loganalytics.fluent.UsagesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.UsagesClient.list":"Microsoft.OperationalInsights.Workspaces.usagesList","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatus":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.getPurgeStatusWithResponse":"Microsoft.OperationalInsights.Workspaces.getPurgeStatus","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purge":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacePurgesClient.purgeWithResponse":"Microsoft.OperationalInsights.Workspaces.purge","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient":"Microsoft.OperationalInsights.Workspaces","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginCreateOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginDelete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginFailover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.beginReconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.createOrUpdate":"Microsoft.OperationalInsights.Workspaces.createOrUpdate","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.delete":"Microsoft.OperationalInsights.Workspaces.delete","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failback":"Microsoft.OperationalInsights.Workspaces.failback","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.failover":"Microsoft.OperationalInsights.WorkspacesOperationGroup.failover","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroup":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getByResourceGroupWithResponse":"Microsoft.OperationalInsights.Workspaces.get","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.getNspWithResponse":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.getNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.list":"Microsoft.OperationalInsights.Workspaces.list","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listByResourceGroup":"Microsoft.OperationalInsights.Workspaces.listByResourceGroup","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.listNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.listNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.reconcileNsp":"Microsoft.OperationalInsights.NetworkSecurityPerimeterConfigurations.reconcileNSP","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.update":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.WorkspacesClient.updateWithResponse":"Microsoft.OperationalInsights.Workspaces.update","com.azure.resourcemanager.loganalytics.fluent.models.AvailableServiceTierInner":"Microsoft.OperationalInsights.AvailableServiceTier","com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner":"Microsoft.OperationalInsights.Cluster","com.azure.resourcemanager.loganalytics.fluent.models.ClusterPatchProperties":"Microsoft.OperationalInsights.ClusterPatchProperties","com.azure.resourcemanager.loganalytics.fluent.models.ClusterProperties":"Microsoft.OperationalInsights.ClusterProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataExportInner":"Microsoft.OperationalInsights.DataExport","com.azure.resourcemanager.loganalytics.fluent.models.DataExportProperties":"Microsoft.OperationalInsights.DataExportProperties","com.azure.resourcemanager.loganalytics.fluent.models.DataSourceInner":"Microsoft.OperationalInsights.DataSource","com.azure.resourcemanager.loganalytics.fluent.models.Destination":"Microsoft.OperationalInsights.Destination","com.azure.resourcemanager.loganalytics.fluent.models.DestinationMetadata":"Microsoft.OperationalInsights.DestinationMetaData","com.azure.resourcemanager.loganalytics.fluent.models.IntelligencePackInner":"Microsoft.OperationalInsights.IntelligencePack","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceInner":"Microsoft.OperationalInsights.LinkedService","com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties":"Microsoft.OperationalInsights.LinkedServiceProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsProperties":"Microsoft.OperationalInsights.LinkedStorageAccountsProperties","com.azure.resourcemanager.loganalytics.fluent.models.LinkedStorageAccountsResourceInner":"Microsoft.OperationalInsights.LinkedStorageAccountsResource","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPack","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackProperties","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuery","com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryProperties","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupInner":"Microsoft.OperationalInsights.ManagementGroup","com.azure.resourcemanager.loganalytics.fluent.models.ManagementGroupProperties":"Microsoft.OperationalInsights.ManagementGroupProperties","com.azure.resourcemanager.loganalytics.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.loganalytics.fluent.models.OperationInner":"Microsoft.OperationalInsights.Operation","com.azure.resourcemanager.loganalytics.fluent.models.OperationStatusInner":"Microsoft.OperationalInsights.OperationStatus","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchInner":"Microsoft.OperationalInsights.SavedSearch","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchProperties":"Microsoft.OperationalInsights.SavedSearchProperties","com.azure.resourcemanager.loganalytics.fluent.models.SavedSearchesListResultInner":"Microsoft.OperationalInsights.SavedSearchesListResult","com.azure.resourcemanager.loganalytics.fluent.models.SearchGetSchemaResponseInner":"Microsoft.OperationalInsights.SearchGetSchemaResponse","com.azure.resourcemanager.loganalytics.fluent.models.SharedKeysInner":"Microsoft.OperationalInsights.SharedKeys","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightInner":"Microsoft.OperationalInsights.StorageInsight","com.azure.resourcemanager.loganalytics.fluent.models.StorageInsightProperties":"Microsoft.OperationalInsights.StorageInsightProperties","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsInner":"Microsoft.OperationalInsights.SummaryLogs","com.azure.resourcemanager.loganalytics.fluent.models.SummaryLogsProperties":"Microsoft.OperationalInsights.SummaryLogsProperties","com.azure.resourcemanager.loganalytics.fluent.models.TableInner":"Microsoft.OperationalInsights.Table","com.azure.resourcemanager.loganalytics.fluent.models.TableProperties":"Microsoft.OperationalInsights.TableProperties","com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner":"Microsoft.OperationalInsights.UsageMetric","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner":"Microsoft.OperationalInsights.Workspace","com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceProperties":"Microsoft.OperationalInsights.WorkspaceProperties","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeResponse","com.azure.resourcemanager.loganalytics.fluent.models.WorkspacePurgeStatusResponseInner":"Microsoft.OperationalInsights.WorkspacePurgeStatusResponse","com.azure.resourcemanager.loganalytics.implementation.OperationalInsightsManagementClientBuilder":"Microsoft.OperationalInsights","com.azure.resourcemanager.loganalytics.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataExportListResult":"Microsoft.OperationalInsights.DataExportListResult","com.azure.resourcemanager.loganalytics.implementation.models.DataSourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedServiceListResult":"Microsoft.OperationalInsights.LinkedServiceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LinkedStorageAccountsListResult":"Microsoft.OperationalInsights.LinkedStorageAccountsListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.LogAnalyticsQueryPackQueryListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.NetworkSecurityPerimeterConfigurationListResult":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult","com.azure.resourcemanager.loganalytics.implementation.models.OperationListResult":"Microsoft.OperationalInsights.OperationListResult","com.azure.resourcemanager.loganalytics.implementation.models.StorageInsightListResult":"Microsoft.OperationalInsights.StorageInsightListResult","com.azure.resourcemanager.loganalytics.implementation.models.SummaryLogsListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.loganalytics.implementation.models.TablesListResult":"Microsoft.OperationalInsights.TablesListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListManagementGroupsResult":"Microsoft.OperationalInsights.WorkspaceListManagementGroupsResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListResult":"Microsoft.OperationalInsights.WorkspaceListResult","com.azure.resourcemanager.loganalytics.implementation.models.WorkspaceListUsagesResult":"Microsoft.OperationalInsights.WorkspaceListUsagesResult","com.azure.resourcemanager.loganalytics.models.AccessRule":"Azure.ResourceManager.CommonTypes.AccessRule","com.azure.resourcemanager.loganalytics.models.AccessRuleDirection":"Azure.ResourceManager.CommonTypes.AccessRuleDirection","com.azure.resourcemanager.loganalytics.models.AccessRuleProperties":"Azure.ResourceManager.CommonTypes.AccessRuleProperties","com.azure.resourcemanager.loganalytics.models.AccessRulePropertiesSubscriptionsItem":"AccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace":"Microsoft.OperationalInsights.AssociatedWorkspace","com.azure.resourcemanager.loganalytics.models.AzureEntityResource":"Microsoft.OperationalInsights.AzureEntityResource","com.azure.resourcemanager.loganalytics.models.BillingType":"Microsoft.OperationalInsights.BillingType","com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties":"Microsoft.OperationalInsights.CapacityReservationProperties","com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus":"Microsoft.OperationalInsights.ClusterEntityStatus","com.azure.resourcemanager.loganalytics.models.ClusterPatch":"Microsoft.OperationalInsights.ClusterPatch","com.azure.resourcemanager.loganalytics.models.ClusterReplicationProperties":"Microsoft.OperationalInsights.ClusterReplicationProperties","com.azure.resourcemanager.loganalytics.models.ClusterReplicationState":"Microsoft.OperationalInsights.ClusterReplicationState","com.azure.resourcemanager.loganalytics.models.ClusterSku":"Microsoft.OperationalInsights.ClusterSku","com.azure.resourcemanager.loganalytics.models.ClusterSkuNameEnum":"Microsoft.OperationalInsights.ClusterSkuNameEnum","com.azure.resourcemanager.loganalytics.models.Column":"Microsoft.OperationalInsights.Column","com.azure.resourcemanager.loganalytics.models.ColumnDataTypeHintEnum":"Microsoft.OperationalInsights.ColumnDataTypeHintEnum","com.azure.resourcemanager.loganalytics.models.ColumnTypeEnum":"Microsoft.OperationalInsights.ColumnTypeEnum","com.azure.resourcemanager.loganalytics.models.CoreSummary":"Microsoft.OperationalInsights.CoreSummary","com.azure.resourcemanager.loganalytics.models.DataIngestionStatus":"Microsoft.OperationalInsights.DataIngestionStatus","com.azure.resourcemanager.loganalytics.models.DataSourceKind":"Microsoft.OperationalInsights.DataSourceKind","com.azure.resourcemanager.loganalytics.models.DataSourceType":"Microsoft.OperationalInsights.DataSourceType","com.azure.resourcemanager.loganalytics.models.Identity":"Microsoft.OperationalInsights.Identity","com.azure.resourcemanager.loganalytics.models.IdentityType":"Microsoft.OperationalInsights.IdentityType","com.azure.resourcemanager.loganalytics.models.IssueType":"Azure.ResourceManager.CommonTypes.IssueType","com.azure.resourcemanager.loganalytics.models.KeyVaultProperties":"Microsoft.OperationalInsights.KeyVaultProperties","com.azure.resourcemanager.loganalytics.models.LinkedServiceEntityStatus":"Microsoft.OperationalInsights.LinkedServiceEntityStatus","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQueryPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQueryPropertiesRelated","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchProperties":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchProperties","com.azure.resourcemanager.loganalytics.models.LogAnalyticsQueryPackQuerySearchPropertiesRelated":"Microsoft.OperationalInsights.LogAnalyticsQueryPackQuerySearchPropertiesRelated","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.loganalytics.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.loganalytics.models.MetricName":"Microsoft.OperationalInsights.MetricName","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeter":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProperties":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.loganalytics.models.NetworkSecurityPerimeterConfigurationProvisioningState":"Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState","com.azure.resourcemanager.loganalytics.models.NetworkSecurityProfile":"Azure.ResourceManager.CommonTypes.NetworkSecurityProfile","com.azure.resourcemanager.loganalytics.models.OperationDisplay":"Microsoft.OperationalInsights.OperationDisplay","com.azure.resourcemanager.loganalytics.models.PrivateLinkScopedResource":"Microsoft.OperationalInsights.PrivateLinkScopedResource","com.azure.resourcemanager.loganalytics.models.ProvisioningIssue":"Azure.ResourceManager.CommonTypes.ProvisioningIssue","com.azure.resourcemanager.loganalytics.models.ProvisioningIssueProperties":"Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties","com.azure.resourcemanager.loganalytics.models.ProvisioningStateEnum":"Microsoft.OperationalInsights.OperationalInsightsTableProvisioningState","com.azure.resourcemanager.loganalytics.models.PublicNetworkAccessType":"Microsoft.OperationalInsights.PublicNetworkAccessType","com.azure.resourcemanager.loganalytics.models.PurgeState":"Microsoft.OperationalInsights.PurgeState","com.azure.resourcemanager.loganalytics.models.ResourceAssociation":"Azure.ResourceManager.CommonTypes.ResourceAssociation","com.azure.resourcemanager.loganalytics.models.ResourceAssociationAccessMode":"Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode","com.azure.resourcemanager.loganalytics.models.RestoredLogs":"Microsoft.OperationalInsights.RestoredLogs","com.azure.resourcemanager.loganalytics.models.ResultStatistics":"Microsoft.OperationalInsights.ResultStatistics","com.azure.resourcemanager.loganalytics.models.RuleDefinition":"Microsoft.OperationalInsights.RuleDefinition","com.azure.resourcemanager.loganalytics.models.RuleTypeEnum":"Microsoft.OperationalInsights.RuleTypeEnum","com.azure.resourcemanager.loganalytics.models.Schema":"Microsoft.OperationalInsights.Schema","com.azure.resourcemanager.loganalytics.models.SearchMetadata":"Microsoft.OperationalInsights.SearchMetadata","com.azure.resourcemanager.loganalytics.models.SearchMetadataSchema":"Microsoft.OperationalInsights.SearchMetadataSchema","com.azure.resourcemanager.loganalytics.models.SearchResults":"Microsoft.OperationalInsights.SearchResults","com.azure.resourcemanager.loganalytics.models.SearchSchemaValue":"Microsoft.OperationalInsights.SearchSchemaValue","com.azure.resourcemanager.loganalytics.models.SearchSort":"Microsoft.OperationalInsights.SearchSort","com.azure.resourcemanager.loganalytics.models.SearchSortEnum":"Microsoft.OperationalInsights.SearchSortEnum","com.azure.resourcemanager.loganalytics.models.Severity":"Azure.ResourceManager.CommonTypes.Severity","com.azure.resourcemanager.loganalytics.models.SkuNameEnum":"Microsoft.OperationalInsights.SkuNameEnum","com.azure.resourcemanager.loganalytics.models.SourceEnum":"Microsoft.OperationalInsights.SourceEnum","com.azure.resourcemanager.loganalytics.models.StatusCodeEnum":"Microsoft.OperationalInsights.StatusCodeEnum","com.azure.resourcemanager.loganalytics.models.StorageAccount":"Microsoft.OperationalInsights.StorageAccount","com.azure.resourcemanager.loganalytics.models.StorageInsightState":"Microsoft.OperationalInsights.StorageInsightState","com.azure.resourcemanager.loganalytics.models.StorageInsightStatus":"Microsoft.OperationalInsights.StorageInsightStatus","com.azure.resourcemanager.loganalytics.models.SummaryLogsProvisioningState":"Microsoft.OperationalInsights.ProvisioningStateEnum","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBin":"Microsoft.OperationalInsights.SummaryLogsRetryBin","com.azure.resourcemanager.loganalytics.models.SummaryLogsRetryBinProperties":"Microsoft.OperationalInsights.SummaryLogsRetryBinProperties","com.azure.resourcemanager.loganalytics.models.TablePlanEnum":"Microsoft.OperationalInsights.TablePlanEnum","com.azure.resourcemanager.loganalytics.models.TableSubTypeEnum":"Microsoft.OperationalInsights.TableSubTypeEnum","com.azure.resourcemanager.loganalytics.models.TableTypeEnum":"Microsoft.OperationalInsights.TableTypeEnum","com.azure.resourcemanager.loganalytics.models.Tag":"Microsoft.OperationalInsights.Tag","com.azure.resourcemanager.loganalytics.models.TagsResource":"Microsoft.OperationalInsights.TagsResource","com.azure.resourcemanager.loganalytics.models.TimeSelectorEnum":"Microsoft.OperationalInsights.TimeSelectorEnum","com.azure.resourcemanager.loganalytics.models.Type":"Microsoft.OperationalInsights.Type","com.azure.resourcemanager.loganalytics.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.loganalytics.models.UserIdentityProperties":"Microsoft.OperationalInsights.UserIdentityProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceCapping":"Microsoft.OperationalInsights.WorkspaceCapping","com.azure.resourcemanager.loganalytics.models.WorkspaceEntityStatus":"Microsoft.OperationalInsights.WorkspaceEntityStatus","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverProperties":"Microsoft.OperationalInsights.WorkspaceFailoverProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceFailoverState":"Microsoft.OperationalInsights.WorkspaceFailoverState","com.azure.resourcemanager.loganalytics.models.WorkspaceFeatures":"Microsoft.OperationalInsights.WorkspaceFeatures","com.azure.resourcemanager.loganalytics.models.WorkspacePatch":"Microsoft.OperationalInsights.WorkspacePatch","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBody":"Microsoft.OperationalInsights.WorkspacePurgeBody","com.azure.resourcemanager.loganalytics.models.WorkspacePurgeBodyFilters":"Microsoft.OperationalInsights.WorkspacePurgeBodyFilters","com.azure.resourcemanager.loganalytics.models.WorkspacePurgesPurgeHeaders":null,"com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties":"Microsoft.OperationalInsights.WorkspaceReplicationProperties","com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationState":"Microsoft.OperationalInsights.WorkspaceReplicationState","com.azure.resourcemanager.loganalytics.models.WorkspaceSku":"Microsoft.OperationalInsights.WorkspaceSku","com.azure.resourcemanager.loganalytics.models.WorkspaceSkuNameEnum":"Microsoft.OperationalInsights.WorkspaceSkuNameEnum"},"generatedFiles":["src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/AvailableServiceTiersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataExportsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DataSourcesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/DeletedWorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/GatewaysClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/IntelligencePacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedServicesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/LinkedStorageAccountsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/ManagementGroupsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationStatusesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueriesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/QueryPacksClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SavedSearchesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SchemasClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SharedKeysOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/StorageInsightConfigsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/SummaryLogsOperationsClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/TablesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacePurgesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/WorkspacesClient.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/AvailableServiceTierInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterPatchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataExportProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DataSourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/Destination.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/DestinationMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/IntelligencePackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedServiceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LinkedStorageAccountsResourceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/LogAnalyticsQueryPackQueryProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ManagementGroupProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SavedSearchesListResultInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SearchGetSchemaResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SharedKeysInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/StorageInsightProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/SummaryLogsProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/TableProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/UsageMetricInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspacePurgeStatusResponseInner.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/fluent/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTierImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServiceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsResourceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/LogAnalyticsQueryPackQueryImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueriesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/QueryPacksImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesListResultImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SearchGetSchemaResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/SummaryLogsOperationsImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TableImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsageMetricImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgeStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesImpl.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataExportListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/DataSourceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedServiceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LinkedStorageAccountsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/LogAnalyticsQueryPackQueryListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/StorageInsightListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/SummaryLogsListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/TablesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListManagementGroupsResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/models/WorkspaceListUsagesResult.java","src/main/java/com/azure/resourcemanager/loganalytics/implementation/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRule.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTier.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AvailableServiceTiers.java","src/main/java/com/azure/resourcemanager/loganalytics/models/AzureEntityResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Clusters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Column.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnDataTypeHintEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ColumnTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/CoreSummary.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExport.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataExports.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataIngestionStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceKind.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DataSources.java","src/main/java/com/azure/resourcemanager/loganalytics/models/DeletedWorkspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Gateways.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IntelligencePacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/IssueType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedService.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServiceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedServices.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccounts.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LinkedStorageAccountsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPack.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuery.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQueryPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/LogAnalyticsQueryPackQuerySearchPropertiesRelated.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroup.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ManagementGroups.java","src/main/java/com/azure/resourcemanager/loganalytics/models/MetricName.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/OperationStatuses.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Operations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PrivateLinkScopedResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ProvisioningStateEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PublicNetworkAccessType.java","src/main/java/com/azure/resourcemanager/loganalytics/models/PurgeState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Queries.java","src/main/java/com/azure/resourcemanager/loganalytics/models/QueryPacks.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RestoredLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/ResultStatistics.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleDefinition.java","src/main/java/com/azure/resourcemanager/loganalytics/models/RuleTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearches.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SavedSearchesListResult.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Schemas.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchGetSchemaResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadata.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchMetadataSchema.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchResults.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSchemaValue.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSort.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SearchSortEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Severity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeys.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SharedKeysOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SourceEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StatusCodeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageAccount.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsight.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightConfigs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/StorageInsightStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogs.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsOperations.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsProvisioningState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBin.java","src/main/java/com/azure/resourcemanager/loganalytics/models/SummaryLogsRetryBinProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Table.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TablePlanEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableSubTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TableTypeEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tables.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Tag.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TagsResource.java","src/main/java/com/azure/resourcemanager/loganalytics/models/TimeSelectorEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Type.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UsageMetric.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Usages.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceCapping.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceEntityStatus.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFailoverState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBody.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeBodyFilters.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgeStatusResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurges.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeHeaders.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePurgesPurgeResponse.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationProperties.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceReplicationState.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java","src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSkuNameEnum.java","src/main/java/com/azure/resourcemanager/loganalytics/models/Workspaces.java","src/main/java/com/azure/resourcemanager/loganalytics/models/package-info.java","src/main/java/com/azure/resourcemanager/loganalytics/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java index 2d0f7b0a45ca..5fd6a9a556ee 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TableInnerTests.java @@ -21,7 +21,7 @@ public final class TableInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableInner model = BinaryData.fromString( - "{\"properties\":{\"retentionInDays\":1448184483,\"totalRetentionInDays\":1746749164,\"archiveRetentionInDays\":1933702310,\"searchResults\":{\"query\":\"bdaxconfozauorsu\",\"description\":\"kwbqplhlvnuu\",\"limit\":1920670315,\"startSearchTime\":\"2021-03-26T05:32:19Z\",\"endSearchTime\":\"2021-06-18T22:25:05Z\",\"sourceTable\":\"zsoldwey\",\"azureAsyncOperationId\":\"dunvmnnrwrbiorkt\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-04T00:16:10Z\",\"endRestoreTime\":\"2021-04-15T08:16:25Z\",\"sourceTable\":\"gdnhxmsiv\",\"azureAsyncOperationId\":\"miloxggdufiqndie\"},\"resultStatistics\":{\"progress\":73.16819782282242,\"ingestedRecords\":886290907,\"scannedGb\":23.888120940037084},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"s\",\"schema\":{\"name\":\"otcubi\",\"displayName\":\"uipwoqonmacje\",\"description\":\"izsh\",\"columns\":[{\"name\":\"m\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"b\",\"description\":\"rilbywdx\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"rwfscjfnynszquj\",\"type\":\"long\",\"dataTypeHint\":\"ip\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"oxoismsksbpim\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kcgxxlxsffgcvi\",\"description\":\"zdwlvwlyoupfgfb\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"hgkfmin\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"ttsttktlahbqact\",\"description\":\"gzukxitmm\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"hrnxrxc\"],\"labels\":[\"isavok\",\"dzf\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"qttbaj\",\"katnwxyi\",\"pidkqqfkuvscxkdm\",\"igovi\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}") + "{\"properties\":{\"retentionInDays\":1448184483,\"totalRetentionInDays\":1746749164,\"archiveRetentionInDays\":1933702310,\"searchResults\":{\"query\":\"bdaxconfozauorsu\",\"description\":\"kwbqplhlvnuu\",\"limit\":1920670315,\"startSearchTime\":\"2021-03-26T05:32:19Z\",\"endSearchTime\":\"2021-06-18T22:25:05Z\",\"sourceTable\":\"zsoldwey\",\"azureAsyncOperationId\":\"dunvmnnrwrbiorkt\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-04T00:16:10Z\",\"endRestoreTime\":\"2021-04-15T08:16:25Z\",\"sourceTable\":\"gdnhxmsiv\",\"azureAsyncOperationId\":\"miloxggdufiqndie\"},\"resultStatistics\":{\"progress\":73.16819782282242,\"ingestedRecords\":886290907,\"scannedGb\":23.888120940037084},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"s\",\"schema\":{\"name\":\"otcubi\",\"displayName\":\"uipwoqonmacje\",\"description\":\"izsh\",\"columns\":[{\"name\":\"m\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"b\",\"description\":\"rilbywdx\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"rwfscjfnynszquj\",\"type\":\"long\",\"dataTypeHint\":\"ip\",\"displayName\":\"ytibyow\",\"description\":\"lgy\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"oxoismsksbpim\",\"type\":\"real\",\"dataTypeHint\":\"armPath\",\"displayName\":\"kcgxxlxsffgcvi\",\"description\":\"zdwlvwlyoupfgfb\",\"isDefaultDisplay\":false,\"isHidden\":true},{\"name\":\"hgkfmin\",\"type\":\"dateTime\",\"dataTypeHint\":\"ip\",\"displayName\":\"ttsttktlahbqact\",\"description\":\"gzukxitmm\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"hrnxrxc\"],\"labels\":[\"isavok\",\"dzf\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"qttbaj\",\"katnwxyi\",\"pidkqqfkuvscxkdm\",\"igovi\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}") .toObject(TableInner.class); Assertions.assertEquals(1448184483, model.retentionInDays()); Assertions.assertEquals(1746749164, model.totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java index a1acfcdc8eab..01165566c645 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablePropertiesTests.java @@ -21,7 +21,7 @@ public final class TablePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TableProperties model = BinaryData.fromString( - "{\"retentionInDays\":1317019798,\"totalRetentionInDays\":889333374,\"archiveRetentionInDays\":1902606328,\"searchResults\":{\"query\":\"dilmyww\",\"description\":\"gkxnyedabg\",\"limit\":110774994,\"startSearchTime\":\"2021-04-27T22:18:57Z\",\"endSearchTime\":\"2021-01-03T05:28:43Z\",\"sourceTable\":\"wbcihxuuwh\",\"azureAsyncOperationId\":\"yxccyb\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-30T18:35:12Z\",\"endRestoreTime\":\"2021-07-25T04:23:40Z\",\"sourceTable\":\"udzpxgwjplmagstc\",\"azureAsyncOperationId\":\"hpfkyrkdbdgi\"},\"resultStatistics\":{\"progress\":37.102374420459185,\"ingestedRecords\":1929785909,\"scannedGb\":88.71489238122547},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"aiy\",\"schema\":{\"name\":\"viacegfnmntfpmv\",\"displayName\":\"mfnczd\",\"description\":\"vbalxlllc\",\"columns\":[{\"name\":\"bzevwrd\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vsjcswsmystuluqy\",\"description\":\"cvlerchpqbmfpjba\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"xsspuunnoxyhk\",\"type\":\"dynamic\",\"dataTypeHint\":\"ip\",\"displayName\":\"i\",\"description\":\"fhoqca\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"mdjvlpj\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"msgeivsiykzk\",\"description\":\"cjdx\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"ulapzwyrp\",\"type\":\"long\",\"dataTypeHint\":\"armPath\",\"displayName\":\"epnylbfu\",\"description\":\"lyjt\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"hvfcibyfmow\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"vdwxfzwi\",\"description\":\"wzjbh\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"labels\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"jtqedcgzulwmm\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") + "{\"retentionInDays\":1317019798,\"totalRetentionInDays\":889333374,\"archiveRetentionInDays\":1902606328,\"searchResults\":{\"query\":\"dilmyww\",\"description\":\"gkxnyedabg\",\"limit\":110774994,\"startSearchTime\":\"2021-04-27T22:18:57Z\",\"endSearchTime\":\"2021-01-03T05:28:43Z\",\"sourceTable\":\"wbcihxuuwh\",\"azureAsyncOperationId\":\"yxccyb\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-03-30T18:35:12Z\",\"endRestoreTime\":\"2021-07-25T04:23:40Z\",\"sourceTable\":\"udzpxgwjplmagstc\",\"azureAsyncOperationId\":\"hpfkyrkdbdgi\"},\"resultStatistics\":{\"progress\":37.102374420459185,\"ingestedRecords\":1929785909,\"scannedGb\":88.71489238122547},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"aiy\",\"schema\":{\"name\":\"viacegfnmntfpmv\",\"displayName\":\"mfnczd\",\"description\":\"vbalxlllc\",\"columns\":[{\"name\":\"bzevwrd\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"vsjcswsmystuluqy\",\"description\":\"cvlerchpqbmfpjba\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"xsspuunnoxyhk\",\"type\":\"dynamic\",\"dataTypeHint\":\"ip\",\"displayName\":\"i\",\"description\":\"fhoqca\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"mdjvlpj\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"msgeivsiykzk\",\"description\":\"cjdx\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"standardColumns\":[{\"name\":\"ulapzwyrp\",\"type\":\"long\",\"dataTypeHint\":\"armPath\",\"displayName\":\"epnylbfu\",\"description\":\"lyjt\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"hvfcibyfmow\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"vdwxfzwi\",\"description\":\"wzjbh\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"],\"labels\":[\"eewchpxlktw\",\"uziycsl\",\"vu\"],\"source\":\"microsoft\",\"tableType\":\"CustomLog\",\"tableSubType\":\"Any\",\"solutions\":[\"jtqedcgzulwmm\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true}") .toObject(TableProperties.class); Assertions.assertEquals(1317019798, model.retentionInDays()); Assertions.assertEquals(889333374, model.totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java index 6434b1475b4b..339a84a6e6f2 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class TablesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"retentionInDays\":1360413758,\"totalRetentionInDays\":303865624,\"archiveRetentionInDays\":1281180926,\"searchResults\":{\"query\":\"olyahluqwqulsut\",\"description\":\"bhxykfhyqezvqqug\",\"limit\":1475377134,\"startSearchTime\":\"2021-04-08T05:18:37Z\",\"endSearchTime\":\"2021-09-17T05:59:38Z\",\"sourceTable\":\"xreuquowtlj\",\"azureAsyncOperationId\":\"whreagkhyxvrq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-06T02:53:55Z\",\"endRestoreTime\":\"2021-03-28T20:35:45Z\",\"sourceTable\":\"lmdgglmepjp\",\"azureAsyncOperationId\":\"eykgsangpszngaf\"},\"resultStatistics\":{\"progress\":26.100731176789093,\"ingestedRecords\":2068016278,\"scannedGb\":51.703176428226385},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"goadyedmzr\",\"schema\":{\"name\":\"oknub\",\"displayName\":\"itpkpztrgdg\",\"description\":\"coqra\",\"columns\":[{\"name\":\"yxp\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"alwvskbu\",\"description\":\"acaqtyltcoqcu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"akuejk\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"jofqcvovjufycs\",\"description\":\"lbemyej\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"hortu\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"felqerpptc\",\"description\":\"qnzmnhiil\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gckbb\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"raoxnyuff\",\"description\":\"sgftipwc\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"iqdxyurnpnuh\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"uhiigbyl\",\"description\":\"igvxvatvcrk\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"vhcs\",\"hzlwxaea\"],\"labels\":[\"rexdndsbd\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ntopa\",\"ttmvmmagoaqylkjz\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"gmxitpfi\",\"name\":\"zc\",\"type\":\"dltkrlg\"}"; + = "{\"properties\":{\"retentionInDays\":1360413758,\"totalRetentionInDays\":303865624,\"archiveRetentionInDays\":1281180926,\"searchResults\":{\"query\":\"olyahluqwqulsut\",\"description\":\"bhxykfhyqezvqqug\",\"limit\":1475377134,\"startSearchTime\":\"2021-04-08T05:18:37Z\",\"endSearchTime\":\"2021-09-17T05:59:38Z\",\"sourceTable\":\"xreuquowtlj\",\"azureAsyncOperationId\":\"whreagkhyxvrq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-06T02:53:55Z\",\"endRestoreTime\":\"2021-03-28T20:35:45Z\",\"sourceTable\":\"lmdgglmepjp\",\"azureAsyncOperationId\":\"eykgsangpszngaf\"},\"resultStatistics\":{\"progress\":26.100731176789093,\"ingestedRecords\":2068016278,\"scannedGb\":51.703176428226385},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"goadyedmzr\",\"schema\":{\"name\":\"oknub\",\"displayName\":\"itpkpztrgdg\",\"description\":\"coqra\",\"columns\":[{\"name\":\"yxp\",\"type\":\"dynamic\",\"dataTypeHint\":\"armPath\",\"displayName\":\"alwvskbu\",\"description\":\"acaqtyltcoqcu\",\"isDefaultDisplay\":true,\"isHidden\":false},{\"name\":\"akuejk\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"jofqcvovjufycs\",\"description\":\"lbemyej\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"hortu\",\"type\":\"guid\",\"dataTypeHint\":\"uri\",\"displayName\":\"felqerpptc\",\"description\":\"qnzmnhiil\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"gckbb\",\"type\":\"dateTime\",\"dataTypeHint\":\"guid\",\"displayName\":\"raoxnyuff\",\"description\":\"sgftipwc\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"iqdxyurnpnuh\",\"type\":\"boolean\",\"dataTypeHint\":\"ip\",\"displayName\":\"uhiigbyl\",\"description\":\"igvxvatvcrk\",\"isDefaultDisplay\":false,\"isHidden\":true}],\"categories\":[\"vhcs\",\"hzlwxaea\"],\"labels\":[\"rexdndsbd\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Classic\",\"solutions\":[\"ntopa\",\"ttmvmmagoaqylkjz\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"gmxitpfi\",\"name\":\"zc\",\"type\":\"dltkrlg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java index 77791a6a3191..a66becdc6f1c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListByWorkspaceMockTests.java @@ -25,7 +25,7 @@ public final class TablesListByWorkspaceMockTests { @Test public void testListByWorkspace() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"retentionInDays\":1067831194,\"totalRetentionInDays\":1338234971,\"archiveRetentionInDays\":81807021,\"searchResults\":{\"query\":\"jdnrqjbt\",\"description\":\"eaoqaqbzgyhf\",\"limit\":122929865,\"startSearchTime\":\"2021-09-21T19:14:48Z\",\"endSearchTime\":\"2021-03-20T20:58:19Z\",\"sourceTable\":\"bqamteuliyslpk\",\"azureAsyncOperationId\":\"mw\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-25T12:04:18Z\",\"endRestoreTime\":\"2021-01-21T00:53:39Z\",\"sourceTable\":\"myw\",\"azureAsyncOperationId\":\"rmcqmiciijqpkz\"},\"resultStatistics\":{\"progress\":58.73400554711503,\"ingestedRecords\":1008531310,\"scannedGb\":96.94226082279155},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ixvcpwnkwywzwo\",\"schema\":{\"name\":\"ickduoiqta\",\"displayName\":\"yvsk\",\"description\":\"rwzawnvs\",\"columns\":[{\"name\":\"zagxnvhycvdi\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"gzgy\",\"description\":\"utrwpweryekz\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tta\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"wwhnhjtfvpn\",\"description\":\"miljpnwynud\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pjlxeehuxiqhzl\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"xls\",\"description\":\"hmx\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"rednw\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"w\",\"description\":\"evuafpwzyifrk\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"qipxgzdyimsf\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"avkjog\",\"description\":\"labnsmjkwynq\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"kvwjtqpkevmy\",\"tjcrspxklurccl\",\"gxannnoytzposewx\",\"gpxvkqmaupxvpi\"],\"labels\":[\"aifyzyzeyuubeids\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"gygvfltgvdiho\",\"nkrxwetwkdrcy\",\"ucpcunnuzdqumoen\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"qh\",\"name\":\"knd\",\"type\":\"elqkaadlkn\"}]}"; + = "{\"value\":[{\"properties\":{\"retentionInDays\":1067831194,\"totalRetentionInDays\":1338234971,\"archiveRetentionInDays\":81807021,\"searchResults\":{\"query\":\"jdnrqjbt\",\"description\":\"eaoqaqbzgyhf\",\"limit\":122929865,\"startSearchTime\":\"2021-09-21T19:14:48Z\",\"endSearchTime\":\"2021-03-20T20:58:19Z\",\"sourceTable\":\"bqamteuliyslpk\",\"azureAsyncOperationId\":\"mw\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-09-25T12:04:18Z\",\"endRestoreTime\":\"2021-01-21T00:53:39Z\",\"sourceTable\":\"myw\",\"azureAsyncOperationId\":\"rmcqmiciijqpkz\"},\"resultStatistics\":{\"progress\":58.73400554711503,\"ingestedRecords\":1008531310,\"scannedGb\":96.94226082279155},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ixvcpwnkwywzwo\",\"schema\":{\"name\":\"ickduoiqta\",\"displayName\":\"yvsk\",\"description\":\"rwzawnvs\",\"columns\":[{\"name\":\"zagxnvhycvdi\",\"type\":\"int\",\"dataTypeHint\":\"ip\",\"displayName\":\"gzgy\",\"description\":\"utrwpweryekz\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"tta\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"wwhnhjtfvpn\",\"description\":\"miljpnwynud\",\"isDefaultDisplay\":false,\"isHidden\":false}],\"standardColumns\":[{\"name\":\"pjlxeehuxiqhzl\",\"type\":\"int\",\"dataTypeHint\":\"armPath\",\"displayName\":\"xls\",\"description\":\"hmx\",\"isDefaultDisplay\":true,\"isHidden\":true},{\"name\":\"rednw\",\"type\":\"real\",\"dataTypeHint\":\"uri\",\"displayName\":\"w\",\"description\":\"evuafpwzyifrk\",\"isDefaultDisplay\":false,\"isHidden\":false},{\"name\":\"qipxgzdyimsf\",\"type\":\"dateTime\",\"dataTypeHint\":\"uri\",\"displayName\":\"avkjog\",\"description\":\"labnsmjkwynq\",\"isDefaultDisplay\":true,\"isHidden\":false}],\"categories\":[\"kvwjtqpkevmy\",\"tjcrspxklurccl\",\"gxannnoytzposewx\",\"gpxvkqmaupxvpi\"],\"labels\":[\"aifyzyzeyuubeids\"],\"source\":\"microsoft\",\"tableType\":\"Microsoft\",\"tableSubType\":\"Any\",\"solutions\":[\"gygvfltgvdiho\",\"nkrxwetwkdrcy\",\"ucpcunnuzdqumoen\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":false},\"id\":\"qh\",\"name\":\"knd\",\"type\":\"elqkaadlkn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java index 417cf617899c..50c35880d60f 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/test/java/com/azure/resourcemanager/loganalytics/generated/TablesListResultTests.java @@ -14,7 +14,7 @@ public final class TablesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TablesListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"retentionInDays\":215844644,\"totalRetentionInDays\":1198347507,\"archiveRetentionInDays\":261950952,\"searchResults\":{\"query\":\"tg\",\"description\":\"nzeyqxtjj\",\"limit\":715633855,\"startSearchTime\":\"2021-03-19T00:54:21Z\",\"endSearchTime\":\"2021-01-28T05:26:07Z\",\"sourceTable\":\"avodg\",\"azureAsyncOperationId\":\"dbeesmie\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-11T02:30:59Z\",\"endRestoreTime\":\"2021-01-30T20:04:42Z\",\"sourceTable\":\"aawiuagydwqfb\",\"azureAsyncOperationId\":\"yr\"},\"resultStatistics\":{\"progress\":16.077869516417877,\"ingestedRecords\":1957369662,\"scannedGb\":87.74515056919178},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ogfnzjvusf\",\"schema\":{\"name\":\"mozuxylfsb\",\"displayName\":\"adpysownbt\",\"description\":\"bugrj\",\"columns\":[{}],\"standardColumns\":[{}],\"categories\":[\"isofieypefojyqd\"],\"labels\":[\"plcplcwkhi\"],\"source\":\"customer\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"tzbsrgnowcjhf\"]},\"provisioningState\":\"Updating\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"xmwoteyowcluqo\",\"name\":\"ekqvgqouwif\",\"type\":\"mpjw\"},{\"properties\":{\"retentionInDays\":1750235907,\"totalRetentionInDays\":18074725,\"archiveRetentionInDays\":1813294766,\"searchResults\":{\"query\":\"hrfsphuagrtti\",\"description\":\"eusqczkvyklxu\",\"limit\":1413186708,\"startSearchTime\":\"2021-11-29T09:18:30Z\",\"endSearchTime\":\"2021-09-13T22:37:23Z\",\"sourceTable\":\"fblcq\",\"azureAsyncOperationId\":\"ubgq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-13T13:57:03Z\",\"endRestoreTime\":\"2021-08-13T22:08:40Z\",\"sourceTable\":\"etttwgdslqxihhr\",\"azureAsyncOperationId\":\"oi\"},\"resultStatistics\":{\"progress\":89.29105043029318,\"ingestedRecords\":1595822311,\"scannedGb\":53.37658518150889},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"pzhyr\",\"schema\":{\"name\":\"o\",\"displayName\":\"bjoxs\",\"description\":\"vnh\",\"columns\":[{},{},{}],\"standardColumns\":[{}],\"categories\":[\"kzjcjbtrgae\",\"vvib\",\"xjjs\"],\"labels\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"t\",\"kozzwculkb\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"wltlwtjjguktalh\",\"name\":\"nvkcdmxzrpoa\",\"type\":\"mlnwiaaomylweazu\"},{\"properties\":{\"retentionInDays\":958825204,\"totalRetentionInDays\":950658214,\"archiveRetentionInDays\":1686988700,\"searchResults\":{\"query\":\"jhlfzswpchwahf\",\"description\":\"usnfepgfewet\",\"limit\":1730417051,\"startSearchTime\":\"2021-01-13T00:28:43Z\",\"endSearchTime\":\"2021-06-27T13:13:13Z\",\"sourceTable\":\"ykxhdjh\",\"azureAsyncOperationId\":\"mmbcxfhbcp\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-20T00:41:29Z\",\"endRestoreTime\":\"2021-02-20T11:25:19Z\",\"sourceTable\":\"zhqizxf\",\"azureAsyncOperationId\":\"tgqscjavftjuh\"},\"resultStatistics\":{\"progress\":96.7049778336437,\"ingestedRecords\":1903127513,\"scannedGb\":27.661334456416895},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"jrajcivm\",\"schema\":{\"name\":\"f\",\"displayName\":\"iwrxgkn\",\"description\":\"vyi\",\"columns\":[{},{}],\"standardColumns\":[{},{}],\"categories\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"labels\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"source\":\"microsoft\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mhv\",\"muvgp\",\"uneqsxvmhf\",\"uzjyihsasbhudypo\"]},\"provisioningState\":\"Failed\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"}],\"nextLink\":\"jouw\"}") + "{\"value\":[{\"properties\":{\"retentionInDays\":215844644,\"totalRetentionInDays\":1198347507,\"archiveRetentionInDays\":261950952,\"searchResults\":{\"query\":\"tg\",\"description\":\"nzeyqxtjj\",\"limit\":715633855,\"startSearchTime\":\"2021-03-19T00:54:21Z\",\"endSearchTime\":\"2021-01-28T05:26:07Z\",\"sourceTable\":\"avodg\",\"azureAsyncOperationId\":\"dbeesmie\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-11T02:30:59Z\",\"endRestoreTime\":\"2021-01-30T20:04:42Z\",\"sourceTable\":\"aawiuagydwqfb\",\"azureAsyncOperationId\":\"yr\"},\"resultStatistics\":{\"progress\":16.077869516417877,\"ingestedRecords\":1957369662,\"scannedGb\":87.74515056919178},\"plan\":\"Auxiliary\",\"lastPlanModifiedDate\":\"ogfnzjvusf\",\"schema\":{\"name\":\"mozuxylfsb\",\"displayName\":\"adpysownbt\",\"description\":\"bugrj\",\"columns\":[{}],\"standardColumns\":[{}],\"categories\":[\"isofieypefojyqd\"],\"labels\":[\"plcplcwkhi\"],\"source\":\"customer\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"tzbsrgnowcjhf\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"xmwoteyowcluqo\",\"name\":\"ekqvgqouwif\",\"type\":\"mpjw\"},{\"properties\":{\"retentionInDays\":1750235907,\"totalRetentionInDays\":18074725,\"archiveRetentionInDays\":1813294766,\"searchResults\":{\"query\":\"hrfsphuagrtti\",\"description\":\"eusqczkvyklxu\",\"limit\":1413186708,\"startSearchTime\":\"2021-11-29T09:18:30Z\",\"endSearchTime\":\"2021-09-13T22:37:23Z\",\"sourceTable\":\"fblcq\",\"azureAsyncOperationId\":\"ubgq\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-13T13:57:03Z\",\"endRestoreTime\":\"2021-08-13T22:08:40Z\",\"sourceTable\":\"etttwgdslqxihhr\",\"azureAsyncOperationId\":\"oi\"},\"resultStatistics\":{\"progress\":89.29105043029318,\"ingestedRecords\":1595822311,\"scannedGb\":53.37658518150889},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"pzhyr\",\"schema\":{\"name\":\"o\",\"displayName\":\"bjoxs\",\"description\":\"vnh\",\"columns\":[{},{},{}],\"standardColumns\":[{}],\"categories\":[\"kzjcjbtrgae\",\"vvib\",\"xjjs\"],\"labels\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"source\":\"microsoft\",\"tableType\":\"SearchResults\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"t\",\"kozzwculkb\"]},\"provisioningState\":\"Deleting\",\"retentionInDaysAsDefault\":true,\"totalRetentionInDaysAsDefault\":true},\"id\":\"wltlwtjjguktalh\",\"name\":\"nvkcdmxzrpoa\",\"type\":\"mlnwiaaomylweazu\"},{\"properties\":{\"retentionInDays\":958825204,\"totalRetentionInDays\":950658214,\"archiveRetentionInDays\":1686988700,\"searchResults\":{\"query\":\"jhlfzswpchwahf\",\"description\":\"usnfepgfewet\",\"limit\":1730417051,\"startSearchTime\":\"2021-01-13T00:28:43Z\",\"endSearchTime\":\"2021-06-27T13:13:13Z\",\"sourceTable\":\"ykxhdjh\",\"azureAsyncOperationId\":\"mmbcxfhbcp\"},\"restoredLogs\":{\"startRestoreTime\":\"2021-10-20T00:41:29Z\",\"endRestoreTime\":\"2021-02-20T11:25:19Z\",\"sourceTable\":\"zhqizxf\",\"azureAsyncOperationId\":\"tgqscjavftjuh\"},\"resultStatistics\":{\"progress\":96.7049778336437,\"ingestedRecords\":1903127513,\"scannedGb\":27.661334456416895},\"plan\":\"Analytics\",\"lastPlanModifiedDate\":\"jrajcivm\",\"schema\":{\"name\":\"f\",\"displayName\":\"iwrxgkn\",\"description\":\"vyi\",\"columns\":[{},{}],\"standardColumns\":[{},{}],\"categories\":[\"pgshoxgsgbpfgz\",\"jtxvzflbqvgaq\",\"lgafcqusrdve\"],\"labels\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"source\":\"microsoft\",\"tableType\":\"RestoredLogs\",\"tableSubType\":\"DataCollectionRuleBased\",\"solutions\":[\"mhv\",\"muvgp\",\"uneqsxvmhf\",\"uzjyihsasbhudypo\"]},\"provisioningState\":\"InProgress\",\"retentionInDaysAsDefault\":false,\"totalRetentionInDaysAsDefault\":true},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"}],\"nextLink\":\"jouw\"}") .toObject(TablesListResult.class); Assertions.assertEquals(215844644, model.value().get(0).retentionInDays()); Assertions.assertEquals(1198347507, model.value().get(0).totalRetentionInDays()); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml index d64f349318b0..42855770af95 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: 57f1f65b67c01832427b0b3518ee789b960a5e07 +commit: 7455cf25b43833f380f4cae2fc625109563084ce repo: Azure/azure-rest-api-specs additionalDirectories: From 1c28f5230a57baca3c4d350cc1b0a38b3738965b Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Sat, 9 May 2026 07:06:03 +0000 Subject: [PATCH 6/7] Configurations: 'specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights/tspconfig.yaml', and CommitSHA: '06f69b8b78d525c5e47f81f50e2cb1d21b7dd783' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6274764 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 96 +++++++++---------- .../tsp-location.yaml | 2 +- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index f1a54d889264..1271137bf647 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -68,8 +68,8 @@ #### `models.ManagedServiceIdentity` was modified -* `validate()` was removed * `java.util.UUID principalId()` -> `java.lang.String principalId()` +* `validate()` was removed * `java.util.UUID tenantId()` -> `java.lang.String tenantId()` #### `models.UserIdentityProperties` was modified @@ -88,21 +88,21 @@ #### `models.AccessRuleProperties` was modified * `AccessRuleProperties()` was changed to private access -* `withPhoneNumbers(java.util.List)` was removed -* `validate()` was removed -* `withEmailAddresses(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed * `withAddressPrefixes(java.util.List)` was removed * `withNetworkSecurityPerimeters(java.util.List)` was removed -* `withSubscriptions(java.util.List)` was removed * `withDirection(models.AccessRuleDirection)` was removed -* `withFullyQualifiedDomainNames(java.util.List)` 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 -* `withResourceId(java.lang.String)` was removed * `validate()` was removed * `withScopeId(java.lang.String)` was removed +* `withResourceId(java.lang.String)` was removed #### `models.ClusterReplicationProperties` was modified @@ -116,8 +116,8 @@ * `AccessRule()` was changed to private access * `withProperties(models.AccessRuleProperties)` was removed -* `withName(java.lang.String)` was removed * `validate()` was removed +* `withName(java.lang.String)` was removed #### `models.StorageInsight$Update` was modified @@ -138,11 +138,11 @@ #### `models.NetworkSecurityPerimeter` was modified * `NetworkSecurityPerimeter()` was changed to private access -* `validate()` was removed * `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()` -* `withLocation(java.lang.String)` was removed -* `withId(java.lang.String)` was removed * `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 @@ -163,9 +163,9 @@ #### `models.MetricName` was modified * `MetricName()` was changed to private access -* `validate()` was removed -* `withValue(java.lang.String)` was removed * `withLocalizedValue(java.lang.String)` was removed +* `withValue(java.lang.String)` was removed +* `validate()` was removed #### `models.WorkspacePatch` was modified @@ -178,9 +178,9 @@ #### `models.ResourceAssociation` was modified * `ResourceAssociation()` was changed to private access -* `withAccessMode(models.ResourceAssociationAccessMode)` was removed -* `validate()` was removed * `withName(java.lang.String)` was removed +* `validate()` was removed +* `withAccessMode(models.ResourceAssociationAccessMode)` was removed #### `models.RestoredLogs` was modified @@ -193,9 +193,9 @@ #### `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()` -* `validate()` was removed #### `models.WorkspaceCapping` was modified @@ -204,26 +204,26 @@ #### `models.CoreSummary` was modified * `CoreSummary()` was changed to private access +* `validate()` was removed * `withNumberOfDocuments(long)` was removed * `withStatus(java.lang.String)` was removed -* `validate()` was removed #### `models.LinkedServices` was modified -* `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.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 deleteById(java.lang.String)` -> `void deleteById(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 -* `withName(java.lang.String)` was removed -* `withAccessRules(java.util.List)` was removed * `withAccessRulesVersion(java.lang.Integer)` was removed +* `withName(java.lang.String)` was removed * `validate()` was removed -* `withEnabledLogCategories(java.util.List)` was removed +* `withAccessRules(java.util.List)` was removed #### `models.NetworkSecurityPerimeterConfigurationProperties` was modified @@ -240,9 +240,9 @@ #### `models.SearchMetadataSchema` was modified * `SearchMetadataSchema()` was changed to private access -* `withName(java.lang.String)` was removed -* `validate()` was removed * `withVersion(java.lang.Integer)` was removed +* `validate()` was removed +* `withName(java.lang.String)` was removed #### `models.KeyVaultProperties` was modified @@ -250,9 +250,9 @@ #### `models.UserAssignedIdentity` was modified -* `validate()` was removed * `java.util.UUID principalId()` -> `java.lang.String principalId()` * `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `validate()` was removed #### `models.WorkspaceSku` was modified @@ -265,11 +265,11 @@ #### `models.OperationDisplay` was modified * `OperationDisplay()` was changed to private access -* `withOperation(java.lang.String)` was removed -* `withResource(java.lang.String)` was removed -* `validate()` was removed * `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 @@ -278,8 +278,8 @@ #### `models.AssociatedWorkspace` was modified -* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` * `validate()` was removed +* `java.util.UUID workspaceId()` -> `java.lang.String workspaceId()` #### `models.TagsResource` was modified @@ -288,36 +288,36 @@ #### `models.SearchSchemaValue` was modified * `SearchSchemaValue()` was changed to private access +* `withName(java.lang.String)` was removed * `withStored(boolean)` was removed -* `withFacet(boolean)` was removed * `validate()` was removed +* `withIndexed(boolean)` was removed +* `withFacet(boolean)` was removed * `withDisplayName(java.lang.String)` was removed -* `withType(java.lang.String)` was removed * `withOwnerType(java.util.List)` was removed -* `withIndexed(boolean)` was removed -* `withName(java.lang.String)` was removed +* `withType(java.lang.String)` was removed #### `models.SearchMetadata` was modified * `SearchMetadata()` was changed to private access -* `withAggregatedGroupingFields(java.lang.String)` was removed -* `withLastUpdated(java.time.OffsetDateTime)` was removed -* `validate()` was removed -* `withMax(java.lang.Long)` was removed -* `withSchema(models.SearchMetadataSchema)` was removed -* `withSearchId(java.lang.String)` was removed -* `withTop(java.lang.Long)` was removed -* `withCoreSummaries(java.util.List)` was removed -* `withRequestTime(java.lang.Long)` was removed * `withResultType(java.lang.String)` was removed -* `withId(java.lang.String)` was removed -* `withStatus(java.lang.String)` was removed -* `withSum(java.lang.Long)` 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 -* `withAggregatedValueField(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 @@ -350,9 +350,9 @@ #### `models.SearchSort` was modified * `SearchSort()` was changed to private access +* `validate()` was removed * `withOrder(models.SearchSortEnum)` was removed * `withName(java.lang.String)` was removed -* `validate()` was removed #### `models.ClusterSku` was modified @@ -368,8 +368,8 @@ #### `models.StorageInsight` was modified -* `eTag()` was added * `systemData()` was added +* `eTag()` was added #### `models.AzureEntityResource` was modified diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml index 42855770af95..a69576a5e510 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/OperationalInsights -commit: 7455cf25b43833f380f4cae2fc625109563084ce +commit: 06f69b8b78d525c5e47f81f50e2cb1d21b7dd783 repo: Azure/azure-rest-api-specs additionalDirectories: From 048843315fc74bd5b24886ec5bfa3425c83e8f95 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Sat, 9 May 2026 15:09:11 +0800 Subject: [PATCH 7/7] Update pom.xml --- sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml index 76844b8ebf8c..59e2c98f7913 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml @@ -45,6 +45,7 @@ UTF-8 0 0 + true