From 9adee25a187df81660e6d6f5e6ddae4940e58069 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 15 May 2020 18:37:08 +0800 Subject: [PATCH 01/16] draft structure refactor for storage --- .../management/appservice/FunctionApp.java | 8 +- .../implementation/FunctionAppImpl.java | 10 +- .../appservice/FunctionAppsTests.java | 4 +- .../com/azure/management/compute/Disk.java | 2 +- .../management/compute/VirtualMachine.java | 2 +- .../compute/VirtualMachineScaleSet.java | 2 +- .../compute/implementation/DiskImpl.java | 2 +- .../implementation/UnmanagedDataDiskImpl.java | 2 +- .../implementation/VirtualMachineImpl.java | 2 +- .../VirtualMachineScaleSetImpl.java | 2 +- .../VirtualMachineBootDiagnosticsTests.java | 2 +- ...rtualMachineCustomImageOperationsTest.java | 2 +- ...irtualMachineExtensionOperationsTests.java | 2 +- ...ManagedServiceIdentityOperationsTests.java | 2 +- .../VirtualMachineOperationsTests.java | 4 +- ...lMachineRelatedResourcesDeletionTests.java | 2 +- ...alMachineScaleSetBootDiagnosticsTests.java | 2 +- ...VirtualMachineScaleSetOperationsTests.java | 4 +- .../containerregistry/Registry.java | 2 +- .../implementation/RegistryImpl.java | 2 +- .../main/java/com/azure/management/Azure.java | 12 +- .../java/com/azure/management/AzureTests.java | 4 +- .../azure/management/TestNetworkWatcher.java | 4 +- .../management/TestResourceStreaming.java | 4 +- .../VirtualNetworkGatewayTests.java | 2 +- sdk/management/gulpfile.js | 2 +- .../ManageLinuxFunctionAppSourceControl.java | 2 +- ...geLinuxWebAppStorageAccountConnection.java | 2 +- .../ManageWebAppStorageAccountConnection.java | 2 +- .../CreateVirtualMachinesInParallel.java | 2 +- ...nabledVirtualMachineBelongsToAADGroup.java | 2 +- ...geStorageFromMSIEnabledVirtualMachine.java | 2 +- .../ManageVirtualMachinesInParallel.java | 2 +- .../samples/QueryMetricsAndActivityLogs.java | 6 +- ...SecurityBreachOrRiskActivityLogAlerts.java | 4 +- .../samples/ManageApplicationGateway.java | 2 +- .../network/samples/ManageNetworkWatcher.java | 2 +- ...eVirtualMachinesInParallelWithNetwork.java | 2 +- .../ManageVpnGatewayVNet2VNetConnection.java | 2 +- .../resources/samples/ManageResource.java | 4 +- .../com/azure/management/samples/Utils.java | 8 +- .../ManageSqlImportExportDatabase.java | 2 +- .../ManageSqlServerSecurityAlertPolicy.java | 2 +- .../storage/samples/ManageStorageAccount.java | 10 +- .../samples/ManageStorageAccountAsync.java | 4 +- .../ManageStorageAccountNetworkRules.java | 2 +- .../azure/management/monitor/AlertsTests.java | 2 +- .../com/azure/management/sql/SqlDatabase.java | 2 +- .../sql/SqlDatabaseExportRequest.java | 2 +- .../sql/SqlDatabaseImportRequest.java | 2 +- .../management/sql/SqlDatabaseOperations.java | 2 +- .../SqlDatabaseExportRequestImpl.java | 2 +- .../SqlDatabaseForElasticPoolImpl.java | 2 +- .../sql/implementation/SqlDatabaseImpl.java | 2 +- .../SqlDatabaseImportRequestImpl.java | 2 +- .../sql/SqlServerOperationsTests.java | 2 +- .../storage/StorageManagementClient.java | 365 ++++++++++++++++++ .../StorageManagementClientBuilder.java | 25 +- .../implementation/AccountStatuses.java | 2 +- .../implementation/BlobContainerImpl.java | 22 +- .../implementation/BlobContainersImpl.java | 38 +- .../BlobServiceEncryptionStatusImpl.java | 6 +- .../BlobServicePropertiesImpl.java | 18 +- .../implementation/BlobServicesImpl.java | 10 +- .../FileServiceEncryptionStatusImpl.java | 6 +- .../ImmutabilityPolicyImpl.java | 14 +- .../storage/implementation/LegalHoldImpl.java | 4 +- .../ManagementPoliciesImpl.java | 10 +- .../implementation/ManagementPolicyImpl.java | 24 +- .../implementation/PolicyRuleImpl.java | 22 +- .../QueueServiceEncryptionStatusImpl.java | 6 +- .../StorageAccountEncryptionStatusImpl.java | 6 +- .../implementation/StorageAccountImpl.java | 46 +-- .../implementation/StorageAccountsImpl.java | 16 +- .../StorageEncryptionHelper.java | 22 +- .../implementation/StorageManager.java | 18 +- .../StorageNetworkRulesHelper.java | 18 +- .../implementation/StorageSkuImpl.java | 18 +- .../implementation/StorageSkusImpl.java | 8 +- .../TableServiceEncryptionStatusImpl.java | 6 +- .../storage/implementation/UsagesImpl.java | 8 +- .../{models => inner}/BlobContainerInner.java | 76 +++- .../BlobContainersClient.java} | 88 +++-- .../BlobRestoreStatusInner.java | 6 +- .../BlobServiceItemsInner.java | 2 +- .../BlobServicePropertiesInner.java | 12 +- .../BlobServicesClient.java} | 20 +- .../CheckNameAvailabilityResultInner.java | 4 +- .../EncryptionScopeInner.java | 8 +- .../EncryptionScopeListResultInner.java | 2 +- .../EncryptionScopesClient.java} | 20 +- .../FileServiceItemsInner.java | 2 +- .../FileServicePropertiesInner.java | 8 +- .../FileServicesClient.java} | 24 +- .../{models => inner}/FileShareInner.java | 10 +- .../{models => inner}/FileShareItemInner.java | 10 +- .../FileShareItemsInner.java | 2 +- .../FileSharesClient.java} | 26 +- .../ImmutabilityPolicyInner.java | 6 +- .../LeaseContainerResponseInner.java | 2 +- .../{models => inner}/LegalHoldInner.java | 2 +- .../ListAccountSasResponseInner.java | 2 +- .../ListContainerItemInner.java | 76 +++- .../ListContainerItemsInner.java | 2 +- .../{models => inner}/ListQueueInner.java | 2 +- .../ListQueueResourceInner.java | 2 +- .../ListQueueServicesInner.java | 2 +- .../ListServiceSasResponseInner.java | 2 +- .../ListTableResourceInner.java | 2 +- .../ListTableServicesInner.java | 2 +- .../ManagementPoliciesClient.java} | 22 +- .../ManagementPolicyInner.java | 4 +- .../ObjectReplicationPoliciesInner.java | 2 +- ...tReplicationPoliciesOperationsClient.java} | 20 +- .../ObjectReplicationPolicyInner.java | 4 +- .../{models => inner}/OperationInner.java | 6 +- .../OperationListResultInner.java | 2 +- .../OperationsClient.java} | 20 +- .../PrivateEndpointConnectionInner.java | 8 +- ...vateEndpointConnectionListResultInner.java | 2 +- .../PrivateEndpointConnectionsClient.java} | 24 +- .../PrivateLinkResourceListResultInner.java | 4 +- .../PrivateLinkResourcesClient.java} | 20 +- .../QueueServicePropertiesInner.java | 4 +- .../QueueServicesClient.java} | 22 +- .../QueuesClient.java} | 21 +- .../SkuInformationInner.java | 12 +- .../SkusInner.java => inner/SkusClient.java} | 20 +- .../StorageAccountInner.java | 30 +- .../StorageAccountListKeysResultInner.java | 4 +- .../StorageAccountListResultInner.java | 2 +- .../StorageAccountsClient.java} | 40 +- .../{models => inner}/StorageQueueInner.java | 2 +- .../StorageSkuListResultInner.java | 2 +- .../storage/{models => inner}/TableInner.java | 2 +- .../TableServicePropertiesInner.java | 4 +- .../TableServicesClient.java} | 22 +- .../TablesClient.java} | 20 +- .../storage/{models => inner}/UsageInner.java | 6 +- .../UsageListResultInner.java | 2 +- .../UsagesClient.java} | 20 +- .../storage/{ => models}/AccessTier.java | 2 +- .../{ => models}/AccountSasParameters.java | 2 +- .../storage/{ => models}/AccountStatus.java | 2 +- .../storage/{ => models}/Action.java | 2 +- .../ActiveDirectoryProperties.java | 2 +- .../{ => models}/AzureEntityResource.java | 2 +- ...AzureFilesIdentityBasedAuthentication.java | 9 +- .../storage/{ => models}/BlobContainer.java | 10 +- .../storage/{ => models}/BlobContainers.java | 12 +- ...eateOrUpdateImmutabilityPolicyHeaders.java | 2 +- ...ateOrUpdateImmutabilityPolicyResponse.java | 2 +- ...ainersDeleteImmutabilityPolicyHeaders.java | 2 +- ...inersDeleteImmutabilityPolicyResponse.java | 2 +- ...ainersExtendImmutabilityPolicyHeaders.java | 2 +- ...inersExtendImmutabilityPolicyResponse.java | 2 +- ...ontainersGetImmutabilityPolicyHeaders.java | 2 +- ...ntainersGetImmutabilityPolicyResponse.java | 2 +- ...ntainersLockImmutabilityPolicyHeaders.java | 2 +- ...tainersLockImmutabilityPolicyResponse.java | 2 +- .../{ => models}/BlobRestoreParameters.java | 2 +- .../BlobRestoreProgressStatus.java | 2 +- .../{ => models}/BlobRestoreRange.java | 2 +- .../{ => models}/BlobServiceProperties.java | 10 +- .../storage/{ => models}/BlobServices.java | 12 +- .../storage/{ => models}/BlobTypes.java | 8 +- .../storage/{ => models}/Bypass.java | 2 +- .../storage/{ => models}/ChangeFeed.java | 2 +- .../CheckNameAvailabilityResult.java | 10 +- .../storage/{ => models}/CorsRule.java | 2 +- .../CorsRuleAllowedMethodsItem.java | 2 +- .../storage/{ => models}/CorsRules.java | 2 +- .../storage/{ => models}/CustomDomain.java | 2 +- .../{ => models}/DateAfterCreation.java | 2 +- .../{ => models}/DateAfterModification.java | 2 +- .../storage/{ => models}/DefaultAction.java | 2 +- .../{ => models}/DeleteRetentionPolicy.java | 2 +- .../storage/{ => models}/DeletedShare.java | 2 +- .../storage/{ => models}/Dimension.java | 2 +- .../{ => models}/DirectoryServiceOptions.java | 2 +- .../{ => models}/EnabledProtocols.java | 2 +- .../storage/{ => models}/Encryption.java | 2 +- .../EncryptionScopeKeyVaultProperties.java | 2 +- .../{ => models}/EncryptionScopeSource.java | 2 +- .../{ => models}/EncryptionScopeState.java | 2 +- .../{ => models}/EncryptionService.java | 2 +- .../{ => models}/EncryptionServices.java | 2 +- .../storage/{ => models}/Endpoints.java | 2 +- .../{ => models}/GeoReplicationStats.java | 2 +- .../{ => models}/GeoReplicationStatus.java | 2 +- .../storage/{ => models}/GetShareExpand.java | 2 +- .../storage/{ => models}/HttpProtocol.java | 2 +- .../storage/{ => models}/Identity.java | 2 +- .../{ => models}/ImmutabilityPolicy.java | 10 +- .../ImmutabilityPolicyProperties.java | 2 +- .../{ => models}/ImmutabilityPolicyState.java | 2 +- .../ImmutabilityPolicyUpdateType.java | 2 +- .../storage/{ => models}/IpRule.java | 2 +- .../storage/{ => models}/KeyPermission.java | 2 +- .../storage/{ => models}/KeySource.java | 2 +- .../storage/{ => models}/KeyType.java | 2 +- .../{ => models}/KeyVaultProperties.java | 2 +- .../management/storage/{ => models}/Kind.java | 2 +- .../{ => models}/LargeFileSharesState.java | 2 +- .../{ => models}/LeaseContainerRequest.java | 2 +- .../LeaseContainerRequestAction.java | 2 +- .../storage/{ => models}/LeaseDuration.java | 2 +- .../storage/{ => models}/LeaseState.java | 2 +- .../storage/{ => models}/LeaseStatus.java | 2 +- .../storage/{ => models}/LegalHold.java | 10 +- .../{ => models}/LegalHoldProperties.java | 2 +- .../storage/{ => models}/ListKeyExpand.java | 2 +- .../{ => models}/ListSharesExpand.java | 2 +- .../{ => models}/ManagementPolicies.java | 12 +- .../{ => models}/ManagementPolicy.java | 10 +- .../{ => models}/ManagementPolicyAction.java | 2 +- .../ManagementPolicyBaseBlob.java | 2 +- .../ManagementPolicyDefinition.java | 2 +- .../{ => models}/ManagementPolicyFilter.java | 2 +- .../{ => models}/ManagementPolicyRule.java | 2 +- .../{ => models}/ManagementPolicySchema.java | 2 +- .../ManagementPolicySnapShot.java | 2 +- .../{ => models}/MetricSpecification.java | 2 +- .../storage/{ => models}/NetworkRuleSet.java | 2 +- .../ObjectReplicationPolicyFilter.java | 2 +- .../ObjectReplicationPolicyRule.java | 2 +- .../{ => models}/OperationDisplay.java | 2 +- .../storage/{ => models}/Permissions.java | 2 +- .../storage/{ => models}/PolicyRule.java | 8 +- .../storage/{ => models}/PrivateEndpoint.java | 2 +- ...teEndpointConnectionProvisioningState.java | 2 +- ...rivateEndpointServiceConnectionStatus.java | 2 +- .../{ => models}/PrivateLinkResource.java | 2 +- .../PrivateLinkServiceConnectionState.java | 2 +- .../{ => models}/ProvisioningState.java | 2 +- .../storage/{ => models}/PublicAccess.java | 2 +- .../storage/{ => models}/PublicEndpoints.java | 8 +- .../storage/{ => models}/Reason.java | 2 +- .../storage/{ => models}/ReasonCode.java | 2 +- .../{ => models}/RestorePolicyProperties.java | 2 +- .../storage/{ => models}/Restriction.java | 2 +- .../storage/{ => models}/RootSquashType.java | 2 +- .../storage/{ => models}/RoutingChoice.java | 2 +- .../{ => models}/RoutingPreference.java | 2 +- .../{ => models}/ServiceSasParameters.java | 2 +- .../{ => models}/ServiceSpecification.java | 2 +- .../storage/{ => models}/Services.java | 2 +- .../storage/{ => models}/ShareAccessTier.java | 2 +- .../storage/{ => models}/SignedResource.java | 2 +- .../{ => models}/SignedResourceTypes.java | 2 +- .../management/storage/{ => models}/Sku.java | 2 +- .../storage/{ => models}/SkuCapability.java | 2 +- .../storage/{ => models}/SkuName.java | 2 +- .../storage/{ => models}/SkuTier.java | 2 +- .../storage/{ => models}/State.java | 2 +- .../storage/{ => models}/StorageAccount.java | 10 +- ...ccountCheckNameAvailabilityParameters.java | 2 +- .../StorageAccountCreateParameters.java | 2 +- .../StorageAccountEncryptionKeySource.java | 8 +- .../StorageAccountEncryptionStatus.java | 8 +- .../{ => models}/StorageAccountExpand.java | 2 +- .../StorageAccountInternetEndpoints.java | 2 +- .../{ => models}/StorageAccountKey.java | 2 +- .../StorageAccountMicrosoftEndpoints.java | 2 +- ...StorageAccountRegenerateKeyParameters.java | 2 +- .../{ => models}/StorageAccountSkuType.java | 8 +- .../StorageAccountUpdateParameters.java | 2 +- .../storage/{ => models}/StorageAccounts.java | 12 +- .../models/StorageManagementClientImpl.java | 348 ----------------- .../{ => models}/StorageResourceType.java | 8 +- .../storage/{ => models}/StorageService.java | 8 +- .../storage/{ => models}/StorageSku.java | 10 +- .../storage/{ => models}/StorageSkus.java | 12 +- .../storage/{ => models}/StorageUsage.java | 0 .../storage/{ => models}/TagFilter.java | 2 +- .../storage/{ => models}/TagProperty.java | 2 +- .../storage/{ => models}/TrackedResource.java | 2 +- .../{ => models}/UpdateHistoryProperty.java | 2 +- .../storage/{ => models}/UsageName.java | 2 +- .../storage/{ => models}/UsageUnit.java | 2 +- .../storage/{ => models}/Usages.java | 14 +- .../{ => models}/VirtualNetworkRule.java | 2 +- .../storage/models/package-info.java | 9 - .../management/storage/package-info.java | 5 +- .../StorageAccountNetworkRuleTests.java | 2 + .../StorageAccountOperationsTests.java | 8 + .../storage/StorageBlobContainersTests.java | 4 + .../storage/StorageBlobServicesTests.java | 3 + .../StorageManagementPoliciesTests.java | 6 + .../storage/UsageOperationsTests.java | 2 +- 290 files changed, 1399 insertions(+), 1152 deletions(-) create mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => }/StorageManagementClientBuilder.java (80%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/BlobContainerInner.java (81%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/BlobContainersInner.java => inner/BlobContainersClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/BlobRestoreStatusInner.java (93%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/BlobServiceItemsInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/BlobServicePropertiesInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/BlobServicesInner.java => inner/BlobServicesClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/CheckNameAvailabilityResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/EncryptionScopeInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/EncryptionScopeListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/EncryptionScopesInner.java => inner/EncryptionScopesClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/FileServiceItemsInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/FileServicePropertiesInner.java (94%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/FileServicesInner.java => inner/FileServicesClient.java} (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/FileShareInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/FileShareItemInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/FileShareItemsInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/FileSharesInner.java => inner/FileSharesClient.java} (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ImmutabilityPolicyInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/LeaseContainerResponseInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/LegalHoldInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListAccountSasResponseInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListContainerItemInner.java (81%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListContainerItemsInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListQueueInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListQueueResourceInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListQueueServicesInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListServiceSasResponseInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListTableResourceInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ListTableServicesInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/ManagementPoliciesInner.java => inner/ManagementPoliciesClient.java} (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ManagementPolicyInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ObjectReplicationPoliciesInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/ObjectReplicationPoliciesOperationsInner.java => inner/ObjectReplicationPoliciesOperationsClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/ObjectReplicationPolicyInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/OperationInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/OperationListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/OperationsInner.java => inner/OperationsClient.java} (92%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/PrivateEndpointConnectionInner.java (93%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/PrivateEndpointConnectionListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/PrivateEndpointConnectionsInner.java => inner/PrivateEndpointConnectionsClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/PrivateLinkResourceListResultInner.java (93%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/PrivateLinkResourcesInner.java => inner/PrivateLinkResourcesClient.java} (94%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/QueueServicePropertiesInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/QueueServicesInner.java => inner/QueueServicesClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/QueuesInner.java => inner/QueuesClient.java} (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/SkuInformationInner.java (94%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/SkusInner.java => inner/SkusClient.java} (93%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/StorageAccountInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/StorageAccountListKeysResultInner.java (92%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/StorageAccountListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/StorageAccountsInner.java => inner/StorageAccountsClient.java} (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/StorageQueueInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/StorageSkuListResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/TableInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/TableServicePropertiesInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/TableServicesInner.java => inner/TableServicesClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/TablesInner.java => inner/TablesClient.java} (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/UsageInner.java (93%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models => inner}/UsageListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{models/UsagesInner.java => inner/UsagesClient.java} (94%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/AccessTier.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/AccountSasParameters.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/AccountStatus.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Action.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ActiveDirectoryProperties.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/AzureEntityResource.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/AzureFilesIdentityBasedAuthentication.java (89%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainer.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainers.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainersDeleteImmutabilityPolicyHeaders.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainersExtendImmutabilityPolicyHeaders.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainersGetImmutabilityPolicyHeaders.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobContainersLockImmutabilityPolicyHeaders.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobRestoreParameters.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobRestoreProgressStatus.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobRestoreRange.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobServiceProperties.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobServices.java (78%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/BlobTypes.java (81%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Bypass.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ChangeFeed.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/CheckNameAvailabilityResult.java (80%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/CorsRule.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/CorsRuleAllowedMethodsItem.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/CorsRules.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/CustomDomain.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DateAfterCreation.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DateAfterModification.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DefaultAction.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DeleteRetentionPolicy.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DeletedShare.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Dimension.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/DirectoryServiceOptions.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EnabledProtocols.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Encryption.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EncryptionScopeKeyVaultProperties.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EncryptionScopeSource.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EncryptionScopeState.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EncryptionService.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/EncryptionServices.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Endpoints.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/GeoReplicationStats.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/GeoReplicationStatus.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/GetShareExpand.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/HttpProtocol.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Identity.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ImmutabilityPolicy.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ImmutabilityPolicyProperties.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ImmutabilityPolicyState.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ImmutabilityPolicyUpdateType.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/IpRule.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/KeyPermission.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/KeySource.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/KeyType.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/KeyVaultProperties.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Kind.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LargeFileSharesState.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LeaseContainerRequest.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LeaseContainerRequestAction.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LeaseDuration.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LeaseState.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LeaseStatus.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LegalHold.java (66%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/LegalHoldProperties.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ListKeyExpand.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ListSharesExpand.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicies.java (84%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicy.java (94%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicyAction.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicyBaseBlob.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicyDefinition.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicyFilter.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicyRule.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicySchema.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ManagementPolicySnapShot.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/MetricSpecification.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/NetworkRuleSet.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ObjectReplicationPolicyFilter.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ObjectReplicationPolicyRule.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/OperationDisplay.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Permissions.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PolicyRule.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PrivateEndpoint.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PrivateEndpointConnectionProvisioningState.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PrivateEndpointServiceConnectionStatus.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PrivateLinkResource.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PrivateLinkServiceConnectionState.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ProvisioningState.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PublicAccess.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/PublicEndpoints.java (84%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Reason.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ReasonCode.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/RestorePolicyProperties.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Restriction.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/RootSquashType.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/RoutingChoice.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/RoutingPreference.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ServiceSasParameters.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ServiceSpecification.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Services.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/ShareAccessTier.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/SignedResource.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/SignedResourceTypes.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Sku.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/SkuCapability.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/SkuName.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/SkuTier.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/State.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccount.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountCheckNameAvailabilityParameters.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountCreateParameters.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountEncryptionKeySource.java (84%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountEncryptionStatus.java (73%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountExpand.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountInternetEndpoints.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountKey.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountMicrosoftEndpoints.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountRegenerateKeyParameters.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountSkuType.java (88%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccountUpdateParameters.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageAccounts.java (92%) delete mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientImpl.java rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageResourceType.java (80%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageService.java (84%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageSku.java (80%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageSkus.java (55%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/StorageUsage.java (100%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/TagFilter.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/TagProperty.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/TrackedResource.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/UpdateHistoryProperty.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/UsageName.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/UsageUnit.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/Usages.java (55%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => models}/VirtualNetworkRule.java (98%) delete mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java index 1c5b59cb77f0..688187bcbd69 100644 --- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java +++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/FunctionApp.java @@ -9,8 +9,8 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountSkuType; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountSkuType; import java.util.Map; import reactor.core.publisher.Mono; @@ -314,7 +314,7 @@ interface WithStorageAccount { * @return the next stage of the definition */ @Deprecated - WithCreate withNewStorageAccount(String name, com.azure.management.storage.SkuName sku); + WithCreate withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku); /** * Creates a new storage account to use for the function app. @@ -646,7 +646,7 @@ interface WithStorageAccount { * @return the next stage of the function app update */ @Deprecated - Update withNewStorageAccount(String name, com.azure.management.storage.SkuName sku); + Update withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku); /** * Creates a new storage account to use for the function app. diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java index cf2b548364fe..2d8801b5daef 100644 --- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java +++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/FunctionAppImpl.java @@ -38,9 +38,9 @@ import com.azure.management.appservice.models.SiteLogsConfigInner; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Indexable; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountKey; -import com.azure.management.storage.StorageAccountSkuType; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountKey; +import com.azure.management.storage.models.StorageAccountSkuType; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.File; import java.io.IOException; @@ -297,7 +297,7 @@ private FunctionAppImpl autoSetAlwaysOn(PricingTier pricingTier) { } @Override - public FunctionAppImpl withNewStorageAccount(String name, com.azure.management.storage.SkuName sku) { + public FunctionAppImpl withNewStorageAccount(String name, com.azure.management.storage.models.SkuName sku) { StorageAccount.DefinitionStages.WithGroup storageDefine = manager().storageManager().storageAccounts().define(name).withRegion(regionName()); if (super.creatableGroup != null && isInCreateMode()) { @@ -632,7 +632,7 @@ public Flux createAsync() { if (currentStorageAccount == null && storageAccountToSet == null && storageAccountCreatable == null) { withNewStorageAccount( this.manager().getSdkContext().randomResourceName(name(), 20), - com.azure.management.storage.SkuName.STANDARD_GRS); + com.azure.management.storage.models.SkuName.STANDARD_GRS); } } return super.createAsync(); diff --git a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java index 67512f0b957f..7103bfc11e40 100644 --- a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java +++ b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java @@ -10,8 +10,8 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountSkuType; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountSkuType; import com.azure.management.storage.implementation.StorageManager; import java.io.ByteArrayOutputStream; import java.io.File; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java index cc0a5f0f9d97..4440ca96e3ca 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/Disk.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.Set; import reactor.core.publisher.Mono; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java index f3bd615d0975..d0c35170caf9 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachine.java @@ -20,7 +20,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.List; import java.util.Map; import java.util.Set; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java index c7166028274f..a28c97daaef3 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/VirtualMachineScaleSet.java @@ -24,7 +24,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import reactor.core.publisher.Mono; import java.io.IOException; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java index dff07ef9ca07..eb4ff991faa9 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/DiskImpl.java @@ -19,7 +19,7 @@ import com.azure.management.resources.fluentcore.arm.ResourceUtils; import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java index 510a650f3bf4..e91c26be2c2b 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/UnmanagedDataDiskImpl.java @@ -12,7 +12,7 @@ import com.azure.management.compute.VirtualMachineUnmanagedDataDisk; import com.azure.management.resources.fluentcore.arm.models.implementation.ChildResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.List; import java.util.UUID; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java index 3df92f5a36ac..dc51616f1d83 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java @@ -73,7 +73,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.utils.ResourceNamer; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.implementation.StorageManager; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java index 0a3773664586..62065e1ced1a 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java @@ -77,7 +77,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.utils.ResourceNamer; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.implementation.StorageManager; import reactor.core.Exceptions; import reactor.core.publisher.Mono; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java index ccb657b2b0d6..eb4475695766 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineBootDiagnosticsTests.java @@ -7,7 +7,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java index d7def390e163..effafde80c91 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineCustomImageOperationsTest.java @@ -9,7 +9,7 @@ import com.azure.management.resources.core.TestUtilities; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.Assertions; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java index 2047c0ac48e4..9b4807132a4d 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineExtensionOperationsTests.java @@ -7,7 +7,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.InputStream; import java.util.ArrayList; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java index 1185fe306974..073a1b9471cb 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineManagedServiceIdentityOperationsTests.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.dag.TaskGroup; import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java index cad6db130b66..2ff63e377552 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineOperationsTests.java @@ -19,8 +19,8 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.CreatedResources; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java index b8004d04257c..2364ce48a493 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineRelatedResourcesDeletionTests.java @@ -15,7 +15,7 @@ import com.azure.management.resources.fluentcore.arm.models.Resource; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java index 20264d702754..269b3e853f31 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetBootDiagnosticsTests.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java index 7cfee8b490bb..21b68426dbcf 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/VirtualMachineScaleSetOperationsTests.java @@ -32,8 +32,8 @@ import com.azure.management.resources.fluentcore.arm.AvailabilityZoneId; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountKey; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountKey; import com.microsoft.azure.storage.CloudStorageAccount; import com.microsoft.azure.storage.blob.CloudBlobClient; import com.microsoft.azure.storage.blob.CloudBlobContainer; diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java index 0894777775d5..7787e264845e 100644 --- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java +++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/Registry.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; import java.util.Collection; import reactor.core.publisher.Mono; diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java index 0a3f8b7ac1ca..4bc9f0b576e6 100644 --- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java +++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java @@ -20,7 +20,7 @@ import com.azure.management.resources.fluentcore.arm.ResourceUtils; import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.model.Creatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.implementation.StorageManager; import java.time.OffsetDateTime; import java.util.Collection; diff --git a/sdk/management/azure/src/main/java/com/azure/management/Azure.java b/sdk/management/azure/src/main/java/com/azure/management/Azure.java index 206f70ac26c1..835b01578164 100644 --- a/sdk/management/azure/src/main/java/com/azure/management/Azure.java +++ b/sdk/management/azure/src/main/java/com/azure/management/Azure.java @@ -86,12 +86,12 @@ import com.azure.management.resources.implementation.ResourceManager; import com.azure.management.sql.SqlServers; import com.azure.management.sql.implementation.SqlServerManager; -import com.azure.management.storage.BlobContainers; -import com.azure.management.storage.BlobServices; -import com.azure.management.storage.ManagementPolicies; -import com.azure.management.storage.StorageAccounts; -import com.azure.management.storage.StorageSkus; -import com.azure.management.storage.Usages; +import com.azure.management.storage.models.BlobContainers; +import com.azure.management.storage.models.BlobServices; +import com.azure.management.storage.models.ManagementPolicies; +import com.azure.management.storage.models.StorageAccounts; +import com.azure.management.storage.models.StorageSkus; +import com.azure.management.storage.models.Usages; import com.azure.management.storage.implementation.StorageManager; /** The entry point for accessing resource management APIs in Azure. */ diff --git a/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java b/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java index cf1ac33ae3b3..d2740a291e3b 100644 --- a/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java +++ b/sdk/management/azure/src/test/java/com/azure/management/AzureTests.java @@ -43,8 +43,8 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java b/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java index 5c664ab7397b..57c94cf92369 100644 --- a/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java +++ b/sdk/management/azure/src/test/java/com/azure/management/TestNetworkWatcher.java @@ -18,8 +18,8 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.CreatedResources; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccounts; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccounts; import java.util.ArrayList; import java.util.List; import org.junit.jupiter.api.Assertions; diff --git a/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java b/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java index e08396868543..d7004b8a3223 100644 --- a/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java +++ b/sdk/management/azure/src/test/java/com/azure/management/TestResourceStreaming.java @@ -11,8 +11,8 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.arm.models.Resource; import com.azure.management.resources.fluentcore.model.Creatable; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccounts; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccounts; import java.util.concurrent.atomic.AtomicInteger; import org.junit.jupiter.api.Assertions; diff --git a/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java b/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java index 106d135d3c94..808d29d207b8 100644 --- a/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java +++ b/sdk/management/azure/src/test/java/com/azure/management/VirtualNetworkGatewayTests.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/sdk/management/gulpfile.js b/sdk/management/gulpfile.js index ac680a45aac2..1d17658d4b8a 100644 --- a/sdk/management/gulpfile.js +++ b/sdk/management/gulpfile.js @@ -126,7 +126,7 @@ function codegen(project, cb) { cmd = autoRestExe + ' ' + readmeFile + ' --java ' + ' --azure-arm=true ' + - ' --track1-naming=true --generate-client-as-impl=true --implementation-subpackage=models --sync-methods=all --required-parameter-client-methods=true --add-context-parameter=true --context-client-method-parameter=true --client-side-validations=true --client-logger=true ' + + ' --track1-naming=true --implementation-subpackage=inner --sync-methods=all --required-parameter-client-methods=true --add-context-parameter=true --context-client-method-parameter=true --client-side-validations=true --client-logger=true ' + generator + ` --java.namespace=${mappings[project].package} ` + ` --java.output-folder=${outDir} ` + diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java index 1e0b54b80803..b63ea23646f4 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java +++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxFunctionAppSourceControl.java @@ -14,7 +14,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccountSkuType; +import com.azure.management.storage.models.StorageAccountSkuType; import com.azure.core.http.policy.HttpLogDetailLevel; import org.apache.commons.lang.time.StopWatch; diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java index 971c44e5ecb1..dcd5fbb5d1dc 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java +++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageLinuxWebAppStorageAccountConnection.java @@ -16,7 +16,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.storage.blob.BlobClient; import com.azure.storage.blob.BlobContainerClient; diff --git a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java index 89d5b4850647..7c2bc7792859 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java +++ b/sdk/management/samples/src/main/java/com/azure/management/appservice/samples/ManageWebAppStorageAccountConnection.java @@ -17,7 +17,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.storage.blob.BlobClient; import com.azure.storage.blob.BlobContainerClient; diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java index 493825c3a88b..2d80b2a4b501 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java +++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/CreateVirtualMachinesInParallel.java @@ -18,7 +18,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.CreatedResources; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.HashMap; diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java index 4207b707d016..ffa569e5c2eb 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java +++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageResourceFromMSIEnabledVirtualMachineBelongsToAADGroup.java @@ -19,7 +19,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.List; diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java index b0965f4675c6..cec85f9321b9 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java +++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageStorageFromMSIEnabledVirtualMachine.java @@ -16,7 +16,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.List; diff --git a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java index 29300b57a23b..93207b452b99 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java +++ b/sdk/management/samples/src/main/java/com/azure/management/compute/samples/ManageVirtualMachinesInParallel.java @@ -16,7 +16,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.Collection; diff --git a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java index e2b4b0fdbe70..ba0827df26cc 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java +++ b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/QueryMetricsAndActivityLogs.java @@ -21,9 +21,9 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.AccessTier; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountKey; +import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountKey; import com.azure.storage.blob.BlobClient; import com.azure.storage.blob.BlobContainerClient; import com.azure.storage.blob.BlobContainerClientBuilder; diff --git a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java index e381f990b913..50c91b4254ce 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java +++ b/sdk/management/samples/src/main/java/com/azure/management/monitor/samples/SecurityBreachOrRiskActivityLogAlerts.java @@ -16,8 +16,8 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.AccessTier; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java index 3b05b2b83a9e..5fc0a0350720 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java +++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageApplicationGateway.java @@ -21,7 +21,7 @@ import com.azure.management.resources.fluentcore.model.CreatedResources; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import org.apache.commons.lang.time.StopWatch; import java.io.File; diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java index 4615b6e409f4..6ac1ef854c82 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java +++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageNetworkWatcher.java @@ -28,7 +28,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.storage.blob.BlobClient; import com.azure.storage.blob.BlobContainerClient; import com.azure.storage.blob.BlobServiceClient; diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java index f13bbe8fefb8..288562053eca 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java +++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVirtualMachinesInParallelWithNetwork.java @@ -19,7 +19,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import org.apache.commons.lang.time.StopWatch; import java.util.ArrayList; diff --git a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java index 02f837e664d3..318351977ecb 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java +++ b/sdk/management/samples/src/main/java/com/azure/management/network/samples/ManageVpnGatewayVNet2VNetConnection.java @@ -23,7 +23,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.storage.blob.BlobContainerClient; import com.azure.storage.blob.BlobServiceClient; import com.azure.storage.blob.BlobServiceClientBuilder; diff --git a/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java b/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java index d40c94f87266..79ef27a3fd26 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java +++ b/sdk/management/samples/src/main/java/com/azure/management/resources/samples/ManageResource.java @@ -10,8 +10,8 @@ import com.azure.management.Azure; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; /** * Azure Resource sample for managing resources - diff --git a/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java b/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java index c65909d97d9f..dd995fe5de27 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java +++ b/sdk/management/samples/src/main/java/com/azure/management/samples/Utils.java @@ -151,10 +151,10 @@ import com.azure.management.sql.SqlServerKey; import com.azure.management.sql.SqlSubscriptionUsageMetric; import com.azure.management.sql.SqlVirtualNetworkRule; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountEncryptionStatus; -import com.azure.management.storage.StorageAccountKey; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.StorageAccountKey; +import com.azure.management.storage.models.StorageService; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import reactor.core.publisher.Flux; diff --git a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java index d30cdb7c9f37..c497756a7333 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java +++ b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlImportExportDatabase.java @@ -16,7 +16,7 @@ import com.azure.management.sql.SampleName; import com.azure.management.sql.SqlDatabase; import com.azure.management.sql.SqlServer; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; /** * Azure SQL sample for managing import/export SQL Database - diff --git a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java index 89d5e18b8944..be42b42aa2a4 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java +++ b/sdk/management/samples/src/main/java/com/azure/management/sql/samples/ManageSqlServerSecurityAlertPolicy.java @@ -15,7 +15,7 @@ import com.azure.management.sql.SqlDatabaseStandardServiceObjective; import com.azure.management.sql.SqlServer; import com.azure.management.sql.SqlServerSecurityAlertPolicy; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; /** * Azure SQL sample for managing SQL Server Security Alert Policy diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java index 3ed1c60b34b6..64216d5668fd 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java +++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccount.java @@ -13,11 +13,11 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountEncryptionStatus; -import com.azure.management.storage.StorageAccountKey; -import com.azure.management.storage.StorageAccounts; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.StorageAccountKey; +import com.azure.management.storage.models.StorageAccounts; +import com.azure.management.storage.models.StorageService; import java.util.List; import java.util.Map; diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java index 2c76cabb54d4..332924ca3c01 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java +++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountAsync.java @@ -12,8 +12,8 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccounts; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccounts; import reactor.core.publisher.Flux; /** diff --git a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java index 710e8133067f..0c07cd34ddeb 100644 --- a/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java +++ b/sdk/management/samples/src/main/java/com/azure/management/storage/samples/ManageStorageAccountNetworkRules.java @@ -17,7 +17,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.samples.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; /** * Azure Storage sample for managing storage account network rules - diff --git a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java index d10da4d45c72..75529cfa730f 100644 --- a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java +++ b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/AlertsTests.java @@ -10,7 +10,7 @@ import com.azure.management.resources.core.TestUtilities; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.Duration; import java.time.OffsetDateTime; import java.util.Arrays; diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java index 65fede1a8570..88261032f17d 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabase.java @@ -15,7 +15,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.sql.models.DatabaseInner; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java index 1caba94f04b8..649a31c57724 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseExportRequest.java @@ -7,7 +7,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Executable; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; /** An immutable client-side representation of an Azure SQL Database export operation request. */ @Fluent diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java index 5db486df6b83..a762802e4bdc 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseImportRequest.java @@ -6,7 +6,7 @@ import com.azure.management.resources.fluentcore.arm.models.HasParent; import com.azure.management.resources.fluentcore.model.Executable; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; /** An immutable client-side representation of an Azure SQL Database import operation request. */ @Fluent diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java index 097ad4c32cde..d98ef9a24211 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/SqlDatabaseOperations.java @@ -6,7 +6,7 @@ import com.azure.management.resources.fluentcore.arm.models.Resource; import com.azure.management.resources.fluentcore.collection.SupportsCreating; import com.azure.management.resources.fluentcore.model.Creatable; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; /** A representation of the Azure SQL Database operations. */ diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java index 974fc0447a22..11e9214d018d 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseExportRequestImpl.java @@ -13,7 +13,7 @@ import com.azure.management.sql.SqlDatabaseExportRequest; import com.azure.management.sql.SqlDatabaseImportExportResponse; import com.azure.management.sql.StorageKeyType; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import com.azure.storage.blob.BlobServiceClient; import com.azure.storage.blob.BlobServiceClientBuilder; import com.azure.storage.blob.implementation.models.StorageErrorException; diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java index 4af229793edb..9d4723b7e9bf 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseForElasticPoolImpl.java @@ -8,7 +8,7 @@ import com.azure.management.sql.SampleName; import com.azure.management.sql.SqlDatabase; import com.azure.management.sql.SqlElasticPoolOperations; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java index 844c64947a16..08dd64d6015e 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImpl.java @@ -52,7 +52,7 @@ import com.azure.management.sql.models.RestorePointInner; import com.azure.management.sql.models.ServiceTierAdvisorInner; import com.azure.management.sql.models.TransparentDataEncryptionInner; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; diff --git a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java index 9b51d30b0791..4f9340966a57 100644 --- a/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java +++ b/sdk/sql/mgmt/src/main/java/com/azure/management/sql/implementation/SqlDatabaseImportRequestImpl.java @@ -11,7 +11,7 @@ import com.azure.management.sql.SqlDatabaseImportExportResponse; import com.azure.management.sql.SqlDatabaseImportRequest; import com.azure.management.sql.StorageKeyType; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.Objects; import reactor.core.publisher.Mono; diff --git a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java index 0fc36a881248..45d0dedb6402 100644 --- a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java +++ b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerOperationsTests.java @@ -11,7 +11,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.StorageAccount; +import com.azure.management.storage.models.StorageAccount; import java.util.ArrayList; import java.util.List; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java new file mode 100644 index 000000000000..128aebbca657 --- /dev/null +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -0,0 +1,365 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.management.storage; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.util.logging.ClientLogger; +import com.azure.management.AzureServiceClient; +import com.azure.management.storage.inner.BlobContainersClient; +import com.azure.management.storage.inner.BlobServicesClient; +import com.azure.management.storage.inner.EncryptionScopesClient; +import com.azure.management.storage.inner.FileServicesClient; +import com.azure.management.storage.inner.FileSharesClient; +import com.azure.management.storage.inner.ManagementPoliciesClient; +import com.azure.management.storage.inner.ObjectReplicationPoliciesOperationsClient; +import com.azure.management.storage.inner.OperationsClient; +import com.azure.management.storage.inner.PrivateEndpointConnectionsClient; +import com.azure.management.storage.inner.PrivateLinkResourcesClient; +import com.azure.management.storage.inner.QueueServicesClient; +import com.azure.management.storage.inner.QueuesClient; +import com.azure.management.storage.inner.SkusClient; +import com.azure.management.storage.inner.StorageAccountsClient; +import com.azure.management.storage.inner.TableServicesClient; +import com.azure.management.storage.inner.TablesClient; +import com.azure.management.storage.inner.UsagesClient; + +/** Initializes a new instance of the StorageManagementClient type. */ +public final class StorageManagementClient extends AzureServiceClient { + private final ClientLogger logger = new ClientLogger(StorageManagementClient.class); + + /** The ID of the target subscription. */ + private String subscriptionId; + + /** + * Gets The ID of the target subscription. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + + /** + * Sets The ID of the target subscription. + * + * @param subscriptionId the subscriptionId value. + * @return the service client itself. + */ + StorageManagementClient setSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** server parameter. */ + private String host; + + /** + * Gets server parameter. + * + * @return the host value. + */ + public String getHost() { + return this.host; + } + + /** + * Sets server parameter. + * + * @param host the host value. + * @return the service client itself. + */ + StorageManagementClient setHost(String host) { + this.host = host; + return this; + } + + /** Api Version. */ + private String apiVersion; + + /** + * Gets Api Version. + * + * @return the apiVersion value. + */ + public String getApiVersion() { + return this.apiVersion; + } + + /** + * Sets Api Version. + * + * @param apiVersion the apiVersion value. + * @return the service client itself. + */ + StorageManagementClient setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** The HTTP pipeline to send requests through. */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** The OperationsClient object to access its operations. */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient operations() { + return this.operations; + } + + /** The SkusClient object to access its operations. */ + private final SkusClient skus; + + /** + * Gets the SkusClient object to access its operations. + * + * @return the SkusClient object. + */ + public SkusClient skus() { + return this.skus; + } + + /** The StorageAccountsClient object to access its operations. */ + private final StorageAccountsClient storageAccounts; + + /** + * Gets the StorageAccountsClient object to access its operations. + * + * @return the StorageAccountsClient object. + */ + public StorageAccountsClient storageAccounts() { + return this.storageAccounts; + } + + /** The UsagesClient object to access its operations. */ + private final UsagesClient usages; + + /** + * Gets the UsagesClient object to access its operations. + * + * @return the UsagesClient object. + */ + public UsagesClient usages() { + return this.usages; + } + + /** The ManagementPoliciesClient object to access its operations. */ + private final ManagementPoliciesClient managementPolicies; + + /** + * Gets the ManagementPoliciesClient object to access its operations. + * + * @return the ManagementPoliciesClient object. + */ + public ManagementPoliciesClient managementPolicies() { + return this.managementPolicies; + } + + /** The PrivateEndpointConnectionsClient object to access its operations. */ + private final PrivateEndpointConnectionsClient privateEndpointConnections; + + /** + * Gets the PrivateEndpointConnectionsClient object to access its operations. + * + * @return the PrivateEndpointConnectionsClient object. + */ + public PrivateEndpointConnectionsClient privateEndpointConnections() { + return this.privateEndpointConnections; + } + + /** The PrivateLinkResourcesClient object to access its operations. */ + private final PrivateLinkResourcesClient privateLinkResources; + + /** + * Gets the PrivateLinkResourcesClient object to access its operations. + * + * @return the PrivateLinkResourcesClient object. + */ + public PrivateLinkResourcesClient privateLinkResources() { + return this.privateLinkResources; + } + + /** The ObjectReplicationPoliciesOperationsClient object to access its operations. */ + private final ObjectReplicationPoliciesOperationsClient objectReplicationPoliciesOperations; + + /** + * Gets the ObjectReplicationPoliciesOperationsClient object to access its operations. + * + * @return the ObjectReplicationPoliciesOperationsClient object. + */ + public ObjectReplicationPoliciesOperationsClient objectReplicationPoliciesOperations() { + return this.objectReplicationPoliciesOperations; + } + + /** The EncryptionScopesClient object to access its operations. */ + private final EncryptionScopesClient encryptionScopes; + + /** + * Gets the EncryptionScopesClient object to access its operations. + * + * @return the EncryptionScopesClient object. + */ + public EncryptionScopesClient encryptionScopes() { + return this.encryptionScopes; + } + + /** The BlobServicesClient object to access its operations. */ + private final BlobServicesClient blobServices; + + /** + * Gets the BlobServicesClient object to access its operations. + * + * @return the BlobServicesClient object. + */ + public BlobServicesClient blobServices() { + return this.blobServices; + } + + /** The BlobContainersClient object to access its operations. */ + private final BlobContainersClient blobContainers; + + /** + * Gets the BlobContainersClient object to access its operations. + * + * @return the BlobContainersClient object. + */ + public BlobContainersClient blobContainers() { + return this.blobContainers; + } + + /** The FileServicesClient object to access its operations. */ + private final FileServicesClient fileServices; + + /** + * Gets the FileServicesClient object to access its operations. + * + * @return the FileServicesClient object. + */ + public FileServicesClient fileServices() { + return this.fileServices; + } + + /** The FileSharesClient object to access its operations. */ + private final FileSharesClient fileShares; + + /** + * Gets the FileSharesClient object to access its operations. + * + * @return the FileSharesClient object. + */ + public FileSharesClient fileShares() { + return this.fileShares; + } + + /** The QueueServicesClient object to access its operations. */ + private final QueueServicesClient queueServices; + + /** + * Gets the QueueServicesClient object to access its operations. + * + * @return the QueueServicesClient object. + */ + public QueueServicesClient queueServices() { + return this.queueServices; + } + + /** The QueuesClient object to access its operations. */ + private final QueuesClient queues; + + /** + * Gets the QueuesClient object to access its operations. + * + * @return the QueuesClient object. + */ + public QueuesClient queues() { + return this.queues; + } + + /** The TableServicesClient object to access its operations. */ + private final TableServicesClient tableServices; + + /** + * Gets the TableServicesClient object to access its operations. + * + * @return the TableServicesClient object. + */ + public TableServicesClient tableServices() { + return this.tableServices; + } + + /** The TablesClient object to access its operations. */ + private final TablesClient tables; + + /** + * Gets the TablesClient object to access its operations. + * + * @return the TablesClient object. + */ + public TablesClient tables() { + return this.tables; + } + + /** Initializes an instance of StorageManagementClient client. */ + public StorageManagementClient() { + this( + new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(), + AzureEnvironment.AZURE); + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + */ + public StorageManagementClient(HttpPipeline httpPipeline) { + this(httpPipeline, AzureEnvironment.AZURE); + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param environment The Azure environment. + */ + StorageManagementClient(HttpPipeline httpPipeline, AzureEnvironment environment) { + super(httpPipeline, environment); + this.httpPipeline = httpPipeline; + this.operations = new OperationsClient(this); + this.skus = new SkusClient(this); + this.storageAccounts = new StorageAccountsClient(this); + this.usages = new UsagesClient(this); + this.managementPolicies = new ManagementPoliciesClient(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsClient(this); + this.privateLinkResources = new PrivateLinkResourcesClient(this); + this.objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsClient(this); + this.encryptionScopes = new EncryptionScopesClient(this); + this.blobServices = new BlobServicesClient(this); + this.blobContainers = new BlobContainersClient(this); + this.fileServices = new FileServicesClient(this); + this.fileShares = new FileSharesClient(this); + this.queueServices = new QueueServicesClient(this); + this.queues = new QueuesClient(this); + this.tableServices = new TableServicesClient(this); + this.tables = new TablesClient(this); + } +} diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java similarity index 80% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java index 77bdba28d936..f4a4d2215583 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientBuilder.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage; import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; @@ -12,8 +12,8 @@ import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; -/** A builder for creating a new instance of the StorageManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = {StorageManagementClientImpl.class}) +/** A builder for creating a new instance of the StorageManagementClient type. */ +@ServiceClientBuilder(serviceClients = {StorageManagementClient.class}) public final class StorageManagementClientBuilder { /* * The ID of the target subscription. @@ -52,17 +52,6 @@ public StorageManagementClientBuilder host(String host) { */ private String apiVersion; - /** - * Sets Api Version. - * - * @param apiVersion the apiVersion value. - * @return the StorageManagementClientBuilder. - */ - public StorageManagementClientBuilder apiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - /* * The environment to connect to */ @@ -96,11 +85,11 @@ public StorageManagementClientBuilder pipeline(HttpPipeline pipeline) { } /** - * Builds an instance of StorageManagementClientImpl with the provided parameters. + * Builds an instance of StorageManagementClient with the provided parameters. * - * @return an instance of StorageManagementClientImpl. + * @return an instance of StorageManagementClient. */ - public StorageManagementClientImpl buildClient() { + public StorageManagementClient buildClient() { if (host == null) { this.host = "https://management.azure.com"; } @@ -116,7 +105,7 @@ public StorageManagementClientImpl buildClient() { .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(); } - StorageManagementClientImpl client = new StorageManagementClientImpl(pipeline, environment); + StorageManagementClient client = new StorageManagementClient(pipeline, environment); client.setSubscriptionId(this.subscriptionId); client.setHost(this.host); client.setApiVersion(this.apiVersion); diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java index e33430e7c011..0768f907f9f0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java @@ -3,7 +3,7 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.AccountStatus; +import com.azure.management.storage.models.AccountStatus; /** An instance of this class stores the availability of a storage account. */ public class AccountStatuses { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java index 76ccac2357eb..d3193002c512 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java @@ -4,15 +4,15 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; -import com.azure.management.storage.BlobContainer; -import com.azure.management.storage.ImmutabilityPolicyProperties; -import com.azure.management.storage.LeaseDuration; -import com.azure.management.storage.LeaseState; -import com.azure.management.storage.LeaseStatus; -import com.azure.management.storage.LegalHoldProperties; -import com.azure.management.storage.PublicAccess; -import com.azure.management.storage.models.BlobContainerInner; -import com.azure.management.storage.models.BlobContainersInner; +import com.azure.management.storage.models.BlobContainer; +import com.azure.management.storage.models.ImmutabilityPolicyProperties; +import com.azure.management.storage.models.LeaseDuration; +import com.azure.management.storage.models.LeaseState; +import com.azure.management.storage.models.LeaseStatus; +import com.azure.management.storage.models.LegalHoldProperties; +import com.azure.management.storage.models.PublicAccess; +import com.azure.management.storage.inner.BlobContainerInner; +import com.azure.management.storage.inner.BlobContainersClient; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -56,7 +56,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobContainersInner client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().blobContainers(); return client .createAsync(this.resourceGroupName, this.accountName, this.containerName, this.inner().withPublicAccess(cpublicAccess).withMetadata(cmetadata)) @@ -65,7 +65,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobContainersInner client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().blobContainers(); return client .updateAsync(this.resourceGroupName, this.accountName, this.containerName, this.inner().withPublicAccess(upublicAccess).withMetadata(umetadata)) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java index 0023cae37e47..3024ac8ca2c5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java @@ -5,18 +5,18 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; -import com.azure.management.storage.BlobContainer; -import com.azure.management.storage.BlobContainers; -import com.azure.management.storage.ImmutabilityPolicy; -import com.azure.management.storage.LegalHold; -import com.azure.management.storage.models.BlobContainerInner; -import com.azure.management.storage.models.BlobContainersInner; -import com.azure.management.storage.models.ImmutabilityPolicyInner; -import com.azure.management.storage.models.ListContainerItemInner; +import com.azure.management.storage.models.BlobContainer; +import com.azure.management.storage.models.BlobContainers; +import com.azure.management.storage.models.ImmutabilityPolicy; +import com.azure.management.storage.models.LegalHold; +import com.azure.management.storage.inner.BlobContainerInner; +import com.azure.management.storage.inner.BlobContainersClient; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.inner.ListContainerItemInner; import java.util.List; import reactor.core.publisher.Mono; -class BlobContainersImpl extends WrapperImpl implements BlobContainers { +class BlobContainersImpl extends WrapperImpl implements BlobContainers { private final StorageManager manager; BlobContainersImpl(StorageManager manager) { @@ -54,23 +54,23 @@ private ImmutabilityPolicyImpl wrapImmutabilityPolicyModel(ImmutabilityPolicyInn return new ImmutabilityPolicyImpl(inner, manager()); } - public Mono getImmutabilityPolicyInnerUsingBlobContainersInnerAsync(String id) { + public Mono getImmutabilityPolicyInnerUsingBlobContainersClientAsync(String id) { String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); String accountName = IdParsingUtils.getValueFromIdByName(id, "storageAccounts"); String containerName = IdParsingUtils.getValueFromIdByName(id, "containers"); - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client.getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName); } @Override public PagedFlux listAsync(String resourceGroupName, String accountName) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client.listAsync(resourceGroupName, accountName); } @Override public Mono getAsync(String resourceGroupName, String accountName, String containerName) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .getAsync(resourceGroupName, accountName, containerName) .map(this::wrapBlobContainerModel); @@ -78,14 +78,14 @@ public Mono getAsync(String resourceGroupName, String accountName @Override public Mono deleteAsync(String resourceGroupName, String accountName, String containerName) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client.deleteAsync(resourceGroupName, accountName, containerName); } @Override public Mono setLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .setLegalHoldAsync(resourceGroupName, accountName, containerName, tags) .map(legalHoldInner -> new LegalHoldImpl(legalHoldInner, manager())); @@ -94,7 +94,7 @@ public Mono setLegalHoldAsync( @Override public Mono clearLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags) .map(legalHoldInner -> new LegalHoldImpl(legalHoldInner, manager())); @@ -103,7 +103,7 @@ public Mono clearLegalHoldAsync( @Override public Mono getImmutabilityPolicyAsync( String resourceGroupName, String accountName, String containerName) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName) .map(this::wrapImmutabilityPolicyModel); @@ -130,7 +130,7 @@ public Mono lockImmutabilityPolicyAsync( @Override public Mono lockImmutabilityPolicyAsync( String resourceGroupName, String accountName, String containerName, String eTagValue) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, eTagValue) .map(inner -> new ImmutabilityPolicyImpl(inner, manager())); @@ -160,7 +160,7 @@ public Mono extendImmutabilityPolicyAsync( int immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, String eTagValue) { - BlobContainersInner client = this.inner(); + BlobContainersClient client = this.inner(); return client .extendImmutabilityPolicyAsync( resourceGroupName, diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServiceEncryptionStatusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServiceEncryptionStatusImpl.java index fe1e156ca5b6..c629c250a82b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServiceEncryptionStatusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServiceEncryptionStatusImpl.java @@ -3,9 +3,9 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.StorageService; /** Implementation of StorageAccountEncryptionStatus for Blob service. */ class BlobServiceEncryptionStatusImpl extends StorageAccountEncryptionStatusImpl { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java index fcb26ef0c15b..f96b0e2ab43b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java @@ -4,12 +4,12 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; -import com.azure.management.storage.BlobServiceProperties; -import com.azure.management.storage.CorsRule; -import com.azure.management.storage.CorsRules; -import com.azure.management.storage.DeleteRetentionPolicy; -import com.azure.management.storage.models.BlobServicePropertiesInner; -import com.azure.management.storage.models.BlobServicesInner; +import com.azure.management.storage.models.BlobServiceProperties; +import com.azure.management.storage.models.CorsRule; +import com.azure.management.storage.models.CorsRules; +import com.azure.management.storage.models.DeleteRetentionPolicy; +import com.azure.management.storage.inner.BlobServicePropertiesInner; +import com.azure.management.storage.inner.BlobServicesClient; import java.util.ArrayList; import java.util.List; import reactor.core.publisher.Mono; @@ -47,7 +47,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobServicesInner client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().blobServices(); return client .setServicePropertiesAsync(this.resourceGroupName, this.accountName, this.inner()) .map(innerToFluentMap(this)); @@ -55,7 +55,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobServicesInner client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().blobServices(); return client .setServicePropertiesAsync(this.resourceGroupName, this.accountName, this.inner()) .map(innerToFluentMap(this)); @@ -63,7 +63,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - BlobServicesInner client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().blobServices(); return client.getServicePropertiesAsync(this.resourceGroupName, this.accountName); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java index 1d179dda45d3..439bf78eda19 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java @@ -4,13 +4,13 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; -import com.azure.management.storage.BlobServiceProperties; -import com.azure.management.storage.BlobServices; -import com.azure.management.storage.models.BlobServicePropertiesInner; -import com.azure.management.storage.models.BlobServicesInner; +import com.azure.management.storage.models.BlobServiceProperties; +import com.azure.management.storage.models.BlobServices; +import com.azure.management.storage.inner.BlobServicePropertiesInner; +import com.azure.management.storage.inner.BlobServicesClient; import reactor.core.publisher.Mono; -class BlobServicesImpl extends WrapperImpl implements BlobServices { +class BlobServicesImpl extends WrapperImpl implements BlobServices { private final StorageManager manager; BlobServicesImpl(StorageManager manager) { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/FileServiceEncryptionStatusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/FileServiceEncryptionStatusImpl.java index d667fe8133b3..91f881be0acc 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/FileServiceEncryptionStatusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/FileServiceEncryptionStatusImpl.java @@ -3,9 +3,9 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.StorageService; /** Implementation of StorageAccountEncryptionStatus for File service. */ class FileServiceEncryptionStatusImpl extends StorageAccountEncryptionStatusImpl { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java index 94051b59bf0b..cc956d3c2254 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java @@ -5,10 +5,10 @@ import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.resources.fluentcore.utils.ETagState; -import com.azure.management.storage.ImmutabilityPolicy; -import com.azure.management.storage.ImmutabilityPolicyState; -import com.azure.management.storage.models.BlobContainersInner; -import com.azure.management.storage.models.ImmutabilityPolicyInner; +import com.azure.management.storage.models.ImmutabilityPolicy; +import com.azure.management.storage.models.ImmutabilityPolicyState; +import com.azure.management.storage.inner.BlobContainersClient; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; import reactor.core.publisher.Mono; class ImmutabilityPolicyImpl @@ -49,7 +49,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobContainersInner client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().blobContainers(); return client .createOrUpdateImmutabilityPolicyAsync( this.resourceGroupName, @@ -63,7 +63,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobContainersInner client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().blobContainers(); return client .createOrUpdateImmutabilityPolicyAsync( this.resourceGroupName, @@ -82,7 +82,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - BlobContainersInner client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().blobContainers(); return client.getImmutabilityPolicyAsync(this.resourceGroupName, this.accountName, this.containerName, null); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java index 710c3dcd90d0..a7bc781a6c4a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java @@ -4,8 +4,8 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; -import com.azure.management.storage.LegalHold; -import com.azure.management.storage.models.LegalHoldInner; +import com.azure.management.storage.models.LegalHold; +import com.azure.management.storage.inner.LegalHoldInner; import java.util.List; class LegalHoldImpl extends WrapperImpl implements LegalHold { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java index 9cab200daf26..b2d983bf8c65 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java @@ -4,13 +4,13 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; -import com.azure.management.storage.ManagementPolicies; -import com.azure.management.storage.ManagementPolicy; -import com.azure.management.storage.models.ManagementPoliciesInner; -import com.azure.management.storage.models.ManagementPolicyInner; +import com.azure.management.storage.models.ManagementPolicies; +import com.azure.management.storage.models.ManagementPolicy; +import com.azure.management.storage.inner.ManagementPoliciesClient; +import com.azure.management.storage.inner.ManagementPolicyInner; import reactor.core.publisher.Mono; -class ManagementPoliciesImpl extends WrapperImpl implements ManagementPolicies { +class ManagementPoliciesImpl extends WrapperImpl implements ManagementPolicies { private final StorageManager manager; ManagementPoliciesImpl(StorageManager manager) { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java index 602654078331..4e648fd2ec80 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java @@ -5,15 +5,15 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; -import com.azure.management.storage.BlobTypes; -import com.azure.management.storage.ManagementPolicy; -import com.azure.management.storage.ManagementPolicyBaseBlob; -import com.azure.management.storage.ManagementPolicyRule; -import com.azure.management.storage.ManagementPolicySchema; -import com.azure.management.storage.ManagementPolicySnapShot; -import com.azure.management.storage.PolicyRule; -import com.azure.management.storage.models.ManagementPoliciesInner; -import com.azure.management.storage.models.ManagementPolicyInner; +import com.azure.management.storage.models.BlobTypes; +import com.azure.management.storage.models.ManagementPolicy; +import com.azure.management.storage.models.ManagementPolicyBaseBlob; +import com.azure.management.storage.models.ManagementPolicyRule; +import com.azure.management.storage.models.ManagementPolicySchema; +import com.azure.management.storage.models.ManagementPolicySnapShot; +import com.azure.management.storage.models.PolicyRule; +import com.azure.management.storage.inner.ManagementPoliciesClient; +import com.azure.management.storage.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; @@ -59,7 +59,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - ManagementPoliciesInner client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().managementPolicies(); return client .createOrUpdateAsync(this.resourceGroupName, this.accountName, cpolicy) .map( @@ -72,7 +72,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - ManagementPoliciesInner client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().managementPolicies(); return client .createOrUpdateAsync(this.resourceGroupName, this.accountName, upolicy) .map( @@ -85,7 +85,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - ManagementPoliciesInner client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().managementPolicies(); return client.getAsync(this.resourceGroupName, this.accountName); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/PolicyRuleImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/PolicyRuleImpl.java index e73832a32c1f..a9d92568f6fe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/PolicyRuleImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/PolicyRuleImpl.java @@ -4,17 +4,17 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.BlobTypes; -import com.azure.management.storage.DateAfterCreation; -import com.azure.management.storage.DateAfterModification; -import com.azure.management.storage.ManagementPolicy; -import com.azure.management.storage.ManagementPolicyAction; -import com.azure.management.storage.ManagementPolicyBaseBlob; -import com.azure.management.storage.ManagementPolicyDefinition; -import com.azure.management.storage.ManagementPolicyFilter; -import com.azure.management.storage.ManagementPolicyRule; -import com.azure.management.storage.ManagementPolicySnapShot; -import com.azure.management.storage.PolicyRule; +import com.azure.management.storage.models.BlobTypes; +import com.azure.management.storage.models.DateAfterCreation; +import com.azure.management.storage.models.DateAfterModification; +import com.azure.management.storage.models.ManagementPolicy; +import com.azure.management.storage.models.ManagementPolicyAction; +import com.azure.management.storage.models.ManagementPolicyBaseBlob; +import com.azure.management.storage.models.ManagementPolicyDefinition; +import com.azure.management.storage.models.ManagementPolicyFilter; +import com.azure.management.storage.models.ManagementPolicyRule; +import com.azure.management.storage.models.ManagementPolicySnapShot; +import com.azure.management.storage.models.PolicyRule; import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/QueueServiceEncryptionStatusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/QueueServiceEncryptionStatusImpl.java index 94850048b2cd..e2dd498bb05e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/QueueServiceEncryptionStatusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/QueueServiceEncryptionStatusImpl.java @@ -3,9 +3,9 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.StorageService; /** Implementation of StorageAccountEncryptionStatus for Queue service. */ class QueueServiceEncryptionStatusImpl extends StorageAccountEncryptionStatusImpl { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountEncryptionStatusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountEncryptionStatusImpl.java index 195bf7e268aa..e33d804a9fbd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountEncryptionStatusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountEncryptionStatusImpl.java @@ -3,9 +3,9 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; import java.time.OffsetDateTime; /** Shared implementation of StorageAccountEncryptionStatus. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index 0fb817d2d0b9..9deb8e5604c4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -6,28 +6,28 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; -import com.azure.management.storage.AccessTier; -import com.azure.management.storage.AzureFilesIdentityBasedAuthentication; -import com.azure.management.storage.CustomDomain; -import com.azure.management.storage.DirectoryServiceOptions; -import com.azure.management.storage.Encryption; -import com.azure.management.storage.Identity; -import com.azure.management.storage.Kind; -import com.azure.management.storage.LargeFileSharesState; -import com.azure.management.storage.ProvisioningState; -import com.azure.management.storage.PublicEndpoints; -import com.azure.management.storage.Sku; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccountCreateParameters; -import com.azure.management.storage.StorageAccountEncryptionKeySource; -import com.azure.management.storage.StorageAccountEncryptionStatus; -import com.azure.management.storage.StorageAccountKey; -import com.azure.management.storage.StorageAccountSkuType; -import com.azure.management.storage.StorageAccountUpdateParameters; -import com.azure.management.storage.StorageService; -import com.azure.management.storage.models.StorageAccountInner; -import com.azure.management.storage.models.StorageAccountsInner; +import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.AzureFilesIdentityBasedAuthentication; +import com.azure.management.storage.models.CustomDomain; +import com.azure.management.storage.models.DirectoryServiceOptions; +import com.azure.management.storage.models.Encryption; +import com.azure.management.storage.models.Identity; +import com.azure.management.storage.models.Kind; +import com.azure.management.storage.models.LargeFileSharesState; +import com.azure.management.storage.models.ProvisioningState; +import com.azure.management.storage.models.PublicEndpoints; +import com.azure.management.storage.models.Sku; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountCreateParameters; +import com.azure.management.storage.models.StorageAccountEncryptionKeySource; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.StorageAccountKey; +import com.azure.management.storage.models.StorageAccountSkuType; +import com.azure.management.storage.models.StorageAccountUpdateParameters; +import com.azure.management.storage.models.StorageService; +import com.azure.management.storage.inner.StorageAccountInner; +import com.azure.management.storage.inner.StorageAccountsClient; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; @@ -500,7 +500,7 @@ public Mono createResourceAsync() { this.networkRulesHelper.setDefaultActionIfRequired(); createParameters.withLocation(this.regionName()); createParameters.withTags(this.inner().tags()); - final StorageAccountsInner client = this.manager().inner().storageAccounts(); + final StorageAccountsClient client = this.manager().inner().storageAccounts(); return this .manager() .inner() diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java index 266ba3883613..71961ba5e127 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java @@ -4,19 +4,19 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; -import com.azure.management.storage.CheckNameAvailabilityResult; -import com.azure.management.storage.ServiceSasParameters; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.StorageAccount; -import com.azure.management.storage.StorageAccounts; -import com.azure.management.storage.models.StorageAccountInner; -import com.azure.management.storage.models.StorageAccountsInner; +import com.azure.management.storage.models.CheckNameAvailabilityResult; +import com.azure.management.storage.models.ServiceSasParameters; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccounts; +import com.azure.management.storage.inner.StorageAccountInner; +import com.azure.management.storage.inner.StorageAccountsClient; import reactor.core.publisher.Mono; /** The implementation of StorageAccounts and its parent interfaces. */ class StorageAccountsImpl extends TopLevelModifiableResourcesImpl< - StorageAccount, StorageAccountImpl, StorageAccountInner, StorageAccountsInner, StorageManager> + StorageAccount, StorageAccountImpl, StorageAccountInner, StorageAccountsClient, StorageManager> implements StorageAccounts { StorageAccountsImpl(final StorageManager storageManager) { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java index 86bac7e2983f..7ee5b202cf8c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java @@ -3,17 +3,17 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.Encryption; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.KeySource; -import com.azure.management.storage.KeyVaultProperties; -import com.azure.management.storage.StorageAccountCreateParameters; -import com.azure.management.storage.StorageAccountEncryptionKeySource; -import com.azure.management.storage.StorageAccountEncryptionStatus; -import com.azure.management.storage.StorageAccountUpdateParameters; -import com.azure.management.storage.StorageService; -import com.azure.management.storage.models.StorageAccountInner; +import com.azure.management.storage.models.Encryption; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.KeySource; +import com.azure.management.storage.models.KeyVaultProperties; +import com.azure.management.storage.models.StorageAccountCreateParameters; +import com.azure.management.storage.models.StorageAccountEncryptionKeySource; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.StorageAccountUpdateParameters; +import com.azure.management.storage.models.StorageService; +import com.azure.management.storage.inner.StorageAccountInner; import java.util.HashMap; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java index 9ccf2f0e27a6..c663c094d5ef 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java @@ -11,17 +11,17 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.BlobContainers; -import com.azure.management.storage.BlobServices; -import com.azure.management.storage.ManagementPolicies; -import com.azure.management.storage.StorageAccounts; -import com.azure.management.storage.StorageSkus; -import com.azure.management.storage.Usages; -import com.azure.management.storage.models.StorageManagementClientBuilder; -import com.azure.management.storage.models.StorageManagementClientImpl; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.BlobContainers; +import com.azure.management.storage.models.BlobServices; +import com.azure.management.storage.models.ManagementPolicies; +import com.azure.management.storage.models.StorageAccounts; +import com.azure.management.storage.models.StorageSkus; +import com.azure.management.storage.models.Usages; +import com.azure.management.storage.StorageManagementClientBuilder; /** Entry point to Azure storage resource management. */ -public final class StorageManager extends Manager { +public final class StorageManager extends Manager { // Collections private StorageAccounts storageAccounts; private Usages storageUsages; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java index 656f344c849a..1d37a5506502 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java @@ -3,15 +3,15 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.Action; -import com.azure.management.storage.Bypass; -import com.azure.management.storage.DefaultAction; -import com.azure.management.storage.IpRule; -import com.azure.management.storage.NetworkRuleSet; -import com.azure.management.storage.StorageAccountCreateParameters; -import com.azure.management.storage.StorageAccountUpdateParameters; -import com.azure.management.storage.VirtualNetworkRule; -import com.azure.management.storage.models.StorageAccountInner; +import com.azure.management.storage.models.Action; +import com.azure.management.storage.models.Bypass; +import com.azure.management.storage.models.DefaultAction; +import com.azure.management.storage.models.IpRule; +import com.azure.management.storage.models.NetworkRuleSet; +import com.azure.management.storage.models.StorageAccountCreateParameters; +import com.azure.management.storage.models.StorageAccountUpdateParameters; +import com.azure.management.storage.models.VirtualNetworkRule; +import com.azure.management.storage.inner.StorageAccountInner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java index 36d10e9978bb..2fc1ec92f98c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java @@ -4,15 +4,15 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.arm.Region; -import com.azure.management.storage.Kind; -import com.azure.management.storage.Restriction; -import com.azure.management.storage.SkuCapability; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.SkuTier; -import com.azure.management.storage.StorageAccountSkuType; -import com.azure.management.storage.StorageResourceType; -import com.azure.management.storage.StorageSku; -import com.azure.management.storage.models.SkuInformationInner; +import com.azure.management.storage.models.Kind; +import com.azure.management.storage.models.Restriction; +import com.azure.management.storage.models.SkuCapability; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.SkuTier; +import com.azure.management.storage.models.StorageAccountSkuType; +import com.azure.management.storage.models.StorageResourceType; +import com.azure.management.storage.models.StorageSku; +import com.azure.management.storage.inner.SkuInformationInner; import java.util.ArrayList; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java index 3e15c95c30f0..31e4431aa485 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java @@ -5,9 +5,9 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; -import com.azure.management.storage.StorageSku; -import com.azure.management.storage.StorageSkus; -import com.azure.management.storage.models.SkusInner; +import com.azure.management.storage.models.StorageSku; +import com.azure.management.storage.models.StorageSkus; +import com.azure.management.storage.inner.SkusClient; /** The implementation for {@link StorageSkus}. */ class StorageSkusImpl implements StorageSkus { @@ -34,7 +34,7 @@ public PagedFlux listAsync() { } @Override - public SkusInner inner() { + public SkusClient inner() { return manager.inner().skus(); } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/TableServiceEncryptionStatusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/TableServiceEncryptionStatusImpl.java index 71b95b9ba3f8..13b30a26cf4d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/TableServiceEncryptionStatusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/TableServiceEncryptionStatusImpl.java @@ -3,9 +3,9 @@ package com.azure.management.storage.implementation; -import com.azure.management.storage.EncryptionService; -import com.azure.management.storage.EncryptionServices; -import com.azure.management.storage.StorageService; +import com.azure.management.storage.models.EncryptionService; +import com.azure.management.storage.models.EncryptionServices; +import com.azure.management.storage.models.StorageService; /** Implementation of StorageAccountEncryptionStatus for Table service. */ class TableServiceEncryptionStatusImpl extends StorageAccountEncryptionStatusImpl { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java index e013524fcfc3..f74c50b6f59c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java @@ -4,9 +4,9 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; -import com.azure.management.storage.Usages; -import com.azure.management.storage.models.UsageInner; -import com.azure.management.storage.models.UsagesInner; +import com.azure.management.storage.models.Usages; +import com.azure.management.storage.inner.UsageInner; +import com.azure.management.storage.inner.UsagesClient; /** The implementation of {@link Usages}. */ class UsagesImpl implements Usages { @@ -33,7 +33,7 @@ public PagedFlux listAsync() { } @Override - public UsagesInner inner() { + public UsagesClient inner() { return this.manager().inner().usages(); } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainerInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java similarity index 81% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainerInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java index 3ddad827f794..554906ffb1e5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainerInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java @@ -2,18 +2,18 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AzureEntityResource; -import com.azure.management.storage.ImmutabilityPolicyProperties; -import com.azure.management.storage.LeaseDuration; -import com.azure.management.storage.LeaseState; -import com.azure.management.storage.LeaseStatus; -import com.azure.management.storage.LegalHoldProperties; -import com.azure.management.storage.PublicAccess; +import com.azure.management.storage.models.AzureEntityResource; +import com.azure.management.storage.models.ImmutabilityPolicyProperties; +import com.azure.management.storage.models.LeaseDuration; +import com.azure.management.storage.models.LeaseState; +import com.azure.management.storage.models.LeaseStatus; +import com.azure.management.storage.models.LegalHoldProperties; +import com.azure.management.storage.models.PublicAccess; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -25,6 +25,30 @@ public class BlobContainerInner extends AzureEntityResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(BlobContainerInner.class); + /* + * The version of the deleted blob container. + */ + @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Indicates whether the blob container was deleted. + */ + @JsonProperty(value = "properties.deleted", access = JsonProperty.Access.WRITE_ONLY) + private Boolean deleted; + + /* + * Blob container deletion time. + */ + @JsonProperty(value = "properties.deletedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime deletedTime; + + /* + * Remaining retention days for soft deleted blob container. + */ + @JsonProperty(value = "properties.remainingRetentionDays", access = JsonProperty.Access.WRITE_ONLY) + private Integer remainingRetentionDays; + /* * Default the container to use specified encryption scope for all writes. */ @@ -106,6 +130,42 @@ public class BlobContainerInner extends AzureEntityResource { @JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) private Boolean hasImmutabilityPolicy; + /** + * Get the version property: The version of the deleted blob container. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the deleted property: Indicates whether the blob container was deleted. + * + * @return the deleted value. + */ + public Boolean deleted() { + return this.deleted; + } + + /** + * Get the deletedTime property: Blob container deletion time. + * + * @return the deletedTime value. + */ + public OffsetDateTime deletedTime() { + return this.deletedTime; + } + + /** + * Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container. + * + * @return the remainingRetentionDays value. + */ + public Integer remainingRetentionDays() { + return this.remainingRetentionDays; + } + /** * Get the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java index f719dd88efac..410eaae898da 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -32,26 +33,33 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.LeaseContainerRequest; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.BlobContainersCreateOrUpdateImmutabilityPolicyResponse; +import com.azure.management.storage.models.BlobContainersDeleteImmutabilityPolicyResponse; +import com.azure.management.storage.models.BlobContainersExtendImmutabilityPolicyResponse; +import com.azure.management.storage.models.BlobContainersGetImmutabilityPolicyResponse; +import com.azure.management.storage.models.BlobContainersLockImmutabilityPolicyResponse; +import com.azure.management.storage.models.LeaseContainerRequest; +import com.azure.management.storage.models.ListSharesExpand; import java.util.List; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BlobContainers. */ -public final class BlobContainersInner { - private final ClientLogger logger = new ClientLogger(BlobContainersInner.class); +public final class BlobContainersClient { + private final ClientLogger logger = new ClientLogger(BlobContainersClient.class); /** The proxy service used to perform REST calls. */ private final BlobContainersService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of BlobContainersInner. + * Initializes an instance of BlobContainersClient. * * @param client the instance of the service client containing this operation class. */ - BlobContainersInner(StorageManagementClientImpl client) { + public BlobContainersClient(StorageManagementClient client) { this.service = RestProxy.create(BlobContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; @@ -78,6 +86,7 @@ Mono> list( @PathParam("subscriptionId") String subscriptionId, @QueryParam("$maxpagesize") String maxpagesize, @QueryParam("$filter") String filter, + @QueryParam("$include") ListSharesExpand include, Context context); @Headers({"Accept: application/json", "Content-Type: application/json"}) @@ -177,8 +186,8 @@ Mono> clearLegalHold( @Headers({"Accept: application/json", "Content-Type: application/json"}) @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage" - + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}" - + "/immutabilityPolicies/{immutabilityPolicyName}") + + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies" + + "/{immutabilityPolicyName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono createOrUpdateImmutabilityPolicy( @@ -196,8 +205,8 @@ Mono createOrUpdateImmut @Headers({"Accept: application/json", "Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage" - + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}" - + "/immutabilityPolicies/{immutabilityPolicyName}") + + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies" + + "/{immutabilityPolicyName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono getImmutabilityPolicy( @@ -214,8 +223,8 @@ Mono getImmutabilityPolicy( @Headers({"Accept: application/json", "Content-Type: application/json"}) @Delete( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage" - + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}" - + "/immutabilityPolicies/{immutabilityPolicyName}") + + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies" + + "/{immutabilityPolicyName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono deleteImmutabilityPolicy( @@ -232,8 +241,8 @@ Mono deleteImmutabilityPolicy( @Headers({"Accept: application/json", "Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage" - + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}" - + "/immutabilityPolicies/default/lock") + + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies" + + "/default/lock") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono lockImmutabilityPolicy( @@ -249,8 +258,8 @@ Mono lockImmutabilityPolicy( @Headers({"Accept: application/json", "Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage" - + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}" - + "/immutabilityPolicies/default/extend") + + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies" + + "/default/extend") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono extendImmutabilityPolicy( @@ -298,6 +307,7 @@ Mono> listNext( * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -305,7 +315,7 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( - String resourceGroupName, String accountName, String maxpagesize, String filter) { + String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) { if (this.client.getHost() == null) { return Mono .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); @@ -335,6 +345,7 @@ public Mono> listSinglePageAsync( this.client.getSubscriptionId(), maxpagesize, filter, + include, context)) .>map( res -> @@ -358,6 +369,7 @@ public Mono> listSinglePageAsync( * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. * @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. @@ -366,7 +378,12 @@ public Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( - String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) { + String resourceGroupName, + String accountName, + String maxpagesize, + String filter, + ListSharesExpand include, + Context context) { if (this.client.getHost() == null) { return Mono .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); @@ -393,6 +410,7 @@ public Mono> listSinglePageAsync( this.client.getSubscriptionId(), maxpagesize, filter, + include, context) .map( res -> @@ -415,6 +433,7 @@ public Mono> listSinglePageAsync( * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -422,9 +441,9 @@ public Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync( - String resourceGroupName, String accountName, String maxpagesize, String filter) { + String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter), + () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -438,6 +457,7 @@ public PagedFlux listAsync( * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. * @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. @@ -446,9 +466,14 @@ public PagedFlux listAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync( - String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) { + String resourceGroupName, + String accountName, + String maxpagesize, + String filter, + ListSharesExpand include, + Context context) { return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, context), + () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include, context), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -469,9 +494,10 @@ public PagedFlux listAsync( public PagedFlux listAsync(String resourceGroupName, String accountName) { final String maxpagesize = null; final String filter = null; + final ListSharesExpand include = null; final Context context = null; return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter), + () -> listSinglePageAsync(resourceGroupName, accountName, maxpagesize, filter, include), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -485,6 +511,7 @@ public PagedFlux listAsync(String resourceGroupName, Str * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -492,8 +519,8 @@ public PagedFlux listAsync(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( - String resourceGroupName, String accountName, String maxpagesize, String filter) { - return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter)); + String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include)); } /** @@ -513,8 +540,9 @@ public PagedIterable list( public PagedIterable list(String resourceGroupName, String accountName) { final String maxpagesize = null; final String filter = null; + final ListSharesExpand include = null; final Context context = null; - return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter)); + return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include)); } /** diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreStatusInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java similarity index 93% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreStatusInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java index 397ebc2e9804..9f755be538b4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreStatusInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java @@ -2,12 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.BlobRestoreParameters; -import com.azure.management.storage.BlobRestoreProgressStatus; +import com.azure.management.storage.models.BlobRestoreParameters; +import com.azure.management.storage.models.BlobRestoreProgressStatus; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java index 76fcd28ac5a1..95166835e63b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java index 8d5eb31af96e..cdf96bbdfc2b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java @@ -2,17 +2,17 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.ChangeFeed; -import com.azure.management.storage.CorsRules; -import com.azure.management.storage.DeleteRetentionPolicy; -import com.azure.management.storage.RestorePolicyProperties; -import com.azure.management.storage.Sku; +import com.azure.management.storage.models.ChangeFeed; +import com.azure.management.storage.models.CorsRules; +import com.azure.management.storage.models.DeleteRetentionPolicy; +import com.azure.management.storage.models.RestorePolicyProperties; +import com.azure.management.storage.models.Sku; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java index 5af453bf6645..738d99545889 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -27,24 +28,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BlobServices. */ -public final class BlobServicesInner { - private final ClientLogger logger = new ClientLogger(BlobServicesInner.class); +public final class BlobServicesClient { + private final ClientLogger logger = new ClientLogger(BlobServicesClient.class); /** The proxy service used to perform REST calls. */ private final BlobServicesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of BlobServicesInner. + * Initializes an instance of BlobServicesClient. * * @param client the instance of the service client containing this operation class. */ - BlobServicesInner(StorageManagementClientImpl client) { + public BlobServicesClient(StorageManagementClient client) { this.service = RestProxy.create(BlobServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java index 30a8d9dd556d..399da922833a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java @@ -2,11 +2,11 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.Reason; +import com.azure.management.storage.models.Reason; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java index 0e88ab4eec47..560025a2a5e8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.EncryptionScopeKeyVaultProperties; -import com.azure.management.storage.EncryptionScopeSource; -import com.azure.management.storage.EncryptionScopeState; +import com.azure.management.storage.models.EncryptionScopeKeyVaultProperties; +import com.azure.management.storage.models.EncryptionScopeSource; +import com.azure.management.storage.models.EncryptionScopeState; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java index 47276dced549..85065e71ef42 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java index 2f60ba023665..876a0a7992af 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -28,24 +29,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in EncryptionScopes. */ -public final class EncryptionScopesInner { - private final ClientLogger logger = new ClientLogger(EncryptionScopesInner.class); +public final class EncryptionScopesClient { + private final ClientLogger logger = new ClientLogger(EncryptionScopesClient.class); /** The proxy service used to perform REST calls. */ private final EncryptionScopesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of EncryptionScopesInner. + * Initializes an instance of EncryptionScopesClient. * * @param client the instance of the service client containing this operation class. */ - EncryptionScopesInner(StorageManagementClientImpl client) { + public EncryptionScopesClient(StorageManagementClient client) { this.service = RestProxy.create(EncryptionScopesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServiceItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServiceItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java index 8eac1c18ff35..6e3637fe6171 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServiceItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java similarity index 94% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java index a07ae3be12b9..7ee4e6ae24fe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; -import com.azure.management.storage.DeleteRetentionPolicy; -import com.azure.management.storage.Sku; +import com.azure.management.storage.models.CorsRules; +import com.azure.management.storage.models.DeleteRetentionPolicy; +import com.azure.management.storage.models.Sku; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java index 7d165fca031e..001c7f2f5035 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -23,26 +24,27 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; -import com.azure.management.storage.DeleteRetentionPolicy; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.CorsRules; +import com.azure.management.storage.models.DeleteRetentionPolicy; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in FileServices. */ -public final class FileServicesInner { - private final ClientLogger logger = new ClientLogger(FileServicesInner.class); +public final class FileServicesClient { + private final ClientLogger logger = new ClientLogger(FileServicesClient.class); /** The proxy service used to perform REST calls. */ private final FileServicesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of FileServicesInner. + * Initializes an instance of FileServicesClient. * * @param client the instance of the service client containing this operation class. */ - FileServicesInner(StorageManagementClientImpl client) { + public FileServicesClient(StorageManagementClient client) { this.service = RestProxy.create(FileServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java index 98cf4ad42bb3..b1483aadf1bd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AzureEntityResource; -import com.azure.management.storage.EnabledProtocols; -import com.azure.management.storage.RootSquashType; -import com.azure.management.storage.ShareAccessTier; +import com.azure.management.storage.models.AzureEntityResource; +import com.azure.management.storage.models.EnabledProtocols; +import com.azure.management.storage.models.RootSquashType; +import com.azure.management.storage.models.ShareAccessTier; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java index 698ba52be871..7dee9949be32 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AzureEntityResource; -import com.azure.management.storage.EnabledProtocols; -import com.azure.management.storage.RootSquashType; -import com.azure.management.storage.ShareAccessTier; +import com.azure.management.storage.models.AzureEntityResource; +import com.azure.management.storage.models.EnabledProtocols; +import com.azure.management.storage.models.RootSquashType; +import com.azure.management.storage.models.ShareAccessTier; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java index 674d233d342e..4f3244815aff 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileShareItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileSharesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileSharesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java index 1ca1b5d82e76..99e1c42d7d83 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/FileSharesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -31,27 +32,28 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.DeletedShare; -import com.azure.management.storage.GetShareExpand; -import com.azure.management.storage.ListSharesExpand; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.DeletedShare; +import com.azure.management.storage.models.GetShareExpand; +import com.azure.management.storage.models.ListSharesExpand; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in FileShares. */ -public final class FileSharesInner { - private final ClientLogger logger = new ClientLogger(FileSharesInner.class); +public final class FileSharesClient { + private final ClientLogger logger = new ClientLogger(FileSharesClient.class); /** The proxy service used to perform REST calls. */ private final FileSharesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of FileSharesInner. + * Initializes an instance of FileSharesClient. * * @param client the instance of the service client containing this operation class. */ - FileSharesInner(StorageManagementClientImpl client) { + public FileSharesClient(StorageManagementClient client) { this.service = RestProxy.create(FileSharesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java index 31f95ef8e8de..e413a8baeefe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AzureEntityResource; -import com.azure.management.storage.ImmutabilityPolicyState; +import com.azure.management.storage.models.AzureEntityResource; +import com.azure.management.storage.models.ImmutabilityPolicyState; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java index d3e0ad05df92..28b9051173a6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java index ef981b7c2c63..769c83428983 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListAccountSasResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListAccountSasResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java index eeaae5973737..58263861a33f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListAccountSasResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java similarity index 81% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java index 52c6f84de5a5..71fe3cb504f1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java @@ -2,18 +2,18 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AzureEntityResource; -import com.azure.management.storage.ImmutabilityPolicyProperties; -import com.azure.management.storage.LeaseDuration; -import com.azure.management.storage.LeaseState; -import com.azure.management.storage.LeaseStatus; -import com.azure.management.storage.LegalHoldProperties; -import com.azure.management.storage.PublicAccess; +import com.azure.management.storage.models.AzureEntityResource; +import com.azure.management.storage.models.ImmutabilityPolicyProperties; +import com.azure.management.storage.models.LeaseDuration; +import com.azure.management.storage.models.LeaseState; +import com.azure.management.storage.models.LeaseStatus; +import com.azure.management.storage.models.LegalHoldProperties; +import com.azure.management.storage.models.PublicAccess; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; @@ -25,6 +25,30 @@ public class ListContainerItemInner extends AzureEntityResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(ListContainerItemInner.class); + /* + * The version of the deleted blob container. + */ + @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Indicates whether the blob container was deleted. + */ + @JsonProperty(value = "properties.deleted", access = JsonProperty.Access.WRITE_ONLY) + private Boolean deleted; + + /* + * Blob container deletion time. + */ + @JsonProperty(value = "properties.deletedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime deletedTime; + + /* + * Remaining retention days for soft deleted blob container. + */ + @JsonProperty(value = "properties.remainingRetentionDays", access = JsonProperty.Access.WRITE_ONLY) + private Integer remainingRetentionDays; + /* * Default the container to use specified encryption scope for all writes. */ @@ -106,6 +130,42 @@ public class ListContainerItemInner extends AzureEntityResource { @JsonProperty(value = "properties.hasImmutabilityPolicy", access = JsonProperty.Access.WRITE_ONLY) private Boolean hasImmutabilityPolicy; + /** + * Get the version property: The version of the deleted blob container. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the deleted property: Indicates whether the blob container was deleted. + * + * @return the deleted value. + */ + public Boolean deleted() { + return this.deleted; + } + + /** + * Get the deletedTime property: Blob container deletion time. + * + * @return the deletedTime value. + */ + public OffsetDateTime deletedTime() { + return this.deletedTime; + } + + /** + * Get the remainingRetentionDays property: Remaining retention days for soft deleted blob container. + * + * @return the remainingRetentionDays value. + */ + public Integer remainingRetentionDays() { + return this.remainingRetentionDays; + } + /** * Get the defaultEncryptionScope property: Default the container to use specified encryption scope for all writes. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java index 65bc2d1bb657..2f505cf68c55 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListContainerItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java index 167d79a43ca9..b5f1aa6f9c4b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueResourceInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueResourceInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java index 9025b56e4afb..a61113baaa88 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueResourceInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java index bbf2ae137676..2d0a55790316 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListQueueServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListServiceSasResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListServiceSasResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java index a1a097db0fb8..a7227fcfaf32 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListServiceSasResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableResourceInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableResourceInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java index b7579fd05531..6355860643cb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableResourceInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java index 731dc1449726..033b578ac622 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListTableServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPoliciesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPoliciesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java index e8755343f17d..eae31cb9e53a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPoliciesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -26,25 +27,26 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.collection.InnerSupportsDelete; -import com.azure.management.storage.ManagementPolicySchema; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.ManagementPolicySchema; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in ManagementPolicies. */ -public final class ManagementPoliciesInner implements InnerSupportsDelete { - private final ClientLogger logger = new ClientLogger(ManagementPoliciesInner.class); +public final class ManagementPoliciesClient implements InnerSupportsDelete { + private final ClientLogger logger = new ClientLogger(ManagementPoliciesClient.class); /** The proxy service used to perform REST calls. */ private final ManagementPoliciesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of ManagementPoliciesInner. + * Initializes an instance of ManagementPoliciesClient. * * @param client the instance of the service client containing this operation class. */ - ManagementPoliciesInner(StorageManagementClientImpl client) { + public ManagementPoliciesClient(StorageManagementClient client) { this.service = RestProxy.create(ManagementPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java index 7f77fd4fb192..b8f87b26996e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.ManagementPolicySchema; +import com.azure.management.storage.models.ManagementPolicySchema; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java index d6e36df5a7e3..6d2617dced19 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesOperationsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesOperationsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java index 3cf9bcb0b8e0..7dbfba31ab99 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPoliciesOperationsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -29,24 +30,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in ObjectReplicationPoliciesOperations. */ -public final class ObjectReplicationPoliciesOperationsInner { - private final ClientLogger logger = new ClientLogger(ObjectReplicationPoliciesOperationsInner.class); +public final class ObjectReplicationPoliciesOperationsClient { + private final ClientLogger logger = new ClientLogger(ObjectReplicationPoliciesOperationsClient.class); /** The proxy service used to perform REST calls. */ private final ObjectReplicationPoliciesOperationsService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of ObjectReplicationPoliciesOperationsInner. + * Initializes an instance of ObjectReplicationPoliciesOperationsClient. * * @param client the instance of the service client containing this operation class. */ - ObjectReplicationPoliciesOperationsInner(StorageManagementClientImpl client) { + public ObjectReplicationPoliciesOperationsClient(StorageManagementClient client) { this.service = RestProxy .create( diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java index a2d91439959f..1227ae8e8283 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.ObjectReplicationPolicyRule; +import com.azure.management.storage.models.ObjectReplicationPolicyRule; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java index f4dec2fa2524..07489fed82a9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.OperationDisplay; -import com.azure.management.storage.ServiceSpecification; +import com.azure.management.storage.models.OperationDisplay; +import com.azure.management.storage.models.ServiceSpecification; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java index e7d1dd134201..21b50710ef00 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java similarity index 92% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java index 342b1f355c00..cf1b4a315432 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -24,24 +25,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Operations. */ -public final class OperationsInner { - private final ClientLogger logger = new ClientLogger(OperationsInner.class); +public final class OperationsClient { + private final ClientLogger logger = new ClientLogger(OperationsClient.class); /** The proxy service used to perform REST calls. */ private final OperationsService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of OperationsInner. + * Initializes an instance of OperationsClient. * * @param client the instance of the service client containing this operation class. */ - OperationsInner(StorageManagementClientImpl client) { + public OperationsClient(StorageManagementClient client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java similarity index 93% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java index f2a362dc5b3c..8bb1db444bd5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.PrivateEndpoint; -import com.azure.management.storage.PrivateEndpointConnectionProvisioningState; -import com.azure.management.storage.PrivateLinkServiceConnectionState; +import com.azure.management.storage.models.PrivateEndpoint; +import com.azure.management.storage.models.PrivateEndpointConnectionProvisioningState; +import com.azure.management.storage.models.PrivateLinkServiceConnectionState; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java index 5a05ca872987..b265b31337ac 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java index 881d52403d1f..5227c49de07e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -29,26 +30,27 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.PrivateEndpoint; -import com.azure.management.storage.PrivateLinkServiceConnectionState; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.PrivateEndpoint; +import com.azure.management.storage.models.PrivateLinkServiceConnectionState; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateEndpointConnections. */ -public final class PrivateEndpointConnectionsInner { - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsInner.class); +public final class PrivateEndpointConnectionsClient { + private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsClient.class); /** The proxy service used to perform REST calls. */ private final PrivateEndpointConnectionsService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of PrivateEndpointConnectionsInner. + * Initializes an instance of PrivateEndpointConnectionsClient. * * @param client the instance of the service client containing this operation class. */ - PrivateEndpointConnectionsInner(StorageManagementClientImpl client) { + public PrivateEndpointConnectionsClient(StorageManagementClient client) { this.service = RestProxy .create( diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourceListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java similarity index 93% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourceListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java index bfb5c35dda3c..11875d4139fe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourceListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java @@ -2,11 +2,11 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.PrivateLinkResource; +import com.azure.management.storage.models.PrivateLinkResource; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourcesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java similarity index 94% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourcesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java index 3147fbe5e9f8..8aa4375c7808 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResourcesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -21,24 +22,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateLinkResources. */ -public final class PrivateLinkResourcesInner { - private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesInner.class); +public final class PrivateLinkResourcesClient { + private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesClient.class); /** The proxy service used to perform REST calls. */ private final PrivateLinkResourcesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of PrivateLinkResourcesInner. + * Initializes an instance of PrivateLinkResourcesClient. * * @param client the instance of the service client containing this operation class. */ - PrivateLinkResourcesInner(StorageManagementClientImpl client) { + public PrivateLinkResourcesClient(StorageManagementClient client) { this.service = RestProxy .create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java index 4936e269fd31..08144c4b9554 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; +import com.azure.management.storage.models.CorsRules; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java index c399cb9ee2e6..1c1d2b71f223 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueueServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -23,25 +24,26 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.CorsRules; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in QueueServices. */ -public final class QueueServicesInner { - private final ClientLogger logger = new ClientLogger(QueueServicesInner.class); +public final class QueueServicesClient { + private final ClientLogger logger = new ClientLogger(QueueServicesClient.class); /** The proxy service used to perform REST calls. */ private final QueueServicesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of QueueServicesInner. + * Initializes an instance of QueueServicesClient. * * @param client the instance of the service client containing this operation class. */ - QueueServicesInner(StorageManagementClientImpl client) { + public QueueServicesClient(StorageManagementClient client) { this.service = RestProxy.create(QueueServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueuesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueuesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java index b5445e23a9be..cc24f7bcff4b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/QueuesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -30,25 +31,27 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; + import java.util.Map; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Queues. */ -public final class QueuesInner { - private final ClientLogger logger = new ClientLogger(QueuesInner.class); +public final class QueuesClient { + private final ClientLogger logger = new ClientLogger(QueuesClient.class); /** The proxy service used to perform REST calls. */ private final QueuesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of QueuesInner. + * Initializes an instance of QueuesClient. * * @param client the instance of the service client containing this operation class. */ - QueuesInner(StorageManagementClientImpl client) { + public QueuesClient(StorageManagementClient client) { this.service = RestProxy.create(QueuesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuInformationInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java similarity index 94% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuInformationInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java index d4837347099d..08a042c85cfe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuInformationInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java @@ -2,15 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.Kind; -import com.azure.management.storage.Restriction; -import com.azure.management.storage.SkuCapability; -import com.azure.management.storage.SkuName; -import com.azure.management.storage.SkuTier; +import com.azure.management.storage.models.Kind; +import com.azure.management.storage.models.Restriction; +import com.azure.management.storage.models.SkuCapability; +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.SkuTier; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkusInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java similarity index 93% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkusInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java index 18c31cacc5d6..52dfff888f62 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkusInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -25,24 +26,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Skus. */ -public final class SkusInner { - private final ClientLogger logger = new ClientLogger(SkusInner.class); +public final class SkusClient { + private final ClientLogger logger = new ClientLogger(SkusClient.class); /** The proxy service used to perform REST calls. */ private final SkusService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of SkusInner. + * Initializes an instance of SkusClient. * * @param client the instance of the service client containing this operation class. */ - SkusInner(StorageManagementClientImpl client) { + public SkusClient(StorageManagementClient client) { this.service = RestProxy.create(SkusService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java index 5f0f3cfa8753..e59ff4b9ad73 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java @@ -2,26 +2,26 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.AccessTier; -import com.azure.management.storage.AccountStatus; -import com.azure.management.storage.AzureFilesIdentityBasedAuthentication; -import com.azure.management.storage.CustomDomain; -import com.azure.management.storage.Encryption; -import com.azure.management.storage.Endpoints; -import com.azure.management.storage.GeoReplicationStats; -import com.azure.management.storage.Identity; -import com.azure.management.storage.Kind; -import com.azure.management.storage.LargeFileSharesState; -import com.azure.management.storage.NetworkRuleSet; -import com.azure.management.storage.ProvisioningState; -import com.azure.management.storage.RoutingPreference; -import com.azure.management.storage.Sku; +import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.AccountStatus; +import com.azure.management.storage.models.AzureFilesIdentityBasedAuthentication; +import com.azure.management.storage.models.CustomDomain; +import com.azure.management.storage.models.Encryption; +import com.azure.management.storage.models.Endpoints; +import com.azure.management.storage.models.GeoReplicationStats; +import com.azure.management.storage.models.Identity; +import com.azure.management.storage.models.Kind; +import com.azure.management.storage.models.LargeFileSharesState; +import com.azure.management.storage.models.NetworkRuleSet; +import com.azure.management.storage.models.ProvisioningState; +import com.azure.management.storage.models.RoutingPreference; +import com.azure.management.storage.models.Sku; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListKeysResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java similarity index 92% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListKeysResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java index 0630108674e5..e6e926c1f28b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListKeysResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java @@ -2,11 +2,11 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.StorageAccountKey; +import com.azure.management.storage.models.StorageAccountKey; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java index ec4a8a4d8e61..89384a37498c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java index 218bf262152a..2c7e61889606 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -35,16 +36,17 @@ import com.azure.management.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.management.resources.fluentcore.collection.InnerSupportsGet; import com.azure.management.resources.fluentcore.collection.InnerSupportsListing; -import com.azure.management.storage.AccountSasParameters; -import com.azure.management.storage.BlobRestoreParameters; -import com.azure.management.storage.BlobRestoreRange; -import com.azure.management.storage.ListKeyExpand; -import com.azure.management.storage.ServiceSasParameters; -import com.azure.management.storage.StorageAccountCheckNameAvailabilityParameters; -import com.azure.management.storage.StorageAccountCreateParameters; -import com.azure.management.storage.StorageAccountExpand; -import com.azure.management.storage.StorageAccountRegenerateKeyParameters; -import com.azure.management.storage.StorageAccountUpdateParameters; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.AccountSasParameters; +import com.azure.management.storage.models.BlobRestoreParameters; +import com.azure.management.storage.models.BlobRestoreRange; +import com.azure.management.storage.models.ListKeyExpand; +import com.azure.management.storage.models.ServiceSasParameters; +import com.azure.management.storage.models.StorageAccountCheckNameAvailabilityParameters; +import com.azure.management.storage.models.StorageAccountCreateParameters; +import com.azure.management.storage.models.StorageAccountExpand; +import com.azure.management.storage.models.StorageAccountRegenerateKeyParameters; +import com.azure.management.storage.models.StorageAccountUpdateParameters; import java.nio.ByteBuffer; import java.time.OffsetDateTime; import java.util.List; @@ -52,24 +54,24 @@ import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in StorageAccounts. */ -public final class StorageAccountsInner +public final class StorageAccountsClient implements InnerSupportsGet, InnerSupportsListing, InnerSupportsDelete { - private final ClientLogger logger = new ClientLogger(StorageAccountsInner.class); + private final ClientLogger logger = new ClientLogger(StorageAccountsClient.class); /** The proxy service used to perform REST calls. */ private final StorageAccountsService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of StorageAccountsInner. + * Initializes an instance of StorageAccountsClient. * * @param client the instance of the service client containing this operation class. */ - StorageAccountsInner(StorageManagementClientImpl client) { + public StorageAccountsClient(StorageManagementClient client) { this.service = RestProxy.create(StorageAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageQueueInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageQueueInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java index e76b7d27c92c..35f657422960 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageQueueInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkuListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkuListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java index dd3bd044df11..d3fb0624aa1c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkuListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java index d038309c09d1..a9a8c3495367 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java index 0162ef67adee..6027d25b6801 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java @@ -2,13 +2,13 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; +import com.azure.management.storage.models.CorsRules; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java index f07d3d96452b..88493a61fc0f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TableServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -23,25 +24,26 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.CorsRules; +import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.models.CorsRules; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in TableServices. */ -public final class TableServicesInner { - private final ClientLogger logger = new ClientLogger(TableServicesInner.class); +public final class TableServicesClient { + private final ClientLogger logger = new ClientLogger(TableServicesClient.class); /** The proxy service used to perform REST calls. */ private final TableServicesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of TableServicesInner. + * Initializes an instance of TableServicesClient. * * @param client the instance of the service client containing this operation class. */ - TableServicesInner(StorageManagementClientImpl client) { + public TableServicesClient(StorageManagementClient client) { this.service = RestProxy.create(TableServicesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TablesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TablesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java index 434023aa3498..792ee23a8a4a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TablesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; @@ -29,24 +30,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Tables. */ -public final class TablesInner { - private final ClientLogger logger = new ClientLogger(TablesInner.class); +public final class TablesClient { + private final ClientLogger logger = new ClientLogger(TablesClient.class); /** The proxy service used to perform REST calls. */ private final TablesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of TablesInner. + * Initializes an instance of TablesClient. * * @param client the instance of the service client containing this operation class. */ - TablesInner(StorageManagementClientImpl client) { + public TablesClient(StorageManagementClient client) { this.service = RestProxy.create(TablesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java similarity index 93% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java index bffd9317262c..b1e01f6be2a9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java @@ -2,12 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; -import com.azure.management.storage.UsageName; -import com.azure.management.storage.UsageUnit; +import com.azure.management.storage.models.UsageName; +import com.azure.management.storage.models.UsageUnit; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java index 20a101b7e006..83969f5e867c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsagesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java similarity index 94% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsagesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java index 5033000f70dd..a6fc4c656bcf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsagesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java @@ -1,8 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage.models; +package com.azure.management.storage.inner; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -25,24 +26,25 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; +import com.azure.management.storage.StorageManagementClient; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Usages. */ -public final class UsagesInner { - private final ClientLogger logger = new ClientLogger(UsagesInner.class); +public final class UsagesClient { + private final ClientLogger logger = new ClientLogger(UsagesClient.class); /** The proxy service used to perform REST calls. */ private final UsagesService service; /** The service client containing this operation class. */ - private final StorageManagementClientImpl client; + private final StorageManagementClient client; /** - * Initializes an instance of UsagesInner. + * Initializes an instance of UsagesClient. * * @param client the instance of the service client containing this operation class. */ - UsagesInner(StorageManagementClientImpl client) { + public UsagesClient(StorageManagementClient client) { this.service = RestProxy.create(UsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccessTier.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccessTier.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccessTier.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccessTier.java index 529b2f96de86..460b4e40b720 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccessTier.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccessTier.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountSasParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountSasParameters.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountSasParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountSasParameters.java index 034ca4e35b5f..2f2219ffac7f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountSasParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountSasParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatus.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatus.java index 57c553264fed..c18919676821 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AccountStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatus.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Action.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Action.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Action.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Action.java index 92dade92f7d9..9537cef8272e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Action.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Action.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ActiveDirectoryProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ActiveDirectoryProperties.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ActiveDirectoryProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ActiveDirectoryProperties.java index 8b7d0a83d1e5..71f50456c607 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ActiveDirectoryProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ActiveDirectoryProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureEntityResource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureEntityResource.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureEntityResource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureEntityResource.java index 21ff958f6138..34a8e6f9580b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureEntityResource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureEntityResource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureFilesIdentityBasedAuthentication.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureFilesIdentityBasedAuthentication.java similarity index 89% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureFilesIdentityBasedAuthentication.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureFilesIdentityBasedAuthentication.java index c6b322c783de..51fac5651f89 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/AzureFilesIdentityBasedAuthentication.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AzureFilesIdentityBasedAuthentication.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; @@ -75,8 +75,11 @@ public AzureFilesIdentityBasedAuthentication withActiveDirectoryProperties( */ public void validate() { if (directoryServiceOptions() == null) { - throw logger.logExceptionAsError(new IllegalArgumentException( - "Missing required property directoryServiceOptions in model AzureFilesIdentityBasedAuthentication")); + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property directoryServiceOptions in model" + + " AzureFilesIdentityBasedAuthentication")); } if (activeDirectoryProperties() != null) { activeDirectoryProperties().validate(); diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainer.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainer.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java index cf42c7c5f5e8..b03cbf145b35 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainer.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; @@ -11,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.BlobContainerInner; +import com.azure.management.storage.inner.BlobContainerInner; import java.time.OffsetDateTime; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainers.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainers.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java index 990cbec3caba..aecf2a81d7b2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainers.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java @@ -1,12 +1,14 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.http.rest.PagedFlux; -import com.azure.management.storage.models.ImmutabilityPolicyInner; -import com.azure.management.storage.models.ListContainerItemInner; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.inner.ListContainerItemInner; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java index 1e9b0f6ee052..983c4e64fa28 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyHeaders.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java index 0e6605e46498..2fd9b3463eb5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Contains all response data for the createOrUpdateImmutabilityPolicy operation. */ public final class BlobContainersCreateOrUpdateImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersDeleteImmutabilityPolicyHeaders.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyHeaders.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersDeleteImmutabilityPolicyHeaders.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyHeaders.java index 0f5ff13e1c13..154a5a02d8f3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersDeleteImmutabilityPolicyHeaders.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyHeaders.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java index c8c9e201545f..b73ec27197bf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.BlobContainersDeleteImmutabilityPolicyHeaders; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Contains all response data for the deleteImmutabilityPolicy operation. */ public final class BlobContainersDeleteImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersExtendImmutabilityPolicyHeaders.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyHeaders.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersExtendImmutabilityPolicyHeaders.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyHeaders.java index cb663d7f2d88..4bcb6c9d2fff 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersExtendImmutabilityPolicyHeaders.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyHeaders.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java index 93a48455c88c..b35fde0e63e5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.BlobContainersExtendImmutabilityPolicyHeaders; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Contains all response data for the extendImmutabilityPolicy operation. */ public final class BlobContainersExtendImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersGetImmutabilityPolicyHeaders.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyHeaders.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersGetImmutabilityPolicyHeaders.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyHeaders.java index 46a2aa1de7f7..33c55c846d9f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersGetImmutabilityPolicyHeaders.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyHeaders.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java index 1364a4bd9b75..3718c759eb6e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.BlobContainersGetImmutabilityPolicyHeaders; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Contains all response data for the getImmutabilityPolicy operation. */ public final class BlobContainersGetImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersLockImmutabilityPolicyHeaders.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyHeaders.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersLockImmutabilityPolicyHeaders.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyHeaders.java index c1bfe48dee66..b141b0bf2f4d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobContainersLockImmutabilityPolicyHeaders.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyHeaders.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java index 71f9ad0f36fc..1fae4806bbcd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.BlobContainersLockImmutabilityPolicyHeaders; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Contains all response data for the lockImmutabilityPolicy operation. */ public final class BlobContainersLockImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreParameters.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreParameters.java index 5ded5ec5f2d4..0f992884d29e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreProgressStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreProgressStatus.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreProgressStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreProgressStatus.java index a46f4dffe7e2..6c4a6928464d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreProgressStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreProgressStatus.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreRange.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreRange.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreRange.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreRange.java index d73ea39341b8..7d9ef6740c5a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobRestoreRange.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobRestoreRange.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServiceProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServiceProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java index e8883339fe8b..e9136b974972 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServiceProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; @@ -12,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.BlobServicePropertiesInner; +import com.azure.management.storage.inner.BlobServicePropertiesInner; import java.util.List; /** Type representing BlobServiceProperties. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServices.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java similarity index 78% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServices.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java index bdc4c2596f41..7c355e4b9e7f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobServices.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java @@ -1,18 +1,20 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.collection.SupportsCreating; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.models.BlobServicesInner; +import com.azure.management.storage.inner.BlobServicesClient; import reactor.core.publisher.Mono; /** Type representing BlobServices. */ @Fluent public interface BlobServices - extends SupportsCreating, HasInner { + extends SupportsCreating, HasInner { /** * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobTypes.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java similarity index 81% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobTypes.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java index 0ac012077e85..8849b913a764 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/BlobTypes.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Bypass.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Bypass.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Bypass.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Bypass.java index 2fce5daa1ead..d7932f985c75 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Bypass.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Bypass.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ChangeFeed.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ChangeFeed.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ChangeFeed.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ChangeFeed.java index c1c8b97c2f5b..e910b603a6bf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ChangeFeed.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ChangeFeed.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CheckNameAvailabilityResult.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java similarity index 80% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/CheckNameAvailabilityResult.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java index ed3d8cd8da48..4e7695dbae08 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CheckNameAvailabilityResult.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java @@ -1,9 +1,11 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; -import com.azure.management.storage.models.CheckNameAvailabilityResultInner; +import com.azure.management.storage.inner.CheckNameAvailabilityResultInner; /** The {@link StorageAccounts#checkNameAvailability} action result. */ public class CheckNameAvailabilityResult { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRule.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRule.java index 96a4a59e2fdd..64e52030306e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRule.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRuleAllowedMethodsItem.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRuleAllowedMethodsItem.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRuleAllowedMethodsItem.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRuleAllowedMethodsItem.java index 6c9339968cbf..5621578af505 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRuleAllowedMethodsItem.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRuleAllowedMethodsItem.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRules.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRules.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRules.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRules.java index 2f2b34f64535..04eed2734f61 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CorsRules.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CorsRules.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CustomDomain.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CustomDomain.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/CustomDomain.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CustomDomain.java index ec1dbc5e2d87..7f951a6ea084 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/CustomDomain.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CustomDomain.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterCreation.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterCreation.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterCreation.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterCreation.java index ab02b13c52d8..116ffd4072d7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterCreation.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterCreation.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterModification.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterModification.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterModification.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterModification.java index 5f64a15521d6..6158d3baf49c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DateAfterModification.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DateAfterModification.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DefaultAction.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DefaultAction.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DefaultAction.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DefaultAction.java index ef662357232a..d22503483f1e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DefaultAction.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DefaultAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeleteRetentionPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeleteRetentionPolicy.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeleteRetentionPolicy.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeleteRetentionPolicy.java index ef3390408d92..def384374e8a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeleteRetentionPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeleteRetentionPolicy.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeletedShare.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeletedShare.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeletedShare.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeletedShare.java index 6a365e27c6d0..e232ffc07286 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DeletedShare.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DeletedShare.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Dimension.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Dimension.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Dimension.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Dimension.java index 1381fb98c5e8..00260c3bac0f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Dimension.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Dimension.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DirectoryServiceOptions.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DirectoryServiceOptions.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/DirectoryServiceOptions.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DirectoryServiceOptions.java index 16174ff0253d..e60abeda7961 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/DirectoryServiceOptions.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/DirectoryServiceOptions.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EnabledProtocols.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EnabledProtocols.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EnabledProtocols.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EnabledProtocols.java index f67660b7950a..3f25ade65f04 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EnabledProtocols.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EnabledProtocols.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Encryption.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Encryption.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java index c59d7c223201..de92c220a356 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Encryption.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeKeyVaultProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeKeyVaultProperties.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeKeyVaultProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeKeyVaultProperties.java index 3a2d7bdb4066..167239908254 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeKeyVaultProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeKeyVaultProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeSource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeSource.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeSource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeSource.java index c67b110ee90c..e057388d4dd7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeSource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeSource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeState.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeState.java index 4f69a52cd8cc..04c9abd75e9b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionScopeState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionScopeState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionService.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionService.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionService.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionService.java index b4f309b0ac63..3a7cf7796e3c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionService.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionService.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionServices.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionServices.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionServices.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionServices.java index a6794af0f17d..7efadb1adc2c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/EncryptionServices.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/EncryptionServices.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Endpoints.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Endpoints.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Endpoints.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Endpoints.java index 95b87b4ec418..9f54114edfef 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Endpoints.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Endpoints.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStats.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStats.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStats.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStats.java index f39e5c0e0473..13568ac816e0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStats.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStats.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStatus.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStatus.java index 373778a1657d..1a79030f2139 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GeoReplicationStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GeoReplicationStatus.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GetShareExpand.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GetShareExpand.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/GetShareExpand.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GetShareExpand.java index 7738d99ddb27..81927036cd56 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/GetShareExpand.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/GetShareExpand.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/HttpProtocol.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/HttpProtocol.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/HttpProtocol.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/HttpProtocol.java index 4bb910ffef36..c0ad0ba5b07d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/HttpProtocol.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/HttpProtocol.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Identity.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Identity.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Identity.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Identity.java index 3022ee694339..37e3f4b0822c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Identity.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Identity.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicy.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java index 1980aa0e9b43..bbaa8a56f71d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; @@ -12,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.ImmutabilityPolicyInner; +import com.azure.management.storage.inner.ImmutabilityPolicyInner; /** Type representing ImmutabilityPolicy. */ @Fluent diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyProperties.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyProperties.java index 75ab578c9807..102a811647b8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyState.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyState.java index 473f64cf4090..079fcf48e6cb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyUpdateType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyUpdateType.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyUpdateType.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyUpdateType.java index 0b49d5659fbb..0b0bb975214a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ImmutabilityPolicyUpdateType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicyUpdateType.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/IpRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/IpRule.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/IpRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/IpRule.java index 7d002884133f..d827204ffbd0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/IpRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/IpRule.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyPermission.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyPermission.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyPermission.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyPermission.java index 38b6e27ecfdf..af9a66b861ca 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyPermission.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyPermission.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeySource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeySource.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeySource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeySource.java index ce704cf545c5..800c9608813e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeySource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeySource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyType.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyType.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyType.java index 31e76ebed27a..0619f6b0d6c5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyType.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyVaultProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyVaultProperties.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyVaultProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyVaultProperties.java index 286769c69c8d..ab1bb9e984d8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/KeyVaultProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/KeyVaultProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Kind.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Kind.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Kind.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Kind.java index 3a4b15475524..81b164988018 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Kind.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Kind.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LargeFileSharesState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LargeFileSharesState.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LargeFileSharesState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LargeFileSharesState.java index d53d3746ae3c..a33733071cec 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LargeFileSharesState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LargeFileSharesState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequest.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequest.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequest.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequest.java index 71b7792cf144..4d98bedca1c8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequest.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequest.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequestAction.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequestAction.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequestAction.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequestAction.java index 895fc7bcc0af..d032a80acc51 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseContainerRequestAction.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseContainerRequestAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseDuration.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseDuration.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseDuration.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseDuration.java index 5b8957831d88..8400bbe9cca9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseDuration.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseDuration.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseState.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseState.java index 2270a89951b4..aac3d50d8370 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseStatus.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseStatus.java index e87127928db1..20fba54a2633 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LeaseStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LeaseStatus.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHold.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java similarity index 66% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHold.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java index 3dad37b5ac50..dfd0f9403ed9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHold.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java @@ -1,13 +1,15 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.LegalHoldInner; +import com.azure.management.storage.inner.LegalHoldInner; import java.util.List; /** Type representing LegalHold. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHoldProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldProperties.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHoldProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldProperties.java index 4a9f531f1222..97b79bdd9f65 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/LegalHoldProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHoldProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListKeyExpand.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListKeyExpand.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListKeyExpand.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListKeyExpand.java index 9b1b99f5de9c..d2c7c9b20015 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListKeyExpand.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListKeyExpand.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListSharesExpand.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListSharesExpand.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListSharesExpand.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListSharesExpand.java index b1112bba9178..fa3623baa3e8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ListSharesExpand.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ListSharesExpand.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicies.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java similarity index 84% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicies.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java index 785f790e61e9..fb381c697c58 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicies.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java @@ -1,18 +1,20 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.collection.SupportsCreating; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.models.ManagementPoliciesInner; +import com.azure.management.storage.inner.ManagementPoliciesClient; import reactor.core.publisher.Mono; /** Type representing ManagementPolicies. */ @Fluent public interface ManagementPolicies - extends SupportsCreating, HasInner { + extends SupportsCreating, HasInner { /** * Gets the managementpolicy associated with the specified storage account. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java similarity index 94% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicy.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java index 72d31b73a6af..8b8d436ef39d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; @@ -12,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.ManagementPolicyInner; +import com.azure.management.storage.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyAction.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyAction.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyAction.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyAction.java index cb1e9b0e5237..eeea4a512614 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyAction.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyBaseBlob.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyBaseBlob.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyBaseBlob.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyBaseBlob.java index dbe29a29a0f7..a437cb6eb21e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyBaseBlob.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyBaseBlob.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyDefinition.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyDefinition.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyDefinition.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyDefinition.java index e414b2b550dd..b5fdc89f60e8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyDefinition.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyDefinition.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyFilter.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyFilter.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyFilter.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyFilter.java index fd86bbb55a66..353349bb6a3f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyFilter.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyFilter.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyRule.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyRule.java index 7f30eff3ce9e..c1b7b027e6cd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicyRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicyRule.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySchema.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySchema.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySchema.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySchema.java index aba0865203fe..5631cf715820 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySchema.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySchema.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySnapShot.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySnapShot.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySnapShot.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySnapShot.java index 35d9d3b93cf2..e446597ee79b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ManagementPolicySnapShot.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicySnapShot.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/MetricSpecification.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/MetricSpecification.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/MetricSpecification.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/MetricSpecification.java index f7a55b8c7650..b9953bdea23a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/MetricSpecification.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/MetricSpecification.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/NetworkRuleSet.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/NetworkRuleSet.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/NetworkRuleSet.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/NetworkRuleSet.java index cd828e2038d7..f07be3f22609 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/NetworkRuleSet.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/NetworkRuleSet.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyFilter.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyFilter.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyFilter.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyFilter.java index 8c4bde3ca0c0..2219d28add60 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyFilter.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyFilter.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyRule.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyRule.java index a9470b657eb5..5f964b71d223 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ObjectReplicationPolicyRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ObjectReplicationPolicyRule.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/OperationDisplay.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationDisplay.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/OperationDisplay.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationDisplay.java index 964f62ea6c30..acdb943a21dc 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/OperationDisplay.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/OperationDisplay.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Permissions.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Permissions.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Permissions.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Permissions.java index fe046a63174a..472e057a57a1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Permissions.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Permissions.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PolicyRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PolicyRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java index 2a0188a2498b..6a31c2c8ec60 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PolicyRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.model.Attachable; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpoint.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpoint.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpoint.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpoint.java index 677e04f9a6ac..29f594af8f0d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpoint.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpoint.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointConnectionProvisioningState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionProvisioningState.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointConnectionProvisioningState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionProvisioningState.java index 70b5e8afbc7c..aa2fcd890cd4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointConnectionProvisioningState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointConnectionProvisioningState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointServiceConnectionStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointServiceConnectionStatus.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointServiceConnectionStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointServiceConnectionStatus.java index feaddcaf1416..c99b757af8b1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateEndpointServiceConnectionStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateEndpointServiceConnectionStatus.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkResource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResource.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkResource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResource.java index 59591e326987..e5472e44eda6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkResource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkResource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkServiceConnectionState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkServiceConnectionState.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkServiceConnectionState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkServiceConnectionState.java index 03843e33f8ab..8016225604b3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PrivateLinkServiceConnectionState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PrivateLinkServiceConnectionState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ProvisioningState.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ProvisioningState.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ProvisioningState.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ProvisioningState.java index 6981b00de497..c96efa8a35c6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ProvisioningState.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ProvisioningState.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicAccess.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicAccess.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicAccess.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicAccess.java index 21bde2d10546..e463b4eed76f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicAccess.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicAccess.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicEndpoints.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java similarity index 84% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicEndpoints.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java index 1681cee89bc6..b008d0c480a7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/PublicEndpoints.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; /** * An instance of this class stores the The URIs associated with a storage account that are used to perform a retrieval diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Reason.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Reason.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Reason.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Reason.java index 023833c0c816..25b7541d4ca1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Reason.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Reason.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ReasonCode.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ReasonCode.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ReasonCode.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ReasonCode.java index a6fd6f1798d5..395f25d2f25a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ReasonCode.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ReasonCode.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RestorePolicyProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RestorePolicyProperties.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/RestorePolicyProperties.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RestorePolicyProperties.java index db5872ac91d7..1bdb982f18dc 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RestorePolicyProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RestorePolicyProperties.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Restriction.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Restriction.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Restriction.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Restriction.java index 0d33db5fea2a..6f3a5de14e4c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Restriction.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Restriction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RootSquashType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RootSquashType.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/RootSquashType.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RootSquashType.java index 926c0cbb7c2d..e35961a6cefc 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RootSquashType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RootSquashType.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingChoice.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingChoice.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingChoice.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingChoice.java index 8a6d755d6ae4..da1e2b3148ab 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingChoice.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingChoice.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingPreference.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingPreference.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingPreference.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingPreference.java index fdb184f14d41..e91b0a8084ec 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/RoutingPreference.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/RoutingPreference.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSasParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSasParameters.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSasParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSasParameters.java index 23d31146dbe8..c163fc09d682 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSasParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSasParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSpecification.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSpecification.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSpecification.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSpecification.java index bf2bd726a5c9..c6295c315351 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ServiceSpecification.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ServiceSpecification.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Services.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Services.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Services.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Services.java index 46177085d3e2..53674a5659df 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Services.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Services.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ShareAccessTier.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ShareAccessTier.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/ShareAccessTier.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ShareAccessTier.java index 335118ccdea9..56567d4c6784 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/ShareAccessTier.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ShareAccessTier.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResource.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResource.java index 84b8c0135197..243716dba7a9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResourceTypes.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResourceTypes.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResourceTypes.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResourceTypes.java index 3054b98d32d4..4373761e8d2f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SignedResourceTypes.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SignedResourceTypes.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Sku.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Sku.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Sku.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Sku.java index e8fb812f6dbb..5be467cad8c9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Sku.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Sku.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuCapability.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuCapability.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuCapability.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuCapability.java index 6c0e1800f9c8..04f18f84d770 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuCapability.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuCapability.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuName.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuName.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuName.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuName.java index 957c6e77aba0..15f0ed3c69a1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuName.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuName.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuTier.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuTier.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuTier.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuTier.java index 1bbe831cf33b..3e8471b67525 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/SkuTier.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/SkuTier.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/State.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/State.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/State.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/State.java index cb7657ae18f9..c31782675b03 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/State.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/State.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccount.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccount.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java index ea574704ea5c..0727e9fba481 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccount.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.GroupableResource; @@ -12,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.AccountStatuses; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.StorageAccountInner; +import com.azure.management.storage.inner.StorageAccountInner; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCheckNameAvailabilityParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCheckNameAvailabilityParameters.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCheckNameAvailabilityParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCheckNameAvailabilityParameters.java index af322681af85..57be77427170 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCheckNameAvailabilityParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCheckNameAvailabilityParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCreateParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCreateParameters.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCreateParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCreateParameters.java index 5229d09c5a71..ba3908845d2a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountCreateParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountCreateParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionKeySource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java similarity index 84% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionKeySource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java index fca4718cd40b..f43272e56d57 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionKeySource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java similarity index 73% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionStatus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java index 3ce7d19ac20e..0e5b5e3ccdb0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountEncryptionStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import java.time.OffsetDateTime; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountExpand.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountExpand.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountExpand.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountExpand.java index 7d54a8c6f067..dd29ad36a5ab 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountExpand.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountExpand.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountInternetEndpoints.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInternetEndpoints.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountInternetEndpoints.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInternetEndpoints.java index 9bc14ce63154..4a16011caede 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountInternetEndpoints.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountInternetEndpoints.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountKey.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountKey.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountKey.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountKey.java index 0445a8842780..0e3f73c57cb6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountKey.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountKey.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountMicrosoftEndpoints.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountMicrosoftEndpoints.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountMicrosoftEndpoints.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountMicrosoftEndpoints.java index d1d02d8c9789..43ab2302ab27 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountMicrosoftEndpoints.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountMicrosoftEndpoints.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountRegenerateKeyParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountRegenerateKeyParameters.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountRegenerateKeyParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountRegenerateKeyParameters.java index 028fe3209520..5e4fec274c5b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountRegenerateKeyParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountRegenerateKeyParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountSkuType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java similarity index 88% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountSkuType.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java index a4e51a3725a7..80303c38c097 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountSkuType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; /** Defines sku values for storage account resource. */ public final class StorageAccountSkuType { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountUpdateParameters.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountUpdateParameters.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountUpdateParameters.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountUpdateParameters.java index 1db1624b04e4..f2e4f6e3d640 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccountUpdateParameters.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountUpdateParameters.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccounts.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java similarity index 92% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccounts.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java index e957bb699a7a..1c62614a0d9b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageAccounts.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion; @@ -16,7 +18,7 @@ import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.StorageAccountsInner; +import com.azure.management.storage.inner.StorageAccountsClient; import reactor.core.publisher.Mono; /** Entry point for storage accounts management API. */ @@ -32,7 +34,7 @@ public interface StorageAccounts SupportsBatchCreation, SupportsBatchDeletion, HasManager, - HasInner { + HasInner { /** * Checks that account name is valid and is not in use. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientImpl.java deleted file mode 100644 index 82155f376d10..000000000000 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageManagementClientImpl.java +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.management.storage.models; - -import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; -import com.azure.core.http.policy.RetryPolicy; -import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.util.logging.ClientLogger; -import com.azure.management.AzureServiceClient; - -/** Initializes a new instance of the StorageManagementClientImpl type. */ -public final class StorageManagementClientImpl extends AzureServiceClient { - private final ClientLogger logger = new ClientLogger(StorageManagementClientImpl.class); - - /** The ID of the target subscription. */ - private String subscriptionId; - - /** - * Gets The ID of the target subscription. - * - * @return the subscriptionId value. - */ - public String getSubscriptionId() { - return this.subscriptionId; - } - - /** - * Sets The ID of the target subscription. - * - * @param subscriptionId the subscriptionId value. - * @return the service client itself. - */ - public StorageManagementClientImpl setSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - - /** server parameter. */ - private String host; - - /** - * Gets server parameter. - * - * @return the host value. - */ - public String getHost() { - return this.host; - } - - /** - * Sets server parameter. - * - * @param host the host value. - * @return the service client itself. - */ - public StorageManagementClientImpl setHost(String host) { - this.host = host; - return this; - } - - /** Api Version. */ - private String apiVersion; - - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - public String getApiVersion() { - return this.apiVersion; - } - - /** - * Sets Api Version. - * - * @param apiVersion the apiVersion value. - * @return the service client itself. - */ - public StorageManagementClientImpl setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** The HTTP pipeline to send requests through. */ - private final HttpPipeline httpPipeline; - - /** - * Gets The HTTP pipeline to send requests through. - * - * @return the httpPipeline value. - */ - public HttpPipeline getHttpPipeline() { - return this.httpPipeline; - } - - /** The OperationsInner object to access its operations. */ - private final OperationsInner operations; - - /** - * Gets the OperationsInner object to access its operations. - * - * @return the OperationsInner object. - */ - public OperationsInner operations() { - return this.operations; - } - - /** The SkusInner object to access its operations. */ - private final SkusInner skus; - - /** - * Gets the SkusInner object to access its operations. - * - * @return the SkusInner object. - */ - public SkusInner skus() { - return this.skus; - } - - /** The StorageAccountsInner object to access its operations. */ - private final StorageAccountsInner storageAccounts; - - /** - * Gets the StorageAccountsInner object to access its operations. - * - * @return the StorageAccountsInner object. - */ - public StorageAccountsInner storageAccounts() { - return this.storageAccounts; - } - - /** The UsagesInner object to access its operations. */ - private final UsagesInner usages; - - /** - * Gets the UsagesInner object to access its operations. - * - * @return the UsagesInner object. - */ - public UsagesInner usages() { - return this.usages; - } - - /** The ManagementPoliciesInner object to access its operations. */ - private final ManagementPoliciesInner managementPolicies; - - /** - * Gets the ManagementPoliciesInner object to access its operations. - * - * @return the ManagementPoliciesInner object. - */ - public ManagementPoliciesInner managementPolicies() { - return this.managementPolicies; - } - - /** The PrivateEndpointConnectionsInner object to access its operations. */ - private final PrivateEndpointConnectionsInner privateEndpointConnections; - - /** - * Gets the PrivateEndpointConnectionsInner object to access its operations. - * - * @return the PrivateEndpointConnectionsInner object. - */ - public PrivateEndpointConnectionsInner privateEndpointConnections() { - return this.privateEndpointConnections; - } - - /** The PrivateLinkResourcesInner object to access its operations. */ - private final PrivateLinkResourcesInner privateLinkResources; - - /** - * Gets the PrivateLinkResourcesInner object to access its operations. - * - * @return the PrivateLinkResourcesInner object. - */ - public PrivateLinkResourcesInner privateLinkResources() { - return this.privateLinkResources; - } - - /** The ObjectReplicationPoliciesOperationsInner object to access its operations. */ - private final ObjectReplicationPoliciesOperationsInner objectReplicationPoliciesOperations; - - /** - * Gets the ObjectReplicationPoliciesOperationsInner object to access its operations. - * - * @return the ObjectReplicationPoliciesOperationsInner object. - */ - public ObjectReplicationPoliciesOperationsInner objectReplicationPoliciesOperations() { - return this.objectReplicationPoliciesOperations; - } - - /** The EncryptionScopesInner object to access its operations. */ - private final EncryptionScopesInner encryptionScopes; - - /** - * Gets the EncryptionScopesInner object to access its operations. - * - * @return the EncryptionScopesInner object. - */ - public EncryptionScopesInner encryptionScopes() { - return this.encryptionScopes; - } - - /** The BlobServicesInner object to access its operations. */ - private final BlobServicesInner blobServices; - - /** - * Gets the BlobServicesInner object to access its operations. - * - * @return the BlobServicesInner object. - */ - public BlobServicesInner blobServices() { - return this.blobServices; - } - - /** The BlobContainersInner object to access its operations. */ - private final BlobContainersInner blobContainers; - - /** - * Gets the BlobContainersInner object to access its operations. - * - * @return the BlobContainersInner object. - */ - public BlobContainersInner blobContainers() { - return this.blobContainers; - } - - /** The FileServicesInner object to access its operations. */ - private final FileServicesInner fileServices; - - /** - * Gets the FileServicesInner object to access its operations. - * - * @return the FileServicesInner object. - */ - public FileServicesInner fileServices() { - return this.fileServices; - } - - /** The FileSharesInner object to access its operations. */ - private final FileSharesInner fileShares; - - /** - * Gets the FileSharesInner object to access its operations. - * - * @return the FileSharesInner object. - */ - public FileSharesInner fileShares() { - return this.fileShares; - } - - /** The QueueServicesInner object to access its operations. */ - private final QueueServicesInner queueServices; - - /** - * Gets the QueueServicesInner object to access its operations. - * - * @return the QueueServicesInner object. - */ - public QueueServicesInner queueServices() { - return this.queueServices; - } - - /** The QueuesInner object to access its operations. */ - private final QueuesInner queues; - - /** - * Gets the QueuesInner object to access its operations. - * - * @return the QueuesInner object. - */ - public QueuesInner queues() { - return this.queues; - } - - /** The TableServicesInner object to access its operations. */ - private final TableServicesInner tableServices; - - /** - * Gets the TableServicesInner object to access its operations. - * - * @return the TableServicesInner object. - */ - public TableServicesInner tableServices() { - return this.tableServices; - } - - /** The TablesInner object to access its operations. */ - private final TablesInner tables; - - /** - * Gets the TablesInner object to access its operations. - * - * @return the TablesInner object. - */ - public TablesInner tables() { - return this.tables; - } - - /** Initializes an instance of StorageManagementClient client. */ - public StorageManagementClientImpl() { - this( - new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(), - AzureEnvironment.AZURE); - } - - /** - * Initializes an instance of StorageManagementClient client. - * - * @param httpPipeline The HTTP pipeline to send requests through. - */ - public StorageManagementClientImpl(HttpPipeline httpPipeline) { - this(httpPipeline, AzureEnvironment.AZURE); - } - - /** - * Initializes an instance of StorageManagementClient client. - * - * @param httpPipeline The HTTP pipeline to send requests through. - * @param environment The Azure environment. - */ - public StorageManagementClientImpl(HttpPipeline httpPipeline, AzureEnvironment environment) { - super(httpPipeline, environment); - this.httpPipeline = httpPipeline; - this.operations = new OperationsInner(this); - this.skus = new SkusInner(this); - this.storageAccounts = new StorageAccountsInner(this); - this.usages = new UsagesInner(this); - this.managementPolicies = new ManagementPoliciesInner(this); - this.privateEndpointConnections = new PrivateEndpointConnectionsInner(this); - this.privateLinkResources = new PrivateLinkResourcesInner(this); - this.objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsInner(this); - this.encryptionScopes = new EncryptionScopesInner(this); - this.blobServices = new BlobServicesInner(this); - this.blobContainers = new BlobContainersInner(this); - this.fileServices = new FileServicesInner(this); - this.fileShares = new FileSharesInner(this); - this.queueServices = new QueueServicesInner(this); - this.queues = new QueuesInner(this); - this.tableServices = new TableServicesInner(this); - this.tables = new TablesInner(this); - } -} diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageResourceType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java similarity index 80% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageResourceType.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java index fdac6232d55f..f3637ce73015 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageResourceType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageService.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java similarity index 84% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageService.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java index eb85821bd79a..aebf00073ff6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageService.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java @@ -1,7 +1,9 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.util.ExpandableStringEnum; import java.util.Collection; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSku.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java similarity index 80% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSku.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java index 8a67e249af58..ee0474f48b63 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSku.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java @@ -1,12 +1,14 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.models.SkuInformationInner; +import com.azure.management.storage.inner.SkuInformationInner; import java.util.List; /** Type representing sku for an Azure storage resource. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSkus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java similarity index 55% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSkus.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java index be44420ecb5e..c66148b5716c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageSkus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java @@ -1,14 +1,16 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.SkusInner; +import com.azure.management.storage.inner.SkusClient; /** Entry point to storage service SKUs. */ -public interface StorageSkus extends SupportsListing, HasInner, HasManager { +public interface StorageSkus extends SupportsListing, HasInner, HasManager { } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageUsage.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageUsage.java similarity index 100% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageUsage.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageUsage.java diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagFilter.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagFilter.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagFilter.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagFilter.java index be30d173db08..aed531b0029d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagFilter.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagFilter.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagProperty.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagProperty.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagProperty.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagProperty.java index 8afaf177332d..d0670513e5f9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TagProperty.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TagProperty.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TrackedResource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TrackedResource.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/TrackedResource.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TrackedResource.java index cb31eb1e824a..547a749ceeef 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/TrackedResource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/TrackedResource.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UpdateHistoryProperty.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UpdateHistoryProperty.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/UpdateHistoryProperty.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UpdateHistoryProperty.java index efdeb1d2ac2d..57d98d012651 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UpdateHistoryProperty.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UpdateHistoryProperty.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageName.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageName.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageName.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageName.java index c020b32e56a7..1baef418c89d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageName.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageName.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageUnit.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageUnit.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageUnit.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageUnit.java index 39db295c2f97..02ffabc1ece3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/UsageUnit.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/UsageUnit.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Usages.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java similarity index 55% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/Usages.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java index cfba9dd67332..35ab27ac6d6f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/Usages.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java @@ -1,17 +1,19 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.models.UsageInner; -import com.azure.management.storage.models.UsagesInner; +import com.azure.management.storage.inner.UsageInner; +import com.azure.management.storage.inner.UsagesClient; /** Entry point for storage resource usage management API. */ @Fluent -public interface Usages extends SupportsListing, HasInner, HasManager { +public interface Usages extends SupportsListing, HasInner, HasManager { } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/VirtualNetworkRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/VirtualNetworkRule.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/VirtualNetworkRule.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/VirtualNetworkRule.java index 889482f2e817..a4ba800fb04b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/VirtualNetworkRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/VirtualNetworkRule.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage; +package com.azure.management.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java deleted file mode 100644 index ef78cb31747e..000000000000 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -/** - * Package containing the implementations and inner classes for StorageManagementClient. The Azure Storage Management - * API. - */ -package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java index 61e5576dcb0d..a6900a32adc2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. -/** - * This package contains the base classes for storage management sdk. - */ +/** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountNetworkRuleTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountNetworkRuleTests.java index 060a49e754fb..e52a8a9df767 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountNetworkRuleTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountNetworkRuleTests.java @@ -7,6 +7,8 @@ import com.azure.management.resources.ResourceGroup; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; +import com.azure.management.storage.models.DefaultAction; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountOperationsTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountOperationsTests.java index 7782ad8cccf3..5ef5f7cbc658 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountOperationsTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageAccountOperationsTests.java @@ -11,6 +11,14 @@ import com.azure.management.resources.fluentcore.utils.Utils; import java.util.List; import java.util.Map; + +import com.azure.management.storage.models.SkuName; +import com.azure.management.storage.models.StorageAccount; +import com.azure.management.storage.models.StorageAccountEncryptionKeySource; +import com.azure.management.storage.models.StorageAccountEncryptionStatus; +import com.azure.management.storage.models.StorageAccountKey; +import com.azure.management.storage.models.StorageAccountSkuType; +import com.azure.management.storage.models.StorageService; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobContainersTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobContainersTests.java index 02ad0b1865bf..0d2a42f7728d 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobContainersTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobContainersTests.java @@ -9,6 +9,10 @@ import java.util.Map; import com.azure.management.resources.fluentcore.profile.AzureProfile; +import com.azure.management.storage.models.BlobContainer; +import com.azure.management.storage.models.BlobContainers; +import com.azure.management.storage.models.PublicAccess; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobServicesTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobServicesTests.java index ed8555cbddc8..44a423109fc7 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobServicesTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageBlobServicesTests.java @@ -6,6 +6,9 @@ import com.azure.core.http.HttpPipeline; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; +import com.azure.management.storage.models.BlobServiceProperties; +import com.azure.management.storage.models.BlobServices; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementPoliciesTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementPoliciesTests.java index 5626b6e3beea..7ccfc19158b4 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementPoliciesTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementPoliciesTests.java @@ -10,6 +10,12 @@ import java.util.List; import com.azure.management.resources.fluentcore.profile.AzureProfile; +import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.BlobTypes; +import com.azure.management.storage.models.ManagementPolicies; +import com.azure.management.storage.models.ManagementPolicy; +import com.azure.management.storage.models.PolicyRule; +import com.azure.management.storage.models.StorageAccount; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java index c3584472428e..d369d6ff9895 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java @@ -5,7 +5,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.management.resources.core.TestUtilities; -import com.azure.management.storage.models.UsageInner; +import com.azure.management.storage.inner.UsageInner; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; From e7c823480becb8e840f2d3417e4137789d6b4a44 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Mon, 18 May 2020 16:36:27 +0800 Subject: [PATCH 02/16] fix bug, AccountStatuses should not be under implementation --- .../management/storage/implementation/StorageAccountImpl.java | 1 + .../storage/{implementation => models}/AccountStatuses.java | 2 +- .../com/azure/management/storage/models/StorageAccount.java | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{implementation => models}/AccountStatuses.java (95%) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index 9deb8e5604c4..8706e84c989c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -7,6 +7,7 @@ import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; import com.azure.management.storage.models.AccessTier; +import com.azure.management.storage.models.AccountStatuses; import com.azure.management.storage.models.AzureFilesIdentityBasedAuthentication; import com.azure.management.storage.models.CustomDomain; import com.azure.management.storage.models.DirectoryServiceOptions; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java index 0768f907f9f0..596dd2c1cc9e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/AccountStatuses.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -package com.azure.management.storage.implementation; +package com.azure.management.storage.models; import com.azure.management.storage.models.AccountStatus; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java index 0727e9fba481..839be6510cc4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java @@ -12,7 +12,6 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.AccountStatuses; import com.azure.management.storage.implementation.StorageManager; import com.azure.management.storage.inner.StorageAccountInner; import java.time.OffsetDateTime; From 4da0a6cb99792b56f2ee07d41bba2fc762ea1c43 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 12:42:34 +0800 Subject: [PATCH 03/16] restructure --- sdk/management/gulpfile.js | 2 +- .../storage/StorageManagementClient.java | 34 +++++++++---------- .../BlobContainersClient.java | 8 ++++- .../{inner => fluent}/BlobServicesClient.java | 4 ++- .../EncryptionScopesClient.java | 4 ++- .../{inner => fluent}/FileServicesClient.java | 4 ++- .../{inner => fluent}/FileSharesClient.java | 5 ++- .../ManagementPoliciesClient.java | 3 +- ...ctReplicationPoliciesOperationsClient.java | 4 ++- .../{inner => fluent}/OperationsClient.java | 4 ++- .../PrivateEndpointConnectionsClient.java | 4 ++- .../PrivateLinkResourcesClient.java | 3 +- .../QueueServicesClient.java | 4 ++- .../{inner => fluent}/QueuesClient.java | 6 +++- .../storage/{inner => fluent}/SkusClient.java | 4 ++- .../StorageAccountsClient.java | 9 ++++- .../TableServicesClient.java | 4 ++- .../{inner => fluent}/TablesClient.java | 4 ++- .../{inner => fluent}/UsagesClient.java | 4 ++- .../inner/BlobContainerInner.java | 2 +- .../inner/BlobRestoreStatusInner.java | 2 +- .../inner/BlobServiceItemsInner.java | 2 +- .../inner/BlobServicePropertiesInner.java | 2 +- .../CheckNameAvailabilityResultInner.java | 2 +- .../inner/EncryptionScopeInner.java | 2 +- .../inner/EncryptionScopeListResultInner.java | 2 +- .../inner/FileServiceItemsInner.java | 2 +- .../inner/FileServicePropertiesInner.java | 2 +- .../{ => fluent}/inner/FileShareInner.java | 2 +- .../inner/FileShareItemInner.java | 2 +- .../inner/FileShareItemsInner.java | 2 +- .../inner/ImmutabilityPolicyInner.java | 2 +- .../inner/LeaseContainerResponseInner.java | 2 +- .../{ => fluent}/inner/LegalHoldInner.java | 2 +- .../inner/ListAccountSasResponseInner.java | 2 +- .../inner/ListContainerItemInner.java | 2 +- .../inner/ListContainerItemsInner.java | 2 +- .../{ => fluent}/inner/ListQueueInner.java | 2 +- .../inner/ListQueueResourceInner.java | 2 +- .../inner/ListQueueServicesInner.java | 2 +- .../inner/ListServiceSasResponseInner.java | 2 +- .../inner/ListTableResourceInner.java | 2 +- .../inner/ListTableServicesInner.java | 2 +- .../inner/ManagementPolicyInner.java | 2 +- .../inner/ObjectReplicationPoliciesInner.java | 2 +- .../inner/ObjectReplicationPolicyInner.java | 2 +- .../{ => fluent}/inner/OperationInner.java | 2 +- .../inner/OperationListResultInner.java | 2 +- .../inner/PrivateEndpointConnectionInner.java | 2 +- ...vateEndpointConnectionListResultInner.java | 2 +- .../PrivateLinkResourceListResultInner.java | 2 +- .../inner/QueueServicePropertiesInner.java | 2 +- .../inner/SkuInformationInner.java | 2 +- .../inner/StorageAccountInner.java | 2 +- .../StorageAccountListKeysResultInner.java | 2 +- .../inner/StorageAccountListResultInner.java | 2 +- .../{ => fluent}/inner/StorageQueueInner.java | 2 +- .../inner/StorageSkuListResultInner.java | 2 +- .../{ => fluent}/inner/TableInner.java | 2 +- .../inner/TableServicePropertiesInner.java | 2 +- .../{ => fluent}/inner/UsageInner.java | 2 +- .../inner/UsageListResultInner.java | 2 +- .../implementation/BlobContainerImpl.java | 4 +-- .../implementation/BlobContainersImpl.java | 8 ++--- .../BlobServicePropertiesImpl.java | 4 +-- .../implementation/BlobServicesImpl.java | 4 +-- .../ImmutabilityPolicyImpl.java | 4 +-- .../storage/implementation/LegalHoldImpl.java | 2 +- .../ManagementPoliciesImpl.java | 4 +-- .../implementation/ManagementPolicyImpl.java | 4 +-- .../implementation/StorageAccountImpl.java | 4 +-- .../implementation/StorageAccountsImpl.java | 4 +-- .../StorageEncryptionHelper.java | 2 +- .../StorageNetworkRulesHelper.java | 2 +- .../implementation/StorageSkuImpl.java | 2 +- .../implementation/StorageSkusImpl.java | 2 +- .../storage/implementation/UsagesImpl.java | 4 +-- .../storage/models/AccountStatuses.java | 2 -- .../storage/models/BlobContainer.java | 2 +- .../storage/models/BlobContainers.java | 4 +-- ...ateOrUpdateImmutabilityPolicyResponse.java | 2 +- ...inersDeleteImmutabilityPolicyResponse.java | 2 +- ...inersExtendImmutabilityPolicyResponse.java | 2 +- ...ntainersGetImmutabilityPolicyResponse.java | 2 +- ...tainersLockImmutabilityPolicyResponse.java | 2 +- .../storage/models/BlobServiceProperties.java | 2 +- .../storage/models/BlobServices.java | 2 +- .../models/CheckNameAvailabilityResult.java | 2 +- .../storage/models/ImmutabilityPolicy.java | 2 +- .../management/storage/models/LegalHold.java | 2 +- .../storage/models/ManagementPolicies.java | 2 +- .../storage/models/ManagementPolicy.java | 2 +- .../storage/models/StorageAccount.java | 2 +- .../storage/models/StorageAccounts.java | 2 +- .../management/storage/models/StorageSku.java | 2 +- .../storage/models/StorageSkus.java | 2 +- .../management/storage/models/Usages.java | 4 +-- .../storage/UsageOperationsTests.java | 2 +- 98 files changed, 171 insertions(+), 129 deletions(-) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/BlobContainersClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/BlobServicesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/EncryptionScopesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/FileServicesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/FileSharesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/ManagementPoliciesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/ObjectReplicationPoliciesOperationsClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/OperationsClient.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/PrivateEndpointConnectionsClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/PrivateLinkResourcesClient.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/QueueServicesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/QueuesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/SkusClient.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/StorageAccountsClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/TableServicesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/TablesClient.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{inner => fluent}/UsagesClient.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/BlobContainerInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/BlobRestoreStatusInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/BlobServiceItemsInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/BlobServicePropertiesInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/CheckNameAvailabilityResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/EncryptionScopeInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/EncryptionScopeListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/FileServiceItemsInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/FileServicePropertiesInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/FileShareInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/FileShareItemInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/FileShareItemsInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ImmutabilityPolicyInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/LeaseContainerResponseInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/LegalHoldInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListAccountSasResponseInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListContainerItemInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListContainerItemsInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListQueueInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListQueueResourceInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListQueueServicesInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListServiceSasResponseInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListTableResourceInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ListTableServicesInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ManagementPolicyInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ObjectReplicationPoliciesInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/ObjectReplicationPolicyInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/OperationInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/OperationListResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/PrivateEndpointConnectionInner.java (98%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/PrivateEndpointConnectionListResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/PrivateLinkResourceListResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/QueueServicePropertiesInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/SkuInformationInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/StorageAccountInner.java (99%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/StorageAccountListKeysResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/StorageAccountListResultInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/StorageQueueInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/StorageSkuListResultInner.java (96%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/TableInner.java (95%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/TableServicePropertiesInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/UsageInner.java (97%) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{ => fluent}/inner/UsageListResultInner.java (96%) diff --git a/sdk/management/gulpfile.js b/sdk/management/gulpfile.js index 1d17658d4b8a..79fd908a1251 100644 --- a/sdk/management/gulpfile.js +++ b/sdk/management/gulpfile.js @@ -126,7 +126,7 @@ function codegen(project, cb) { cmd = autoRestExe + ' ' + readmeFile + ' --java ' + ' --azure-arm=true ' + - ' --track1-naming=true --implementation-subpackage=inner --sync-methods=all --required-parameter-client-methods=true --add-context-parameter=true --context-client-method-parameter=true --client-side-validations=true --client-logger=true ' + + ' --track1-naming=true --implementation-subpackage=fluent --sync-methods=all --required-parameter-client-methods=true --add-context-parameter=true --context-client-method-parameter=true --client-side-validations=true --client-logger=true ' + generator + ` --java.namespace=${mappings[project].package} ` + ` --java.output-folder=${outDir} ` + diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index 128aebbca657..91d50e5f3585 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -12,23 +12,23 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.util.logging.ClientLogger; import com.azure.management.AzureServiceClient; -import com.azure.management.storage.inner.BlobContainersClient; -import com.azure.management.storage.inner.BlobServicesClient; -import com.azure.management.storage.inner.EncryptionScopesClient; -import com.azure.management.storage.inner.FileServicesClient; -import com.azure.management.storage.inner.FileSharesClient; -import com.azure.management.storage.inner.ManagementPoliciesClient; -import com.azure.management.storage.inner.ObjectReplicationPoliciesOperationsClient; -import com.azure.management.storage.inner.OperationsClient; -import com.azure.management.storage.inner.PrivateEndpointConnectionsClient; -import com.azure.management.storage.inner.PrivateLinkResourcesClient; -import com.azure.management.storage.inner.QueueServicesClient; -import com.azure.management.storage.inner.QueuesClient; -import com.azure.management.storage.inner.SkusClient; -import com.azure.management.storage.inner.StorageAccountsClient; -import com.azure.management.storage.inner.TableServicesClient; -import com.azure.management.storage.inner.TablesClient; -import com.azure.management.storage.inner.UsagesClient; +import com.azure.management.storage.fluent.BlobContainersClient; +import com.azure.management.storage.fluent.BlobServicesClient; +import com.azure.management.storage.fluent.EncryptionScopesClient; +import com.azure.management.storage.fluent.FileServicesClient; +import com.azure.management.storage.fluent.FileSharesClient; +import com.azure.management.storage.fluent.ManagementPoliciesClient; +import com.azure.management.storage.fluent.ObjectReplicationPoliciesOperationsClient; +import com.azure.management.storage.fluent.OperationsClient; +import com.azure.management.storage.fluent.PrivateEndpointConnectionsClient; +import com.azure.management.storage.fluent.PrivateLinkResourcesClient; +import com.azure.management.storage.fluent.QueueServicesClient; +import com.azure.management.storage.fluent.QueuesClient; +import com.azure.management.storage.fluent.SkusClient; +import com.azure.management.storage.fluent.StorageAccountsClient; +import com.azure.management.storage.fluent.TableServicesClient; +import com.azure.management.storage.fluent.TablesClient; +import com.azure.management.storage.fluent.UsagesClient; /** Initializes a new instance of the StorageManagementClient type. */ public final class StorageManagementClient extends AzureServiceClient { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index 410eaae898da..42dd01f4c83c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -34,6 +34,12 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.BlobContainerInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.LeaseContainerResponseInner; +import com.azure.management.storage.fluent.inner.LegalHoldInner; +import com.azure.management.storage.fluent.inner.ListContainerItemInner; +import com.azure.management.storage.fluent.inner.ListContainerItemsInner; import com.azure.management.storage.models.BlobContainersCreateOrUpdateImmutabilityPolicyResponse; import com.azure.management.storage.models.BlobContainersDeleteImmutabilityPolicyResponse; import com.azure.management.storage.models.BlobContainersExtendImmutabilityPolicyResponse; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index 738d99545889..bc44c3158a40 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -29,6 +29,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.BlobServiceItemsInner; +import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BlobServices. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index 876a0a7992af..f8e32ccb95f6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -30,6 +30,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.EncryptionScopeInner; +import com.azure.management.storage.fluent.inner.EncryptionScopeListResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in EncryptionScopes. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index 001c7f2f5035..2d83b2313a1c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -25,6 +25,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.FileServiceItemsInner; +import com.azure.management.storage.fluent.inner.FileServicePropertiesInner; import com.azure.management.storage.models.CorsRules; import com.azure.management.storage.models.DeleteRetentionPolicy; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index 99e1c42d7d83..5322beab9ffa 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -33,6 +33,9 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.FileShareInner; +import com.azure.management.storage.fluent.inner.FileShareItemInner; +import com.azure.management.storage.fluent.inner.FileShareItemsInner; import com.azure.management.storage.models.DeletedShare; import com.azure.management.storage.models.GetShareExpand; import com.azure.management.storage.models.ListSharesExpand; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index eae31cb9e53a..152966719751 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -28,6 +28,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import com.azure.management.storage.models.ManagementPolicySchema; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index 7dbfba31ab99..25f9634d5ce2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -31,6 +31,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.ObjectReplicationPoliciesInner; +import com.azure.management.storage.fluent.inner.ObjectReplicationPolicyInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in ObjectReplicationPoliciesOperations. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index cf1b4a315432..ca5c214cab9c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -26,6 +26,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.OperationInner; +import com.azure.management.storage.fluent.inner.OperationListResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Operations. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index 5227c49de07e..9510f8b64cbd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -31,6 +31,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.PrivateEndpointConnectionInner; +import com.azure.management.storage.fluent.inner.PrivateEndpointConnectionListResultInner; import com.azure.management.storage.models.PrivateEndpoint; import com.azure.management.storage.models.PrivateLinkServiceConnectionState; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index 8aa4375c7808..9cc6453fd955 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -23,6 +23,7 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.PrivateLinkResourceListResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in PrivateLinkResources. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index 1c1d2b71f223..a38d696f3386 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -25,6 +25,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.ListQueueServicesInner; +import com.azure.management.storage.fluent.inner.QueueServicePropertiesInner; import com.azure.management.storage.models.CorsRules; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index cc24f7bcff4b..4e348ff039e1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -34,6 +34,10 @@ import com.azure.management.storage.StorageManagementClient; import java.util.Map; + +import com.azure.management.storage.fluent.inner.ListQueueInner; +import com.azure.management.storage.fluent.inner.ListQueueResourceInner; +import com.azure.management.storage.fluent.inner.StorageQueueInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Queues. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index 52dfff888f62..cf8bfa53f883 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -27,6 +27,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.SkuInformationInner; +import com.azure.management.storage.fluent.inner.StorageSkuListResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Skus. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index 2c7e61889606..cbb12a0a5bc8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; @@ -37,6 +37,13 @@ import com.azure.management.resources.fluentcore.collection.InnerSupportsGet; import com.azure.management.resources.fluentcore.collection.InnerSupportsListing; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.BlobRestoreStatusInner; +import com.azure.management.storage.fluent.inner.CheckNameAvailabilityResultInner; +import com.azure.management.storage.fluent.inner.ListAccountSasResponseInner; +import com.azure.management.storage.fluent.inner.ListServiceSasResponseInner; +import com.azure.management.storage.fluent.inner.StorageAccountInner; +import com.azure.management.storage.fluent.inner.StorageAccountListKeysResultInner; +import com.azure.management.storage.fluent.inner.StorageAccountListResultInner; import com.azure.management.storage.models.AccountSasParameters; import com.azure.management.storage.models.BlobRestoreParameters; import com.azure.management.storage.models.BlobRestoreRange; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index 88493a61fc0f..26800fcad3ee 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; @@ -25,6 +25,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.ListTableServicesInner; +import com.azure.management.storage.fluent.inner.TableServicePropertiesInner; import com.azure.management.storage.models.CorsRules; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index 792ee23a8a4a..f8679aa4195b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; @@ -31,6 +31,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.ListTableResourceInner; +import com.azure.management.storage.fluent.inner.TableInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Tables. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index a6fc4c656bcf..3879f360ce36 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -27,6 +27,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.fluent.inner.UsageInner; +import com.azure.management.storage.fluent.inner.UsageListResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Usages. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobContainerInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobContainerInner.java index 554906ffb1e5..175a66c7843f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobContainerInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobContainerInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobRestoreStatusInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobRestoreStatusInner.java index 9f755be538b4..d19a5e6adb67 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobRestoreStatusInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobRestoreStatusInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServiceItemsInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServiceItemsInner.java index 95166835e63b..ac4886c0d344 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServiceItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServiceItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServicePropertiesInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServicePropertiesInner.java index cdf96bbdfc2b..e575827c854e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/BlobServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/BlobServicePropertiesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/CheckNameAvailabilityResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/CheckNameAvailabilityResultInner.java index 399da922833a..2dfa8937c6be 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/CheckNameAvailabilityResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/CheckNameAvailabilityResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeInner.java index 560025a2a5e8..e4de95331d36 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeListResultInner.java index 85065e71ef42..023f930b8083 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/EncryptionScopeListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/EncryptionScopeListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServiceItemsInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServiceItemsInner.java index 6e3637fe6171..15721f52f478 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServiceItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServiceItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServicePropertiesInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServicePropertiesInner.java index 7ee4e6ae24fe..986fea48bdf2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileServicePropertiesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareInner.java index b1483aadf1bd..49e7a2d744a4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemInner.java index 7dee9949be32..86229544c071 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemsInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemsInner.java index 4f3244815aff..ced75fb3ac5d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/FileShareItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/FileShareItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ImmutabilityPolicyInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ImmutabilityPolicyInner.java index e413a8baeefe..75391a21d25b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ImmutabilityPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ImmutabilityPolicyInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LeaseContainerResponseInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LeaseContainerResponseInner.java index 28b9051173a6..d472ff3a655e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LeaseContainerResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LeaseContainerResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LegalHoldInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LegalHoldInner.java index 769c83428983..a083f035f715 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/LegalHoldInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/LegalHoldInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListAccountSasResponseInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListAccountSasResponseInner.java index 58263861a33f..324da5a16600 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListAccountSasResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListAccountSasResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemInner.java index 71fe3cb504f1..1dffc1dce449 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemsInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemsInner.java index 2f505cf68c55..cafacb69fbaa 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListContainerItemsInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListContainerItemsInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueInner.java index b5f1aa6f9c4b..c55d6576fad3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueResourceInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueResourceInner.java index a61113baaa88..20dc51e577fb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueResourceInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueResourceInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueServicesInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueServicesInner.java index 2d0a55790316..8b98ea5af99e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListQueueServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListQueueServicesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListServiceSasResponseInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListServiceSasResponseInner.java index a7227fcfaf32..3377b9c31bd1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListServiceSasResponseInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListServiceSasResponseInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableResourceInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableResourceInner.java index 6355860643cb..366e16682ed5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableResourceInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableResourceInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableServicesInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableServicesInner.java index 033b578ac622..b462a9098d62 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ListTableServicesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ListTableServicesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ManagementPolicyInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ManagementPolicyInner.java index b8f87b26996e..d3530cdef285 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ManagementPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ManagementPolicyInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPoliciesInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPoliciesInner.java index 6d2617dced19..4cfecdbe3d3c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPoliciesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPoliciesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPolicyInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPolicyInner.java index 1227ae8e8283..f5d5eef49ba5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/ObjectReplicationPolicyInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/ObjectReplicationPolicyInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationInner.java index 07489fed82a9..67011cca3c69 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationListResultInner.java index 21b50710ef00..a85fc492d2c1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/OperationListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/OperationListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionInner.java similarity index 98% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionInner.java index 8bb1db444bd5..7a0df07ecd94 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionListResultInner.java index b265b31337ac..410f758d81ec 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateEndpointConnectionListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateEndpointConnectionListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateLinkResourceListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateLinkResourceListResultInner.java index 11875d4139fe..ee3af9bf4dea 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/PrivateLinkResourceListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/PrivateLinkResourceListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/QueueServicePropertiesInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/QueueServicePropertiesInner.java index 08144c4b9554..f6e7496e0159 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/QueueServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/QueueServicePropertiesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/SkuInformationInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/SkuInformationInner.java index 08a042c85cfe..108152830dd3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/SkuInformationInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/SkuInformationInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountInner.java similarity index 99% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountInner.java index e59ff4b9ad73..0fbf96037b81 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListKeysResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListKeysResultInner.java index e6e926c1f28b..230a78b278d9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListKeysResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListKeysResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListResultInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListResultInner.java index 89384a37498c..c3387d252b99 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageAccountListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageAccountListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageQueueInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageQueueInner.java index 35f657422960..3bb47121aa84 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageQueueInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageQueueInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageSkuListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageSkuListResultInner.java index d3fb0624aa1c..1503488a94f9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/StorageSkuListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/StorageSkuListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableInner.java similarity index 95% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableInner.java index a9a8c3495367..4e9620f3612c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableServicePropertiesInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableServicePropertiesInner.java index 6027d25b6801..d8d7fe3d8886 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/TableServicePropertiesInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/TableServicePropertiesInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageInner.java similarity index 97% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageInner.java index b1e01f6be2a9..f1930bc69a73 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageListResultInner.java similarity index 96% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageListResultInner.java index 83969f5e867c..810b6d386c25 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/inner/UsageListResultInner.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/UsageListResultInner.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.management.storage.inner; +package com.azure.management.storage.fluent.inner; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java index d3193002c512..6076f7e5752e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java @@ -11,8 +11,8 @@ import com.azure.management.storage.models.LeaseStatus; import com.azure.management.storage.models.LegalHoldProperties; import com.azure.management.storage.models.PublicAccess; -import com.azure.management.storage.inner.BlobContainerInner; -import com.azure.management.storage.inner.BlobContainersClient; +import com.azure.management.storage.fluent.inner.BlobContainerInner; +import com.azure.management.storage.fluent.BlobContainersClient; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java index 3024ac8ca2c5..f85b9169aeb3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java @@ -9,10 +9,10 @@ import com.azure.management.storage.models.BlobContainers; import com.azure.management.storage.models.ImmutabilityPolicy; import com.azure.management.storage.models.LegalHold; -import com.azure.management.storage.inner.BlobContainerInner; -import com.azure.management.storage.inner.BlobContainersClient; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; -import com.azure.management.storage.inner.ListContainerItemInner; +import com.azure.management.storage.fluent.inner.BlobContainerInner; +import com.azure.management.storage.fluent.BlobContainersClient; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ListContainerItemInner; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java index f96b0e2ab43b..7f0a3d06dc30 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java @@ -8,8 +8,8 @@ import com.azure.management.storage.models.CorsRule; import com.azure.management.storage.models.CorsRules; import com.azure.management.storage.models.DeleteRetentionPolicy; -import com.azure.management.storage.inner.BlobServicePropertiesInner; -import com.azure.management.storage.inner.BlobServicesClient; +import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; +import com.azure.management.storage.fluent.BlobServicesClient; import java.util.ArrayList; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java index 439bf78eda19..32393b481cab 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java @@ -6,8 +6,8 @@ import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.models.BlobServiceProperties; import com.azure.management.storage.models.BlobServices; -import com.azure.management.storage.inner.BlobServicePropertiesInner; -import com.azure.management.storage.inner.BlobServicesClient; +import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; +import com.azure.management.storage.fluent.BlobServicesClient; import reactor.core.publisher.Mono; class BlobServicesImpl extends WrapperImpl implements BlobServices { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java index cc956d3c2254..c3765f7a4c4f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java @@ -7,8 +7,8 @@ import com.azure.management.resources.fluentcore.utils.ETagState; import com.azure.management.storage.models.ImmutabilityPolicy; import com.azure.management.storage.models.ImmutabilityPolicyState; -import com.azure.management.storage.inner.BlobContainersClient; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.BlobContainersClient; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; import reactor.core.publisher.Mono; class ImmutabilityPolicyImpl diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java index a7bc781a6c4a..966beb8c93a0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java @@ -5,7 +5,7 @@ import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.models.LegalHold; -import com.azure.management.storage.inner.LegalHoldInner; +import com.azure.management.storage.fluent.inner.LegalHoldInner; import java.util.List; class LegalHoldImpl extends WrapperImpl implements LegalHold { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java index b2d983bf8c65..771982e318ed 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java @@ -6,8 +6,8 @@ import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.models.ManagementPolicies; import com.azure.management.storage.models.ManagementPolicy; -import com.azure.management.storage.inner.ManagementPoliciesClient; -import com.azure.management.storage.inner.ManagementPolicyInner; +import com.azure.management.storage.fluent.ManagementPoliciesClient; +import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import reactor.core.publisher.Mono; class ManagementPoliciesImpl extends WrapperImpl implements ManagementPolicies { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java index 4e648fd2ec80..d01693d82e2d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java @@ -12,8 +12,8 @@ import com.azure.management.storage.models.ManagementPolicySchema; import com.azure.management.storage.models.ManagementPolicySnapShot; import com.azure.management.storage.models.PolicyRule; -import com.azure.management.storage.inner.ManagementPoliciesClient; -import com.azure.management.storage.inner.ManagementPolicyInner; +import com.azure.management.storage.fluent.ManagementPoliciesClient; +import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Collections; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index 8706e84c989c..61fd519e084d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -27,8 +27,8 @@ import com.azure.management.storage.models.StorageAccountSkuType; import com.azure.management.storage.models.StorageAccountUpdateParameters; import com.azure.management.storage.models.StorageService; -import com.azure.management.storage.inner.StorageAccountInner; -import com.azure.management.storage.inner.StorageAccountsClient; +import com.azure.management.storage.fluent.inner.StorageAccountInner; +import com.azure.management.storage.fluent.StorageAccountsClient; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java index 71961ba5e127..d33ebb4ce277 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java @@ -9,8 +9,8 @@ import com.azure.management.storage.models.SkuName; import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.models.StorageAccounts; -import com.azure.management.storage.inner.StorageAccountInner; -import com.azure.management.storage.inner.StorageAccountsClient; +import com.azure.management.storage.fluent.inner.StorageAccountInner; +import com.azure.management.storage.fluent.StorageAccountsClient; import reactor.core.publisher.Mono; /** The implementation of StorageAccounts and its parent interfaces. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java index 7ee5b202cf8c..3f57560fe3cb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageEncryptionHelper.java @@ -13,7 +13,7 @@ import com.azure.management.storage.models.StorageAccountEncryptionStatus; import com.azure.management.storage.models.StorageAccountUpdateParameters; import com.azure.management.storage.models.StorageService; -import com.azure.management.storage.inner.StorageAccountInner; +import com.azure.management.storage.fluent.inner.StorageAccountInner; import java.util.HashMap; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java index 1d37a5506502..36400bb32c33 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageNetworkRulesHelper.java @@ -11,7 +11,7 @@ import com.azure.management.storage.models.StorageAccountCreateParameters; import com.azure.management.storage.models.StorageAccountUpdateParameters; import com.azure.management.storage.models.VirtualNetworkRule; -import com.azure.management.storage.inner.StorageAccountInner; +import com.azure.management.storage.fluent.inner.StorageAccountInner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java index 2fc1ec92f98c..9d9f1a83552f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkuImpl.java @@ -12,7 +12,7 @@ import com.azure.management.storage.models.StorageAccountSkuType; import com.azure.management.storage.models.StorageResourceType; import com.azure.management.storage.models.StorageSku; -import com.azure.management.storage.inner.SkuInformationInner; +import com.azure.management.storage.fluent.inner.SkuInformationInner; import java.util.ArrayList; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java index 31e4431aa485..b7714483d15f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java @@ -7,7 +7,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.management.storage.models.StorageSku; import com.azure.management.storage.models.StorageSkus; -import com.azure.management.storage.inner.SkusClient; +import com.azure.management.storage.fluent.SkusClient; /** The implementation for {@link StorageSkus}. */ class StorageSkusImpl implements StorageSkus { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java index f74c50b6f59c..1d6c0fe40bf6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java @@ -5,8 +5,8 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.management.storage.models.Usages; -import com.azure.management.storage.inner.UsageInner; -import com.azure.management.storage.inner.UsagesClient; +import com.azure.management.storage.fluent.inner.UsageInner; +import com.azure.management.storage.fluent.UsagesClient; /** The implementation of {@link Usages}. */ class UsagesImpl implements Usages { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java index 596dd2c1cc9e..3d6eef1b33e7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java @@ -3,8 +3,6 @@ package com.azure.management.storage.models; -import com.azure.management.storage.models.AccountStatus; - /** An instance of this class stores the availability of a storage account. */ public class AccountStatuses { private AccountStatus primary; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java index b03cbf145b35..ff02eef413da 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.BlobContainerInner; +import com.azure.management.storage.fluent.inner.BlobContainerInner; import java.time.OffsetDateTime; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java index aecf2a81d7b2..a0aed66cfbfa 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java @@ -7,8 +7,8 @@ import com.azure.core.annotation.Fluent; import com.azure.core.http.rest.PagedFlux; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; -import com.azure.management.storage.inner.ListContainerItemInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ListContainerItemInner; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java index 2fd9b3463eb5..340f7fae123a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersCreateOrUpdateImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Contains all response data for the createOrUpdateImmutabilityPolicy operation. */ public final class BlobContainersCreateOrUpdateImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java index b73ec27197bf..d99b2403efd2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersDeleteImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Contains all response data for the deleteImmutabilityPolicy operation. */ public final class BlobContainersDeleteImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java index b35fde0e63e5..d9c757ddd4dd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersExtendImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Contains all response data for the extendImmutabilityPolicy operation. */ public final class BlobContainersExtendImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java index 3718c759eb6e..5a452714c61a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersGetImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Contains all response data for the getImmutabilityPolicy operation. */ public final class BlobContainersGetImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java index 1fae4806bbcd..ed08ff65c81f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainersLockImmutabilityPolicyResponse.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Contains all response data for the lockImmutabilityPolicy operation. */ public final class BlobContainersLockImmutabilityPolicyResponse diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java index e9136b974972..ef12b3442901 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java @@ -14,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.BlobServicePropertiesInner; +import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; import java.util.List; /** Type representing BlobServiceProperties. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java index 7c355e4b9e7f..bd8043f0351f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java @@ -8,7 +8,7 @@ import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.collection.SupportsCreating; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.inner.BlobServicesClient; +import com.azure.management.storage.fluent.BlobServicesClient; import reactor.core.publisher.Mono; /** Type representing BlobServices. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java index 4e7695dbae08..cbb70d8e11ed 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java @@ -5,7 +5,7 @@ package com.azure.management.storage.models; -import com.azure.management.storage.inner.CheckNameAvailabilityResultInner; +import com.azure.management.storage.fluent.inner.CheckNameAvailabilityResultInner; /** The {@link StorageAccounts#checkNameAvailability} action result. */ public class CheckNameAvailabilityResult { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java index bbaa8a56f71d..bf70a90ea70f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java @@ -14,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.ImmutabilityPolicyInner; +import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Type representing ImmutabilityPolicy. */ @Fluent diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java index dfd0f9403ed9..5325781ccf2e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java @@ -9,7 +9,7 @@ import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.LegalHoldInner; +import com.azure.management.storage.fluent.inner.LegalHoldInner; import java.util.List; /** Type representing LegalHold. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java index fb381c697c58..6ec81b2662b1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java @@ -8,7 +8,7 @@ import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.collection.SupportsCreating; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.inner.ManagementPoliciesClient; +import com.azure.management.storage.fluent.ManagementPoliciesClient; import reactor.core.publisher.Mono; /** Type representing ManagementPolicies. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java index 8b8d436ef39d..ccee196d5bf7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java @@ -14,7 +14,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.ManagementPolicyInner; +import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java index 839be6510cc4..10b5cf619b9d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.StorageAccountInner; +import com.azure.management.storage.fluent.inner.StorageAccountInner; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java index 1c62614a0d9b..5eb5affbec77 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java @@ -18,7 +18,7 @@ import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.StorageAccountsClient; +import com.azure.management.storage.fluent.StorageAccountsClient; import reactor.core.publisher.Mono; /** Entry point for storage accounts management API. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java index ee0474f48b63..bf58dd30c6ba 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java @@ -8,7 +8,7 @@ import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.inner.SkuInformationInner; +import com.azure.management.storage.fluent.inner.SkuInformationInner; import java.util.List; /** Type representing sku for an Azure storage resource. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java index c66148b5716c..956079180923 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java @@ -9,7 +9,7 @@ import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.SkusClient; +import com.azure.management.storage.fluent.SkusClient; /** Entry point to storage service SKUs. */ public interface StorageSkus extends SupportsListing, HasInner, HasManager { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java index 35ab27ac6d6f..dc1be7e56639 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java @@ -10,8 +10,8 @@ import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.implementation.StorageManager; -import com.azure.management.storage.inner.UsageInner; -import com.azure.management.storage.inner.UsagesClient; +import com.azure.management.storage.fluent.inner.UsageInner; +import com.azure.management.storage.fluent.UsagesClient; /** Entry point for storage resource usage management API. */ @Fluent diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java index d369d6ff9895..df60ebee6873 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/UsageOperationsTests.java @@ -5,7 +5,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.management.resources.core.TestUtilities; -import com.azure.management.storage.inner.UsageInner; +import com.azure.management.storage.fluent.inner.UsageInner; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; From 3be75e9e213db635e093e0526bf6673fcc68e08e Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 12:44:54 +0800 Subject: [PATCH 04/16] move manager to package --- .../appservice/implementation/AppServiceManager.java | 2 +- .../azure/management/appservice/FunctionAppsTests.java | 2 +- .../compute/implementation/ComputeManager.java | 2 +- .../compute/implementation/VirtualMachineImpl.java | 2 +- .../implementation/VirtualMachineScaleSetImpl.java | 2 +- .../implementation/VirtualMachineScaleSetsImpl.java | 2 +- .../compute/implementation/VirtualMachinesImpl.java | 2 +- .../management/compute/ComputeManagementTest.java | 2 +- .../implementation/ContainerRegistryManager.java | 2 +- .../implementation/RegistriesImpl.java | 2 +- .../containerregistry/implementation/RegistryImpl.java | 2 +- .../src/main/java/com/azure/management/Azure.java | 2 +- .../management/monitor/MonitorManagementTest.java | 2 +- .../java/com/azure/management/sql/SqlServerTest.java | 2 +- .../storage/{implementation => }/StorageManager.java | 10 +++++++--- .../storage/implementation/BlobContainerImpl.java | 1 + .../storage/implementation/BlobContainersImpl.java | 5 +++-- .../implementation/BlobServicePropertiesImpl.java | 1 + .../storage/implementation/BlobServicesImpl.java | 5 +++-- .../storage/implementation/ImmutabilityPolicyImpl.java | 1 + .../storage/implementation/LegalHoldImpl.java | 1 + .../storage/implementation/ManagementPoliciesImpl.java | 5 +++-- .../storage/implementation/ManagementPolicyImpl.java | 1 + .../storage/implementation/StorageAccountImpl.java | 1 + .../storage/implementation/StorageAccountsImpl.java | 5 +++-- .../storage/implementation/StorageSkusImpl.java | 5 +++-- .../management/storage/implementation/UsagesImpl.java | 5 +++-- .../azure/management/storage/models/BlobContainer.java | 2 +- .../storage/models/BlobServiceProperties.java | 2 +- .../management/storage/models/ImmutabilityPolicy.java | 2 +- .../com/azure/management/storage/models/LegalHold.java | 2 +- .../management/storage/models/ManagementPolicy.java | 2 +- .../management/storage/models/StorageAccount.java | 2 +- .../management/storage/models/StorageAccounts.java | 2 +- .../azure/management/storage/models/StorageSkus.java | 2 +- .../com/azure/management/storage/models/Usages.java | 2 +- .../management/storage/StorageManagementTest.java | 1 - 37 files changed, 54 insertions(+), 39 deletions(-) rename sdk/storage/mgmt/src/main/java/com/azure/management/storage/{implementation => }/StorageManager.java (92%) diff --git a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java index b1740679a36b..2f9a0b5aa091 100644 --- a/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java +++ b/sdk/appservice/mgmt/src/main/java/com/azure/management/appservice/implementation/AppServiceManager.java @@ -21,7 +21,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; /** Entry point to Azure storage resource management. */ public final class AppServiceManager extends Manager { diff --git a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java index 7103bfc11e40..8ece1e7fa2c5 100644 --- a/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java +++ b/sdk/appservice/mgmt/src/test/java/com/azure/management/appservice/FunctionAppsTests.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.models.StorageAccountSkuType; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java index 45d577f67af8..e489f70e144c 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/ComputeManager.java @@ -28,7 +28,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; /** Entry point to Azure compute resource management. */ public final class ComputeManager extends Manager { diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java index dc51616f1d83..9917cb7f327e 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineImpl.java @@ -74,7 +74,7 @@ import com.azure.management.resources.fluentcore.utils.ResourceNamer; import com.azure.management.resources.fluentcore.utils.Utils; import com.azure.management.storage.models.StorageAccount; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java index 62065e1ced1a..9052ecba36f3 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetImpl.java @@ -78,7 +78,7 @@ import com.azure.management.resources.fluentcore.utils.ResourceNamer; import com.azure.management.resources.fluentcore.utils.Utils; import com.azure.management.storage.models.StorageAccount; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import reactor.core.Exceptions; import reactor.core.publisher.Mono; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java index 5cdf5afa502b..52c3d0714508 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachineScaleSetsImpl.java @@ -19,7 +19,7 @@ import com.azure.management.graphrbac.implementation.GraphRbacManager; import com.azure.management.network.implementation.NetworkManager; import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import java.util.ArrayList; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java index 671427cc1b1f..0c0918ec11a9 100644 --- a/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java +++ b/sdk/compute/mgmt/src/main/java/com/azure/management/compute/implementation/VirtualMachinesImpl.java @@ -20,7 +20,7 @@ import com.azure.management.graphrbac.implementation.GraphRbacManager; import com.azure.management.network.implementation.NetworkManager; import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.ArrayList; diff --git a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java index 0f3f5d8008ab..8c0c3b3aadf0 100644 --- a/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java +++ b/sdk/compute/mgmt/src/test/java/com/azure/management/compute/ComputeManagementTest.java @@ -19,7 +19,7 @@ import com.azure.management.resources.fluentcore.arm.Region; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.implementation.ResourceManager; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import java.io.IOException; diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java index cf277d45e0ff..f100dd024215 100644 --- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java +++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/ContainerRegistryManager.java @@ -17,7 +17,7 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; /** Entry point to Azure container registry management. */ public final class ContainerRegistryManager diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java index 5cd90baa498e..8bae7563cee5 100644 --- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java +++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistriesImpl.java @@ -18,7 +18,7 @@ import com.azure.management.containerregistry.models.RegistryUsageListResultInner; import com.azure.management.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl; import com.azure.management.resources.fluentcore.utils.PagedConverter; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java index 4bc9f0b576e6..9fe46803c506 100644 --- a/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java +++ b/sdk/containerregistry/mgmt/src/main/java/com/azure/management/containerregistry/implementation/RegistryImpl.java @@ -21,7 +21,7 @@ import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.storage.models.StorageAccount; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import java.time.OffsetDateTime; import java.util.Collection; import reactor.core.publisher.Mono; diff --git a/sdk/management/azure/src/main/java/com/azure/management/Azure.java b/sdk/management/azure/src/main/java/com/azure/management/Azure.java index 835b01578164..9150a8ac1ed4 100644 --- a/sdk/management/azure/src/main/java/com/azure/management/Azure.java +++ b/sdk/management/azure/src/main/java/com/azure/management/Azure.java @@ -92,7 +92,7 @@ import com.azure.management.storage.models.StorageAccounts; import com.azure.management.storage.models.StorageSkus; import com.azure.management.storage.models.Usages; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; /** The entry point for accessing resource management APIs in Azure. */ public final class Azure { diff --git a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java index 51ed7b232caa..cf155c522735 100644 --- a/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java +++ b/sdk/monitor/mgmt/src/test/java/com/azure/management/monitor/MonitorManagementTest.java @@ -11,7 +11,7 @@ import com.azure.management.resources.core.TestBase; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.implementation.ResourceManager; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; /** The base for Monitor manager tests. */ public class MonitorManagementTest extends TestBase { diff --git a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java index 8053cb7ed271..d83092bc0a58 100644 --- a/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java +++ b/sdk/sql/mgmt/src/test/java/com/azure/management/sql/SqlServerTest.java @@ -9,7 +9,7 @@ import com.azure.management.resources.fluentcore.utils.SdkContext; import com.azure.management.resources.implementation.ResourceManager; import com.azure.management.sql.implementation.SqlServerManager; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; public abstract class SqlServerTest extends TestBase { protected ResourceManager resourceManager; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java similarity index 92% rename from sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java rename to sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java index c663c094d5ef..31d4bbebd444 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageManager.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -package com.azure.management.storage.implementation; +package com.azure.management.storage; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpPipeline; @@ -11,14 +11,18 @@ import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.fluentcore.utils.HttpPipelineProvider; import com.azure.management.resources.fluentcore.utils.SdkContext; -import com.azure.management.storage.StorageManagementClient; +import com.azure.management.storage.implementation.BlobContainersImpl; +import com.azure.management.storage.implementation.BlobServicesImpl; +import com.azure.management.storage.implementation.ManagementPoliciesImpl; +import com.azure.management.storage.implementation.StorageAccountsImpl; +import com.azure.management.storage.implementation.StorageSkusImpl; +import com.azure.management.storage.implementation.UsagesImpl; import com.azure.management.storage.models.BlobContainers; import com.azure.management.storage.models.BlobServices; import com.azure.management.storage.models.ManagementPolicies; import com.azure.management.storage.models.StorageAccounts; import com.azure.management.storage.models.StorageSkus; import com.azure.management.storage.models.Usages; -import com.azure.management.storage.StorageManagementClientBuilder; /** Entry point to Azure storage resource management. */ public final class StorageManager extends Manager { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java index 6076f7e5752e..e01db2985dde 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java @@ -4,6 +4,7 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.BlobContainer; import com.azure.management.storage.models.ImmutabilityPolicyProperties; import com.azure.management.storage.models.LeaseDuration; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java index f85b9169aeb3..af4da5a28b0f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java @@ -5,6 +5,7 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.BlobContainer; import com.azure.management.storage.models.BlobContainers; import com.azure.management.storage.models.ImmutabilityPolicy; @@ -16,10 +17,10 @@ import java.util.List; import reactor.core.publisher.Mono; -class BlobContainersImpl extends WrapperImpl implements BlobContainers { +public class BlobContainersImpl extends WrapperImpl implements BlobContainers { private final StorageManager manager; - BlobContainersImpl(StorageManager manager) { + public BlobContainersImpl(StorageManager manager) { super(manager.inner().blobContainers()); this.manager = manager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java index 7f0a3d06dc30..c23f8947601c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java @@ -4,6 +4,7 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.BlobServiceProperties; import com.azure.management.storage.models.CorsRule; import com.azure.management.storage.models.CorsRules; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java index 32393b481cab..e073e9c83a73 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java @@ -4,16 +4,17 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.BlobServiceProperties; import com.azure.management.storage.models.BlobServices; import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; import com.azure.management.storage.fluent.BlobServicesClient; import reactor.core.publisher.Mono; -class BlobServicesImpl extends WrapperImpl implements BlobServices { +public class BlobServicesImpl extends WrapperImpl implements BlobServices { private final StorageManager manager; - BlobServicesImpl(StorageManager manager) { + public BlobServicesImpl(StorageManager manager) { super(manager.inner().blobServices()); this.manager = manager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java index c3765f7a4c4f..ee0b93d23858 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java @@ -5,6 +5,7 @@ import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.resources.fluentcore.utils.ETagState; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.ImmutabilityPolicy; import com.azure.management.storage.models.ImmutabilityPolicyState; import com.azure.management.storage.fluent.BlobContainersClient; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java index 966beb8c93a0..b973e19779a2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/LegalHoldImpl.java @@ -4,6 +4,7 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.LegalHold; import com.azure.management.storage.fluent.inner.LegalHoldInner; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java index 771982e318ed..9396cd11b3fb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java @@ -4,16 +4,17 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.ManagementPolicies; import com.azure.management.storage.models.ManagementPolicy; import com.azure.management.storage.fluent.ManagementPoliciesClient; import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import reactor.core.publisher.Mono; -class ManagementPoliciesImpl extends WrapperImpl implements ManagementPolicies { +public class ManagementPoliciesImpl extends WrapperImpl implements ManagementPolicies { private final StorageManager manager; - ManagementPoliciesImpl(StorageManager manager) { + public ManagementPoliciesImpl(StorageManager manager) { super(manager.inner().managementPolicies()); this.manager = manager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java index d01693d82e2d..6841d8b510a7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java @@ -5,6 +5,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.BlobTypes; import com.azure.management.storage.models.ManagementPolicy; import com.azure.management.storage.models.ManagementPolicyBaseBlob; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index 61fd519e084d..698919474877 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -6,6 +6,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.AccessTier; import com.azure.management.storage.models.AccountStatuses; import com.azure.management.storage.models.AzureFilesIdentityBasedAuthentication; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java index d33ebb4ce277..b3a2bd94bd15 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java @@ -4,6 +4,7 @@ package com.azure.management.storage.implementation; import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.CheckNameAvailabilityResult; import com.azure.management.storage.models.ServiceSasParameters; import com.azure.management.storage.models.SkuName; @@ -14,12 +15,12 @@ import reactor.core.publisher.Mono; /** The implementation of StorageAccounts and its parent interfaces. */ -class StorageAccountsImpl +public class StorageAccountsImpl extends TopLevelModifiableResourcesImpl< StorageAccount, StorageAccountImpl, StorageAccountInner, StorageAccountsClient, StorageManager> implements StorageAccounts { - StorageAccountsImpl(final StorageManager storageManager) { + public StorageAccountsImpl(final StorageManager storageManager) { super(storageManager.inner().storageAccounts(), storageManager); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java index b7714483d15f..37546de1596f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java @@ -5,16 +5,17 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.StorageSku; import com.azure.management.storage.models.StorageSkus; import com.azure.management.storage.fluent.SkusClient; /** The implementation for {@link StorageSkus}. */ -class StorageSkusImpl implements StorageSkus { +public class StorageSkusImpl implements StorageSkus { private final StorageManager manager; - StorageSkusImpl(StorageManager storageManager) { + public StorageSkusImpl(StorageManager storageManager) { this.manager = storageManager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java index 1d6c0fe40bf6..42b9428221e3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java @@ -4,16 +4,17 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.models.Usages; import com.azure.management.storage.fluent.inner.UsageInner; import com.azure.management.storage.fluent.UsagesClient; /** The implementation of {@link Usages}. */ -class UsagesImpl implements Usages { +public class UsagesImpl implements Usages { private final StorageManager manager; - UsagesImpl(StorageManager storageManager) { + public UsagesImpl(StorageManager storageManager) { this.manager = storageManager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java index ff02eef413da..c27123369f96 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.BlobContainerInner; import java.time.OffsetDateTime; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java index ef12b3442901..088b796daa9a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java index bf70a90ea70f..0b311b915a09 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; /** Type representing ImmutabilityPolicy. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java index 5325781ccf2e..07ac4c093dfe 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java @@ -8,7 +8,7 @@ import com.azure.core.annotation.Fluent; import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.LegalHoldInner; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java index ccee196d5bf7..8771dd0b7d3a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java @@ -13,7 +13,7 @@ import com.azure.management.resources.fluentcore.model.Indexable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java index 10b5cf619b9d..39389678aaba 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java @@ -12,7 +12,7 @@ import com.azure.management.resources.fluentcore.model.Creatable; import com.azure.management.resources.fluentcore.model.Refreshable; import com.azure.management.resources.fluentcore.model.Updatable; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.StorageAccountInner; import java.time.OffsetDateTime; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java index 5eb5affbec77..76dab8e8b004 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java @@ -17,7 +17,7 @@ import com.azure.management.resources.fluentcore.collection.SupportsDeletingById; import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.StorageAccountsClient; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java index 956079180923..a468b225f090 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java @@ -8,7 +8,7 @@ import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.SkusClient; /** Entry point to storage service SKUs. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java index dc1be7e56639..5aff1b211090 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java @@ -9,7 +9,7 @@ import com.azure.management.resources.fluentcore.arm.models.HasManager; import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; -import com.azure.management.storage.implementation.StorageManager; +import com.azure.management.storage.StorageManager; import com.azure.management.storage.fluent.inner.UsageInner; import com.azure.management.storage.fluent.UsagesClient; diff --git a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementTest.java b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementTest.java index 342bea118707..f03d05bb0bc1 100644 --- a/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementTest.java +++ b/sdk/storage/mgmt/src/test/java/com/azure/management/storage/StorageManagementTest.java @@ -7,7 +7,6 @@ import com.azure.management.resources.core.TestBase; import com.azure.management.resources.fluentcore.profile.AzureProfile; import com.azure.management.resources.implementation.ResourceManager; -import com.azure.management.storage.implementation.StorageManager; /** The base for storage manager tests. */ public abstract class StorageManagementTest extends TestBase { From 74a0d22c5378d839ea71dee378db2a8079eb6f6e Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 12:50:28 +0800 Subject: [PATCH 05/16] fix checkstyle --- .../management/storage/fluent/BlobContainersClient.java | 6 ++---- .../azure/management/storage/fluent/BlobServicesClient.java | 6 ++---- .../management/storage/fluent/EncryptionScopesClient.java | 6 ++---- .../azure/management/storage/fluent/FileServicesClient.java | 6 ++---- .../azure/management/storage/fluent/FileSharesClient.java | 6 ++---- .../management/storage/fluent/ManagementPoliciesClient.java | 6 ++---- .../fluent/ObjectReplicationPoliciesOperationsClient.java | 6 ++---- .../azure/management/storage/fluent/OperationsClient.java | 6 ++---- .../storage/fluent/PrivateEndpointConnectionsClient.java | 6 ++---- .../storage/fluent/PrivateLinkResourcesClient.java | 6 ++---- .../management/storage/fluent/QueueServicesClient.java | 6 ++---- .../com/azure/management/storage/fluent/QueuesClient.java | 6 ++---- .../com/azure/management/storage/fluent/SkusClient.java | 6 ++---- .../management/storage/fluent/StorageAccountsClient.java | 6 ++---- .../management/storage/fluent/TableServicesClient.java | 6 ++---- .../com/azure/management/storage/fluent/TablesClient.java | 6 ++---- .../com/azure/management/storage/fluent/UsagesClient.java | 6 ++---- .../azure/management/storage/fluent/inner/package-info.java | 6 ++++++ .../com/azure/management/storage/fluent/package-info.java | 6 ++++++ .../azure/management/storage/models/AccountStatuses.java | 4 ++-- .../com/azure/management/storage/models/BlobContainer.java | 6 ++---- .../com/azure/management/storage/models/BlobContainers.java | 6 ++---- .../management/storage/models/BlobServiceProperties.java | 6 ++---- .../com/azure/management/storage/models/BlobServices.java | 6 ++---- .../java/com/azure/management/storage/models/BlobTypes.java | 6 ++---- .../storage/models/CheckNameAvailabilityResult.java | 6 ++---- .../azure/management/storage/models/ImmutabilityPolicy.java | 6 ++---- .../java/com/azure/management/storage/models/LegalHold.java | 6 ++---- .../azure/management/storage/models/ManagementPolicies.java | 6 ++---- .../azure/management/storage/models/ManagementPolicy.java | 6 ++---- .../com/azure/management/storage/models/PolicyRule.java | 6 ++---- .../azure/management/storage/models/PublicEndpoints.java | 6 ++---- .../com/azure/management/storage/models/StorageAccount.java | 6 ++---- .../storage/models/StorageAccountEncryptionKeySource.java | 6 ++---- .../storage/models/StorageAccountEncryptionStatus.java | 6 ++---- .../management/storage/models/StorageAccountSkuType.java | 6 ++---- .../azure/management/storage/models/StorageAccounts.java | 6 ++---- .../management/storage/models/StorageResourceType.java | 6 ++---- .../com/azure/management/storage/models/StorageService.java | 6 ++---- .../com/azure/management/storage/models/StorageSku.java | 6 ++---- .../com/azure/management/storage/models/StorageSkus.java | 6 ++---- .../java/com/azure/management/storage/models/Usages.java | 6 ++---- .../com/azure/management/storage/models/package-info.java | 6 ++++++ 43 files changed, 98 insertions(+), 158 deletions(-) create mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java create mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java create mode 100644 sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index 42dd01f4c83c..0d248af417e8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index bc44c3158a40..177ba95c9bbf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index f8e32ccb95f6..f706e274bf72 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index 2d83b2313a1c..fc58153e330c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index 5322beab9ffa..92e11e1c8e5b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index 152966719751..ed55ae9bdcbb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index 25f9634d5ce2..d19026171f6a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index ca5c214cab9c..1c7dd1252ef2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index 9510f8b64cbd..70b3fae0a0f3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index 9cc6453fd955..4f2ea88afc58 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index a38d696f3386..a173a991fadf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index 4e348ff039e1..b276b5b28f63 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index cf8bfa53f883..5e2f822bb157 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index cbb12a0a5bc8..5793a8069975 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index 26800fcad3ee..818eb1fb89c3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index f8679aa4195b..9d278384efc8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index 3879f360ce36..7bece64d1b1f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java new file mode 100644 index 000000000000..f0e20a54a83e --- /dev/null +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ +package com.azure.management.storage.fluent.inner; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java new file mode 100644 index 000000000000..c65e9274b0b2 --- /dev/null +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ +package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java index 3d6eef1b33e7..b5b33834d79a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/AccountStatuses.java @@ -5,8 +5,8 @@ /** An instance of this class stores the availability of a storage account. */ public class AccountStatuses { - private AccountStatus primary; - private AccountStatus secondary; + private final AccountStatus primary; + private final AccountStatus secondary; /** * Creates an instance of AccountStatuses class. diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java index c27123369f96..69c3f1093f1c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainer.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java index a0aed66cfbfa..edc91513f170 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobContainers.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java index 088b796daa9a..1aea1cf69626 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServiceProperties.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java index bd8043f0351f..e916d0eb1492 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobServices.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java index 8849b913a764..4b47dc19f633 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/BlobTypes.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java index cbb70d8e11ed..3082ae281911 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/CheckNameAvailabilityResult.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java index 0b311b915a09..b93c8c0c184f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ImmutabilityPolicy.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java index 07ac4c093dfe..cd1ee78f2965 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/LegalHold.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java index 6ec81b2662b1..67bd2bf033d8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicies.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java index 8771dd0b7d3a..493a4ce25e1b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/ManagementPolicy.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java index 6a31c2c8ec60..9685c8a39d7d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PolicyRule.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java index b008d0c480a7..2eb18d57ba90 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/PublicEndpoints.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java index 39389678aaba..44938799b496 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccount.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java index f43272e56d57..5b9465831f0d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionKeySource.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java index 0e5b5e3ccdb0..93d21717ae8d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountEncryptionStatus.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java index 80303c38c097..361bd497456d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccountSkuType.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java index 76dab8e8b004..3ebefa961d2b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageAccounts.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java index f3637ce73015..bfbc7347ff94 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageResourceType.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java index aebf00073ff6..04e570355509 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageService.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java index bf58dd30c6ba..f41a807ccc68 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSku.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java index a468b225f090..13c8ca966d15 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/StorageSkus.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java index 5aff1b211090..403966f7eca6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java @@ -1,7 +1,5 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - */ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java new file mode 100644 index 000000000000..58e8bfc954c4 --- /dev/null +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ +package com.azure.management.storage.models; From 91d558dc323c5d99c46c6d80ec8cd210d06f231b Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 12:51:15 +0800 Subject: [PATCH 06/16] fix --- .../com/azure/management/storage/fluent/inner/package-info.java | 1 - .../java/com/azure/management/storage/fluent/package-info.java | 1 - .../java/com/azure/management/storage/models/package-info.java | 1 - .../src/main/java/com/azure/management/storage/package-info.java | 1 - 4 files changed, 4 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java index f0e20a54a83e..ec2615f8429a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/inner/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage.fluent.inner; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java index c65e9274b0b2..c78803e316a8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage.fluent; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java index 58e8bfc954c4..23a3bab1f6dd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage.models; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java index a6900a32adc2..0464ba00e1e1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage; From a3ed647f0d5dd678880584b2a0ef36c6dcd7aa7c Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 13:20:00 +0800 Subject: [PATCH 07/16] refactor clients --- .../storage/StorageManagementClient.java | 61 +- .../StorageManagementClientBuilder.java | 5 +- .../storage/fluent/BlobContainersClient.java | 821 ++++++++++- .../storage/fluent/BlobServicesClient.java | 120 ++ .../fluent/EncryptionScopesClient.java | 202 +++ .../storage/fluent/FileServicesClient.java | 153 ++ .../storage/fluent/FileSharesClient.java | 295 ++++ .../fluent/ManagementPoliciesClient.java | 131 ++ ...ctReplicationPoliciesOperationsClient.java | 170 +++ .../storage/fluent/OperationsClient.java | 15 + .../PrivateEndpointConnectionsClient.java | 191 +++ .../fluent/PrivateLinkResourcesClient.java | 47 + .../storage/fluent/QueueServicesClient.java | 145 ++ .../storage/fluent/QueuesClient.java | 228 ++- .../management/storage/fluent/SkusClient.java | 15 + .../storage/fluent/StorageAccountsClient.java | 1242 +++++++++++++++-- .../storage/fluent/TableServicesClient.java | 145 ++ .../storage/fluent/TablesClient.java | 205 +++ .../storage/fluent/UsagesClient.java | 16 + .../implementation/BlobContainerImpl.java | 3 +- .../implementation/BlobContainersImpl.java | 2 +- .../BlobServicePropertiesImpl.java | 3 +- .../implementation/BlobServicesImpl.java | 2 +- .../ImmutabilityPolicyImpl.java | 2 +- .../ManagementPoliciesImpl.java | 2 +- .../implementation/ManagementPolicyImpl.java | 2 +- .../implementation/StorageAccountImpl.java | 3 +- .../implementation/StorageAccountsImpl.java | 2 +- .../implementation/StorageSkusImpl.java | 2 +- .../storage/implementation/UsagesImpl.java | 2 +- .../management/storage/models/Usages.java | 2 +- .../management/storage/package-info.java | 1 + 32 files changed, 4071 insertions(+), 164 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index 91d50e5f3585..6d73b5be6961 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -35,7 +35,7 @@ public final class StorageManagementClient extends AzureServiceClient { private final ClientLogger logger = new ClientLogger(StorageManagementClient.class); /** The ID of the target subscription. */ - private String subscriptionId; + private final String subscriptionId; /** * Gets The ID of the target subscription. @@ -46,19 +46,8 @@ public String getSubscriptionId() { return this.subscriptionId; } - /** - * Sets The ID of the target subscription. - * - * @param subscriptionId the subscriptionId value. - * @return the service client itself. - */ - StorageManagementClient setSubscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - return this; - } - /** server parameter. */ - private String host; + private final String host; /** * Gets server parameter. @@ -69,19 +58,8 @@ public String getHost() { return this.host; } - /** - * Sets server parameter. - * - * @param host the host value. - * @return the service client itself. - */ - StorageManagementClient setHost(String host) { - this.host = host; - return this; - } - /** Api Version. */ - private String apiVersion; + private final String apiVersion; /** * Gets Api Version. @@ -92,17 +70,6 @@ public String getApiVersion() { return this.apiVersion; } - /** - * Sets Api Version. - * - * @param apiVersion the apiVersion value. - * @return the service client itself. - */ - StorageManagementClient setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - /** The HTTP pipeline to send requests through. */ private final HttpPipeline httpPipeline; @@ -319,29 +286,14 @@ public TablesClient tables() { return this.tables; } - /** Initializes an instance of StorageManagementClient client. */ - public StorageManagementClient() { - this( - new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(), - AzureEnvironment.AZURE); - } - - /** - * Initializes an instance of StorageManagementClient client. - * - * @param httpPipeline The HTTP pipeline to send requests through. - */ - public StorageManagementClient(HttpPipeline httpPipeline) { - this(httpPipeline, AzureEnvironment.AZURE); - } - /** * Initializes an instance of StorageManagementClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param environment The Azure environment. */ - StorageManagementClient(HttpPipeline httpPipeline, AzureEnvironment environment) { + StorageManagementClient(HttpPipeline httpPipeline, AzureEnvironment environment, + String host, String apiVersion, String subscriptionId) { super(httpPipeline, environment); this.httpPipeline = httpPipeline; this.operations = new OperationsClient(this); @@ -361,5 +313,8 @@ public StorageManagementClient(HttpPipeline httpPipeline) { this.queues = new QueuesClient(this); this.tableServices = new TableServicesClient(this); this.tables = new TablesClient(this); + this.host = host; + this.apiVersion = apiVersion; + this.subscriptionId = subscriptionId; } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java index f4a4d2215583..847fbc78f564 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java @@ -105,10 +105,7 @@ public StorageManagementClient buildClient() { .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(); } - StorageManagementClient client = new StorageManagementClient(pipeline, environment); - client.setSubscriptionId(this.subscriptionId); - client.setHost(this.host); - client.setApiVersion(this.apiVersion); + StorageManagementClient client = new StorageManagementClient(pipeline, environment, host, apiVersion, subscriptionId); return client; } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index 0d248af417e8..25acf871c28b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -527,6 +528,34 @@ public PagedIterable list( return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include)); } + /** + * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation + * token. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param maxpagesize Optional. Specified maximum number of containers that can be included in the list. + * @param filter Optional. When specified, only container names starting with the filter will be listed. + * @param include Optional, used to include the properties for soft deleted blob containers. + * @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 response schema. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, + String accountName, + String maxpagesize, + String filter, + ListSharesExpand include, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, include, context)); + } + /** * Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation * token. @@ -703,6 +732,42 @@ public Mono createAsync( }); } + /** + * Creates a new container under the specified account as described by request body. The container resource includes + * metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag. + * @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 properties of the blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync( + String resourceGroupName, + String accountName, + String containerName, + BlobContainerInner blobContainer, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new container under the specified account as described by request body. The container resource includes * metadata and properties for that container. It does not include a list of the blobs contained by the container. @@ -726,6 +791,34 @@ public BlobContainerInner create( return createAsync(resourceGroupName, accountName, containerName, blobContainer).block(); } + /** + * Creates a new container under the specified account as described by request body. The container resource includes + * metadata and properties for that container. It does not include a list of the blobs contained by the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag. + * @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 properties of the blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobContainerInner create( + String resourceGroupName, + String accountName, + String containerName, + BlobContainerInner blobContainer, + Context context) { + return createAsync(resourceGroupName, accountName, containerName, blobContainer, context).block(); + } + /** * Updates container properties as specified in request body. Properties not mentioned in the request will be * unchanged. Update fails if the specified container doesn't already exist. @@ -880,6 +973,42 @@ public Mono updateAsync( }); } + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be + * unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag. + * @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 properties of the blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, + String accountName, + String containerName, + BlobContainerInner blobContainer, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Updates container properties as specified in request body. Properties not mentioned in the request will be * unchanged. Update fails if the specified container doesn't already exist. @@ -903,6 +1032,34 @@ public BlobContainerInner update( return updateAsync(resourceGroupName, accountName, containerName, blobContainer).block(); } + /** + * Updates container properties as specified in request body. Properties not mentioned in the request will be + * unchanged. Update fails if the specified container doesn't already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param blobContainer Properties of the blob container, including Id, resource name, resource type, Etag. + * @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 properties of the blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobContainerInner update( + String resourceGroupName, + String accountName, + String containerName, + BlobContainerInner blobContainer, + Context context) { + return updateAsync(resourceGroupName, accountName, containerName, blobContainer, context).block(); + } + /** * Gets properties of a specified container. * @@ -1034,6 +1191,36 @@ public Mono getAsync(String resourceGroupName, String accoun }); } + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @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 properties of a specified container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String containerName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, containerName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets properties of a specified container. * @@ -1054,6 +1241,27 @@ public BlobContainerInner get(String resourceGroupName, String accountName, Stri return getAsync(resourceGroupName, accountName, containerName).block(); } + /** + * Gets properties of a specified container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @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 properties of a specified container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobContainerInner get(String resourceGroupName, String accountName, String containerName, Context context) { + return getAsync(resourceGroupName, accountName, containerName, context).block(); + } + /** * Deletes specified container under its account. * @@ -1178,6 +1386,28 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, String containerName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, containerName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes specified container under its account. * @@ -1197,6 +1427,26 @@ public void delete(String resourceGroupName, String accountName, String containe deleteAsync(resourceGroupName, accountName, containerName).block(); } + /** + * Deletes specified container under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @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 delete(String resourceGroupName, String accountName, String containerName, Context context) { + deleteAsync(resourceGroupName, accountName, containerName, context).block(); + } + /** * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append * pattern and does not clear out the existing tags that are not specified in the request. @@ -1359,20 +1609,29 @@ public Mono setLegalHoldAsync( * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every * dash (-) character must be immediately preceded and followed by a letter or number. * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @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 LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LegalHoldInner setLegalHold( - String resourceGroupName, String accountName, String containerName, List tags) { - return setLegalHoldAsync(resourceGroupName, accountName, containerName, tags).block(); + public Mono setLegalHoldAsync( + String resourceGroupName, String accountName, String containerName, List tags, Context context) { + return setLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); } /** - * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold - * clears out only the specified tags in the request. + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append + * pattern and does not clear out the existing tags that are not specified in the request. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. @@ -1388,7 +1647,54 @@ public LegalHoldInner setLegalHold( * @return the LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> clearLegalHoldWithResponseAsync( + public LegalHoldInner setLegalHold( + String resourceGroupName, String accountName, String containerName, List tags) { + return setLegalHoldAsync(resourceGroupName, accountName, containerName, tags).block(); + } + + /** + * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append + * pattern and does not clear out the existing tags that are not specified in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @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 LegalHold property of a blob container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LegalHoldInner setLegalHold( + String resourceGroupName, String accountName, String containerName, List tags, Context context) { + return setLegalHoldAsync(resourceGroupName, accountName, containerName, tags, context).block(); + } + + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold + * clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the LegalHold property of a blob container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { if (this.client.getHost() == null) { return Mono @@ -1520,6 +1826,38 @@ public Mono clearLegalHoldAsync( }); } + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold + * clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @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 LegalHold property of a blob container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono clearLegalHoldAsync( + String resourceGroupName, String accountName, String containerName, List tags, Context context) { + return clearLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold * clears out only the specified tags in the request. @@ -1543,6 +1881,30 @@ public LegalHoldInner clearLegalHold( return clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags).block(); } + /** + * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold + * clears out only the specified tags in the request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param tags Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. + * @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 LegalHold property of a blob container. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LegalHoldInner clearLegalHold( + String resourceGroupName, String accountName, String containerName, List tags, Context context) { + return clearLegalHoldAsync(resourceGroupName, accountName, containerName, tags, context).block(); + } + /** * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for * this operation. @@ -1751,6 +2113,59 @@ public Mono createOrUpdateImmutabilityPolicyAsync( }); } + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for + * this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the + * policy creation, in days. + * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies. + * When enabled, new blocks can be written to an append blob while maintaining immutability protection and + * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property + * cannot be changed with ExtendImmutabilityPolicy API. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateImmutabilityPolicyAsync( + String resourceGroupName, + String accountName, + String containerName, + String ifMatch, + Integer immutabilityPeriodSinceCreationInDays, + Boolean allowProtectedAppendWrites, + Context context) { + return createOrUpdateImmutabilityPolicyWithResponseAsync( + resourceGroupName, + accountName, + containerName, + ifMatch, + immutabilityPeriodSinceCreationInDays, + allowProtectedAppendWrites, + context) + .flatMap( + (BlobContainersCreateOrUpdateImmutabilityPolicyResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for * this operation. @@ -1794,6 +2209,52 @@ public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy( .block(); } + /** + * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for + * this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the + * policy creation, in days. + * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies. + * When enabled, new blocks can be written to an append blob while maintaining immutability protection and + * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property + * cannot be changed with ExtendImmutabilityPolicy API. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy( + String resourceGroupName, + String accountName, + String containerName, + String ifMatch, + Integer immutabilityPeriodSinceCreationInDays, + Boolean allowProtectedAppendWrites, + Context context) { + return createOrUpdateImmutabilityPolicyAsync( + resourceGroupName, + accountName, + containerName, + ifMatch, + immutabilityPeriodSinceCreationInDays, + allowProtectedAppendWrites, + context) + .block(); + } + /** * Gets the existing immutability policy along with the corresponding ETag in response headers and body. * @@ -1941,6 +2402,39 @@ public Mono getImmutabilityPolicyAsync( }); } + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @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 existing immutability policy along with the corresponding ETag in response headers and body. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getImmutabilityPolicyAsync( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return getImmutabilityPolicyWithResponseAsync(resourceGroupName, accountName, containerName, ifMatch, context) + .flatMap( + (BlobContainersGetImmutabilityPolicyResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the existing immutability policy along with the corresponding ETag in response headers and body. * @@ -1996,6 +2490,31 @@ public ImmutabilityPolicyInner getImmutabilityPolicy( return getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block(); } + /** + * Gets the existing immutability policy along with the corresponding ETag in response headers and body. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @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 existing immutability policy along with the corresponding ETag in response headers and body. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner getImmutabilityPolicy( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return getImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block(); + } + /** * Gets the existing immutability policy along with the corresponding ETag in response headers and body. * @@ -2193,17 +2712,80 @@ public Mono deleteImmutabilityPolicyAsync( * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used * to apply the operation only if the immutability policy already exists. If omitted, this operation will always * be applied. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ImmutabilityPolicyInner deleteImmutabilityPolicy( - String resourceGroupName, String accountName, String containerName, String ifMatch) { + public Mono deleteImmutabilityPolicyAsync( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return deleteImmutabilityPolicyWithResponseAsync( + resourceGroupName, accountName, containerName, ifMatch, context) + .flatMap( + (BlobContainersDeleteImmutabilityPolicyResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to + * 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only + * way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner deleteImmutabilityPolicy( + String resourceGroupName, String accountName, String containerName, String ifMatch) { return deleteImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block(); } + /** + * Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to + * 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only + * way is to delete the container after deleting all blobs inside the container. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner deleteImmutabilityPolicy( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return deleteImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block(); + } + /** * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. @@ -2356,6 +2938,40 @@ public Mono lockImmutabilityPolicyAsync( }); } + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is + * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono lockImmutabilityPolicyAsync( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return lockImmutabilityPolicyWithResponseAsync(resourceGroupName, accountName, containerName, ifMatch, context) + .flatMap( + (BlobContainersLockImmutabilityPolicyResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. @@ -2381,6 +2997,32 @@ public ImmutabilityPolicyInner lockImmutabilityPolicy( return lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch).block(); } + /** + * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is + * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner lockImmutabilityPolicy( + String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { + return lockImmutabilityPolicyAsync(resourceGroupName, accountName, containerName, ifMatch, context).block(); + } + /** * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a * Locked policy will be this action. ETag in If-Match is required for this operation. @@ -2589,6 +3231,59 @@ public Mono extendImmutabilityPolicyAsync( }); } + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a + * Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the + * policy creation, in days. + * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies. + * When enabled, new blocks can be written to an append blob while maintaining immutability protection and + * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property + * cannot be changed with ExtendImmutabilityPolicy API. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono extendImmutabilityPolicyAsync( + String resourceGroupName, + String accountName, + String containerName, + String ifMatch, + Integer immutabilityPeriodSinceCreationInDays, + Boolean allowProtectedAppendWrites, + Context context) { + return extendImmutabilityPolicyWithResponseAsync( + resourceGroupName, + accountName, + containerName, + ifMatch, + immutabilityPeriodSinceCreationInDays, + allowProtectedAppendWrites, + context) + .flatMap( + (BlobContainersExtendImmutabilityPolicyResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a * Locked policy will be this action. ETag in If-Match is required for this operation. @@ -2632,6 +3327,52 @@ public ImmutabilityPolicyInner extendImmutabilityPolicy( .block(); } + /** + * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a + * Locked policy will be this action. ETag in If-Match is required for this operation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*" can be used + * to apply the operation only if the immutability policy already exists. If omitted, this operation will always + * be applied. + * @param immutabilityPeriodSinceCreationInDays The immutability period for the blobs in the container since the + * policy creation, in days. + * @param allowProtectedAppendWrites This property can only be changed for unlocked time-based retention policies. + * When enabled, new blocks can be written to an append blob while maintaining immutability protection and + * compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property + * cannot be changed with ExtendImmutabilityPolicy API. + * @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 ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ImmutabilityPolicyInner extendImmutabilityPolicy( + String resourceGroupName, + String accountName, + String containerName, + String ifMatch, + Integer immutabilityPeriodSinceCreationInDays, + Boolean allowProtectedAppendWrites, + Context context) { + return extendImmutabilityPolicyAsync( + resourceGroupName, + accountName, + containerName, + ifMatch, + immutabilityPeriodSinceCreationInDays, + allowProtectedAppendWrites, + context) + .block(); + } + /** * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock * duration can be 15 to 60 seconds, or can be infinite. @@ -2782,6 +3523,42 @@ public Mono leaseAsync( }); } + /** + * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock + * duration can be 15 to 60 seconds, or can be infinite. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param parameters Lease Container request schema. + * @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 lease Container response schema. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono leaseAsync( + String resourceGroupName, + String accountName, + String containerName, + LeaseContainerRequest parameters, + Context context) { + return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock * duration can be 15 to 60 seconds, or can be infinite. @@ -2837,6 +3614,34 @@ public LeaseContainerResponseInner lease( return leaseAsync(resourceGroupName, accountName, containerName, parameters).block(); } + /** + * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock + * duration can be 15 to 60 seconds, or can be infinite. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param containerName The name of the blob container within the specified storage account. Blob container names + * must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every + * dash (-) character must be immediately preceded and followed by a letter or number. + * @param parameters Lease Container request schema. + * @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 lease Container response schema. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LeaseContainerResponseInner lease( + String resourceGroupName, + String accountName, + String containerName, + LeaseContainerRequest parameters, + Context context) { + return leaseAsync(resourceGroupName, accountName, containerName, parameters, context).block(); + } + /** * The Lease Container operation establishes and manages a lock on a container for delete operations. The lock * duration can be 15 to 60 seconds, or can be infinite. diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index 177ba95c9bbf..5cb373d06571 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -255,6 +256,25 @@ public PagedIterable list(String resourceGroupName, return new PagedIterable<>(listAsync(resourceGroupName, accountName)); } + /** + * List blob services of storage account. It returns a collection of one object named default. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + /** * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -392,6 +412,35 @@ public Mono setServicePropertiesAsync( }); } + /** + * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The properties of a storage account’s Blob 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 the properties of a storage account’s Blob service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setServicePropertiesAsync( + String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { + return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, parameters, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -412,6 +461,27 @@ public BlobServicePropertiesInner setServiceProperties( return setServicePropertiesAsync(resourceGroupName, accountName, parameters).block(); } + /** + * Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The properties of a storage account’s Blob 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 the properties of a storage account’s Blob service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobServicePropertiesInner setServiceProperties( + String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { + return setServicePropertiesAsync(resourceGroupName, accountName, parameters, context).block(); + } + /** * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -536,6 +606,35 @@ public Mono getServicePropertiesAsync(String resourc }); } + /** + * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getServicePropertiesAsync( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -554,4 +653,25 @@ public Mono getServicePropertiesAsync(String resourc public BlobServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName) { return getServicePropertiesAsync(resourceGroupName, accountName).block(); } + + /** + * Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Blob service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobServicePropertiesInner getServiceProperties( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index f706e274bf72..8c289c05eb58 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -296,6 +297,43 @@ public Mono putAsync( }); } + /** + * Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope + * is already created and a subsequent request is issued with different properties, the encryption scope properties + * will be updated per the specified request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param encryptionScope The Encryption Scope 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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono putAsync( + String resourceGroupName, + String accountName, + String encryptionScopeName, + EncryptionScopeInner encryptionScope, + Context context) { + return putWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope * is already created and a subsequent request is issued with different properties, the encryption scope properties @@ -323,6 +361,35 @@ public EncryptionScopeInner put( return putAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope).block(); } + /** + * Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope + * is already created and a subsequent request is issued with different properties, the encryption scope properties + * will be updated per the specified request. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param encryptionScope The Encryption Scope 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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EncryptionScopeInner put( + String resourceGroupName, + String accountName, + String encryptionScopeName, + EncryptionScopeInner encryptionScope, + Context context) { + return putAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context).block(); + } + /** * Update encryption scope properties as specified in the request body. Update fails if the specified encryption * scope does not already exist. @@ -487,6 +554,42 @@ public Mono patchAsync( }); } + /** + * Update encryption scope properties as specified in the request body. Update fails if the specified encryption + * scope does not already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param encryptionScope The Encryption Scope 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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono patchAsync( + String resourceGroupName, + String accountName, + String encryptionScopeName, + EncryptionScopeInner encryptionScope, + Context context) { + return patchWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Update encryption scope properties as specified in the request body. Update fails if the specified encryption * scope does not already exist. @@ -513,6 +616,34 @@ public EncryptionScopeInner patch( return patchAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope).block(); } + /** + * Update encryption scope properties as specified in the request body. Update fails if the specified encryption + * scope does not already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @param encryptionScope The Encryption Scope 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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EncryptionScopeInner patch( + String resourceGroupName, + String accountName, + String encryptionScopeName, + EncryptionScopeInner encryptionScope, + Context context) { + return patchAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context).block(); + } + /** * Returns the properties for the specified encryption scope. * @@ -647,6 +778,36 @@ public Mono getAsync( }); } + /** + * Returns the properties for the specified encryption scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String encryptionScopeName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Returns the properties for the specified encryption scope. * @@ -667,6 +828,28 @@ public EncryptionScopeInner get(String resourceGroupName, String accountName, St return getAsync(resourceGroupName, accountName, encryptionScopeName).block(); } + /** + * Returns the properties for the specified encryption scope. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param encryptionScopeName The name of the encryption scope within the specified storage account. Encryption + * scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) + * only. Every dash (-) character must be immediately preceded and followed by a letter or number. + * @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 Encryption Scope resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EncryptionScopeInner get( + String resourceGroupName, String accountName, String encryptionScopeName, Context context) { + return getAsync(resourceGroupName, accountName, encryptionScopeName, context).block(); + } + /** * Lists all the encryption scopes available under the specified storage account. * @@ -833,6 +1016,25 @@ public PagedIterable list(String resourceGroupName, String return new PagedIterable<>(listAsync(resourceGroupName, accountName)); } + /** + * Lists all the encryption scopes available under the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 list of encryption scopes requested, and if paging is required, a URL to the next page of encryption + * scopes. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + /** * Get the next page of items. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index fc58153e330c..a8567ff6be2e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -217,6 +218,32 @@ public Mono listAsync(String resourceGroupName, String ac }); } + /** + * List all file services in storage accounts. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAsync(String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * List all file services in storage accounts. * @@ -234,6 +261,24 @@ public FileServiceItemsInner list(String resourceGroupName, String accountName) return listAsync(resourceGroupName, accountName).block(); } + /** + * List all file services in storage accounts. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileServiceItemsInner list(String resourceGroupName, String accountName, Context context) { + return listAsync(resourceGroupName, accountName, context).block(); + } + /** * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. * @@ -389,6 +434,40 @@ public Mono setServicePropertiesAsync( }); } + /** + * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @param shareDeleteRetentionPolicy The service properties for soft delete. + * @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 properties of File services in storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setServicePropertiesAsync( + String resourceGroupName, + String accountName, + CorsRules cors, + DeleteRetentionPolicy shareDeleteRetentionPolicy, + Context context) { + return setServicePropertiesWithResponseAsync( + resourceGroupName, accountName, cors, shareDeleteRetentionPolicy, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. * @@ -412,6 +491,32 @@ public FileServicePropertiesInner setServiceProperties( return setServicePropertiesAsync(resourceGroupName, accountName, cors, shareDeleteRetentionPolicy).block(); } + /** + * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @param shareDeleteRetentionPolicy The service properties for soft delete. + * @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 properties of File services in storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileServicePropertiesInner setServiceProperties( + String resourceGroupName, + String accountName, + CorsRules cors, + DeleteRetentionPolicy shareDeleteRetentionPolicy, + Context context) { + return setServicePropertiesAsync(resourceGroupName, accountName, cors, shareDeleteRetentionPolicy, context) + .block(); + } + /** * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. * @@ -533,6 +638,34 @@ public Mono getServicePropertiesAsync(String resourc }); } + /** + * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) + * rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getServicePropertiesAsync( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. * @@ -550,4 +683,24 @@ public Mono getServicePropertiesAsync(String resourc public FileServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName) { return getServicePropertiesAsync(resourceGroupName, accountName).block(); } + + /** + * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) + * rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileServicePropertiesInner getServiceProperties( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index 92e11e1c8e5b..982e6ba1a835 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -391,6 +392,33 @@ public PagedIterable list( return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, expand)); } + /** + * Lists all shares. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param maxpagesize Optional. Specified maximum number of shares that can be included in the list. + * @param filter Optional. When specified, only share names starting with the filter will be listed. + * @param expand Optional, used to expand the properties within share's properties. + * @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 response schema. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, + String accountName, + String maxpagesize, + String filter, + ListSharesExpand expand, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, expand, context)); + } + /** * Lists all shares. * @@ -562,6 +590,38 @@ public Mono createAsync( }); } + /** + * Creates a new share under the specified account as described by request body. The share resource includes + * metadata and properties for that share. It does not include a list of the files contained by the share. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param fileShare Properties of the file share, including Id, resource name, resource type, Etag. + * @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 properties of the file share, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync( + String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { + return createWithResponseAsync(resourceGroupName, accountName, shareName, fileShare, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new share under the specified account as described by request body. The share resource includes * metadata and properties for that share. It does not include a list of the files contained by the share. @@ -585,6 +645,30 @@ public FileShareInner create( return createAsync(resourceGroupName, accountName, shareName, fileShare).block(); } + /** + * Creates a new share under the specified account as described by request body. The share resource includes + * metadata and properties for that share. It does not include a list of the files contained by the share. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param fileShare Properties of the file share, including Id, resource name, resource type, Etag. + * @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 properties of the file share, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileShareInner create( + String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { + return createAsync(resourceGroupName, accountName, shareName, fileShare, context).block(); + } + /** * Updates share properties as specified in request body. Properties not mentioned in the request will not be * changed. Update fails if the specified share does not already exist. @@ -735,6 +819,38 @@ public Mono updateAsync( }); } + /** + * Updates share properties as specified in request body. Properties not mentioned in the request will not be + * changed. Update fails if the specified share does not already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param fileShare Properties of the file share, including Id, resource name, resource type, Etag. + * @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 properties of the file share, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, shareName, fileShare, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Updates share properties as specified in request body. Properties not mentioned in the request will not be * changed. Update fails if the specified share does not already exist. @@ -758,6 +874,30 @@ public FileShareInner update( return updateAsync(resourceGroupName, accountName, shareName, fileShare).block(); } + /** + * Updates share properties as specified in request body. Properties not mentioned in the request will not be + * changed. Update fails if the specified share does not already exist. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param fileShare Properties of the file share, including Id, resource name, resource type, Etag. + * @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 properties of the file share, including Id, resource name, resource type, Etag. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileShareInner update( + String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { + return updateAsync(resourceGroupName, accountName, shareName, fileShare, context).block(); + } + /** * Gets properties of a specified share. * @@ -895,6 +1035,37 @@ public Mono getAsync( }); } + /** + * Gets properties of a specified share. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param expand Optional, used to expand the properties within share's properties. + * @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 properties of a specified share. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, shareName, expand, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets properties of a specified share. * @@ -946,6 +1117,29 @@ public FileShareInner get(String resourceGroupName, String accountName, String s return getAsync(resourceGroupName, accountName, shareName, expand).block(); } + /** + * Gets properties of a specified share. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param expand Optional, used to expand the properties within share's properties. + * @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 properties of a specified share. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FileShareInner get( + String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { + return getAsync(resourceGroupName, accountName, shareName, expand, context).block(); + } + /** * Gets properties of a specified share. * @@ -1092,6 +1286,28 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes specified share under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, String shareName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, shareName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes specified share under its account. * @@ -1111,6 +1327,26 @@ public void delete(String resourceGroupName, String accountName, String shareNam deleteAsync(resourceGroupName, accountName, shareName).block(); } + /** + * Deletes specified share under its account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @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 delete(String resourceGroupName, String accountName, String shareName, Context context) { + deleteAsync(resourceGroupName, accountName, shareName, context).block(); + } + /** * Restore a file share within a valid retention days if share soft delete is enabled. * @@ -1280,6 +1516,37 @@ public Mono restoreAsync( .flatMap((Response res) -> Mono.empty()); } + /** + * Restore a file share within a valid retention days if share soft delete is enabled. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param deletedShareName Required. Identify the name of the deleted share that will be restored. + * @param deletedShareVersion Required. Identify the version of the deleted share that will be restored. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono restoreAsync( + String resourceGroupName, + String accountName, + String shareName, + String deletedShareName, + String deletedShareVersion, + Context context) { + return restoreWithResponseAsync( + resourceGroupName, accountName, shareName, deletedShareName, deletedShareVersion, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Restore a file share within a valid retention days if share soft delete is enabled. * @@ -1306,6 +1573,34 @@ public void restore( restoreAsync(resourceGroupName, accountName, shareName, deletedShareName, deletedShareVersion).block(); } + /** + * Restore a file share within a valid retention days if share soft delete is enabled. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param shareName The name of the file share within the specified storage account. File share names must be + * between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) + * character must be immediately preceded and followed by a letter or number. + * @param deletedShareName Required. Identify the name of the deleted share that will be restored. + * @param deletedShareVersion Required. Identify the version of the deleted share that will be restored. + * @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 restore( + String resourceGroupName, + String accountName, + String shareName, + String deletedShareName, + String deletedShareVersion, + Context context) { + restoreAsync(resourceGroupName, accountName, shareName, deletedShareName, deletedShareVersion, context).block(); + } + /** * Get the next page of items. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index ed55ae9bdcbb..f954eec91057 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -223,6 +224,32 @@ public Mono getAsync(String resourceGroupName, String acc }); } + /** + * Gets the managementpolicy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 managementpolicy associated with the specified storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String accountName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the managementpolicy associated with the specified storage account. * @@ -240,6 +267,24 @@ public ManagementPolicyInner get(String resourceGroupName, String accountName) { return getAsync(resourceGroupName, accountName).block(); } + /** + * Gets the managementpolicy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 managementpolicy associated with the specified storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagementPolicyInner get(String resourceGroupName, String accountName, Context context) { + return getAsync(resourceGroupName, accountName, context).block(); + } + /** * Sets the managementpolicy to the specified storage account. * @@ -377,6 +422,35 @@ public Mono createOrUpdateAsync( }); } + /** + * Sets the managementpolicy to the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param policy The Storage Account ManagementPolicies Rules. See more details in: + * https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + * @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 Get Storage Account ManagementPolicies operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, policy, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the managementpolicy to the specified storage account. * @@ -397,6 +471,27 @@ public ManagementPolicyInner createOrUpdate( return createOrUpdateAsync(resourceGroupName, accountName, policy).block(); } + /** + * Sets the managementpolicy to the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param policy The Storage Account ManagementPolicies Rules. See more details in: + * https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. + * @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 Get Storage Account ManagementPolicies operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagementPolicyInner createOrUpdate( + String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { + return createOrUpdateAsync(resourceGroupName, accountName, policy, context).block(); + } + /** * Deletes the managementpolicy associated with the specified storage account. * @@ -505,6 +600,25 @@ public Mono deleteAsync(String resourceGroupName, String accountName) { return deleteWithResponseAsync(resourceGroupName, accountName).flatMap((Response res) -> Mono.empty()); } + /** + * Deletes the managementpolicy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes the managementpolicy associated with the specified storage account. * @@ -520,4 +634,21 @@ public Mono deleteAsync(String resourceGroupName, String accountName) { public void delete(String resourceGroupName, String accountName) { deleteAsync(resourceGroupName, accountName).block(); } + + /** + * Deletes the managementpolicy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 delete(String resourceGroupName, String accountName, Context context) { + deleteAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index d19026171f6a..d742cdd32586 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -276,6 +277,25 @@ public PagedIterable list(String resourceGroupName return new PagedIterable<>(listAsync(resourceGroupName, accountName)); } + /** + * List the object replication policies associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 list storage account object replication policies. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + /** * Get the object replication policy of the storage account by policy ID. * @@ -408,6 +428,34 @@ public Mono getAsync( }); } + /** + * Get the object replication policy of the storage account by policy ID. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @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 object replication policy of the storage account by policy ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, objectReplicationPolicyId, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Get the object replication policy of the storage account by policy ID. * @@ -427,6 +475,26 @@ public ObjectReplicationPolicyInner get( return getAsync(resourceGroupName, accountName, objectReplicationPolicyId).block(); } + /** + * Get the object replication policy of the storage account by policy ID. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @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 object replication policy of the storage account by policy ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ObjectReplicationPolicyInner get( + String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { + return getAsync(resourceGroupName, accountName, objectReplicationPolicyId, context).block(); + } + /** * Create or update the object replication policy of the storage account. * @@ -587,6 +655,41 @@ public Mono createOrUpdateAsync( }); } + /** + * Create or update the object replication policy of the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @param properties The replication policy between two storage accounts. Multiple rules can be defined in one + * policy. + * @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 replication policy between two storage accounts. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync( + String resourceGroupName, + String accountName, + String objectReplicationPolicyId, + ObjectReplicationPolicyInner properties, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, accountName, objectReplicationPolicyId, properties, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Create or update the object replication policy of the storage account. * @@ -611,6 +714,33 @@ public ObjectReplicationPolicyInner createOrUpdate( return createOrUpdateAsync(resourceGroupName, accountName, objectReplicationPolicyId, properties).block(); } + /** + * Create or update the object replication policy of the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @param properties The replication policy between two storage accounts. Multiple rules can be defined in one + * policy. + * @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 replication policy between two storage accounts. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ObjectReplicationPolicyInner createOrUpdate( + String resourceGroupName, + String accountName, + String objectReplicationPolicyId, + ObjectReplicationPolicyInner properties, + Context context) { + return createOrUpdateAsync(resourceGroupName, accountName, objectReplicationPolicyId, properties, context) + .block(); + } + /** * Deletes the object replication policy associated with the specified storage account. * @@ -735,6 +865,27 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes the object replication policy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync( + String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, objectReplicationPolicyId, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes the object replication policy associated with the specified storage account. * @@ -751,4 +902,23 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri public void delete(String resourceGroupName, String accountName, String objectReplicationPolicyId) { deleteAsync(resourceGroupName, accountName, objectReplicationPolicyId).block(); } + + /** + * Deletes the object replication policy associated with the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. + * @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 delete( + String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { + deleteAsync(resourceGroupName, accountName, objectReplicationPolicyId, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index 1c7dd1252ef2..5d5917097f10 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -146,4 +147,18 @@ public PagedFlux listAsync(Context context) { public PagedIterable list() { return new PagedIterable<>(listAsync()); } + + /** + * Lists all of the available Storage Rest API operations. + * + * @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 Storage operations. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index 70b3fae0a0f3..7aa0185d92cb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -276,6 +277,25 @@ public PagedIterable list(String resourceGroupNa return new PagedIterable<>(listAsync(resourceGroupName, accountName)); } + /** + * List all the private endpoint connections associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 list of private endpoint connection associated with the specified storage account. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + /** * Gets the specified private endpoint connection associated with the storage account. * @@ -411,6 +431,35 @@ public Mono getAsync( }); } + /** + * Gets the specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * 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 specified private endpoint connection associated with the storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the specified private endpoint connection associated with the storage account. * @@ -431,6 +480,27 @@ public PrivateEndpointConnectionInner get( return getAsync(resourceGroupName, accountName, privateEndpointConnectionName).block(); } + /** + * Gets the specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * 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 specified private endpoint connection associated with the storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PrivateEndpointConnectionInner get( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + return getAsync(resourceGroupName, accountName, privateEndpointConnectionName, context).block(); + } + /** * Update the state of specified private endpoint connection associated with the storage account. * @@ -613,6 +683,49 @@ public Mono putAsync( }); } + /** + * Update the state of specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param privateEndpoint The Private Endpoint resource. + * @param privateLinkServiceConnectionState A collection of information about the state of the connection between + * service consumer and provider. + * @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 Private Endpoint Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono putAsync( + String resourceGroupName, + String accountName, + String privateEndpointConnectionName, + PrivateEndpoint privateEndpoint, + PrivateLinkServiceConnectionState privateLinkServiceConnectionState, + Context context) { + return putWithResponseAsync( + resourceGroupName, + accountName, + privateEndpointConnectionName, + privateEndpoint, + privateLinkServiceConnectionState, + context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Update the state of specified private endpoint connection associated with the storage account. * @@ -646,6 +759,42 @@ public PrivateEndpointConnectionInner put( .block(); } + /** + * Update the state of specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param privateEndpoint The Private Endpoint resource. + * @param privateLinkServiceConnectionState A collection of information about the state of the connection between + * service consumer and provider. + * @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 Private Endpoint Connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PrivateEndpointConnectionInner put( + String resourceGroupName, + String accountName, + String privateEndpointConnectionName, + PrivateEndpoint privateEndpoint, + PrivateLinkServiceConnectionState privateLinkServiceConnectionState, + Context context) { + return putAsync( + resourceGroupName, + accountName, + privateEndpointConnectionName, + privateEndpoint, + privateLinkServiceConnectionState, + context) + .block(); + } + /** * Deletes the specified private endpoint connection associated with the storage account. * @@ -773,6 +922,28 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes the specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * 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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes the specified private endpoint connection associated with the storage account. * @@ -790,4 +961,24 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri public void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName) { deleteAsync(resourceGroupName, accountName, privateEndpointConnectionName).block(); } + + /** + * Deletes the specified private endpoint connection associated with the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + deleteAsync(resourceGroupName, accountName, privateEndpointConnectionName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index 4f2ea88afc58..29a3d8c170b4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -183,6 +184,33 @@ public Mono listByStorageAccountAsync( }); } + /** + * Gets the private link resources that need to be created for a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 private link resources that need to be created for a storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listByStorageAccountAsync( + String resourceGroupName, String accountName, Context context) { + return listByStorageAccountWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the private link resources that need to be created for a storage account. * @@ -199,4 +227,23 @@ public Mono listByStorageAccountAsync( public PrivateLinkResourceListResultInner listByStorageAccount(String resourceGroupName, String accountName) { return listByStorageAccountAsync(resourceGroupName, accountName).block(); } + + /** + * Gets the private link resources that need to be created for a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 private link resources that need to be created for a storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PrivateLinkResourceListResultInner listByStorageAccount( + String resourceGroupName, String accountName, Context context) { + return listByStorageAccountAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index a173a991fadf..6c20826858d2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -216,6 +217,32 @@ public Mono listAsync(String resourceGroupName, String a }); } + /** + * List all queue services for the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAsync(String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * List all queue services for the storage account. * @@ -233,6 +260,24 @@ public ListQueueServicesInner list(String resourceGroupName, String accountName) return listAsync(resourceGroupName, accountName).block(); } + /** + * List all queue services for the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListQueueServicesInner list(String resourceGroupName, String accountName, Context context) { + return listAsync(resourceGroupName, accountName, context).block(); + } + /** * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -370,6 +415,35 @@ public Mono setServicePropertiesAsync( }); } + /** + * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @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 properties of a storage account’s Queue service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setServicePropertiesAsync( + String resourceGroupName, String accountName, CorsRules cors, Context context) { + return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -390,6 +464,27 @@ public QueueServicePropertiesInner setServiceProperties( return setServicePropertiesAsync(resourceGroupName, accountName, cors).block(); } + /** + * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @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 properties of a storage account’s Queue service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public QueueServicePropertiesInner setServiceProperties( + String resourceGroupName, String accountName, CorsRules cors, Context context) { + return setServicePropertiesAsync(resourceGroupName, accountName, cors, context).block(); + } + /** * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -514,6 +609,35 @@ public Mono getServicePropertiesAsync(String resour }); } + /** + * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getServicePropertiesAsync( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -532,4 +656,25 @@ public Mono getServicePropertiesAsync(String resour public QueueServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName) { return getServicePropertiesAsync(resourceGroupName, accountName).block(); } + + /** + * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Queue service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public QueueServicePropertiesInner getServiceProperties( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index b276b5b28f63..3fa25da1dcac 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -30,12 +31,10 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.management.storage.StorageManagementClient; - -import java.util.Map; - import com.azure.management.storage.fluent.inner.ListQueueInner; import com.azure.management.storage.fluent.inner.ListQueueResourceInner; import com.azure.management.storage.fluent.inner.StorageQueueInner; +import java.util.Map; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in Queues. */ @@ -292,6 +291,37 @@ public Mono createAsync( }); } + /** + * Creates a new queue with the specified queue name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @param metadata A name-value pair that represents queue metadata. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync( + String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { + return createWithResponseAsync(resourceGroupName, accountName, queueName, metadata, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new queue with the specified queue name, under the specified account. * @@ -314,6 +344,29 @@ public StorageQueueInner create( return createAsync(resourceGroupName, accountName, queueName, metadata).block(); } + /** + * Creates a new queue with the specified queue name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @param metadata A name-value pair that represents queue metadata. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageQueueInner create( + String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { + return createAsync(resourceGroupName, accountName, queueName, metadata, context).block(); + } + /** * Creates a new queue with the specified queue name, under the specified account. * @@ -455,6 +508,37 @@ public Mono updateAsync( }); } + /** + * Creates a new queue with the specified queue name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @param metadata A name-value pair that represents queue metadata. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, queueName, metadata, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new queue with the specified queue name, under the specified account. * @@ -477,6 +561,29 @@ public StorageQueueInner update( return updateAsync(resourceGroupName, accountName, queueName, metadata).block(); } + /** + * Creates a new queue with the specified queue name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @param metadata A name-value pair that represents queue metadata. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageQueueInner update( + String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { + return updateAsync(resourceGroupName, accountName, queueName, metadata, context).block(); + } + /** * Gets the queue with the specified queue name, under the specified account if it exists. * @@ -608,6 +715,36 @@ public Mono getAsync(String resourceGroupName, String account }); } + /** + * Gets the queue with the specified queue name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @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 queue with the specified queue name, under the specified account if it exists. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync( + String resourceGroupName, String accountName, String queueName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, queueName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the queue with the specified queue name, under the specified account if it exists. * @@ -628,6 +765,27 @@ public StorageQueueInner get(String resourceGroupName, String accountName, Strin return getAsync(resourceGroupName, accountName, queueName).block(); } + /** + * Gets the queue with the specified queue name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @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 queue with the specified queue name, under the specified account if it exists. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageQueueInner get(String resourceGroupName, String accountName, String queueName, Context context) { + return getAsync(resourceGroupName, accountName, queueName, context).block(); + } + /** * Deletes the queue with the specified queue name, under the specified account if it exists. * @@ -752,6 +910,28 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes the queue with the specified queue name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, String queueName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, queueName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes the queue with the specified queue name, under the specified account if it exists. * @@ -771,6 +951,26 @@ public void delete(String resourceGroupName, String accountName, String queueNam deleteAsync(resourceGroupName, accountName, queueName).block(); } + /** + * Deletes the queue with the specified queue name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param queueName A queue name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an + * alphanumeric character and it cannot have two consecutive dash(-) characters. + * @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 delete(String resourceGroupName, String accountName, String queueName, Context context) { + deleteAsync(resourceGroupName, accountName, queueName, context).block(); + } + /** * Gets a list of all the queues under the specified storage account. * @@ -978,6 +1178,28 @@ public PagedIterable list( return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter)); } + /** + * Gets a list of all the queues under the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param maxpagesize Optional, a maximum number of queues that should be included in a list queue response. + * @param filter Optional, When specified, only the queues with a name starting with the given filter will be + * listed. + * @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 the queues under the specified storage account. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list( + String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, maxpagesize, filter, context)); + } + /** * Gets a list of all the queues under the specified storage account. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index 5e2f822bb157..6b3aac6ec8c2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -168,4 +169,18 @@ public PagedFlux listAsync(Context context) { public PagedIterable list() { return new PagedIterable<>(listAsync()); } + + /** + * Lists the available SKUs supported by Microsoft.Storage for given subscription. + * + * @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 from the List Storage SKUs operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index 5793a8069975..96f68d435510 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -27,10 +28,12 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; +import com.azure.core.util.polling.PollerFlux; import com.azure.management.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.management.resources.fluentcore.collection.InnerSupportsGet; import com.azure.management.resources.fluentcore.collection.InnerSupportsListing; @@ -291,7 +294,7 @@ Mono> revokeUserDelegationKeys( + "/storageAccounts/{accountName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> beginCreate( + Mono> beginCreateWithoutPolling( @HostParam("$host") String host, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @@ -306,7 +309,7 @@ Mono> beginCreate( + "/storageAccounts/{accountName}/failover") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> beginFailover( + Mono> beginFailoverWithoutPolling( @HostParam("$host") String host, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @@ -320,7 +323,7 @@ Mono> beginFailover( + "/storageAccounts/{accountName}/restoreBlobRanges") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> beginRestoreBlobRanges( + Mono> beginRestoreBlobRangesWithoutPolling( @HostParam("$host") String host, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @@ -435,6 +438,29 @@ public Mono checkNameAvailabilityAsync(String }); } + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account 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 CheckNameAvailability operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono checkNameAvailabilityAsync(String name, Context context) { + return checkNameAvailabilityWithResponseAsync(name, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Checks that the storage account name is valid and is not already in use. * @@ -449,6 +475,21 @@ public CheckNameAvailabilityResultInner checkNameAvailability(String name) { return checkNameAvailabilityAsync(name).block(); } + /** + * Checks that the storage account name is valid and is not already in use. + * + * @param name The storage account 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 CheckNameAvailability operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CheckNameAvailabilityResultInner checkNameAvailability(String name, Context context) { + return checkNameAvailabilityAsync(name, context).block(); + } + /** * Asynchronously creates a new storage account with the specified parameters. If an account is already created and * a subsequent create request is issued with different properties, the account properties will be updated. If an @@ -505,6 +546,114 @@ public Mono>> createWithResponseAsync( .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); } + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createWithResponseAsync( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + if (this.client.getHost() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName 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(); + } + return service + .create( + this.client.getHost(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, StorageAccountInner> beginCreate( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, parameters); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), StorageAccountInner.class, StorageAccountInner.class); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, StorageAccountInner> beginCreate( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, parameters, context); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), StorageAccountInner.class, StorageAccountInner.class); + } + /** * Asynchronously creates a new storage account with the specified parameters. If an account is already created and * a subsequent create request is issued with different properties, the account properties will be updated. If an @@ -534,6 +683,36 @@ public Mono createAsync( .flatMap(AsyncPollResponse::getFinalResult); } + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, parameters, context); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), StorageAccountInner.class, StorageAccountInner.class) + .last() + .flatMap(AsyncPollResponse::getFinalResult); + } + /** * Asynchronously creates a new storage account with the specified parameters. If an account is already created and * a subsequent create request is issued with different properties, the account properties will be updated. If an @@ -556,6 +735,29 @@ public StorageAccountInner create( return createAsync(resourceGroupName, accountName, parameters).block(); } + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountInner create( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + return createAsync(resourceGroupName, accountName, parameters, context).block(); + } + /** * Deletes a storage account in Microsoft Azure. * @@ -660,6 +862,25 @@ public Mono deleteAsync(String resourceGroupName, String accountName) { return deleteWithResponseAsync(resourceGroupName, accountName).flatMap((Response res) -> Mono.empty()); } + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes a storage account in Microsoft Azure. * @@ -676,6 +897,23 @@ public void delete(String resourceGroupName, String accountName) { deleteAsync(resourceGroupName, accountName).block(); } + /** + * Deletes a storage account in Microsoft Azure. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 delete(String resourceGroupName, String accountName, Context context) { + deleteAsync(resourceGroupName, accountName, context).block(); + } + /** * Returns the properties for the specified storage account including but not limited to name, SKU name, location, * and account status. The ListKeys operation should be used to retrieve storage keys. @@ -802,6 +1040,36 @@ public Mono getByResourceGroupAsync( }); } + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, + * and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param expand May be used to expand the properties within account's properties. By default, data is not included + * when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync( + String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, expand, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Returns the properties for the specified storage account including but not limited to name, SKU name, location, * and account status. The ListKeys operation should be used to retrieve storage keys. @@ -859,17 +1127,39 @@ public StorageAccountInner getByResourceGroup( * insensitive. * @param accountName The name of the storage account within the specified resource group. Storage account names * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param expand May be used to expand the properties within account's properties. By default, data is not included + * when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus. + * @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 storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageAccountInner getByResourceGroup(String resourceGroupName, String accountName) { - final StorageAccountExpand expand = null; - final Context context = null; - return getByResourceGroupAsync(resourceGroupName, accountName, expand).block(); - } + public StorageAccountInner getByResourceGroup( + String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { + return getByResourceGroupAsync(resourceGroupName, accountName, expand, context).block(); + } + + /** + * Returns the properties for the specified storage account including but not limited to name, SKU name, location, + * and account status. The ListKeys operation should be used to retrieve storage keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountInner getByResourceGroup(String resourceGroupName, String accountName) { + final StorageAccountExpand expand = null; + final Context context = null; + return getByResourceGroupAsync(resourceGroupName, accountName, expand).block(); + } /** * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It @@ -1016,6 +1306,39 @@ public Mono updateAsync( }); } + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It + * can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; + * the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value + * must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This + * call does not change the storage keys for the account. If you want to change the storage account keys, use the + * regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters that can be provided when updating the storage account properties. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, parameters, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It * can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; @@ -1040,6 +1363,31 @@ public StorageAccountInner update( return updateAsync(resourceGroupName, accountName, parameters).block(); } + /** + * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It + * can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; + * the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value + * must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This + * call does not change the storage keys for the account. If you want to change the storage account keys, use the + * regenerate keys operation. The location and name of the storage account cannot be changed after creation. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters that can be provided when updating the storage account properties. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountInner update( + String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { + return updateAsync(resourceGroupName, accountName, parameters, context).block(); + } + /** * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the * ListKeys operation for this. @@ -1157,6 +1505,21 @@ public PagedIterable list() { return new PagedIterable<>(listAsync()); } + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the + * ListKeys operation for this. + * + * @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 from the List Storage Accounts operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + /** * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; * use the ListKeys operation for this. @@ -1292,6 +1655,23 @@ public PagedIterable listByResourceGroup(String resourceGro return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); } + /** + * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; + * use the ListKeys operation for this. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @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 from the List Storage Accounts operation. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + /** * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. * @@ -1412,6 +1792,34 @@ public Mono listKeysAsync( }); } + /** + * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param expand Specifies type of the key to be listed. Possible value is kerb. + * @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 from the ListKeys operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKeysAsync( + String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { + return listKeysWithResponseAsync(resourceGroupName, accountName, expand, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. * @@ -1458,6 +1866,26 @@ public StorageAccountListKeysResultInner listKeys( return listKeysAsync(resourceGroupName, accountName, expand).block(); } + /** + * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param expand Specifies type of the key to be listed. Possible value is kerb. + * @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 from the ListKeys operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountListKeysResultInner listKeys( + String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { + return listKeysAsync(resourceGroupName, accountName, expand, context).block(); + } + /** * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. * @@ -1610,6 +2038,35 @@ public Mono regenerateKeyAsync( }); } + /** + * Regenerates one of the access keys or Kerberos keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, + * kerb2. + * @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 from the ListKeys operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono regenerateKeyAsync( + String resourceGroupName, String accountName, String keyName, Context context) { + return regenerateKeyWithResponseAsync(resourceGroupName, accountName, keyName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Regenerates one of the access keys or Kerberos keys for the specified storage account. * @@ -1630,6 +2087,27 @@ public StorageAccountListKeysResultInner regenerateKey( return regenerateKeyAsync(resourceGroupName, accountName, keyName).block(); } + /** + * Regenerates one of the access keys or Kerberos keys for the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param keyName The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, + * kerb2. + * @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 from the ListKeys operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountListKeysResultInner regenerateKey( + String resourceGroupName, String accountName, String keyName, Context context) { + return regenerateKeyAsync(resourceGroupName, accountName, keyName, context).block(); + } + /** * List SAS credentials of a storage account. * @@ -1760,6 +2238,34 @@ public Mono listAccountSasAsync( }); } + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to list SAS credentials of a storage account. + * @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 List SAS credentials operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAccountSasAsync( + String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { + return listAccountSasWithResponseAsync(resourceGroupName, accountName, parameters, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * List SAS credentials of a storage account. * @@ -1779,6 +2285,26 @@ public ListAccountSasResponseInner listAccountSas( return listAccountSasAsync(resourceGroupName, accountName, parameters).block(); } + /** + * List SAS credentials of a storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to list SAS credentials of a storage account. + * @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 List SAS credentials operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListAccountSasResponseInner listAccountSas( + String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { + return listAccountSasAsync(resourceGroupName, accountName, parameters, context).block(); + } + /** * List service SAS credentials of a specific resource. * @@ -1917,20 +2443,68 @@ public Mono listServiceSasAsync( * @param accountName The name of the storage account within the specified resource group. Storage account names * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param parameters The parameters to list service SAS credentials of a specific 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 List service SAS credentials operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListServiceSasResponseInner listServiceSas( - String resourceGroupName, String accountName, ServiceSasParameters parameters) { - return listServiceSasAsync(resourceGroupName, accountName, parameters).block(); - } - - /** - * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from - * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + public Mono listServiceSasAsync( + String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { + return listServiceSasWithResponseAsync(resourceGroupName, accountName, parameters, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to list service SAS credentials of a specific 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 List service SAS credentials operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListServiceSasResponseInner listServiceSas( + String resourceGroupName, String accountName, ServiceSasParameters parameters) { + return listServiceSasAsync(resourceGroupName, accountName, parameters).block(); + } + + /** + * List service SAS credentials of a specific resource. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters to list service SAS credentials of a specific 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 List service SAS credentials operation response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListServiceSasResponseInner listServiceSas( + String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { + return listServiceSasAsync(resourceGroupName, accountName, parameters, context).block(); + } + + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become * primary after failover. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case @@ -1976,6 +2550,94 @@ public Mono>> failoverWithResponseAsync( .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); } + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> failoverWithResponseAsync( + String resourceGroupName, String accountName, Context context) { + if (this.client.getHost() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName 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 service + .failover( + this.client.getHost(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + context); + } + + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, Void> beginFailover(String resourceGroupName, String accountName) { + Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName); + return this.client.getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class); + } + + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, Void> beginFailover( + String resourceGroupName, String accountName, Context context) { + Mono>> mono = + failoverWithResponseAsync(resourceGroupName, accountName, context); + return this.client.getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class); + } + /** * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become @@ -2000,6 +2662,32 @@ public Mono failoverAsync(String resourceGroupName, String accountName) { .flatMap(AsyncPollResponse::getFinalResult); } + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono failoverAsync(String resourceGroupName, String accountName, Context context) { + Mono>> mono = + failoverWithResponseAsync(resourceGroupName, accountName, context); + return this + .client + .getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class) + .last() + .flatMap(AsyncPollResponse::getFinalResult); + } + /** * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become @@ -2018,6 +2706,201 @@ public void failover(String resourceGroupName, String accountName) { failoverAsync(resourceGroupName, accountName).block(); } + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 failover(String resourceGroupName, String accountName, Context context) { + failoverAsync(resourceGroupName, accountName, context).block(); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> restoreBlobRangesWithResponseAsync( + String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { + if (this.client.getHost() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName 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 (timeToRestore == null) { + return Mono.error(new IllegalArgumentException("Parameter timeToRestore is required and cannot be null.")); + } + if (blobRanges == null) { + return Mono.error(new IllegalArgumentException("Parameter blobRanges is required and cannot be null.")); + } else { + blobRanges.forEach(e -> e.validate()); + } + BlobRestoreParameters parameters = new BlobRestoreParameters(); + parameters.withTimeToRestore(timeToRestore); + parameters.withBlobRanges(blobRanges); + return FluxUtil + .withContext( + context -> + service + .restoreBlobRanges( + this.client.getHost(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context)) + .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @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 blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> restoreBlobRangesWithResponseAsync( + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { + if (this.client.getHost() == null) { + return Mono + .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName 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 (timeToRestore == null) { + return Mono.error(new IllegalArgumentException("Parameter timeToRestore is required and cannot be null.")); + } + if (blobRanges == null) { + return Mono.error(new IllegalArgumentException("Parameter blobRanges is required and cannot be null.")); + } else { + blobRanges.forEach(e -> e.validate()); + } + BlobRestoreParameters parameters = new BlobRestoreParameters(); + parameters.withTimeToRestore(timeToRestore); + parameters.withBlobRanges(blobRanges); + return service + .restoreBlobRanges( + this.client.getHost(), + resourceGroupName, + accountName, + this.client.getApiVersion(), + this.client.getSubscriptionId(), + parameters, + context); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, BlobRestoreStatusInner> beginRestoreBlobRanges( + String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { + Mono>> mono = + restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), BlobRestoreStatusInner.class, BlobRestoreStatusInner.class); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @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 blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PollerFlux, BlobRestoreStatusInner> beginRestoreBlobRanges( + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { + Mono>> mono = + restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges, context); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), BlobRestoreStatusInner.class, BlobRestoreStatusInner.class); + } + /** * Restore blobs in the specified blob ranges. * @@ -2033,49 +2916,16 @@ public void failover(String resourceGroupName, String accountName) { * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> restoreBlobRangesWithResponseAsync( + public Mono restoreBlobRangesAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - if (this.client.getHost() == null) { - return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName 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 (timeToRestore == null) { - return Mono.error(new IllegalArgumentException("Parameter timeToRestore is required and cannot be null.")); - } - if (blobRanges == null) { - return Mono.error(new IllegalArgumentException("Parameter blobRanges is required and cannot be null.")); - } else { - blobRanges.forEach(e -> e.validate()); - } - BlobRestoreParameters parameters = new BlobRestoreParameters(); - parameters.withTimeToRestore(timeToRestore); - parameters.withBlobRanges(blobRanges); - return FluxUtil - .withContext( - context -> - service - .restoreBlobRanges( - this.client.getHost(), - resourceGroupName, - accountName, - this.client.getApiVersion(), - this.client.getSubscriptionId(), - parameters, - context)) - .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()))); + Mono>> mono = + restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges); + return this + .client + .getLroResultAsync( + mono, this.client.getHttpPipeline(), BlobRestoreStatusInner.class, BlobRestoreStatusInner.class) + .last() + .flatMap(AsyncPollResponse::getFinalResult); } /** @@ -2087,6 +2937,7 @@ public Mono>> restoreBlobRangesWithResponseAsync * must be between 3 and 24 characters in length and use numbers and lower-case letters only. * @param timeToRestore Restore blob to the specified time. * @param blobRanges Blob ranges to restore. + * @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. @@ -2094,9 +2945,13 @@ public Mono>> restoreBlobRangesWithResponseAsync */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono restoreBlobRangesAsync( - String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { Mono>> mono = - restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges); + restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges, context); return this .client .getLroResultAsync( @@ -2125,6 +2980,31 @@ public BlobRestoreStatusInner restoreBlobRanges( return restoreBlobRangesAsync(resourceGroupName, accountName, timeToRestore, blobRanges).block(); } + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @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 blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobRestoreStatusInner restoreBlobRanges( + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { + return restoreBlobRangesAsync(resourceGroupName, accountName, timeToRestore, blobRanges, context).block(); + } + /** * Revoke user delegation keys. * @@ -2232,6 +3112,25 @@ public Mono revokeUserDelegationKeysAsync(String resourceGroupName, String .flatMap((Response res) -> Mono.empty()); } + /** + * Revoke user delegation keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono revokeUserDelegationKeysAsync(String resourceGroupName, String accountName, Context context) { + return revokeUserDelegationKeysWithResponseAsync(resourceGroupName, accountName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Revoke user delegation keys. * @@ -2248,6 +3147,23 @@ public void revokeUserDelegationKeys(String resourceGroupName, String accountNam revokeUserDelegationKeysAsync(resourceGroupName, accountName).block(); } + /** + * Revoke user delegation keys. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 revokeUserDelegationKeys(String resourceGroupName, String accountName, Context context) { + revokeUserDelegationKeysAsync(resourceGroupName, accountName, context).block(); + } + /** * Asynchronously creates a new storage account with the specified parameters. If an account is already created and * a subsequent create request is issued with different properties, the account properties will be updated. If an @@ -2265,7 +3181,7 @@ public void revokeUserDelegationKeys(String resourceGroupName, String accountNam * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginCreateWithResponseAsync( + public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { if (this.client.getHost() == null) { return Mono @@ -2293,7 +3209,7 @@ public Mono> beginCreateWithResponseAsync( .withContext( context -> service - .beginCreate( + .beginCreateWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2322,7 +3238,7 @@ public Mono> beginCreateWithResponseAsync( * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginCreateWithResponseAsync( + public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { if (this.client.getHost() == null) { return Mono @@ -2347,7 +3263,7 @@ public Mono> beginCreateWithResponseAsync( parameters.validate(); } return service - .beginCreate( + .beginCreateWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2374,9 +3290,40 @@ public Mono> beginCreateWithResponseAsync( * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono beginCreateAsync( + public Mono beginCreateWithoutPollingAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - return beginCreateWithResponseAsync(resourceGroupName, accountName, parameters) + return beginCreateWithoutPollingWithResponseAsync(resourceGroupName, accountName, parameters) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono beginCreateWithoutPollingAsync( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + return beginCreateWithoutPollingWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( (SimpleResponse res) -> { if (res.getValue() != null) { @@ -2404,9 +3351,32 @@ public Mono beginCreateAsync( * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StorageAccountInner beginCreate( + public StorageAccountInner beginCreateWithoutPolling( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - return beginCreateAsync(resourceGroupName, accountName, parameters).block(); + return beginCreateWithoutPollingAsync(resourceGroupName, accountName, parameters).block(); + } + + /** + * Asynchronously creates a new storage account with the specified parameters. If an account is already created and + * a subsequent create request is issued with different properties, the account properties will be updated. If an + * account is already created and a subsequent create or update request is issued with the exact same set of + * properties, the request will succeed. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param parameters The parameters used when creating a storage account. + * @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 storage account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StorageAccountInner beginCreateWithoutPolling( + String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { + return beginCreateWithoutPollingAsync(resourceGroupName, accountName, parameters, context).block(); } /** @@ -2424,7 +3394,8 @@ public StorageAccountInner beginCreate( * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginFailoverWithResponseAsync(String resourceGroupName, String accountName) { + public Mono> beginFailoverWithoutPollingWithResponseAsync( + String resourceGroupName, String accountName) { if (this.client.getHost() == null) { return Mono .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); @@ -2446,7 +3417,7 @@ public Mono> beginFailoverWithResponseAsync(String resourceGroupN .withContext( context -> service - .beginFailover( + .beginFailoverWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2472,7 +3443,7 @@ public Mono> beginFailoverWithResponseAsync(String resourceGroupN * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginFailoverWithResponseAsync( + public Mono> beginFailoverWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getHost() == null) { return Mono @@ -2492,7 +3463,7 @@ public Mono> beginFailoverWithResponseAsync( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } return service - .beginFailover( + .beginFailoverWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2516,8 +3487,29 @@ public Mono> beginFailoverWithResponseAsync( * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono beginFailoverAsync(String resourceGroupName, String accountName) { - return beginFailoverWithResponseAsync(resourceGroupName, accountName) + public Mono beginFailoverWithoutPollingAsync(String resourceGroupName, String accountName) { + return beginFailoverWithoutPollingWithResponseAsync(resourceGroupName, accountName) + .flatMap((Response res) -> Mono.empty()); + } + + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono beginFailoverWithoutPollingAsync(String resourceGroupName, String accountName, Context context) { + return beginFailoverWithoutPollingWithResponseAsync(resourceGroupName, accountName, context) .flatMap((Response res) -> Mono.empty()); } @@ -2535,8 +3527,27 @@ public Mono beginFailoverAsync(String resourceGroupName, String accountNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void beginFailover(String resourceGroupName, String accountName) { - beginFailoverAsync(resourceGroupName, accountName).block(); + public void beginFailoverWithoutPolling(String resourceGroupName, String accountName) { + beginFailoverWithoutPollingAsync(resourceGroupName, accountName).block(); + } + + /** + * Failover request can be triggered for a storage account in case of availability issues. The failover occurs from + * the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become + * primary after failover. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 beginFailoverWithoutPolling(String resourceGroupName, String accountName, Context context) { + beginFailoverWithoutPollingAsync(resourceGroupName, accountName, context).block(); } /** @@ -2554,7 +3565,7 @@ public void beginFailover(String resourceGroupName, String accountName) { * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginRestoreBlobRangesWithResponseAsync( + public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { if (this.client.getHost() == null) { return Mono @@ -2588,7 +3599,7 @@ public Mono> beginRestoreBlobRangesWithRe .withContext( context -> service - .beginRestoreBlobRanges( + .beginRestoreBlobRangesWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2615,7 +3626,7 @@ public Mono> beginRestoreBlobRangesWithRe * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginRestoreBlobRangesWithResponseAsync( + public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, @@ -2650,7 +3661,7 @@ public Mono> beginRestoreBlobRangesWithRe parameters.withTimeToRestore(timeToRestore); parameters.withBlobRanges(blobRanges); return service - .beginRestoreBlobRanges( + .beginRestoreBlobRangesWithoutPolling( this.client.getHost(), resourceGroupName, accountName, @@ -2675,9 +3686,44 @@ public Mono> beginRestoreBlobRangesWithRe * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono beginRestoreBlobRangesAsync( + public Mono beginRestoreBlobRangesWithoutPollingAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - return beginRestoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges) + return beginRestoreBlobRangesWithoutPollingWithResponseAsync( + resourceGroupName, accountName, timeToRestore, blobRanges) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @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 blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono beginRestoreBlobRangesWithoutPollingAsync( + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { + return beginRestoreBlobRangesWithoutPollingWithResponseAsync( + resourceGroupName, accountName, timeToRestore, blobRanges, context) .flatMap( (SimpleResponse res) -> { if (res.getValue() != null) { @@ -2703,9 +3749,37 @@ public Mono beginRestoreBlobRangesAsync( * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BlobRestoreStatusInner beginRestoreBlobRanges( + public BlobRestoreStatusInner beginRestoreBlobRangesWithoutPolling( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - return beginRestoreBlobRangesAsync(resourceGroupName, accountName, timeToRestore, blobRanges).block(); + return beginRestoreBlobRangesWithoutPollingAsync(resourceGroupName, accountName, timeToRestore, blobRanges) + .block(); + } + + /** + * Restore blobs in the specified blob ranges. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param timeToRestore Restore blob to the specified time. + * @param blobRanges Blob ranges to restore. + * @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 blob restore status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BlobRestoreStatusInner beginRestoreBlobRangesWithoutPolling( + String resourceGroupName, + String accountName, + OffsetDateTime timeToRestore, + List blobRanges, + Context context) { + return beginRestoreBlobRangesWithoutPollingAsync( + resourceGroupName, accountName, timeToRestore, blobRanges, context) + .block(); } /** diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index 818eb1fb89c3..bce916084399 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -216,6 +217,32 @@ public Mono listAsync(String resourceGroupName, String a }); } + /** + * List all table services for the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAsync(String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * List all table services for the storage account. * @@ -233,6 +260,24 @@ public ListTableServicesInner list(String resourceGroupName, String accountName) return listAsync(resourceGroupName, accountName).block(); } + /** + * List all table services for the storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ListTableServicesInner list(String resourceGroupName, String accountName, Context context) { + return listAsync(resourceGroupName, accountName, context).block(); + } + /** * Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -370,6 +415,35 @@ public Mono setServicePropertiesAsync( }); } + /** + * Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @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 properties of a storage account’s Table service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setServicePropertiesAsync( + String resourceGroupName, String accountName, CorsRules cors, Context context) { + return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -390,6 +464,27 @@ public TableServicePropertiesInner setServiceProperties( return setServicePropertiesAsync(resourceGroupName, accountName, cors).block(); } + /** + * Sets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param cors Sets the CORS rules. You can include up to five CorsRule elements in the request. + * @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 properties of a storage account’s Table service. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public TableServicePropertiesInner setServiceProperties( + String resourceGroupName, String accountName, CorsRules cors, Context context) { + return setServicePropertiesAsync(resourceGroupName, accountName, cors, context).block(); + } + /** * Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -514,6 +609,35 @@ public Mono getServicePropertiesAsync(String resour }); } + /** + * Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getServicePropertiesAsync( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -532,4 +656,25 @@ public Mono getServicePropertiesAsync(String resour public TableServicePropertiesInner getServiceProperties(String resourceGroupName, String accountName) { return getServicePropertiesAsync(resourceGroupName, accountName).block(); } + + /** + * Gets the properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 properties of a storage account’s Table service, including properties for Storage Analytics and CORS + * (Cross-Origin Resource Sharing) rules. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public TableServicePropertiesInner getServiceProperties( + String resourceGroupName, String accountName, Context context) { + return getServicePropertiesAsync(resourceGroupName, accountName, context).block(); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index 9d278384efc8..a766c35694d3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -270,6 +271,35 @@ public Mono createAsync(String resourceGroupName, String accountName }); } + /** + * Creates a new table with the specified table name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 properties of the table, including Id, resource name, resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createAsync( + String resourceGroupName, String accountName, String tableName, Context context) { + return createWithResponseAsync(resourceGroupName, accountName, tableName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new table with the specified table name, under the specified account. * @@ -289,6 +319,26 @@ public TableInner create(String resourceGroupName, String accountName, String ta return createAsync(resourceGroupName, accountName, tableName).block(); } + /** + * Creates a new table with the specified table name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 properties of the table, including Id, resource name, resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public TableInner create(String resourceGroupName, String accountName, String tableName, Context context) { + return createAsync(resourceGroupName, accountName, tableName, context).block(); + } + /** * Creates a new table with the specified table name, under the specified account. * @@ -417,6 +467,35 @@ public Mono updateAsync(String resourceGroupName, String accountName }); } + /** + * Creates a new table with the specified table name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 properties of the table, including Id, resource name, resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync( + String resourceGroupName, String accountName, String tableName, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, tableName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Creates a new table with the specified table name, under the specified account. * @@ -436,6 +515,26 @@ public TableInner update(String resourceGroupName, String accountName, String ta return updateAsync(resourceGroupName, accountName, tableName).block(); } + /** + * Creates a new table with the specified table name, under the specified account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 properties of the table, including Id, resource name, resource type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public TableInner update(String resourceGroupName, String accountName, String tableName, Context context) { + return updateAsync(resourceGroupName, accountName, tableName, context).block(); + } + /** * Gets the table with the specified table name, under the specified account if it exists. * @@ -564,6 +663,34 @@ public Mono getAsync(String resourceGroupName, String accountName, S }); } + /** + * Gets the table with the specified table name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 table with the specified table name, under the specified account if it exists. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String accountName, String tableName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, tableName, context) + .flatMap( + (SimpleResponse res) -> { + if (res.getValue() != null) { + return Mono.just(res.getValue()); + } else { + return Mono.empty(); + } + }); + } + /** * Gets the table with the specified table name, under the specified account if it exists. * @@ -583,6 +710,26 @@ public TableInner get(String resourceGroupName, String accountName, String table return getAsync(resourceGroupName, accountName, tableName).block(); } + /** + * Gets the table with the specified table name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 table with the specified table name, under the specified account if it exists. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public TableInner get(String resourceGroupName, String accountName, String tableName, Context context) { + return getAsync(resourceGroupName, accountName, tableName, context).block(); + } + /** * Deletes the table with the specified table name, under the specified account if it exists. * @@ -704,6 +851,27 @@ public Mono deleteAsync(String resourceGroupName, String accountName, Stri .flatMap((Response res) -> Mono.empty()); } + /** + * Deletes the table with the specified table name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String accountName, String tableName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, tableName, context) + .flatMap((Response res) -> Mono.empty()); + } + /** * Deletes the table with the specified table name, under the specified account if it exists. * @@ -722,6 +890,25 @@ public void delete(String resourceGroupName, String accountName, String tableNam deleteAsync(resourceGroupName, accountName, tableName).block(); } + /** + * Deletes the table with the specified table name, under the specified account if it exists. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @param tableName A table name must be unique within a storage account and must be between 3 and 63 characters.The + * name must comprise of only alphanumeric characters and it cannot begin with a numeric character. + * @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 delete(String resourceGroupName, String accountName, String tableName, Context context) { + deleteAsync(resourceGroupName, accountName, tableName, context).block(); + } + /** * Gets a list of all the tables under the specified storage account. * @@ -883,6 +1070,24 @@ public PagedIterable list(String resourceGroupName, String accountNa return new PagedIterable<>(listAsync(resourceGroupName, accountName)); } + /** + * Gets a list of all the tables under the specified storage account. + * + * @param resourceGroupName The name of the resource group within the user's subscription. The name is case + * insensitive. + * @param accountName The name of the storage account within the specified resource group. Storage account names + * must be between 3 and 24 characters in length and use numbers and lower-case letters only. + * @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 the tables under the specified storage account. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + /** * Get the next page of items. * diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index 7bece64d1b1f..a2c946930211 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.storage.fluent; @@ -185,4 +186,19 @@ public PagedFlux listByLocationAsync(String location, Context contex public PagedIterable listByLocation(String location) { return new PagedIterable<>(listByLocationAsync(location)); } + + /** + * Gets the current usage count and the limit for the resources of the location under the subscription. + * + * @param location The location of the Azure Storage 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 current usage count and the limit for the resources of the location under the subscription. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocation(String location, Context context) { + return new PagedIterable<>(listByLocationAsync(location, context)); + } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java index e01db2985dde..9d17416799bf 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java @@ -5,6 +5,7 @@ import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.BlobContainersClient; import com.azure.management.storage.models.BlobContainer; import com.azure.management.storage.models.ImmutabilityPolicyProperties; import com.azure.management.storage.models.LeaseDuration; @@ -13,7 +14,7 @@ import com.azure.management.storage.models.LegalHoldProperties; import com.azure.management.storage.models.PublicAccess; import com.azure.management.storage.fluent.inner.BlobContainerInner; -import com.azure.management.storage.fluent.BlobContainersClient; + import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java index af4da5a28b0f..919ccebeb432 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java @@ -6,12 +6,12 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.BlobContainersClient; import com.azure.management.storage.models.BlobContainer; import com.azure.management.storage.models.BlobContainers; import com.azure.management.storage.models.ImmutabilityPolicy; import com.azure.management.storage.models.LegalHold; import com.azure.management.storage.fluent.inner.BlobContainerInner; -import com.azure.management.storage.fluent.BlobContainersClient; import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; import com.azure.management.storage.fluent.inner.ListContainerItemInner; import java.util.List; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java index c23f8947601c..e727f41067be 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java @@ -5,12 +5,13 @@ import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.BlobServicesClient; import com.azure.management.storage.models.BlobServiceProperties; import com.azure.management.storage.models.CorsRule; import com.azure.management.storage.models.CorsRules; import com.azure.management.storage.models.DeleteRetentionPolicy; import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; -import com.azure.management.storage.fluent.BlobServicesClient; + import java.util.ArrayList; import java.util.List; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java index e073e9c83a73..910473fa1a92 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java @@ -5,10 +5,10 @@ import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.BlobServicesClient; import com.azure.management.storage.models.BlobServiceProperties; import com.azure.management.storage.models.BlobServices; import com.azure.management.storage.fluent.inner.BlobServicePropertiesInner; -import com.azure.management.storage.fluent.BlobServicesClient; import reactor.core.publisher.Mono; public class BlobServicesImpl extends WrapperImpl implements BlobServices { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java index ee0b93d23858..c30c02d112ef 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java @@ -6,9 +6,9 @@ import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.resources.fluentcore.utils.ETagState; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.BlobContainersClient; import com.azure.management.storage.models.ImmutabilityPolicy; import com.azure.management.storage.models.ImmutabilityPolicyState; -import com.azure.management.storage.fluent.BlobContainersClient; import com.azure.management.storage.fluent.inner.ImmutabilityPolicyInner; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java index 9396cd11b3fb..23464f55649c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java @@ -5,9 +5,9 @@ import com.azure.management.resources.fluentcore.model.implementation.WrapperImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.ManagementPoliciesClient; import com.azure.management.storage.models.ManagementPolicies; import com.azure.management.storage.models.ManagementPolicy; -import com.azure.management.storage.fluent.ManagementPoliciesClient; import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import reactor.core.publisher.Mono; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java index 6841d8b510a7..a244fec48127 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPolicyImpl.java @@ -6,6 +6,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.management.resources.fluentcore.model.implementation.CreatableUpdatableImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.ManagementPoliciesClient; import com.azure.management.storage.models.BlobTypes; import com.azure.management.storage.models.ManagementPolicy; import com.azure.management.storage.models.ManagementPolicyBaseBlob; @@ -13,7 +14,6 @@ import com.azure.management.storage.models.ManagementPolicySchema; import com.azure.management.storage.models.ManagementPolicySnapShot; import com.azure.management.storage.models.PolicyRule; -import com.azure.management.storage.fluent.ManagementPoliciesClient; import com.azure.management.storage.fluent.inner.ManagementPolicyInner; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index 698919474877..fa02cf0d3158 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -7,6 +7,7 @@ import com.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; import com.azure.management.resources.fluentcore.utils.Utils; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.StorageAccountsClient; import com.azure.management.storage.models.AccessTier; import com.azure.management.storage.models.AccountStatuses; import com.azure.management.storage.models.AzureFilesIdentityBasedAuthentication; @@ -29,7 +30,7 @@ import com.azure.management.storage.models.StorageAccountUpdateParameters; import com.azure.management.storage.models.StorageService; import com.azure.management.storage.fluent.inner.StorageAccountInner; -import com.azure.management.storage.fluent.StorageAccountsClient; + import java.time.OffsetDateTime; import java.util.List; import java.util.Map; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java index b3a2bd94bd15..10b75296c165 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java @@ -5,13 +5,13 @@ import com.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.StorageAccountsClient; import com.azure.management.storage.models.CheckNameAvailabilityResult; import com.azure.management.storage.models.ServiceSasParameters; import com.azure.management.storage.models.SkuName; import com.azure.management.storage.models.StorageAccount; import com.azure.management.storage.models.StorageAccounts; import com.azure.management.storage.fluent.inner.StorageAccountInner; -import com.azure.management.storage.fluent.StorageAccountsClient; import reactor.core.publisher.Mono; /** The implementation of StorageAccounts and its parent interfaces. */ diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java index 37546de1596f..cd7ad3c0ee95 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java @@ -6,9 +6,9 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.SkusClient; import com.azure.management.storage.models.StorageSku; import com.azure.management.storage.models.StorageSkus; -import com.azure.management.storage.fluent.SkusClient; /** The implementation for {@link StorageSkus}. */ public class StorageSkusImpl implements StorageSkus { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java index 42b9428221e3..1f01e0c31c2b 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java @@ -5,9 +5,9 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.management.storage.StorageManager; +import com.azure.management.storage.fluent.UsagesClient; import com.azure.management.storage.models.Usages; import com.azure.management.storage.fluent.inner.UsageInner; -import com.azure.management.storage.fluent.UsagesClient; /** The implementation of {@link Usages}. */ public class UsagesImpl implements Usages { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java index 403966f7eca6..db4f060fee3a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Usages.java @@ -8,8 +8,8 @@ import com.azure.management.resources.fluentcore.collection.SupportsListing; import com.azure.management.resources.fluentcore.model.HasInner; import com.azure.management.storage.StorageManager; -import com.azure.management.storage.fluent.inner.UsageInner; import com.azure.management.storage.fluent.UsagesClient; +import com.azure.management.storage.fluent.inner.UsageInner; /** Entry point for storage resource usage management API. */ @Fluent diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java index 0464ba00e1e1..a6900a32adc2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/package-info.java @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the classes for StorageManagementClient. The Azure Storage Management API. */ package com.azure.management.storage; From 5dca2f89b71f5642de547ca7b3d0db6078244f13 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 13:27:45 +0800 Subject: [PATCH 08/16] add @ServiceClient --- .../com/azure/management/storage/StorageManagementClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index 6d73b5be6961..cc86260d2c14 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -4,6 +4,8 @@ package com.azure.management.storage; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.policy.CookiePolicy; @@ -31,6 +33,7 @@ import com.azure.management.storage.fluent.UsagesClient; /** Initializes a new instance of the StorageManagementClient type. */ +@ServiceClient(builder = ServiceClientBuilder.class) public final class StorageManagementClient extends AzureServiceClient { private final ClientLogger logger = new ClientLogger(StorageManagementClient.class); From eff892dfba6baf661a7cdf57658b5c02a86794ff Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 13:39:08 +0800 Subject: [PATCH 09/16] update getter --- .../storage/StorageManagementClient.java | 34 +++++++++---------- .../implementation/BlobContainerImpl.java | 6 ++-- .../implementation/BlobContainersImpl.java | 2 +- .../BlobServicePropertiesImpl.java | 6 ++-- .../implementation/BlobServicesImpl.java | 2 +- .../ImmutabilityPolicyImpl.java | 6 ++-- .../ManagementPoliciesImpl.java | 2 +- .../implementation/ManagementPolicyImpl.java | 6 ++-- .../implementation/StorageAccountImpl.java | 12 +++---- .../implementation/StorageAccountsImpl.java | 2 +- .../implementation/StorageSkusImpl.java | 2 +- .../storage/implementation/UsagesImpl.java | 2 +- 12 files changed, 41 insertions(+), 41 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index cc86260d2c14..9328290507c7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -93,7 +93,7 @@ public HttpPipeline getHttpPipeline() { * * @return the OperationsClient object. */ - public OperationsClient operations() { + public OperationsClient getOperations() { return this.operations; } @@ -105,7 +105,7 @@ public OperationsClient operations() { * * @return the SkusClient object. */ - public SkusClient skus() { + public SkusClient getSkus() { return this.skus; } @@ -117,7 +117,7 @@ public SkusClient skus() { * * @return the StorageAccountsClient object. */ - public StorageAccountsClient storageAccounts() { + public StorageAccountsClient getStorageAccounts() { return this.storageAccounts; } @@ -129,7 +129,7 @@ public StorageAccountsClient storageAccounts() { * * @return the UsagesClient object. */ - public UsagesClient usages() { + public UsagesClient getUsages() { return this.usages; } @@ -141,7 +141,7 @@ public UsagesClient usages() { * * @return the ManagementPoliciesClient object. */ - public ManagementPoliciesClient managementPolicies() { + public ManagementPoliciesClient getManagementPolicies() { return this.managementPolicies; } @@ -153,7 +153,7 @@ public ManagementPoliciesClient managementPolicies() { * * @return the PrivateEndpointConnectionsClient object. */ - public PrivateEndpointConnectionsClient privateEndpointConnections() { + public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { return this.privateEndpointConnections; } @@ -165,7 +165,7 @@ public PrivateEndpointConnectionsClient privateEndpointConnections() { * * @return the PrivateLinkResourcesClient object. */ - public PrivateLinkResourcesClient privateLinkResources() { + public PrivateLinkResourcesClient getPrivateLinkResources() { return this.privateLinkResources; } @@ -177,7 +177,7 @@ public PrivateLinkResourcesClient privateLinkResources() { * * @return the ObjectReplicationPoliciesOperationsClient object. */ - public ObjectReplicationPoliciesOperationsClient objectReplicationPoliciesOperations() { + public ObjectReplicationPoliciesOperationsClient getObjectReplicationPoliciesOperations() { return this.objectReplicationPoliciesOperations; } @@ -189,7 +189,7 @@ public ObjectReplicationPoliciesOperationsClient objectReplicationPoliciesOperat * * @return the EncryptionScopesClient object. */ - public EncryptionScopesClient encryptionScopes() { + public EncryptionScopesClient getEncryptionScopes() { return this.encryptionScopes; } @@ -201,7 +201,7 @@ public EncryptionScopesClient encryptionScopes() { * * @return the BlobServicesClient object. */ - public BlobServicesClient blobServices() { + public BlobServicesClient getBlobServices() { return this.blobServices; } @@ -213,7 +213,7 @@ public BlobServicesClient blobServices() { * * @return the BlobContainersClient object. */ - public BlobContainersClient blobContainers() { + public BlobContainersClient getBlobContainers() { return this.blobContainers; } @@ -225,7 +225,7 @@ public BlobContainersClient blobContainers() { * * @return the FileServicesClient object. */ - public FileServicesClient fileServices() { + public FileServicesClient getFileServices() { return this.fileServices; } @@ -237,7 +237,7 @@ public FileServicesClient fileServices() { * * @return the FileSharesClient object. */ - public FileSharesClient fileShares() { + public FileSharesClient getFileShares() { return this.fileShares; } @@ -249,7 +249,7 @@ public FileSharesClient fileShares() { * * @return the QueueServicesClient object. */ - public QueueServicesClient queueServices() { + public QueueServicesClient getQueueServices() { return this.queueServices; } @@ -261,7 +261,7 @@ public QueueServicesClient queueServices() { * * @return the QueuesClient object. */ - public QueuesClient queues() { + public QueuesClient getQueues() { return this.queues; } @@ -273,7 +273,7 @@ public QueuesClient queues() { * * @return the TableServicesClient object. */ - public TableServicesClient tableServices() { + public TableServicesClient getTableServices() { return this.tableServices; } @@ -285,7 +285,7 @@ public TableServicesClient tableServices() { * * @return the TablesClient object. */ - public TablesClient tables() { + public TablesClient getTables() { return this.tables; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java index 9d17416799bf..b59640ff92db 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainerImpl.java @@ -58,7 +58,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobContainersClient client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().getBlobContainers(); return client .createAsync(this.resourceGroupName, this.accountName, this.containerName, this.inner().withPublicAccess(cpublicAccess).withMetadata(cmetadata)) @@ -67,7 +67,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobContainersClient client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().getBlobContainers(); return client .updateAsync(this.resourceGroupName, this.accountName, this.containerName, this.inner().withPublicAccess(upublicAccess).withMetadata(umetadata)) @@ -76,7 +76,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - return this.manager().inner().blobContainers().getAsync(resourceGroupName, accountName, containerName); + return this.manager().inner().getBlobContainers().getAsync(resourceGroupName, accountName, containerName); } @Override diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java index 919ccebeb432..87c763df8828 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobContainersImpl.java @@ -21,7 +21,7 @@ public class BlobContainersImpl extends WrapperImpl implem private final StorageManager manager; public BlobContainersImpl(StorageManager manager) { - super(manager.inner().blobContainers()); + super(manager.inner().getBlobContainers()); this.manager = manager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java index e727f41067be..fe0909e28a98 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicePropertiesImpl.java @@ -49,7 +49,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobServicesClient client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().getBlobServices(); return client .setServicePropertiesAsync(this.resourceGroupName, this.accountName, this.inner()) .map(innerToFluentMap(this)); @@ -57,7 +57,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobServicesClient client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().getBlobServices(); return client .setServicePropertiesAsync(this.resourceGroupName, this.accountName, this.inner()) .map(innerToFluentMap(this)); @@ -65,7 +65,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - BlobServicesClient client = this.manager().inner().blobServices(); + BlobServicesClient client = this.manager().inner().getBlobServices(); return client.getServicePropertiesAsync(this.resourceGroupName, this.accountName); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java index 910473fa1a92..4eb151998f6c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/BlobServicesImpl.java @@ -15,7 +15,7 @@ public class BlobServicesImpl extends WrapperImpl implements private final StorageManager manager; public BlobServicesImpl(StorageManager manager) { - super(manager.inner().blobServices()); + super(manager.inner().getBlobServices()); this.manager = manager; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java index c30c02d112ef..a66932fe7205 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ImmutabilityPolicyImpl.java @@ -50,7 +50,7 @@ public StorageManager manager() { @Override public Mono createResourceAsync() { - BlobContainersClient client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().getBlobContainers(); return client .createOrUpdateImmutabilityPolicyAsync( this.resourceGroupName, @@ -64,7 +64,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - BlobContainersClient client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().getBlobContainers(); return client .createOrUpdateImmutabilityPolicyAsync( this.resourceGroupName, @@ -83,7 +83,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - BlobContainersClient client = this.manager().inner().blobContainers(); + BlobContainersClient client = this.manager().inner().getBlobContainers(); return client.getImmutabilityPolicyAsync(this.resourceGroupName, this.accountName, this.containerName, null); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java index 23464f55649c..bba481b1c0a4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/ManagementPoliciesImpl.java @@ -15,7 +15,7 @@ public class ManagementPoliciesImpl extends WrapperImpl createResourceAsync() { - ManagementPoliciesClient client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().getManagementPolicies(); return client .createOrUpdateAsync(this.resourceGroupName, this.accountName, cpolicy) .map( @@ -73,7 +73,7 @@ public Mono createResourceAsync() { @Override public Mono updateResourceAsync() { - ManagementPoliciesClient client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().getManagementPolicies(); return client .createOrUpdateAsync(this.resourceGroupName, this.accountName, upolicy) .map( @@ -86,7 +86,7 @@ public Mono updateResourceAsync() { @Override protected Mono getInnerAsync() { - ManagementPoliciesClient client = this.manager().inner().managementPolicies(); + ManagementPoliciesClient client = this.manager().inner().getManagementPolicies(); return client.getAsync(this.resourceGroupName, this.accountName); } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java index fa02cf0d3158..9e31ed9f381f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountImpl.java @@ -206,7 +206,7 @@ public Mono> getKeysAsync() { return this .manager() .inner() - .storageAccounts() + .getStorageAccounts() .listKeysAsync(this.resourceGroupName(), this.name()) .map(storageAccountListKeysResultInner -> storageAccountListKeysResultInner.keys()); } @@ -221,7 +221,7 @@ public Mono> regenerateKeyAsync(String keyName) { return this .manager() .inner() - .storageAccounts() + .getStorageAccounts() .regenerateKeyAsync(this.resourceGroupName(), this.name(), keyName) .map(storageAccountListKeysResultInner -> storageAccountListKeysResultInner.keys()); } @@ -240,7 +240,7 @@ public Mono refreshAsync() { @Override protected Mono getInnerAsync() { - return this.manager().inner().storageAccounts().getByResourceGroupAsync(this.resourceGroupName(), this.name()); + return this.manager().inner().getStorageAccounts().getByResourceGroupAsync(this.resourceGroupName(), this.name()); } @Override @@ -503,11 +503,11 @@ public Mono createResourceAsync() { this.networkRulesHelper.setDefaultActionIfRequired(); createParameters.withLocation(this.regionName()); createParameters.withTags(this.inner().tags()); - final StorageAccountsClient client = this.manager().inner().storageAccounts(); + final StorageAccountsClient client = this.manager().inner().getStorageAccounts(); return this .manager() .inner() - .storageAccounts() + .getStorageAccounts() .createAsync(this.resourceGroupName(), this.name(), createParameters) .flatMap( storageAccountInner -> @@ -524,7 +524,7 @@ public Mono updateResourceAsync() { return this .manager() .inner() - .storageAccounts() + .getStorageAccounts() .updateAsync(resourceGroupName(), this.name(), updateParameters) .map(innerToFluentMap(this)) .doOnNext(storageAccount -> clearWrapperProperties()); diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java index 10b75296c165..aefd49fa922a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageAccountsImpl.java @@ -21,7 +21,7 @@ public class StorageAccountsImpl implements StorageAccounts { public StorageAccountsImpl(final StorageManager storageManager) { - super(storageManager.inner().storageAccounts(), storageManager); + super(storageManager.inner().getStorageAccounts(), storageManager); } @Override diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java index cd7ad3c0ee95..b92ca53d2f7d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/StorageSkusImpl.java @@ -36,6 +36,6 @@ public PagedFlux listAsync() { @Override public SkusClient inner() { - return manager.inner().skus(); + return manager.inner().getSkus(); } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java index 1f01e0c31c2b..a703e5b40aea 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/implementation/UsagesImpl.java @@ -35,6 +35,6 @@ public PagedFlux listAsync() { @Override public UsagesClient inner() { - return this.manager().inner().usages(); + return this.manager().inner().getUsages(); } } From b3127616113cbed7a997231ea2fd307a049c59c6 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 May 2020 13:56:55 +0800 Subject: [PATCH 10/16] fix checkstyle --- .../com/azure/management/storage/StorageManagementClient.java | 4 ---- .../management/storage/StorageManagementClientBuilder.java | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index 9328290507c7..b7c1f6a38a21 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -7,10 +7,6 @@ import com.azure.core.annotation.ServiceClient; import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; -import com.azure.core.http.policy.RetryPolicy; -import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; import com.azure.core.util.logging.ClientLogger; import com.azure.management.AzureServiceClient; diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java index 847fbc78f564..3c6ae61de8bd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java @@ -105,7 +105,8 @@ public StorageManagementClient buildClient() { .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(); } - StorageManagementClient client = new StorageManagementClient(pipeline, environment, host, apiVersion, subscriptionId); + StorageManagementClient client = new StorageManagementClient(pipeline, environment, + host, apiVersion, subscriptionId); return client; } } From f853fd47c3a4257f10567ced3c570b9f86082fac Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 29 May 2020 10:28:57 +0800 Subject: [PATCH 11/16] update according to review feedback, change would actually be in generator --- .../storage/StorageManagementClient.java | 15 +- .../StorageManagementClientBuilder.java | 14 +- .../storage/fluent/BlobContainersClient.java | 156 +++++++------- .../storage/fluent/BlobServicesClient.java | 36 ++-- .../fluent/EncryptionScopesClient.java | 48 ++--- .../storage/fluent/FileServicesClient.java | 36 ++-- .../storage/fluent/FileSharesClient.java | 72 +++---- .../fluent/ManagementPoliciesClient.java | 36 ++-- ...ctReplicationPoliciesOperationsClient.java | 48 ++--- .../storage/fluent/OperationsClient.java | 12 +- .../PrivateEndpointConnectionsClient.java | 48 ++--- .../fluent/PrivateLinkResourcesClient.java | 12 +- .../storage/fluent/QueueServicesClient.java | 36 ++-- .../storage/fluent/QueuesClient.java | 60 +++--- .../management/storage/fluent/SkusClient.java | 12 +- .../storage/fluent/StorageAccountsClient.java | 204 +++++++++--------- .../storage/fluent/TableServicesClient.java | 36 ++-- .../storage/fluent/TablesClient.java | 60 +++--- .../storage/fluent/UsagesClient.java | 12 +- 19 files changed, 476 insertions(+), 477 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index b7c1f6a38a21..28a7f81f27af 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -5,7 +5,6 @@ package com.azure.management.storage; import com.azure.core.annotation.ServiceClient; -import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.management.AzureEnvironment; import com.azure.core.util.logging.ClientLogger; @@ -29,7 +28,7 @@ import com.azure.management.storage.fluent.UsagesClient; /** Initializes a new instance of the StorageManagementClient type. */ -@ServiceClient(builder = ServiceClientBuilder.class) +@ServiceClient(builder = StorageManagementClientBuilder.class) public final class StorageManagementClient extends AzureServiceClient { private final ClientLogger logger = new ClientLogger(StorageManagementClient.class); @@ -46,15 +45,15 @@ public String getSubscriptionId() { } /** server parameter. */ - private final String host; + private final String endpoint; /** * Gets server parameter. * - * @return the host value. + * @return the endpoint value. */ - public String getHost() { - return this.host; + public String getEndpoint() { + return this.endpoint; } /** Api Version. */ @@ -292,7 +291,7 @@ public TablesClient getTables() { * @param environment The Azure environment. */ StorageManagementClient(HttpPipeline httpPipeline, AzureEnvironment environment, - String host, String apiVersion, String subscriptionId) { + String endpoint, String apiVersion, String subscriptionId) { super(httpPipeline, environment); this.httpPipeline = httpPipeline; this.operations = new OperationsClient(this); @@ -312,7 +311,7 @@ public TablesClient getTables() { this.queues = new QueuesClient(this); this.tableServices = new TableServicesClient(this); this.tables = new TablesClient(this); - this.host = host; + this.endpoint = endpoint; this.apiVersion = apiVersion; this.subscriptionId = subscriptionId; } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java index 3c6ae61de8bd..b2c4874566f1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java @@ -34,16 +34,16 @@ public StorageManagementClientBuilder subscriptionId(String subscriptionId) { /* * server parameter */ - private String host; + private String endpoint; /** * Sets server parameter. * - * @param host the host value. + * @param endpoint the endpoint value. * @return the StorageManagementClientBuilder. */ - public StorageManagementClientBuilder host(String host) { - this.host = host; + public StorageManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; return this; } @@ -90,8 +90,8 @@ public StorageManagementClientBuilder pipeline(HttpPipeline pipeline) { * @return an instance of StorageManagementClient. */ public StorageManagementClient buildClient() { - if (host == null) { - this.host = "https://management.azure.com"; + if (endpoint == null) { + this.endpoint = "https://management.azure.com"; } if (apiVersion == null) { this.apiVersion = "2019-06-01"; @@ -106,7 +106,7 @@ public StorageManagementClient buildClient() { .build(); } StorageManagementClient client = new StorageManagementClient(pipeline, environment, - host, apiVersion, subscriptionId); + endpoint, apiVersion, subscriptionId); return client; } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index 25acf871c28b..82e58bea6d0a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -321,9 +321,9 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -343,7 +343,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -389,9 +389,9 @@ public Mono> listSinglePageAsync( String filter, ListSharesExpand include, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -408,7 +408,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -598,9 +598,9 @@ public PagedIterable list(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -628,7 +628,7 @@ public Mono> createWithResponseAsync( context -> service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -664,9 +664,9 @@ public Mono> createWithResponseAsync( String containerName, BlobContainerInner blobContainer, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -691,7 +691,7 @@ public Mono> createWithResponseAsync( } return service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -839,9 +839,9 @@ public BlobContainerInner create( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -869,7 +869,7 @@ public Mono> updateWithResponseAsync( context -> service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -905,9 +905,9 @@ public Mono> updateWithResponseAsync( String containerName, BlobContainerInner blobContainer, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -932,7 +932,7 @@ public Mono> updateWithResponseAsync( } return service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1078,9 +1078,9 @@ public BlobContainerInner update( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1103,7 +1103,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1132,9 +1132,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1154,7 +1154,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1280,9 +1280,9 @@ public BlobContainerInner get(String resourceGroupName, String accountName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String containerName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1305,7 +1305,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1334,9 +1334,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String containerName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1356,7 +1356,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1467,9 +1467,9 @@ public void delete(String resourceGroupName, String accountName, String containe @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1497,7 +1497,7 @@ public Mono> setLegalHoldWithResponseAsync( context -> service .setLegalHold( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1529,9 +1529,9 @@ public Mono> setLegalHoldWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1556,7 +1556,7 @@ public Mono> setLegalHoldWithResponseAsync( legalHold.withTags(tags); return service .setLegalHold( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1696,9 +1696,9 @@ public LegalHoldInner setLegalHold( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1726,7 +1726,7 @@ public Mono> clearLegalHoldWithResponseAsync( context -> service .clearLegalHold( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1758,9 +1758,9 @@ public Mono> clearLegalHoldWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1785,7 +1785,7 @@ public Mono> clearLegalHoldWithResponseAsync( legalHold.withTags(tags); return service .clearLegalHold( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -1939,9 +1939,9 @@ public LegalHoldInner clearLegalHold( String ifMatch, Integer immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1972,7 +1972,7 @@ public LegalHoldInner clearLegalHold( context -> service .createOrUpdateImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2021,9 +2021,9 @@ public LegalHoldInner clearLegalHold( Integer immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2051,7 +2051,7 @@ public LegalHoldInner clearLegalHold( ImmutabilityPolicyInner parameters = parametersInternal; return service .createOrUpdateImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2276,9 +2276,9 @@ public ImmutabilityPolicyInner createOrUpdateImmutabilityPolicy( @ServiceMethod(returns = ReturnType.SINGLE) public Mono getImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2302,7 +2302,7 @@ public Mono getImmutabilityPolicyWi context -> service .getImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2336,9 +2336,9 @@ public Mono getImmutabilityPolicyWi @ServiceMethod(returns = ReturnType.SINGLE) public Mono getImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2359,7 +2359,7 @@ public Mono getImmutabilityPolicyWi final String immutabilityPolicyName = "default"; return service .getImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2561,9 +2561,9 @@ public ImmutabilityPolicyInner getImmutabilityPolicy( @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2590,7 +2590,7 @@ public Mono deleteImmutabilityPo context -> service .deleteImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2626,9 +2626,9 @@ public Mono deleteImmutabilityPo @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2652,7 +2652,7 @@ public Mono deleteImmutabilityPo final String immutabilityPolicyName = "default"; return service .deleteImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2808,9 +2808,9 @@ public ImmutabilityPolicyInner deleteImmutabilityPolicy( @ServiceMethod(returns = ReturnType.SINGLE) public Mono lockImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2836,7 +2836,7 @@ public Mono lockImmutabilityPolicy context -> service .lockImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -2870,9 +2870,9 @@ public Mono lockImmutabilityPolicy @ServiceMethod(returns = ReturnType.SINGLE) public Mono lockImmutabilityPolicyWithResponseAsync( String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2895,7 +2895,7 @@ public Mono lockImmutabilityPolicy } return service .lockImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -3056,9 +3056,9 @@ public Mono extendImmutabilityPo String ifMatch, Integer immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3091,7 +3091,7 @@ public Mono extendImmutabilityPo context -> service .extendImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -3138,9 +3138,9 @@ public Mono extendImmutabilityPo Integer immutabilityPeriodSinceCreationInDays, Boolean allowProtectedAppendWrites, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3170,7 +3170,7 @@ public Mono extendImmutabilityPo ImmutabilityPolicyInner parameters = parametersInternal; return service .extendImmutabilityPolicy( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -3393,9 +3393,9 @@ public ImmutabilityPolicyInner extendImmutabilityPolicy( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> leaseWithResponseAsync( String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3421,7 +3421,7 @@ public Mono> leaseWithResponseAsync( context -> service .lease( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, @@ -3457,9 +3457,9 @@ public Mono> leaseWithResponseAsync( String containerName, LeaseContainerRequest parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3482,7 +3482,7 @@ public Mono> leaseWithResponseAsync( } return service .lease( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, containerName, diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index 5cb373d06571..f31122d3bb9a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -121,9 +121,9 @@ Mono> getServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,7 +143,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -172,9 +172,9 @@ public Mono> listSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -191,7 +191,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -292,9 +292,9 @@ public PagedIterable list( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -320,7 +320,7 @@ public Mono> setServicePropertiesWith context -> service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -349,9 +349,9 @@ public Mono> setServicePropertiesWith @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -374,7 +374,7 @@ public Mono> setServicePropertiesWith final String blobServicesName = "default"; return service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -499,9 +499,9 @@ public BlobServicePropertiesInner setServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -522,7 +522,7 @@ public Mono> getServicePropertiesWith context -> service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -550,9 +550,9 @@ public Mono> getServicePropertiesWith @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -570,7 +570,7 @@ public Mono> getServicePropertiesWith final String blobServicesName = "default"; return service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index 8c289c05eb58..26b1ff9207cd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -154,9 +154,9 @@ public Mono> putWithResponseAsync( String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -186,7 +186,7 @@ public Mono> putWithResponseAsync( context -> service .put( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -223,9 +223,9 @@ public Mono> putWithResponseAsync( String encryptionScopeName, EncryptionScopeInner encryptionScope, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -252,7 +252,7 @@ public Mono> putWithResponseAsync( } return service .put( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -413,9 +413,9 @@ public Mono> patchWithResponseAsync( String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -445,7 +445,7 @@ public Mono> patchWithResponseAsync( context -> service .patch( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -481,9 +481,9 @@ public Mono> patchWithResponseAsync( String encryptionScopeName, EncryptionScopeInner encryptionScope, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -510,7 +510,7 @@ public Mono> patchWithResponseAsync( } return service .patch( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -662,9 +662,9 @@ public EncryptionScopeInner patch( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -688,7 +688,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -717,9 +717,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -740,7 +740,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -865,9 +865,9 @@ public EncryptionScopeInner get( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -887,7 +887,7 @@ public Mono> listSinglePageAsync(String reso context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -922,9 +922,9 @@ public Mono> listSinglePageAsync(String reso @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -941,7 +941,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index a8567ff6be2e..039e1b0c7838 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -119,9 +119,9 @@ Mono> getServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -141,7 +141,7 @@ public Mono> listWithResponseAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -166,9 +166,9 @@ public Mono> listWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -185,7 +185,7 @@ public Mono> listWithResponseAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -299,9 +299,9 @@ public Mono> setServicePropertiesWith String accountName, CorsRules cors, DeleteRetentionPolicy shareDeleteRetentionPolicy) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -331,7 +331,7 @@ public Mono> setServicePropertiesWith context -> service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -364,9 +364,9 @@ public Mono> setServicePropertiesWith CorsRules cors, DeleteRetentionPolicy shareDeleteRetentionPolicy, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -393,7 +393,7 @@ public Mono> setServicePropertiesWith parameters.withShareDeleteRetentionPolicy(shareDeleteRetentionPolicy); return service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -533,9 +533,9 @@ public FileServicePropertiesInner setServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -556,7 +556,7 @@ public Mono> getServicePropertiesWith context -> service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -583,9 +583,9 @@ public Mono> getServicePropertiesWith @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -603,7 +603,7 @@ public Mono> getServicePropertiesWith final String fileServicesName = "default"; return service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index 982e6ba1a835..05c139080323 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -190,9 +190,9 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand expand) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -212,7 +212,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -257,9 +257,9 @@ public Mono> listSinglePageAsync( String filter, ListSharesExpand expand, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -276,7 +276,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -460,9 +460,9 @@ public PagedIterable list(String resourceGroupName, String a @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -490,7 +490,7 @@ public Mono> createWithResponseAsync( context -> service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -522,9 +522,9 @@ public Mono> createWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -549,7 +549,7 @@ public Mono> createWithResponseAsync( } return service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -689,9 +689,9 @@ public FileShareInner create( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -719,7 +719,7 @@ public Mono> updateWithResponseAsync( context -> service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -751,9 +751,9 @@ public Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -778,7 +778,7 @@ public Mono> updateWithResponseAsync( } return service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -917,9 +917,9 @@ public FileShareInner update( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -942,7 +942,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -973,9 +973,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -995,7 +995,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -1180,9 +1180,9 @@ public FileShareInner get(String resourceGroupName, String accountName, String s @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String shareName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1205,7 +1205,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -1234,9 +1234,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String shareName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1256,7 +1256,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -1371,9 +1371,9 @@ public Mono> restoreWithResponseAsync( String shareName, String deletedShareName, String deletedShareVersion) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1407,7 +1407,7 @@ public Mono> restoreWithResponseAsync( context -> service .restore( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, @@ -1444,9 +1444,9 @@ public Mono> restoreWithResponseAsync( String deletedShareName, String deletedShareVersion, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1477,7 +1477,7 @@ public Mono> restoreWithResponseAsync( deletedShare.withDeletedShareVersion(deletedShareVersion); return service .restore( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, shareName, diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index f954eec91057..1b0a00691d2d 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -121,9 +121,9 @@ Mono> delete( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -144,7 +144,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -170,9 +170,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -190,7 +190,7 @@ public Mono> getWithResponseAsync( final String managementPolicyName = "default"; return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -302,9 +302,9 @@ public ManagementPolicyInner get(String resourceGroupName, String accountName, C @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -330,7 +330,7 @@ public Mono> createOrUpdateWithResponseAsy context -> service .createOrUpdate( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -359,9 +359,9 @@ public Mono> createOrUpdateWithResponseAsy @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -384,7 +384,7 @@ public Mono> createOrUpdateWithResponseAsy properties.withPolicy(policy); return service .createOrUpdate( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -506,9 +506,9 @@ public ManagementPolicyInner createOrUpdate( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -529,7 +529,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -554,9 +554,9 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -574,7 +574,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St final String managementPolicyName = "default"; return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index d742cdd32586..28ec7142e216 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -142,9 +142,9 @@ Mono> delete( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -164,7 +164,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -193,9 +193,9 @@ public Mono> listSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -212,7 +212,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -312,9 +312,9 @@ public PagedIterable list( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -340,7 +340,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -367,9 +367,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -392,7 +392,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -516,9 +516,9 @@ public Mono> createOrUpdateWithResp String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -549,7 +549,7 @@ public Mono> createOrUpdateWithResp context -> service .createOrUpdate( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -583,9 +583,9 @@ public Mono> createOrUpdateWithResp String objectReplicationPolicyId, ObjectReplicationPolicyInner properties, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -613,7 +613,7 @@ public Mono> createOrUpdateWithResp } return service .createOrUpdate( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -757,9 +757,9 @@ public ObjectReplicationPolicyInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -785,7 +785,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -812,9 +812,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -837,7 +837,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index 5d5917097f10..7d2d85a803cd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -74,12 +74,12 @@ Mono> list( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync() { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } return FluxUtil - .withContext(context -> service.list(this.client.getHost(), this.client.getApiVersion(), context)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), context)) .>map( res -> new PagedResponseBase<>( @@ -98,12 +98,12 @@ public Mono> listSinglePageAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } return service - .list(this.client.getHost(), this.client.getApiVersion(), context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), context) .map( res -> new PagedResponseBase<>( diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index 7aa0185d92cb..d155cd76e3d8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -142,9 +142,9 @@ Mono> delete( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -164,7 +164,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -193,9 +193,9 @@ public Mono> listSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -212,7 +212,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -313,9 +313,9 @@ public PagedIterable list( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -341,7 +341,7 @@ public Mono> getWithResponseAsync context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -369,9 +369,9 @@ public Mono> getWithResponseAsync @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -394,7 +394,7 @@ public Mono> getWithResponseAsync } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -525,9 +525,9 @@ public Mono> putWithResponseAsync String privateEndpointConnectionName, PrivateEndpoint privateEndpoint, PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -562,7 +562,7 @@ public Mono> putWithResponseAsync context -> service .put( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -599,9 +599,9 @@ public Mono> putWithResponseAsync PrivateEndpoint privateEndpoint, PrivateLinkServiceConnectionState privateLinkServiceConnectionState, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -633,7 +633,7 @@ public Mono> putWithResponseAsync properties.withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState); return service .put( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -812,9 +812,9 @@ public PrivateEndpointConnectionInner put( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -840,7 +840,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -868,9 +868,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -893,7 +893,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index 29a3d8c170b4..d464b80367e7 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -84,9 +84,9 @@ Mono> listByStorageAccount( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByStorageAccountWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -106,7 +106,7 @@ public Mono> listByStorageAcc context -> service .listByStorageAccount( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -131,9 +131,9 @@ public Mono> listByStorageAcc @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByStorageAccountWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -150,7 +150,7 @@ public Mono> listByStorageAcc } return service .listByStorageAccount( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index 6c20826858d2..54bec01e06a0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -118,9 +118,9 @@ Mono> getServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -140,7 +140,7 @@ public Mono> listWithResponseAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -165,9 +165,9 @@ public Mono> listWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,7 +184,7 @@ public Mono> listWithResponseAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -295,9 +295,9 @@ public ListQueueServicesInner list(String resourceGroupName, String accountName, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -323,7 +323,7 @@ public Mono> setServicePropertiesWit context -> service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -352,9 +352,9 @@ public Mono> setServicePropertiesWit @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -377,7 +377,7 @@ public Mono> setServicePropertiesWit parameters.withCors(cors); return service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -502,9 +502,9 @@ public QueueServicePropertiesInner setServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -525,7 +525,7 @@ public Mono> getServicePropertiesWit context -> service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -553,9 +553,9 @@ public Mono> getServicePropertiesWit @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -573,7 +573,7 @@ public Mono> getServicePropertiesWit final String queueServiceName = "default"; return service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index 3fa25da1dcac..40fb097e76a0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -169,9 +169,9 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -196,7 +196,7 @@ public Mono> createWithResponseAsync( context -> service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -227,9 +227,9 @@ public Mono> createWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -251,7 +251,7 @@ public Mono> createWithResponseAsync( queue.withMetadata(metadata); return service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -386,9 +386,9 @@ public StorageQueueInner create( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -413,7 +413,7 @@ public Mono> updateWithResponseAsync( context -> service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -444,9 +444,9 @@ public Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -468,7 +468,7 @@ public Mono> updateWithResponseAsync( queue.withMetadata(metadata); return service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -602,9 +602,9 @@ public StorageQueueInner update( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -627,7 +627,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -656,9 +656,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -678,7 +678,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -804,9 +804,9 @@ public StorageQueueInner get(String resourceGroupName, String accountName, Strin @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String queueName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -829,7 +829,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -858,9 +858,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String queueName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -880,7 +880,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -989,9 +989,9 @@ public void delete(String resourceGroupName, String accountName, String queueNam @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1011,7 +1011,7 @@ public Mono> listSinglePageAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1050,9 +1050,9 @@ public Mono> listSinglePageAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1069,7 +1069,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index 6b3aac6ec8c2..2d26521b77ca 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -77,9 +77,9 @@ Mono> list( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync() { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -92,7 +92,7 @@ public Mono> listSinglePageAsync() { context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), context)) @@ -114,9 +114,9 @@ public Mono> listSinglePageAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -125,7 +125,7 @@ public Mono> listSinglePageAsync(Context cont "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } return service - .list(this.client.getHost(), this.client.getApiVersion(), this.client.getSubscriptionId(), context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), context) .map( res -> new PagedResponseBase<>( diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index 96f68d435510..e9bb57d2926e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -351,9 +351,9 @@ Mono> listNext( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> checkNameAvailabilityWithResponseAsync(String name) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -371,7 +371,7 @@ public Mono> checkNameAvailabil context -> service .checkNameAvailability( - this.client.getHost(), + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accountName, @@ -392,9 +392,9 @@ public Mono> checkNameAvailabil @ServiceMethod(returns = ReturnType.SINGLE) public Mono> checkNameAvailabilityWithResponseAsync( String name, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -409,7 +409,7 @@ public Mono> checkNameAvailabil accountName.withName(name); return service .checkNameAvailability( - this.client.getHost(), + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accountName, @@ -509,9 +509,9 @@ public CheckNameAvailabilityResultInner checkNameAvailability(String name, Conte @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -536,7 +536,7 @@ public Mono>> createWithResponseAsync( context -> service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -566,9 +566,9 @@ public Mono>> createWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -590,7 +590,7 @@ public Mono>> createWithResponseAsync( } return service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -772,9 +772,9 @@ public StorageAccountInner create( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -794,7 +794,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -818,9 +818,9 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -837,7 +837,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -932,9 +932,9 @@ public void delete(String resourceGroupName, String accountName, Context context @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getByResourceGroupWithResponseAsync( String resourceGroupName, String accountName, StorageAccountExpand expand) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -954,7 +954,7 @@ public Mono> getByResourceGroupWithResponseA context -> service .getByResourceGroup( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -983,9 +983,9 @@ public Mono> getByResourceGroupWithResponseA @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getByResourceGroupWithResponseAsync( String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1002,7 +1002,7 @@ public Mono> getByResourceGroupWithResponseA } return service .getByResourceGroup( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1182,9 +1182,9 @@ public StorageAccountInner getByResourceGroup(String resourceGroupName, String a @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1209,7 +1209,7 @@ public Mono> updateWithResponseAsync( context -> service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1241,9 +1241,9 @@ public Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1265,7 +1265,7 @@ public Mono> updateWithResponseAsync( } return service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1398,9 +1398,9 @@ public StorageAccountInner update( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync() { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -1413,7 +1413,7 @@ public Mono> listSinglePageAsync() { context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), context)) @@ -1441,9 +1441,9 @@ public Mono> listSinglePageAsync() { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -1452,7 +1452,7 @@ public Mono> listSinglePageAsync(Context cont "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } return service - .list(this.client.getHost(), this.client.getApiVersion(), this.client.getSubscriptionId(), context) + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), context) .map( res -> new PagedResponseBase<>( @@ -1533,9 +1533,9 @@ public PagedIterable list(Context context) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1552,7 +1552,7 @@ public Mono> listByResourceGroupSinglePageAsy context -> service .listByResourceGroup( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), @@ -1579,9 +1579,9 @@ public Mono> listByResourceGroupSinglePageAsy @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByResourceGroupSinglePageAsync( String resourceGroupName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1595,7 +1595,7 @@ public Mono> listByResourceGroupSinglePageAsy } return service .listByResourceGroup( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, this.client.getApiVersion(), this.client.getSubscriptionId(), @@ -1688,9 +1688,9 @@ public PagedIterable listByResourceGroup(String resourceGro @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listKeysWithResponseAsync( String resourceGroupName, String accountName, ListKeyExpand expand) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1710,7 +1710,7 @@ public Mono> listKeysWithRespo context -> service .listKeys( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1737,9 +1737,9 @@ public Mono> listKeysWithRespo @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listKeysWithResponseAsync( String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1756,7 +1756,7 @@ public Mono> listKeysWithRespo } return service .listKeys( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1922,9 +1922,9 @@ public StorageAccountListKeysResultInner listKeys(String resourceGroupName, Stri @ServiceMethod(returns = ReturnType.SINGLE) public Mono> regenerateKeyWithResponseAsync( String resourceGroupName, String accountName, String keyName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1949,7 +1949,7 @@ public Mono> regenerateKeyWith context -> service .regenerateKey( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -1977,9 +1977,9 @@ public Mono> regenerateKeyWith @ServiceMethod(returns = ReturnType.SINGLE) public Mono> regenerateKeyWithResponseAsync( String resourceGroupName, String accountName, String keyName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2001,7 +2001,7 @@ public Mono> regenerateKeyWith regenerateKey.withKeyName(keyName); return service .regenerateKey( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2124,9 +2124,9 @@ public StorageAccountListKeysResultInner regenerateKey( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listAccountSasWithResponseAsync( String resourceGroupName, String accountName, AccountSasParameters parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2151,7 +2151,7 @@ public Mono> listAccountSasWithRespo context -> service .listAccountSas( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2178,9 +2178,9 @@ public Mono> listAccountSasWithRespo @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listAccountSasWithResponseAsync( String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2202,7 +2202,7 @@ public Mono> listAccountSasWithRespo } return service .listAccountSas( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2321,9 +2321,9 @@ public ListAccountSasResponseInner listAccountSas( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listServiceSasWithResponseAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2348,7 +2348,7 @@ public Mono> listServiceSasWithRespo context -> service .listServiceSas( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2375,9 +2375,9 @@ public Mono> listServiceSasWithRespo @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listServiceSasWithResponseAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2399,7 +2399,7 @@ public Mono> listServiceSasWithRespo } return service .listServiceSas( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2519,9 +2519,9 @@ public ListServiceSasResponseInner listServiceSas( @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> failoverWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2541,7 +2541,7 @@ public Mono>> failoverWithResponseAsync( context -> service .failover( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2568,9 +2568,9 @@ public Mono>> failoverWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> failoverWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2587,7 +2587,7 @@ public Mono>> failoverWithResponseAsync( } return service .failover( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2742,9 +2742,9 @@ public void failover(String resourceGroupName, String accountName, Context conte @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> restoreBlobRangesWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2775,7 +2775,7 @@ public Mono>> restoreBlobRangesWithResponseAsync context -> service .restoreBlobRanges( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -2807,9 +2807,9 @@ public Mono>> restoreBlobRangesWithResponseAsync OffsetDateTime timeToRestore, List blobRanges, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2837,7 +2837,7 @@ public Mono>> restoreBlobRangesWithResponseAsync parameters.withBlobRanges(blobRanges); return service .restoreBlobRanges( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3020,9 +3020,9 @@ public BlobRestoreStatusInner restoreBlobRanges( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> revokeUserDelegationKeysWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3042,7 +3042,7 @@ public Mono> revokeUserDelegationKeysWithResponseAsync( context -> service .revokeUserDelegationKeys( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3067,9 +3067,9 @@ public Mono> revokeUserDelegationKeysWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> revokeUserDelegationKeysWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3086,7 +3086,7 @@ public Mono> revokeUserDelegationKeysWithResponseAsync( } return service .revokeUserDelegationKeys( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3183,9 +3183,9 @@ public void revokeUserDelegationKeys(String resourceGroupName, String accountNam @ServiceMethod(returns = ReturnType.SINGLE) public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3210,7 +3210,7 @@ public Mono> beginCreateWithoutPollingWithRe context -> service .beginCreateWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3240,9 +3240,9 @@ public Mono> beginCreateWithoutPollingWithRe @ServiceMethod(returns = ReturnType.SINGLE) public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3264,7 +3264,7 @@ public Mono> beginCreateWithoutPollingWithRe } return service .beginCreateWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3396,9 +3396,9 @@ public StorageAccountInner beginCreateWithoutPolling( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> beginFailoverWithoutPollingWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3418,7 +3418,7 @@ public Mono> beginFailoverWithoutPollingWithResponseAsync( context -> service .beginFailoverWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3445,9 +3445,9 @@ public Mono> beginFailoverWithoutPollingWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> beginFailoverWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3464,7 +3464,7 @@ public Mono> beginFailoverWithoutPollingWithResponseAsync( } return service .beginFailoverWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3567,9 +3567,9 @@ public void beginFailoverWithoutPolling(String resourceGroupName, String account @ServiceMethod(returns = ReturnType.SINGLE) public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3600,7 +3600,7 @@ public Mono> beginRestoreBlobRangesWithou context -> service .beginRestoreBlobRangesWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -3632,9 +3632,9 @@ public Mono> beginRestoreBlobRangesWithou OffsetDateTime timeToRestore, List blobRanges, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3662,7 +3662,7 @@ public Mono> beginRestoreBlobRangesWithou parameters.withBlobRanges(blobRanges); return service .beginRestoreBlobRangesWithoutPolling( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index bce916084399..46ba65700d82 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -118,9 +118,9 @@ Mono> getServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -140,7 +140,7 @@ public Mono> listWithResponseAsync( context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -165,9 +165,9 @@ public Mono> listWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,7 +184,7 @@ public Mono> listWithResponseAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -295,9 +295,9 @@ public ListTableServicesInner list(String resourceGroupName, String accountName, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -323,7 +323,7 @@ public Mono> setServicePropertiesWit context -> service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -352,9 +352,9 @@ public Mono> setServicePropertiesWit @ServiceMethod(returns = ReturnType.SINGLE) public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -377,7 +377,7 @@ public Mono> setServicePropertiesWit parameters.withCors(cors); return service .setServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -502,9 +502,9 @@ public TableServicePropertiesInner setServiceProperties( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -525,7 +525,7 @@ public Mono> getServicePropertiesWit context -> service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -553,9 +553,9 @@ public Mono> getServicePropertiesWit @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -573,7 +573,7 @@ public Mono> getServicePropertiesWit final String tableServiceName = "default"; return service .getServiceProperties( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index a766c35694d3..5dc70c133fdb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -160,9 +160,9 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -185,7 +185,7 @@ public Mono> createWithResponseAsync( context -> service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -213,9 +213,9 @@ public Mono> createWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -235,7 +235,7 @@ public Mono> createWithResponseAsync( } return service .create( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -356,9 +356,9 @@ public TableInner create(String resourceGroupName, String accountName, String ta @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -381,7 +381,7 @@ public Mono> updateWithResponseAsync( context -> service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -409,9 +409,9 @@ public Mono> updateWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -431,7 +431,7 @@ public Mono> updateWithResponseAsync( } return service .update( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -552,9 +552,9 @@ public TableInner update(String resourceGroupName, String accountName, String ta @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -577,7 +577,7 @@ public Mono> getWithResponseAsync( context -> service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -605,9 +605,9 @@ public Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -627,7 +627,7 @@ public Mono> getWithResponseAsync( } return service .get( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -747,9 +747,9 @@ public TableInner get(String resourceGroupName, String accountName, String table @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String tableName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -772,7 +772,7 @@ public Mono> deleteWithResponseAsync( context -> service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -800,9 +800,9 @@ public Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -822,7 +822,7 @@ public Mono> deleteWithResponseAsync( } return service .delete( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -923,9 +923,9 @@ public void delete(String resourceGroupName, String accountName, String tableNam */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -945,7 +945,7 @@ public Mono> listSinglePageAsync(String resourceGroupN context -> service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), @@ -979,9 +979,9 @@ public Mono> listSinglePageAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -998,7 +998,7 @@ public Mono> listSinglePageAsync( } return service .list( - this.client.getHost(), + this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index a2c946930211..b86e2640d7f4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -80,9 +80,9 @@ Mono> listByLocation( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByLocationSinglePageAsync(String location) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -98,7 +98,7 @@ public Mono> listByLocationSinglePageAsync(String loca context -> service .listByLocation( - this.client.getHost(), + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, @@ -122,9 +122,9 @@ public Mono> listByLocationSinglePageAsync(String loca */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listByLocationSinglePageAsync(String location, Context context) { - if (this.client.getHost() == null) { + if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getHost() is required and cannot be null.")); + .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -137,7 +137,7 @@ public Mono> listByLocationSinglePageAsync(String loca } return service .listByLocation( - this.client.getHost(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, context) + this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, context) .map( res -> new PagedResponseBase<>( From 7b254e53ff98063f89d87bf62c99257a5ab01b9b Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 29 May 2020 10:38:47 +0800 Subject: [PATCH 12/16] fix --- .../main/java/com/azure/management/storage/StorageManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java index 31d4bbebd444..a0b8843e3467 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManager.java @@ -102,7 +102,7 @@ private StorageManager(HttpPipeline httpPipeline, AzureProfile profile, SdkConte profile, new StorageManagementClientBuilder() .pipeline(httpPipeline) - .host(profile.environment().getResourceManagerEndpoint()) + .endpoint(profile.environment().getResourceManagerEndpoint()) .subscriptionId(profile.subscriptionId()) .buildClient(), sdkContext); From 8167b7559341107ec6161778d09bdbb6095bf435 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 29 May 2020 10:59:06 +0800 Subject: [PATCH 13/16] fix checkstyle --- .../storage/fluent/BlobContainersClient.java | 104 ++++++++++---- .../storage/fluent/BlobServicesClient.java | 24 +++- .../fluent/EncryptionScopesClient.java | 32 +++-- .../storage/fluent/FileServicesClient.java | 24 +++- .../storage/fluent/FileSharesClient.java | 48 +++++-- .../fluent/ManagementPoliciesClient.java | 24 +++- ...ctReplicationPoliciesOperationsClient.java | 32 +++-- .../storage/fluent/OperationsClient.java | 8 +- .../PrivateEndpointConnectionsClient.java | 32 +++-- .../fluent/PrivateLinkResourcesClient.java | 8 +- .../storage/fluent/QueueServicesClient.java | 24 +++- .../storage/fluent/QueuesClient.java | 40 ++++-- .../management/storage/fluent/SkusClient.java | 8 +- .../storage/fluent/StorageAccountsClient.java | 136 +++++++++++++----- .../storage/fluent/TableServicesClient.java | 24 +++- .../storage/fluent/TablesClient.java | 40 ++++-- .../storage/fluent/UsagesClient.java | 14 +- 17 files changed, 467 insertions(+), 155 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index 82e58bea6d0a..e0eee03b9def 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -323,7 +323,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand include) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -391,7 +393,9 @@ public Mono> listSinglePageAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -600,7 +604,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -666,7 +672,9 @@ public Mono> createWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -841,7 +849,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -907,7 +917,9 @@ public Mono> updateWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1080,7 +1092,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1134,7 +1148,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1282,7 +1298,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String containerName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1336,7 +1354,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String containerName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1469,7 +1489,9 @@ public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1531,7 +1553,9 @@ public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1698,7 +1722,9 @@ public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1760,7 +1786,9 @@ public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1941,7 +1969,9 @@ public LegalHoldInner clearLegalHold( Boolean allowProtectedAppendWrites) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2023,7 +2053,9 @@ public LegalHoldInner clearLegalHold( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2278,7 +2310,9 @@ public Mono getImmutabilityPolicyWi String resourceGroupName, String accountName, String containerName, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2338,7 +2372,9 @@ public Mono getImmutabilityPolicyWi String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2563,7 +2599,9 @@ public Mono deleteImmutabilityPo String resourceGroupName, String accountName, String containerName, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2628,7 +2666,9 @@ public Mono deleteImmutabilityPo String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2810,7 +2850,9 @@ public Mono lockImmutabilityPolicy String resourceGroupName, String accountName, String containerName, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2872,7 +2914,9 @@ public Mono lockImmutabilityPolicy String resourceGroupName, String accountName, String containerName, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3058,7 +3102,9 @@ public Mono extendImmutabilityPo Boolean allowProtectedAppendWrites) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3140,7 +3186,9 @@ public Mono extendImmutabilityPo Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3395,7 +3443,9 @@ public Mono> leaseWithResponseAsync( String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3459,7 +3509,9 @@ public Mono> leaseWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index f31122d3bb9a..a4e89201cd99 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -123,7 +123,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -174,7 +176,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -294,7 +298,9 @@ public Mono> setServicePropertiesWith String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -351,7 +357,9 @@ public Mono> setServicePropertiesWith String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -501,7 +509,9 @@ public Mono> getServicePropertiesWith String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -552,7 +562,9 @@ public Mono> getServicePropertiesWith String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index 26b1ff9207cd..4cb5de0b88e6 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -156,7 +156,9 @@ public Mono> putWithResponseAsync( EncryptionScopeInner encryptionScope) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -225,7 +227,9 @@ public Mono> putWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -415,7 +419,9 @@ public Mono> patchWithResponseAsync( EncryptionScopeInner encryptionScope) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -483,7 +489,9 @@ public Mono> patchWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -664,7 +672,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -719,7 +729,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -867,7 +879,9 @@ public EncryptionScopeInner get( public Mono> listSinglePageAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -924,7 +938,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index 039e1b0c7838..1c4eb6263075 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -121,7 +121,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -168,7 +170,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -301,7 +305,9 @@ public Mono> setServicePropertiesWith DeleteRetentionPolicy shareDeleteRetentionPolicy) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -366,7 +372,9 @@ public Mono> setServicePropertiesWith Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -535,7 +543,9 @@ public Mono> getServicePropertiesWith String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -585,7 +595,9 @@ public Mono> getServicePropertiesWith String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index 05c139080323..f65ce1182e97 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -192,7 +192,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, ListSharesExpand expand) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -259,7 +261,9 @@ public Mono> listSinglePageAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -462,7 +466,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -524,7 +530,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -691,7 +699,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -753,7 +763,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -919,7 +931,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -975,7 +989,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1182,7 +1198,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String shareName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1236,7 +1254,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String shareName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1373,7 +1393,9 @@ public Mono> restoreWithResponseAsync( String deletedShareVersion) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1446,7 +1468,9 @@ public Mono> restoreWithResponseAsync( Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index 1b0a00691d2d..50318d901717 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -123,7 +123,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -172,7 +174,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -304,7 +308,9 @@ public Mono> createOrUpdateWithResponseAsy String resourceGroupName, String accountName, ManagementPolicySchema policy) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -361,7 +367,9 @@ public Mono> createOrUpdateWithResponseAsy String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -508,7 +516,9 @@ public ManagementPolicyInner createOrUpdate( public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -556,7 +566,9 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index 28ec7142e216..4ee981b5c0c2 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -144,7 +144,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -195,7 +197,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -314,7 +318,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -369,7 +375,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -518,7 +526,9 @@ public Mono> createOrUpdateWithResp ObjectReplicationPolicyInner properties) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -585,7 +595,9 @@ public Mono> createOrUpdateWithResp Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -759,7 +771,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -814,7 +828,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index 7d2d85a803cd..a1ce1f8a6d63 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -76,7 +76,9 @@ Mono> list( public Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), context)) @@ -100,7 +102,9 @@ public Mono> listSinglePageAsync() { public Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } return service .list(this.client.getEndpoint(), this.client.getApiVersion(), context) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index d155cd76e3d8..86cb8f0a30b9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -144,7 +144,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -195,7 +197,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -315,7 +319,9 @@ public Mono> getWithResponseAsync String resourceGroupName, String accountName, String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -371,7 +377,9 @@ public Mono> getWithResponseAsync String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -527,7 +535,9 @@ public Mono> putWithResponseAsync PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -601,7 +611,9 @@ public Mono> putWithResponseAsync Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -814,7 +826,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -870,7 +884,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index d464b80367e7..44747c727da4 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -86,7 +86,9 @@ public Mono> listByStorageAcc String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -133,7 +135,9 @@ public Mono> listByStorageAcc String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index 54bec01e06a0..d772260d294f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -120,7 +120,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -167,7 +169,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -297,7 +301,9 @@ public Mono> setServicePropertiesWit String resourceGroupName, String accountName, CorsRules cors) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -354,7 +360,9 @@ public Mono> setServicePropertiesWit String resourceGroupName, String accountName, CorsRules cors, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -504,7 +512,9 @@ public Mono> getServicePropertiesWit String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -555,7 +565,9 @@ public Mono> getServicePropertiesWit String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index 40fb097e76a0..7969a7cb4d8a 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -171,7 +171,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -229,7 +231,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -388,7 +392,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -446,7 +452,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -604,7 +612,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -658,7 +668,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -806,7 +818,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String queueName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -860,7 +874,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String queueName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -991,7 +1007,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1052,7 +1070,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, String maxpagesize, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index 2d26521b77ca..548f0e7b480f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -79,7 +79,9 @@ Mono> list( public Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -116,7 +118,9 @@ public Mono> listSinglePageAsync() { public Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index e9bb57d2926e..617e0e47a4b1 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -353,7 +353,9 @@ Mono> listNext( public Mono> checkNameAvailabilityWithResponseAsync(String name) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -394,7 +396,9 @@ public Mono> checkNameAvailabil String name, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -511,7 +515,9 @@ public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -568,7 +574,9 @@ public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -774,7 +782,9 @@ public StorageAccountInner create( public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -820,7 +830,9 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St public Mono> deleteWithResponseAsync(String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -934,7 +946,9 @@ public Mono> getByResourceGroupWithResponseA String resourceGroupName, String accountName, StorageAccountExpand expand) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -985,7 +999,9 @@ public Mono> getByResourceGroupWithResponseA String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1184,7 +1200,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1243,7 +1261,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1400,7 +1420,9 @@ public StorageAccountInner update( public Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -1443,7 +1465,9 @@ public Mono> listSinglePageAsync() { public Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -1535,7 +1559,9 @@ public PagedIterable list(Context context) { public Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1581,7 +1607,9 @@ public Mono> listByResourceGroupSinglePageAsy String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1690,7 +1718,9 @@ public Mono> listKeysWithRespo String resourceGroupName, String accountName, ListKeyExpand expand) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1739,7 +1769,9 @@ public Mono> listKeysWithRespo String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1924,7 +1956,9 @@ public Mono> regenerateKeyWith String resourceGroupName, String accountName, String keyName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1979,7 +2013,9 @@ public Mono> regenerateKeyWith String resourceGroupName, String accountName, String keyName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2126,7 +2162,9 @@ public Mono> listAccountSasWithRespo String resourceGroupName, String accountName, AccountSasParameters parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2180,7 +2218,9 @@ public Mono> listAccountSasWithRespo String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2323,7 +2363,9 @@ public Mono> listServiceSasWithRespo String resourceGroupName, String accountName, ServiceSasParameters parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2377,7 +2419,9 @@ public Mono> listServiceSasWithRespo String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2521,7 +2565,9 @@ public Mono>> failoverWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2570,7 +2616,9 @@ public Mono>> failoverWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2744,7 +2792,9 @@ public Mono>> restoreBlobRangesWithResponseAsync String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2809,7 +2859,9 @@ public Mono>> restoreBlobRangesWithResponseAsync Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3022,7 +3074,9 @@ public Mono> revokeUserDelegationKeysWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3069,7 +3123,9 @@ public Mono> revokeUserDelegationKeysWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3185,7 +3241,9 @@ public Mono> beginCreateWithoutPollingWithRe String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3242,7 +3300,9 @@ public Mono> beginCreateWithoutPollingWithRe String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3398,7 +3458,9 @@ public Mono> beginFailoverWithoutPollingWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3447,7 +3509,9 @@ public Mono> beginFailoverWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3569,7 +3633,9 @@ public Mono> beginRestoreBlobRangesWithou String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3634,7 +3700,9 @@ public Mono> beginRestoreBlobRangesWithou Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index 46ba65700d82..4e8171fc4993 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -120,7 +120,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -167,7 +169,9 @@ public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -297,7 +301,9 @@ public Mono> setServicePropertiesWit String resourceGroupName, String accountName, CorsRules cors) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -354,7 +360,9 @@ public Mono> setServicePropertiesWit String resourceGroupName, String accountName, CorsRules cors, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -504,7 +512,9 @@ public Mono> getServicePropertiesWit String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -555,7 +565,9 @@ public Mono> getServicePropertiesWit String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index 5dc70c133fdb..c80cec94cca0 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -162,7 +162,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -215,7 +217,9 @@ public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -358,7 +362,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -411,7 +417,9 @@ public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -554,7 +562,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -607,7 +617,9 @@ public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -749,7 +761,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -802,7 +816,9 @@ public Mono> deleteWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -925,7 +941,9 @@ public void delete(String resourceGroupName, String accountName, String tableNam public Mono> listSinglePageAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -981,7 +999,9 @@ public Mono> listSinglePageAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index b86e2640d7f4..ca8f7bd6b4fb 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -82,7 +82,9 @@ Mono> listByLocation( public Mono> listByLocationSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -124,7 +126,9 @@ public Mono> listByLocationSinglePageAsync(String loca public Mono> listByLocationSinglePageAsync(String location, Context context) { if (this.client.getEndpoint() == null) { return Mono - .error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { return Mono @@ -137,7 +141,11 @@ public Mono> listByLocationSinglePageAsync(String loca } return service .listByLocation( - this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, context) + this.client.getEndpoint(), + this.client.getApiVersion(), + this.client.getSubscriptionId(), + location, + context) .map( res -> new PagedResponseBase<>( From d0f343bdd4a1cba6af528522dab993b69b0c5af8 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Fri, 29 May 2020 11:00:46 +0800 Subject: [PATCH 14/16] update spotbugs exclude due to package rename --- .../src/main/resources/spotbugs/spotbugs-exclude.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml index 5fe3655c633a..0ef472e79ff8 100755 --- a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml +++ b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml @@ -1984,6 +1984,10 @@ + + + + From c1c5359b0e2437dbb751948e26ce27e08aee00f7 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 3 Jun 2020 14:15:55 +0800 Subject: [PATCH 15/16] regen with new generator --- .../storage/StorageManagementClient.java | 32 ++- .../StorageManagementClientBuilder.java | 11 +- .../storage/fluent/BlobContainersClient.java | 93 +++++---- .../storage/fluent/BlobServicesClient.java | 30 +-- .../fluent/EncryptionScopesClient.java | 44 ++--- .../storage/fluent/FileServicesClient.java | 39 ++-- .../storage/fluent/FileSharesClient.java | 49 +++-- .../fluent/ManagementPoliciesClient.java | 28 ++- ...ctReplicationPoliciesOperationsClient.java | 31 ++- .../storage/fluent/OperationsClient.java | 6 +- .../PrivateEndpointConnectionsClient.java | 31 ++- .../fluent/PrivateLinkResourcesClient.java | 14 +- .../storage/fluent/QueueServicesClient.java | 39 ++-- .../storage/fluent/QueuesClient.java | 45 +++-- .../management/storage/fluent/SkusClient.java | 6 +- .../storage/fluent/StorageAccountsClient.java | 182 +++++++++--------- .../storage/fluent/TableServicesClient.java | 39 ++-- .../storage/fluent/TablesClient.java | 45 +++-- .../storage/fluent/UsagesClient.java | 6 +- .../management/storage/models/Encryption.java | 29 +++ 20 files changed, 412 insertions(+), 387 deletions(-) diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java index 28a7f81f27af..deea31dd108f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClient.java @@ -6,6 +6,10 @@ import com.azure.core.annotation.ServiceClient; import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; import com.azure.core.util.logging.ClientLogger; import com.azure.management.AzureServiceClient; @@ -284,16 +288,37 @@ public TablesClient getTables() { return this.tables; } + /** Initializes an instance of StorageManagementClient client. */ + StorageManagementClient(String subscriptionId, String endpoint) { + this( + new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(), + AzureEnvironment.AZURE, + subscriptionId, + endpoint); + } + + /** + * Initializes an instance of StorageManagementClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + */ + StorageManagementClient(HttpPipeline httpPipeline, String subscriptionId, String endpoint) { + this(httpPipeline, AzureEnvironment.AZURE, subscriptionId, endpoint); + } + /** * Initializes an instance of StorageManagementClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param environment The Azure environment. */ - StorageManagementClient(HttpPipeline httpPipeline, AzureEnvironment environment, - String endpoint, String apiVersion, String subscriptionId) { + StorageManagementClient( + HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) { super(httpPipeline, environment); this.httpPipeline = httpPipeline; + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = "2019-06-01"; this.operations = new OperationsClient(this); this.skus = new SkusClient(this); this.storageAccounts = new StorageAccountsClient(this); @@ -311,8 +336,5 @@ public TablesClient getTables() { this.queues = new QueuesClient(this); this.tableServices = new TableServicesClient(this); this.tables = new TablesClient(this); - this.endpoint = endpoint; - this.apiVersion = apiVersion; - this.subscriptionId = subscriptionId; } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java index b2c4874566f1..598b1c0ae314 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/StorageManagementClientBuilder.java @@ -47,11 +47,6 @@ public StorageManagementClientBuilder endpoint(String endpoint) { return this; } - /* - * Api Version - */ - private String apiVersion; - /* * The environment to connect to */ @@ -93,9 +88,6 @@ public StorageManagementClient buildClient() { if (endpoint == null) { this.endpoint = "https://management.azure.com"; } - if (apiVersion == null) { - this.apiVersion = "2019-06-01"; - } if (environment == null) { this.environment = AzureEnvironment.AZURE; } @@ -105,8 +97,7 @@ public StorageManagementClient buildClient() { .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(); } - StorageManagementClient client = new StorageManagementClient(pipeline, environment, - endpoint, apiVersion, subscriptionId); + StorageManagementClient client = new StorageManagementClient(pipeline, environment, subscriptionId, endpoint); return client; } } diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java index e0eee03b9def..20db21a12914 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobContainersClient.java @@ -27,7 +27,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -83,8 +82,8 @@ private interface BlobContainersService { + "/storageAccounts/{accountName}/blobServices/default/containers") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -100,8 +99,8 @@ Mono> list( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String host, + Mono> create( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -116,8 +115,8 @@ Mono> create( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String host, + Mono> update( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -132,8 +131,8 @@ Mono> update( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -148,7 +147,7 @@ Mono> get( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -162,8 +161,8 @@ Mono> delete( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> setLegalHold( - @HostParam("$host") String host, + Mono> setLegalHold( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -178,8 +177,8 @@ Mono> setLegalHold( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> clearLegalHold( - @HostParam("$host") String host, + Mono> clearLegalHold( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -196,7 +195,7 @@ Mono> clearLegalHold( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono createOrUpdateImmutabilityPolicy( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -215,7 +214,7 @@ Mono createOrUpdateImmut @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono getImmutabilityPolicy( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -233,7 +232,7 @@ Mono getImmutabilityPolicy( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono deleteImmutabilityPolicy( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -251,7 +250,7 @@ Mono deleteImmutabilityPolicy( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono lockImmutabilityPolicy( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -268,7 +267,7 @@ Mono lockImmutabilityPolicy( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono extendImmutabilityPolicy( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -284,8 +283,8 @@ Mono extendImmutabilityPolicy( + "/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> lease( - @HostParam("$host") String host, + Mono> lease( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("containerName") String containerName, @@ -298,7 +297,7 @@ Mono> lease( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -600,7 +599,7 @@ public PagedIterable list(String resourceGroupName, Stri * @return properties of the blob container, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { if (this.client.getEndpoint() == null) { return Mono @@ -664,7 +663,7 @@ public Mono> createWithResponseAsync( * @return properties of the blob container, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String containerName, @@ -731,7 +730,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { return createWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -767,7 +766,7 @@ public Mono createAsync( Context context) { return createWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -845,7 +844,7 @@ public BlobContainerInner create( * @return properties of the blob container, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { if (this.client.getEndpoint() == null) { return Mono @@ -909,7 +908,7 @@ public Mono> updateWithResponseAsync( * @return properties of the blob container, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String containerName, @@ -976,7 +975,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String containerName, BlobContainerInner blobContainer) { return updateWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1012,7 +1011,7 @@ public Mono updateAsync( Context context) { return updateWithResponseAsync(resourceGroupName, accountName, containerName, blobContainer, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1088,7 +1087,7 @@ public BlobContainerInner update( * @return properties of a specified container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName) { if (this.client.getEndpoint() == null) { return Mono @@ -1144,7 +1143,7 @@ public Mono> getWithResponseAsync( * @return properties of a specified container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String containerName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1198,7 +1197,7 @@ public Mono> getWithResponseAsync( public Mono getAsync(String resourceGroupName, String accountName, String containerName) { return getWithResponseAsync(resourceGroupName, accountName, containerName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1228,7 +1227,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String containerName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, containerName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1485,7 +1484,7 @@ public void delete(String resourceGroupName, String accountName, String containe * @return the LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setLegalHoldWithResponseAsync( + public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { if (this.client.getEndpoint() == null) { return Mono @@ -1549,7 +1548,7 @@ public Mono> setLegalHoldWithResponseAsync( * @return the LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setLegalHoldWithResponseAsync( + public Mono> setLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1612,7 +1611,7 @@ public Mono setLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags) { return setLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1644,7 +1643,7 @@ public Mono setLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { return setLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1718,7 +1717,7 @@ public LegalHoldInner setLegalHold( * @return the LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> clearLegalHoldWithResponseAsync( + public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags) { if (this.client.getEndpoint() == null) { return Mono @@ -1782,7 +1781,7 @@ public Mono> clearLegalHoldWithResponseAsync( * @return the LegalHold property of a blob container. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> clearLegalHoldWithResponseAsync( + public Mono> clearLegalHoldWithResponseAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1845,7 +1844,7 @@ public Mono clearLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags) { return clearLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1877,7 +1876,7 @@ public Mono clearLegalHoldAsync( String resourceGroupName, String accountName, String containerName, List tags, Context context) { return clearLegalHoldWithResponseAsync(resourceGroupName, accountName, containerName, tags, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3439,7 +3438,7 @@ public ImmutabilityPolicyInner extendImmutabilityPolicy( * @return lease Container response schema. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> leaseWithResponseAsync( + public Mono> leaseWithResponseAsync( String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -3501,7 +3500,7 @@ public Mono> leaseWithResponseAsync( * @return lease Container response schema. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> leaseWithResponseAsync( + public Mono> leaseWithResponseAsync( String resourceGroupName, String accountName, String containerName, @@ -3566,7 +3565,7 @@ public Mono leaseAsync( String resourceGroupName, String accountName, String containerName, LeaseContainerRequest parameters) { return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3602,7 +3601,7 @@ public Mono leaseAsync( Context context) { return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3634,7 +3633,7 @@ public Mono leaseAsync( final Context context = null; return leaseWithResponseAsync(resourceGroupName, accountName, containerName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java index a4e89201cd99..5a1545169b3f 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/BlobServicesClient.java @@ -21,8 +21,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -66,8 +66,8 @@ private interface BlobServicesService { + "/storageAccounts/{accountName}/blobServices") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -80,8 +80,8 @@ Mono> list( + "/storageAccounts/{accountName}/blobServices/{BlobServicesName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> setServiceProperties( - @HostParam("$host") String host, + Mono> setServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -96,8 +96,8 @@ Mono> setServiceProperties( + "/storageAccounts/{accountName}/blobServices/{BlobServicesName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServiceProperties( - @HostParam("$host") String host, + Mono> getServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -294,7 +294,7 @@ public PagedIterable list( * @return the properties of a storage account’s Blob service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -353,7 +353,7 @@ public Mono> setServicePropertiesWith * @return the properties of a storage account’s Blob service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -411,7 +411,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -440,7 +440,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, BlobServicePropertiesInner parameters, Context context) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -505,7 +505,7 @@ public BlobServicePropertiesInner setServiceProperties( * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono @@ -558,7 +558,7 @@ public Mono> getServicePropertiesWith * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -609,7 +609,7 @@ public Mono> getServicePropertiesWith public Mono getServicePropertiesAsync(String resourceGroupName, String accountName) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -638,7 +638,7 @@ public Mono getServicePropertiesAsync( String resourceGroupName, String accountName, Context context) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java index 4cb5de0b88e6..3de295104b36 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/EncryptionScopesClient.java @@ -22,8 +22,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -67,8 +67,8 @@ private interface EncryptionScopesService { + "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> put( - @HostParam("$host") String host, + Mono> put( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -83,8 +83,8 @@ Mono> put( + "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> patch( - @HostParam("$host") String host, + Mono> patch( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -99,8 +99,8 @@ Mono> patch( + "/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -114,8 +114,8 @@ Mono> get( + "/storageAccounts/{accountName}/encryptionScopes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -126,7 +126,7 @@ Mono> list( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -149,7 +149,7 @@ Mono> listNext( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> putWithResponseAsync( + public Mono> putWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, @@ -219,7 +219,7 @@ public Mono> putWithResponseAsync( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> putWithResponseAsync( + public Mono> putWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, @@ -292,7 +292,7 @@ public Mono putAsync( EncryptionScopeInner encryptionScope) { return putWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -329,7 +329,7 @@ public Mono putAsync( Context context) { return putWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -412,7 +412,7 @@ public EncryptionScopeInner put( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> patchWithResponseAsync( + public Mono> patchWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, @@ -481,7 +481,7 @@ public Mono> patchWithResponseAsync( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> patchWithResponseAsync( + public Mono> patchWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, @@ -553,7 +553,7 @@ public Mono patchAsync( EncryptionScopeInner encryptionScope) { return patchWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -589,7 +589,7 @@ public Mono patchAsync( Context context) { return patchWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -668,7 +668,7 @@ public EncryptionScopeInner patch( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName) { if (this.client.getEndpoint() == null) { return Mono @@ -725,7 +725,7 @@ public Mono> getWithResponseAsync( * @return the Encryption Scope resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String encryptionScopeName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -781,7 +781,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String encryptionScopeName) { return getWithResponseAsync(resourceGroupName, accountName, encryptionScopeName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -811,7 +811,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String encryptionScopeName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java index 1c4eb6263075..606d94aaa551 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileServicesClient.java @@ -17,8 +17,8 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -64,8 +64,8 @@ private interface FileServicesService { + "/storageAccounts/{accountName}/fileServices") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -78,8 +78,8 @@ Mono> list( + "/storageAccounts/{accountName}/fileServices/{FileServicesName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> setServiceProperties( - @HostParam("$host") String host, + Mono> setServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -94,8 +94,8 @@ Mono> setServiceProperties( + "/storageAccounts/{accountName}/fileServices/{FileServicesName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServiceProperties( - @HostParam("$host") String host, + Mono> getServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -117,8 +117,7 @@ Mono> getServiceProperties( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( - String resourceGroupName, String accountName) { + public Mono> listWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -166,7 +165,7 @@ public Mono> listWithResponseAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( + public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -213,7 +212,7 @@ public Mono> listWithResponseAsync( public Mono listAsync(String resourceGroupName, String accountName) { return listWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -239,7 +238,7 @@ public Mono listAsync(String resourceGroupName, String ac public Mono listAsync(String resourceGroupName, String accountName, Context context) { return listWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -298,7 +297,7 @@ public FileServiceItemsInner list(String resourceGroupName, String accountName, * @return the properties of File services in storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, @@ -364,7 +363,7 @@ public Mono> setServicePropertiesWith * @return the properties of File services in storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, @@ -433,7 +432,7 @@ public Mono setServicePropertiesAsync( DeleteRetentionPolicy shareDeleteRetentionPolicy) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors, shareDeleteRetentionPolicy) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -467,7 +466,7 @@ public Mono setServicePropertiesAsync( return setServicePropertiesWithResponseAsync( resourceGroupName, accountName, cors, shareDeleteRetentionPolicy, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -539,7 +538,7 @@ public FileServicePropertiesInner setServiceProperties( * rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono @@ -591,7 +590,7 @@ public Mono> getServicePropertiesWith * rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -641,7 +640,7 @@ public Mono> getServicePropertiesWith public Mono getServicePropertiesAsync(String resourceGroupName, String accountName) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -669,7 +668,7 @@ public Mono getServicePropertiesAsync( String resourceGroupName, String accountName, Context context) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java index f65ce1182e97..39eea5df4e32 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/FileSharesClient.java @@ -26,7 +26,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -74,8 +73,8 @@ private interface FileSharesService { + "/storageAccounts/{accountName}/fileServices/default/shares") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -91,8 +90,8 @@ Mono> list( + "/storageAccounts/{accountName}/fileServices/default/shares/{shareName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String host, + Mono> create( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("shareName") String shareName, @@ -107,8 +106,8 @@ Mono> create( + "/storageAccounts/{accountName}/fileServices/default/shares/{shareName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String host, + Mono> update( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("shareName") String shareName, @@ -123,8 +122,8 @@ Mono> update( + "/storageAccounts/{accountName}/fileServices/default/shares/{shareName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("shareName") String shareName, @@ -140,7 +139,7 @@ Mono> get( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("shareName") String shareName, @@ -155,7 +154,7 @@ Mono> delete( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> restore( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @PathParam("shareName") String shareName, @@ -168,7 +167,7 @@ Mono> restore( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -462,7 +461,7 @@ public PagedIterable list(String resourceGroupName, String a * @return properties of the file share, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { if (this.client.getEndpoint() == null) { return Mono @@ -526,7 +525,7 @@ public Mono> createWithResponseAsync( * @return properties of the file share, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -589,7 +588,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { return createWithResponseAsync(resourceGroupName, accountName, shareName, fileShare) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -621,7 +620,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { return createWithResponseAsync(resourceGroupName, accountName, shareName, fileShare, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -695,7 +694,7 @@ public FileShareInner create( * @return properties of the file share, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { if (this.client.getEndpoint() == null) { return Mono @@ -759,7 +758,7 @@ public Mono> updateWithResponseAsync( * @return properties of the file share, including Id, resource name, resource type, Etag. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -822,7 +821,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) { return updateWithResponseAsync(resourceGroupName, accountName, shareName, fileShare) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -854,7 +853,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, shareName, fileShare, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -927,7 +926,7 @@ public FileShareInner update( * @return properties of a specified share. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand) { if (this.client.getEndpoint() == null) { return Mono @@ -985,7 +984,7 @@ public Mono> getWithResponseAsync( * @return properties of a specified share. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1042,7 +1041,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand) { return getWithResponseAsync(resourceGroupName, accountName, shareName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1073,7 +1072,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String shareName, GetShareExpand expand, Context context) { return getWithResponseAsync(resourceGroupName, accountName, shareName, expand, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1103,7 +1102,7 @@ public Mono getAsync(String resourceGroupName, String accountNam final Context context = null; return getWithResponseAsync(resourceGroupName, accountName, shareName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java index 50318d901717..070c6c5bf561 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ManagementPoliciesClient.java @@ -20,7 +20,6 @@ import com.azure.core.annotation.UnexpectedResponseExceptionType; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -65,8 +64,8 @@ private interface ManagementPoliciesService { + "/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -80,8 +79,8 @@ Mono> get( + "/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String host, + Mono> createOrUpdate( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -97,7 +96,7 @@ Mono> createOrUpdate( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -119,8 +118,7 @@ Mono> delete( * @return the managementpolicy associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( - String resourceGroupName, String accountName) { + public Mono> getWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -170,7 +168,7 @@ public Mono> getWithResponseAsync( * @return the managementpolicy associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -219,7 +217,7 @@ public Mono> getWithResponseAsync( public Mono getAsync(String resourceGroupName, String accountName) { return getWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -245,7 +243,7 @@ public Mono getAsync(String resourceGroupName, String acc public Mono getAsync(String resourceGroupName, String accountName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -304,7 +302,7 @@ public ManagementPolicyInner get(String resourceGroupName, String accountName, C * @return the Get Storage Account ManagementPolicies operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync( + public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy) { if (this.client.getEndpoint() == null) { return Mono @@ -363,7 +361,7 @@ public Mono> createOrUpdateWithResponseAsy * @return the Get Storage Account ManagementPolicies operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync( + public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -421,7 +419,7 @@ public Mono createOrUpdateAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy) { return createOrUpdateWithResponseAsync(resourceGroupName, accountName, policy) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -450,7 +448,7 @@ public Mono createOrUpdateAsync( String resourceGroupName, String accountName, ManagementPolicySchema policy, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, accountName, policy, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java index 4ee981b5c0c2..1497e30abce5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/ObjectReplicationPoliciesOperationsClient.java @@ -24,7 +24,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -72,8 +71,8 @@ private interface ObjectReplicationPoliciesOperationsService { + "/storageAccounts/{accountName}/objectReplicationPolicies") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -86,8 +85,8 @@ Mono> list( + "/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -101,8 +100,8 @@ Mono> get( + "/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String host, + Mono> createOrUpdate( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -118,7 +117,7 @@ Mono> createOrUpdate( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -314,7 +313,7 @@ public PagedIterable list( * @return the object replication policy of the storage account by policy ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { if (this.client.getEndpoint() == null) { return Mono @@ -371,7 +370,7 @@ public Mono> getWithResponseAsync( * @return the object replication policy of the storage account by policy ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -427,7 +426,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId) { return getWithResponseAsync(resourceGroupName, accountName, objectReplicationPolicyId) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -455,7 +454,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, Context context) { return getWithResponseAsync(resourceGroupName, accountName, objectReplicationPolicyId, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -519,7 +518,7 @@ public ObjectReplicationPolicyInner get( * @return the replication policy between two storage accounts. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync( + public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, @@ -587,7 +586,7 @@ public Mono> createOrUpdateWithResp * @return the replication policy between two storage accounts. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createOrUpdateWithResponseAsync( + public Mono> createOrUpdateWithResponseAsync( String resourceGroupName, String accountName, String objectReplicationPolicyId, @@ -658,7 +657,7 @@ public Mono createOrUpdateAsync( ObjectReplicationPolicyInner properties) { return createOrUpdateWithResponseAsync(resourceGroupName, accountName, objectReplicationPolicyId, properties) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -693,7 +692,7 @@ public Mono createOrUpdateAsync( return createOrUpdateWithResponseAsync( resourceGroupName, accountName, objectReplicationPolicyId, properties, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java index a1ce1f8a6d63..c3e67aae4abd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/OperationsClient.java @@ -18,8 +18,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -61,8 +61,8 @@ private interface OperationsService { @Get("/providers/Microsoft.Storage/operations") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, @QueryParam("api-version") String apiVersion, Context context); + Mono> list( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, Context context); } /** diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java index 86cb8f0a30b9..e8d461f739f8 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateEndpointConnectionsClient.java @@ -24,7 +24,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -72,8 +71,8 @@ private interface PrivateEndpointConnectionsService { + "/storageAccounts/{accountName}/privateEndpointConnections") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -86,8 +85,8 @@ Mono> list( + "/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -101,8 +100,8 @@ Mono> get( + "/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> put( - @HostParam("$host") String host, + Mono> put( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -118,7 +117,7 @@ Mono> put( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -315,7 +314,7 @@ public PagedIterable list( * @return the specified private endpoint connection associated with the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { return Mono @@ -373,7 +372,7 @@ public Mono> getWithResponseAsync * @return the specified private endpoint connection associated with the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -430,7 +429,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -459,7 +458,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -527,7 +526,7 @@ public PrivateEndpointConnectionInner get( * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> putWithResponseAsync( + public Mono> putWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, @@ -602,7 +601,7 @@ public Mono> putWithResponseAsync * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> putWithResponseAsync( + public Mono> putWithResponseAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName, @@ -686,7 +685,7 @@ public Mono putAsync( privateEndpoint, privateLinkServiceConnectionState) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -729,7 +728,7 @@ public Mono putAsync( privateLinkServiceConnectionState, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java index 44747c727da4..c8996f89daf5 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/PrivateLinkResourcesClient.java @@ -15,8 +15,8 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -60,8 +60,8 @@ private interface PrivateLinkResourcesService { + "/storageAccounts/{accountName}/privateLinkResources") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByStorageAccount( - @HostParam("$host") String host, + Mono> listByStorageAccount( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -82,7 +82,7 @@ Mono> listByStorageAccount( * @return the private link resources that need to be created for a storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listByStorageAccountWithResponseAsync( + public Mono> listByStorageAccountWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono @@ -131,7 +131,7 @@ public Mono> listByStorageAcc * @return the private link resources that need to be created for a storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listByStorageAccountWithResponseAsync( + public Mono> listByStorageAccountWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -179,7 +179,7 @@ public Mono listByStorageAccountAsync( String resourceGroupName, String accountName) { return listByStorageAccountWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -206,7 +206,7 @@ public Mono listByStorageAccountAsync( String resourceGroupName, String accountName, Context context) { return listByStorageAccountWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java index d772260d294f..7d5c376e2d5e 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueueServicesClient.java @@ -17,8 +17,8 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -63,8 +63,8 @@ private interface QueueServicesService { + "/storageAccounts/{accountName}/queueServices") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -77,8 +77,8 @@ Mono> list( + "/storageAccounts/{accountName}/queueServices/{queueServiceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> setServiceProperties( - @HostParam("$host") String host, + Mono> setServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -93,8 +93,8 @@ Mono> setServiceProperties( + "/storageAccounts/{accountName}/queueServices/{queueServiceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServiceProperties( - @HostParam("$host") String host, + Mono> getServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -116,8 +116,7 @@ Mono> getServiceProperties( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( - String resourceGroupName, String accountName) { + public Mono> listWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -165,7 +164,7 @@ public Mono> listWithResponseAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( + public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -212,7 +211,7 @@ public Mono> listWithResponseAsync( public Mono listAsync(String resourceGroupName, String accountName) { return listWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -238,7 +237,7 @@ public Mono listAsync(String resourceGroupName, String a public Mono listAsync(String resourceGroupName, String accountName, Context context) { return listWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -297,7 +296,7 @@ public ListQueueServicesInner list(String resourceGroupName, String accountName, * @return the properties of a storage account’s Queue service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors) { if (this.client.getEndpoint() == null) { return Mono @@ -356,7 +355,7 @@ public Mono> setServicePropertiesWit * @return the properties of a storage account’s Queue service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -414,7 +413,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, CorsRules cors) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -443,7 +442,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -508,7 +507,7 @@ public QueueServicePropertiesInner setServiceProperties( * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono @@ -561,7 +560,7 @@ public Mono> getServicePropertiesWit * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -612,7 +611,7 @@ public Mono> getServicePropertiesWit public Mono getServicePropertiesAsync(String resourceGroupName, String accountName) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -641,7 +640,7 @@ public Mono getServicePropertiesAsync( String resourceGroupName, String accountName, Context context) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java index 7969a7cb4d8a..49b3308452f9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/QueuesClient.java @@ -25,7 +25,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -70,8 +69,8 @@ private interface QueuesService { + "/storageAccounts/{accountName}/queueServices/default/queues/{queueName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String host, + Mono> create( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -86,8 +85,8 @@ Mono> create( + "/storageAccounts/{accountName}/queueServices/default/queues/{queueName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String host, + Mono> update( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -102,8 +101,8 @@ Mono> update( + "/storageAccounts/{accountName}/queueServices/default/queues/{queueName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -118,7 +117,7 @@ Mono> get( @ExpectedResponses({204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -132,8 +131,8 @@ Mono> delete( + "/storageAccounts/{accountName}/queueServices/default/queues") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -146,7 +145,7 @@ Mono> list( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -167,7 +166,7 @@ Mono> listNext( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { if (this.client.getEndpoint() == null) { return Mono @@ -227,7 +226,7 @@ public Mono> createWithResponseAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -286,7 +285,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { return createWithResponseAsync(resourceGroupName, accountName, queueName, metadata) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -317,7 +316,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { return createWithResponseAsync(resourceGroupName, accountName, queueName, metadata, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -388,7 +387,7 @@ public StorageQueueInner create( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { if (this.client.getEndpoint() == null) { return Mono @@ -448,7 +447,7 @@ public Mono> updateWithResponseAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -507,7 +506,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String queueName, Map metadata) { return updateWithResponseAsync(resourceGroupName, accountName, queueName, metadata) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -538,7 +537,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String queueName, Map metadata, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, queueName, metadata, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -608,7 +607,7 @@ public StorageQueueInner update( * @return the queue with the specified queue name, under the specified account if it exists. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName) { if (this.client.getEndpoint() == null) { return Mono @@ -664,7 +663,7 @@ public Mono> getWithResponseAsync( * @return the queue with the specified queue name, under the specified account if it exists. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String queueName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -718,7 +717,7 @@ public Mono> getWithResponseAsync( public Mono getAsync(String resourceGroupName, String accountName, String queueName) { return getWithResponseAsync(resourceGroupName, accountName, queueName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -748,7 +747,7 @@ public Mono getAsync( String resourceGroupName, String accountName, String queueName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, queueName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java index 548f0e7b480f..9038be1ba82c 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/SkusClient.java @@ -19,8 +19,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -61,8 +61,8 @@ private interface SkusService { @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, Context context); diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java index 617e0e47a4b1..b0f1c5507008 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/StorageAccountsClient.java @@ -26,7 +26,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; @@ -96,8 +95,8 @@ private interface StorageAccountsService { @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String host, + Mono> checkNameAvailability( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") StorageAccountCheckNameAvailabilityParameters accountName, @@ -109,8 +108,8 @@ Mono> checkNameAvailability( + "/storageAccounts/{accountName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String host, + Mono>> create( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -125,7 +124,7 @@ Mono>> create( @ExpectedResponses({200, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -138,8 +137,8 @@ Mono> delete( + "/storageAccounts/{accountName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String host, + Mono> getByResourceGroup( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -153,8 +152,8 @@ Mono> getByResourceGroup( + "/storageAccounts/{accountName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String host, + Mono> update( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -166,8 +165,8 @@ Mono> update( @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, Context context); @@ -178,8 +177,8 @@ Mono> list( + "/storageAccounts") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String host, + Mono> listByResourceGroup( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -191,8 +190,8 @@ Mono> listByResourceGroup( + "/storageAccounts/{accountName}/listKeys") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listKeys( - @HostParam("$host") String host, + Mono> listKeys( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -206,8 +205,8 @@ Mono> listKeys( + "/storageAccounts/{accountName}/regenerateKey") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> regenerateKey( - @HostParam("$host") String host, + Mono> regenerateKey( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -221,8 +220,8 @@ Mono> regenerateKey( + "/storageAccounts/{accountName}/ListAccountSas") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listAccountSas( - @HostParam("$host") String host, + Mono> listAccountSas( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -236,8 +235,8 @@ Mono> listAccountSas( + "/storageAccounts/{accountName}/ListServiceSas") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listServiceSas( - @HostParam("$host") String host, + Mono> listServiceSas( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -251,8 +250,8 @@ Mono> listServiceSas( + "/storageAccounts/{accountName}/failover") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> failover( - @HostParam("$host") String host, + Mono>> failover( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -265,8 +264,8 @@ Mono>> failover( + "/storageAccounts/{accountName}/restoreBlobRanges") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restoreBlobRanges( - @HostParam("$host") String host, + Mono>> restoreBlobRanges( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -281,7 +280,7 @@ Mono>> restoreBlobRanges( @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> revokeUserDelegationKeys( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -294,8 +293,8 @@ Mono> revokeUserDelegationKeys( + "/storageAccounts/{accountName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> beginCreateWithoutPolling( - @HostParam("$host") String host, + Mono> beginCreateWithoutPolling( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -310,7 +309,7 @@ Mono> beginCreateWithoutPolling( @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> beginFailoverWithoutPolling( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -323,8 +322,8 @@ Mono> beginFailoverWithoutPolling( + "/storageAccounts/{accountName}/restoreBlobRanges") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> beginRestoreBlobRangesWithoutPolling( - @HostParam("$host") String host, + Mono> beginRestoreBlobRangesWithoutPolling( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -336,7 +335,7 @@ Mono> beginRestoreBlobRangesWithoutPollin @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -350,7 +349,7 @@ Mono> listNext( * @return the CheckNameAvailability operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> checkNameAvailabilityWithResponseAsync(String name) { + public Mono> checkNameAvailabilityWithResponseAsync(String name) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -392,7 +391,7 @@ public Mono> checkNameAvailabil * @return the CheckNameAvailability operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> checkNameAvailabilityWithResponseAsync( + public Mono> checkNameAvailabilityWithResponseAsync( String name, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -433,7 +432,7 @@ public Mono> checkNameAvailabil public Mono checkNameAvailabilityAsync(String name) { return checkNameAvailabilityWithResponseAsync(name) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -456,7 +455,7 @@ public Mono checkNameAvailabilityAsync(String public Mono checkNameAvailabilityAsync(String name, Context context) { return checkNameAvailabilityWithResponseAsync(name, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -511,7 +510,7 @@ public CheckNameAvailabilityResultInner checkNameAvailability(String name, Conte * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createWithResponseAsync( + public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -570,7 +569,7 @@ public Mono>> createWithResponseAsync( * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createWithResponseAsync( + public Mono>> createWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -626,8 +625,7 @@ public Mono>> createWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux, StorageAccountInner> beginCreate( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, parameters); + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters); return this .client .getLroResultAsync( @@ -654,7 +652,7 @@ public PollerFlux, StorageAccountInner> beginCre @ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux, StorageAccountInner> beginCreate( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { - Mono>> mono = + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters, context); return this .client @@ -681,8 +679,7 @@ public PollerFlux, StorageAccountInner> beginCre @ServiceMethod(returns = ReturnType.SINGLE) public Mono createAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, accountName, parameters); + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters); return this .client .getLroResultAsync( @@ -711,7 +708,7 @@ public Mono createAsync( @ServiceMethod(returns = ReturnType.SINGLE) public Mono createAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { - Mono>> mono = + Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters, context); return this .client @@ -942,7 +939,7 @@ public void delete(String resourceGroupName, String accountName, Context context * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync( + public Mono> getByResourceGroupWithResponseAsync( String resourceGroupName, String accountName, StorageAccountExpand expand) { if (this.client.getEndpoint() == null) { return Mono @@ -995,7 +992,7 @@ public Mono> getByResourceGroupWithResponseA * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync( + public Mono> getByResourceGroupWithResponseAsync( String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1047,7 +1044,7 @@ public Mono getByResourceGroupAsync( String resourceGroupName, String accountName, StorageAccountExpand expand) { return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1077,7 +1074,7 @@ public Mono getByResourceGroupAsync( String resourceGroupName, String accountName, StorageAccountExpand expand, Context context) { return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, expand, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1105,7 +1102,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam final Context context = null; return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1196,7 +1193,7 @@ public StorageAccountInner getByResourceGroup(String resourceGroupName, String a * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -1257,7 +1254,7 @@ public Mono> updateWithResponseAsync( * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1317,7 +1314,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) { return updateWithResponseAsync(resourceGroupName, accountName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1350,7 +1347,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1714,7 +1711,7 @@ public PagedIterable listByResourceGroup(String resourceGro * @return the response from the ListKeys operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listKeysWithResponseAsync( + public Mono> listKeysWithResponseAsync( String resourceGroupName, String accountName, ListKeyExpand expand) { if (this.client.getEndpoint() == null) { return Mono @@ -1765,7 +1762,7 @@ public Mono> listKeysWithRespo * @return the response from the ListKeys operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listKeysWithResponseAsync( + public Mono> listKeysWithResponseAsync( String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -1815,7 +1812,7 @@ public Mono listKeysAsync( String resourceGroupName, String accountName, ListKeyExpand expand) { return listKeysWithResponseAsync(resourceGroupName, accountName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1843,7 +1840,7 @@ public Mono listKeysAsync( String resourceGroupName, String accountName, ListKeyExpand expand, Context context) { return listKeysWithResponseAsync(resourceGroupName, accountName, expand, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1870,7 +1867,7 @@ public Mono listKeysAsync(String resourceGrou final Context context = null; return listKeysWithResponseAsync(resourceGroupName, accountName, expand) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -1952,7 +1949,7 @@ public StorageAccountListKeysResultInner listKeys(String resourceGroupName, Stri * @return the response from the ListKeys operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> regenerateKeyWithResponseAsync( + public Mono> regenerateKeyWithResponseAsync( String resourceGroupName, String accountName, String keyName) { if (this.client.getEndpoint() == null) { return Mono @@ -2009,7 +2006,7 @@ public Mono> regenerateKeyWith * @return the response from the ListKeys operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> regenerateKeyWithResponseAsync( + public Mono> regenerateKeyWithResponseAsync( String resourceGroupName, String accountName, String keyName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -2065,7 +2062,7 @@ public Mono regenerateKeyAsync( String resourceGroupName, String accountName, String keyName) { return regenerateKeyWithResponseAsync(resourceGroupName, accountName, keyName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2094,7 +2091,7 @@ public Mono regenerateKeyAsync( String resourceGroupName, String accountName, String keyName, Context context) { return regenerateKeyWithResponseAsync(resourceGroupName, accountName, keyName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2158,7 +2155,7 @@ public StorageAccountListKeysResultInner regenerateKey( * @return the List SAS credentials operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAccountSasWithResponseAsync( + public Mono> listAccountSasWithResponseAsync( String resourceGroupName, String accountName, AccountSasParameters parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -2214,7 +2211,7 @@ public Mono> listAccountSasWithRespo * @return the List SAS credentials operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listAccountSasWithResponseAsync( + public Mono> listAccountSasWithResponseAsync( String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -2269,7 +2266,7 @@ public Mono listAccountSasAsync( String resourceGroupName, String accountName, AccountSasParameters parameters) { return listAccountSasWithResponseAsync(resourceGroupName, accountName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2297,7 +2294,7 @@ public Mono listAccountSasAsync( String resourceGroupName, String accountName, AccountSasParameters parameters, Context context) { return listAccountSasWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2359,7 +2356,7 @@ public ListAccountSasResponseInner listAccountSas( * @return the List service SAS credentials operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listServiceSasWithResponseAsync( + public Mono> listServiceSasWithResponseAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -2415,7 +2412,7 @@ public Mono> listServiceSasWithRespo * @return the List service SAS credentials operation response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listServiceSasWithResponseAsync( + public Mono> listServiceSasWithResponseAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -2470,7 +2467,7 @@ public Mono listServiceSasAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters) { return listServiceSasWithResponseAsync(resourceGroupName, accountName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2498,7 +2495,7 @@ public Mono listServiceSasAsync( String resourceGroupName, String accountName, ServiceSasParameters parameters, Context context) { return listServiceSasWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -2561,8 +2558,7 @@ public ListServiceSasResponseInner listServiceSas( * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> failoverWithResponseAsync( - String resourceGroupName, String accountName) { + public Mono>> failoverWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -2612,7 +2608,7 @@ public Mono>> failoverWithResponseAsync( * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> failoverWithResponseAsync( + public Mono>> failoverWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -2659,7 +2655,7 @@ public Mono>> failoverWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux, Void> beginFailover(String resourceGroupName, String accountName) { - Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName); + Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName); return this.client.getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class); } @@ -2681,8 +2677,7 @@ public PollerFlux, Void> beginFailover(String resourceGroupName @ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux, Void> beginFailover( String resourceGroupName, String accountName, Context context) { - Mono>> mono = - failoverWithResponseAsync(resourceGroupName, accountName, context); + Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName, context); return this.client.getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class); } @@ -2702,7 +2697,7 @@ public PollerFlux, Void> beginFailover( */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono failoverAsync(String resourceGroupName, String accountName) { - Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName); + Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName); return this .client .getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class) @@ -2727,8 +2722,7 @@ public Mono failoverAsync(String resourceGroupName, String accountName) { */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono failoverAsync(String resourceGroupName, String accountName, Context context) { - Mono>> mono = - failoverWithResponseAsync(resourceGroupName, accountName, context); + Mono>> mono = failoverWithResponseAsync(resourceGroupName, accountName, context); return this .client .getLroResultAsync(mono, this.client.getHttpPipeline(), Void.class, Void.class) @@ -2788,7 +2782,7 @@ public void failover(String resourceGroupName, String accountName, Context conte * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> restoreBlobRangesWithResponseAsync( + public Mono>> restoreBlobRangesWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { if (this.client.getEndpoint() == null) { return Mono @@ -2851,7 +2845,7 @@ public Mono>> restoreBlobRangesWithResponseAsync * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> restoreBlobRangesWithResponseAsync( + public Mono>> restoreBlobRangesWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, @@ -2915,7 +2909,7 @@ public Mono>> restoreBlobRangesWithResponseAsync @ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux, BlobRestoreStatusInner> beginRestoreBlobRanges( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - Mono>> mono = + Mono>> mono = restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges); return this .client @@ -2945,7 +2939,7 @@ public PollerFlux, BlobRestoreStatusInner> be OffsetDateTime timeToRestore, List blobRanges, Context context) { - Mono>> mono = + Mono>> mono = restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges, context); return this .client @@ -2970,7 +2964,7 @@ public PollerFlux, BlobRestoreStatusInner> be @ServiceMethod(returns = ReturnType.SINGLE) public Mono restoreBlobRangesAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { - Mono>> mono = + Mono>> mono = restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges); return this .client @@ -3002,7 +2996,7 @@ public Mono restoreBlobRangesAsync( OffsetDateTime timeToRestore, List blobRanges, Context context) { - Mono>> mono = + Mono>> mono = restoreBlobRangesWithResponseAsync(resourceGroupName, accountName, timeToRestore, blobRanges, context); return this .client @@ -3237,7 +3231,7 @@ public void revokeUserDelegationKeys(String resourceGroupName, String accountNam * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginCreateWithoutPollingWithResponseAsync( + public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { if (this.client.getEndpoint() == null) { return Mono @@ -3296,7 +3290,7 @@ public Mono> beginCreateWithoutPollingWithRe * @return the storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginCreateWithoutPollingWithResponseAsync( + public Mono> beginCreateWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -3354,7 +3348,7 @@ public Mono beginCreateWithoutPollingAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) { return beginCreateWithoutPollingWithResponseAsync(resourceGroupName, accountName, parameters) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3385,7 +3379,7 @@ public Mono beginCreateWithoutPollingAsync( String resourceGroupName, String accountName, StorageAccountCreateParameters parameters, Context context) { return beginCreateWithoutPollingWithResponseAsync(resourceGroupName, accountName, parameters, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3629,7 +3623,7 @@ public void beginFailoverWithoutPolling(String resourceGroupName, String account * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( + public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, List blobRanges) { if (this.client.getEndpoint() == null) { return Mono @@ -3692,7 +3686,7 @@ public Mono> beginRestoreBlobRangesWithou * @return blob restore status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( + public Mono> beginRestoreBlobRangesWithoutPollingWithResponseAsync( String resourceGroupName, String accountName, OffsetDateTime timeToRestore, @@ -3759,7 +3753,7 @@ public Mono beginRestoreBlobRangesWithoutPollingAsync( return beginRestoreBlobRangesWithoutPollingWithResponseAsync( resourceGroupName, accountName, timeToRestore, blobRanges) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -3793,7 +3787,7 @@ public Mono beginRestoreBlobRangesWithoutPollingAsync( return beginRestoreBlobRangesWithoutPollingWithResponseAsync( resourceGroupName, accountName, timeToRestore, blobRanges, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java index 4e8171fc4993..177b039966dd 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TableServicesClient.java @@ -17,8 +17,8 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -63,8 +63,8 @@ private interface TableServicesService { + "/storageAccounts/{accountName}/tableServices") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -77,8 +77,8 @@ Mono> list( + "/storageAccounts/{accountName}/tableServices/{tableServiceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> setServiceProperties( - @HostParam("$host") String host, + Mono> setServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -93,8 +93,8 @@ Mono> setServiceProperties( + "/storageAccounts/{accountName}/tableServices/{tableServiceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getServiceProperties( - @HostParam("$host") String host, + Mono> getServiceProperties( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -116,8 +116,7 @@ Mono> getServiceProperties( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( - String resourceGroupName, String accountName) { + public Mono> listWithResponseAsync(String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -165,7 +164,7 @@ public Mono> listWithResponseAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listWithResponseAsync( + public Mono> listWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -212,7 +211,7 @@ public Mono> listWithResponseAsync( public Mono listAsync(String resourceGroupName, String accountName) { return listWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -238,7 +237,7 @@ public Mono listAsync(String resourceGroupName, String a public Mono listAsync(String resourceGroupName, String accountName, Context context) { return listWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -297,7 +296,7 @@ public ListTableServicesInner list(String resourceGroupName, String accountName, * @return the properties of a storage account’s Table service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors) { if (this.client.getEndpoint() == null) { return Mono @@ -356,7 +355,7 @@ public Mono> setServicePropertiesWit * @return the properties of a storage account’s Table service. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> setServicePropertiesWithResponseAsync( + public Mono> setServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -414,7 +413,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, CorsRules cors) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -443,7 +442,7 @@ public Mono setServicePropertiesAsync( String resourceGroupName, String accountName, CorsRules cors, Context context) { return setServicePropertiesWithResponseAsync(resourceGroupName, accountName, cors, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -508,7 +507,7 @@ public TableServicePropertiesInner setServiceProperties( * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName) { if (this.client.getEndpoint() == null) { return Mono @@ -561,7 +560,7 @@ public Mono> getServicePropertiesWit * (Cross-Origin Resource Sharing) rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getServicePropertiesWithResponseAsync( + public Mono> getServicePropertiesWithResponseAsync( String resourceGroupName, String accountName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -612,7 +611,7 @@ public Mono> getServicePropertiesWit public Mono getServicePropertiesAsync(String resourceGroupName, String accountName) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -641,7 +640,7 @@ public Mono getServicePropertiesAsync( String resourceGroupName, String accountName, Context context) { return getServicePropertiesWithResponseAsync(resourceGroupName, accountName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java index c80cec94cca0..3cfa14b168c3 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/TablesClient.java @@ -24,7 +24,6 @@ import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -67,8 +66,8 @@ private interface TablesService { + "/storageAccounts/{accountName}/tableServices/default/tables/{tableName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String host, + Mono> create( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -82,8 +81,8 @@ Mono> create( + "/storageAccounts/{accountName}/tableServices/default/tables/{tableName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String host, + Mono> update( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -97,8 +96,8 @@ Mono> update( + "/storageAccounts/{accountName}/tableServices/default/tables/{tableName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String host, + Mono> get( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -113,7 +112,7 @@ Mono> get( @ExpectedResponses({204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete( - @HostParam("$host") String host, + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -127,8 +126,8 @@ Mono> delete( + "/storageAccounts/{accountName}/tableServices/default/tables") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String host, + Mono> list( + @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @QueryParam("api-version") String apiVersion, @@ -139,7 +138,7 @@ Mono> list( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, Context context); } @@ -158,7 +157,7 @@ Mono> listNext( * @return properties of the table, including Id, resource name, resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono @@ -213,7 +212,7 @@ public Mono> createWithResponseAsync( * @return properties of the table, including Id, resource name, resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createWithResponseAsync( + public Mono> createWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -266,7 +265,7 @@ public Mono> createWithResponseAsync( public Mono createAsync(String resourceGroupName, String accountName, String tableName) { return createWithResponseAsync(resourceGroupName, accountName, tableName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -295,7 +294,7 @@ public Mono createAsync( String resourceGroupName, String accountName, String tableName, Context context) { return createWithResponseAsync(resourceGroupName, accountName, tableName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -358,7 +357,7 @@ public TableInner create(String resourceGroupName, String accountName, String ta * @return properties of the table, including Id, resource name, resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono @@ -413,7 +412,7 @@ public Mono> updateWithResponseAsync( * @return properties of the table, including Id, resource name, resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateWithResponseAsync( + public Mono> updateWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -466,7 +465,7 @@ public Mono> updateWithResponseAsync( public Mono updateAsync(String resourceGroupName, String accountName, String tableName) { return updateWithResponseAsync(resourceGroupName, accountName, tableName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -495,7 +494,7 @@ public Mono updateAsync( String resourceGroupName, String accountName, String tableName, Context context) { return updateWithResponseAsync(resourceGroupName, accountName, tableName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -558,7 +557,7 @@ public TableInner update(String resourceGroupName, String accountName, String ta * @return the table with the specified table name, under the specified account if it exists. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName) { if (this.client.getEndpoint() == null) { return Mono @@ -613,7 +612,7 @@ public Mono> getWithResponseAsync( * @return the table with the specified table name, under the specified account if it exists. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync( + public Mono> getWithResponseAsync( String resourceGroupName, String accountName, String tableName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -666,7 +665,7 @@ public Mono> getWithResponseAsync( public Mono getAsync(String resourceGroupName, String accountName, String tableName) { return getWithResponseAsync(resourceGroupName, accountName, tableName) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -694,7 +693,7 @@ public Mono getAsync(String resourceGroupName, String accountName, S public Mono getAsync(String resourceGroupName, String accountName, String tableName, Context context) { return getWithResponseAsync(resourceGroupName, accountName, tableName, context) .flatMap( - (SimpleResponse res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java index ca8f7bd6b4fb..ab673d8919d9 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/fluent/UsagesClient.java @@ -19,8 +19,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -61,8 +61,8 @@ private interface UsagesService { @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByLocation( - @HostParam("$host") String host, + Mono> listByLocation( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, diff --git a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java index de92c220a356..c73729a4f161 100644 --- a/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java +++ b/sdk/storage/mgmt/src/main/java/com/azure/management/storage/models/Encryption.java @@ -27,6 +27,13 @@ public final class Encryption { @JsonProperty(value = "keySource", required = true) private KeySource keySource; + /* + * A boolean indicating whether or not the service applies a secondary + * layer of encryption with platform managed keys for data at rest. + */ + @JsonProperty(value = "requireInfrastructureEncryption") + private Boolean requireInfrastructureEncryption; + /* * Properties provided by key vault. */ @@ -75,6 +82,28 @@ public Encryption withKeySource(KeySource keySource) { return this; } + /** + * Get the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a + * secondary layer of encryption with platform managed keys for data at rest. + * + * @return the requireInfrastructureEncryption value. + */ + public Boolean requireInfrastructureEncryption() { + return this.requireInfrastructureEncryption; + } + + /** + * Set the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a + * secondary layer of encryption with platform managed keys for data at rest. + * + * @param requireInfrastructureEncryption the requireInfrastructureEncryption value to set. + * @return the Encryption object itself. + */ + public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) { + this.requireInfrastructureEncryption = requireInfrastructureEncryption; + return this; + } + /** * Get the keyVaultProperties property: Properties provided by key vault. * From 88ea424e760e4f2b2a5707ef1cad88fda194b232 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 3 Jun 2020 15:14:16 +0800 Subject: [PATCH 16/16] update glup --- sdk/management/gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/management/gulpfile.js b/sdk/management/gulpfile.js index 37ac7ea13000..3653f75e101d 100644 --- a/sdk/management/gulpfile.js +++ b/sdk/management/gulpfile.js @@ -126,7 +126,7 @@ function codegen(project, cb) { cmd = autoRestExe + ' ' + readmeFile + ' --java ' + ' --azure-arm ' + - ' --track1-naming --generate-client-as-impl --implementation-subpackage=fluent --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' + + ' --track1-naming --implementation-subpackage=fluent --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' + generator + ` --java.namespace=${mappings[project].package} ` + ` --java.output-folder=${outDir} ` +