diff --git a/sdk/storagecache/arm-storagecache/_meta.json b/sdk/storagecache/arm-storagecache/_meta.json index 6627cf0f9315..37d4fd2e143b 100644 --- a/sdk/storagecache/arm-storagecache/_meta.json +++ b/sdk/storagecache/arm-storagecache/_meta.json @@ -1,8 +1,8 @@ { - "commit": "66174681c09b101de03fd35399080cfbccc93e8f", + "commit": "4a2081252c5ce416be2f69c1d9c1762236837eb5", "readme": "specification/storagecache/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storagecache\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storagecache/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/package.json b/sdk/storagecache/arm-storagecache/package.json index 6aa15df94004..95719dfe952b 100644 --- a/sdk/storagecache/arm-storagecache/package.json +++ b/sdk/storagecache/arm-storagecache/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for StorageCacheManagementClient.", - "version": "7.0.0-beta.1", + "version": "7.0.0-beta.2", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache" +} \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md b/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md index 7f432002b39d..31ecd9c478e6 100644 --- a/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md +++ b/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md @@ -10,235 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AmlFilesystem extends TrackedResource { - encryptionSettings?: AmlFilesystemEncryptionSettings; - filesystemSubnet?: string; - readonly health?: AmlFilesystemHealth; - hsm?: AmlFilesystemPropertiesHsm; - identity?: AmlFilesystemIdentity; - readonly lustreVersion?: string; - maintenanceWindow?: AmlFilesystemPropertiesMaintenanceWindow; - readonly mgsAddress?: string; - readonly mountCommand?: string; - readonly provisioningState?: AmlFilesystemProvisioningStateType; - sku?: SkuName; - storageCapacityTiB?: number; - readonly throughputProvisionedMBps?: number; - zones?: string[]; -} - -// @public -export interface AmlFilesystemArchive { - readonly filesystemPath?: string; - readonly status?: AmlFilesystemArchiveStatus; -} - -// @public -export interface AmlFilesystemArchiveInfo { - filesystemPath?: string; -} - -// @public -export interface AmlFilesystemArchiveStatus { - readonly errorCode?: string; - readonly errorMessage?: string; - readonly lastCompletionTime?: Date; - readonly lastStartedTime?: Date; - readonly percentComplete?: number; - readonly state?: ArchiveStatusType; -} - -// @public -export interface AmlFilesystemCheckSubnetError { - filesystemSubnet?: AmlFilesystemCheckSubnetErrorFilesystemSubnet; -} - -// @public -export interface AmlFilesystemCheckSubnetErrorFilesystemSubnet { - message?: string; - status?: FilesystemSubnetStatusType; -} - -// @public -export interface AmlFilesystemEncryptionSettings { - keyEncryptionKey?: KeyVaultKeyReference; -} - -// @public -export interface AmlFilesystemHealth { - state?: AmlFilesystemHealthStateType; - statusCode?: string; - statusDescription?: string; -} - -// @public -export type AmlFilesystemHealthStateType = string; - -// @public -export interface AmlFilesystemHsmSettings { - container: string; - importPrefix?: string; - loggingContainer: string; -} - -// @public -export interface AmlFilesystemIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type?: AmlFilesystemIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; - }; -} - -// @public -export type AmlFilesystemIdentityType = "UserAssigned" | "None"; - -// @public -export interface AmlFilesystemPropertiesHsm { - readonly archiveStatus?: AmlFilesystemArchive[]; - settings?: AmlFilesystemHsmSettings; -} - -// @public -export interface AmlFilesystemPropertiesMaintenanceWindow { - dayOfWeek?: MaintenanceDayOfWeekType; - timeOfDayUTC?: string; -} - -// @public -export type AmlFilesystemProvisioningStateType = string; - -// @public -export interface AmlFilesystems { - archive(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsArchiveOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, amlFilesystemName: string, amlFilesystem: AmlFilesystem, options?: AmlFilesystemsCreateOrUpdateOptionalParams): Promise, AmlFilesystemsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, amlFilesystemName: string, amlFilesystem: AmlFilesystem, options?: AmlFilesystemsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, amlFilesystemName: string, amlFilesystem: AmlFilesystemUpdate, options?: AmlFilesystemsUpdateOptionalParams): Promise, AmlFilesystemsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, amlFilesystemName: string, amlFilesystem: AmlFilesystemUpdate, options?: AmlFilesystemsUpdateOptionalParams): Promise; - cancelArchive(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsCancelArchiveOptionalParams): Promise; - get(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsGetOptionalParams): Promise; - list(options?: AmlFilesystemsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: AmlFilesystemsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AmlFilesystemsArchiveOptionalParams extends coreClient.OperationOptions { - archiveInfo?: AmlFilesystemArchiveInfo; -} - -// @public -export interface AmlFilesystemsCancelArchiveOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface AmlFilesystemsCreateOrUpdateHeaders { - azureAsyncOperation?: string; -} - -// @public -export interface AmlFilesystemsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AmlFilesystemsCreateOrUpdateResponse = AmlFilesystem; - -// @public -export interface AmlFilesystemsDeleteHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface AmlFilesystemsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface AmlFilesystemsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AmlFilesystemsGetResponse = AmlFilesystem; - -// @public -export interface AmlFilesystemsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AmlFilesystemsListByResourceGroupNextResponse = AmlFilesystemsListResult; - -// @public -export interface AmlFilesystemsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AmlFilesystemsListByResourceGroupResponse = AmlFilesystemsListResult; - -// @public -export interface AmlFilesystemsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AmlFilesystemsListNextResponse = AmlFilesystemsListResult; - -// @public -export interface AmlFilesystemsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AmlFilesystemsListResponse = AmlFilesystemsListResult; - -// @public -export interface AmlFilesystemsListResult { - nextLink?: string; - value?: AmlFilesystem[]; -} - -// @public -export interface AmlFilesystemSubnetInfo { - filesystemSubnet?: string; - location?: string; - sku?: SkuName; - storageCapacityTiB?: number; -} - -// @public -export interface AmlFilesystemsUpdateHeaders { - azureAsyncOperation?: string; - location?: string; -} - -// @public -export interface AmlFilesystemsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AmlFilesystemsUpdateResponse = AmlFilesystem; - -// @public -export interface AmlFilesystemUpdate { - encryptionSettings?: AmlFilesystemEncryptionSettings; - maintenanceWindow?: AmlFilesystemUpdatePropertiesMaintenanceWindow; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface AmlFilesystemUpdatePropertiesMaintenanceWindow { - dayOfWeek?: MaintenanceDayOfWeekType; - timeOfDayUTC?: string; -} - // @public export interface ApiOperation { display?: ApiOperationDisplay; @@ -268,9 +39,6 @@ export interface ApiOperationPropertiesServiceSpecification { metricSpecifications?: MetricSpecification[]; } -// @public -export type ArchiveStatusType = string; - // @public export interface AscOperation { endTime?: string; @@ -337,7 +105,6 @@ interface Cache_2 { networkSettings?: CacheNetworkSettings; readonly primingJobs?: PrimingJob[]; readonly provisioningState?: ProvisioningStateType; - scalingFactor?: number; securitySettings?: CacheSecuritySettings; sku?: CacheSku; readonly spaceAllocation?: StorageTargetSpaceAllocation[]; @@ -366,7 +133,7 @@ export interface CacheActiveDirectorySettings { // @public export interface CacheActiveDirectorySettingsCredentials { - password?: string; + password: string; username: string; } @@ -709,11 +476,6 @@ export interface CacheUsernameDownloadSettingsCredentials { bindPassword?: string; } -// @public -export interface CheckAmlFSSubnetsOptionalParams extends coreClient.OperationOptions { - amlFilesystemSubnetInfo?: AmlFilesystemSubnetInfo; -} - // @public export interface ClfsTarget { target?: string; @@ -750,23 +512,12 @@ export interface ErrorResponse { message?: string; } -// @public -export type FilesystemSubnetStatusType = string; - // @public export type FirmwareStatusType = string; // @public export function getContinuationToken(page: unknown): string | undefined; -// @public -export interface GetRequiredAmlFSSubnetsSizeOptionalParams extends coreClient.OperationOptions { - requiredAMLFilesystemSubnetsSizeInfo?: RequiredAmlFilesystemSubnetsSizeInfo; -} - -// @public -export type GetRequiredAmlFSSubnetsSizeResponse = RequiredAmlFilesystemSubnetsSize; - // @public export type HealthStateType = string; @@ -781,37 +532,6 @@ export interface KeyVaultKeyReferenceSourceVault { id?: string; } -// @public -export enum KnownAmlFilesystemHealthStateType { - Available = "Available", - Degraded = "Degraded", - Maintenance = "Maintenance", - Transitioning = "Transitioning", - Unavailable = "Unavailable" -} - -// @public -export enum KnownAmlFilesystemProvisioningStateType { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownArchiveStatusType { - Canceled = "Canceled", - Cancelling = "Cancelling", - Completed = "Completed", - Failed = "Failed", - FSScanInProgress = "FSScanInProgress", - Idle = "Idle", - InProgress = "InProgress", - NotConfigured = "NotConfigured" -} - // @public export enum KnownCreatedByType { Application = "Application", @@ -827,12 +547,6 @@ export enum KnownDomainJoinedType { Yes = "Yes" } -// @public -export enum KnownFilesystemSubnetStatusType { - Invalid = "Invalid", - Ok = "Ok" -} - // @public export enum KnownFirmwareStatusType { Available = "available", @@ -898,7 +612,7 @@ export enum KnownPrimingJobState { // @public export enum KnownProvisioningStateType { - Canceled = "Canceled", + Cancelled = "Cancelled", Creating = "Creating", Deleting = "Deleting", Failed = "Failed", @@ -941,9 +655,6 @@ export interface LogSpecification { name?: string; } -// @public -export type MaintenanceDayOfWeekType = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"; - // @public export type MetricAggregationType = string; @@ -1054,25 +765,6 @@ export type ProvisioningStateType = string; // @public export type ReasonCode = string; -// @public -export interface RequiredAmlFilesystemSubnetsSize { - filesystemSubnetSize?: number; -} - -// @public -export interface RequiredAmlFilesystemSubnetsSizeInfo { - sku?: SkuName; - storageCapacityTiB?: number; -} - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - // @public export interface ResourceSku { capabilities?: ResourceSkuCapabilities[]; @@ -1128,11 +820,6 @@ export interface Restriction { readonly values?: string[]; } -// @public -export interface SkuName { - name?: string; -} - // @public export interface Skus { list(options?: SkusListOptionalParams): PagedAsyncIterableIterator; @@ -1158,8 +845,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: StorageCacheManagementClientOptionalParams); // (undocumented) - amlFilesystems: AmlFilesystems; - // (undocumented) apiVersion: string; // (undocumented) ascOperations: AscOperations; @@ -1167,8 +852,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { ascUsages: AscUsages; // (undocumented) caches: Caches; - checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise; - getRequiredAmlFSSubnetsSize(options?: GetRequiredAmlFSSubnetsSizeOptionalParams): Promise; // (undocumented) operations: Operations; // (undocumented) @@ -1378,14 +1061,6 @@ export interface SystemData { lastModifiedByType?: CreatedByType; } -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; -} - // @public export interface UnknownTarget { attributes?: { @@ -1436,12 +1111,6 @@ export interface UserAssignedIdentitiesValue { readonly principalId?: string; } -// @public (undocumented) -export interface UserAssignedIdentitiesValueAutoGenerated { - readonly clientId?: string; - readonly principalId?: string; -} - // @public export type UsernameDownloadedType = string; diff --git a/sdk/storagecache/arm-storagecache/src/models/index.ts b/sdk/storagecache/arm-storagecache/src/models/index.ts index aaed6a3ffc0e..b656551c2ec4 100644 --- a/sdk/storagecache/arm-storagecache/src/models/index.ts +++ b/sdk/storagecache/arm-storagecache/src/models/index.ts @@ -110,7 +110,7 @@ export interface CloudErrorBody { /** The response from the List Cache SKUs operation. */ export interface ResourceSkusResult { - /** The URI to fetch the next page of cache SKUs. */ + /** The URI to fetch the next page of Cache SKUs. */ nextLink?: string; /** * The list of SKUs available for the subscription. @@ -173,9 +173,9 @@ export interface Restriction { reasonCode?: ReasonCode; } -/** A list of cache usage models. */ +/** A list of Cache usage models. */ export interface UsageModelsResult { - /** The URI to fetch the next page of cache usage models. */ + /** The URI to fetch the next page of Cache usage models. */ nextLink?: string; /** The list of usage models available for the subscription. */ value?: UsageModel[]; @@ -269,32 +269,32 @@ export interface ResourceUsageName { localizedValue?: string; } -/** Result of the request to list caches. It contains a list of caches and a URL link to get the next set of results. */ +/** Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set of results. */ export interface CachesListResult { - /** URL to get the next set of cache list results, if there are any. */ + /** URL to get the next set of Cache list results, if there are any. */ nextLink?: string; /** List of Caches. */ value?: Cache[]; } -/** A cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md */ +/** A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md */ export interface Cache { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** - * Resource ID of the cache. + * Resource ID of the Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** Region name string. */ location?: string; /** - * Name of cache. + * Name of Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Type of the cache; Microsoft.StorageCache/Cache + * Type of the Cache; Microsoft.StorageCache/Cache * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; @@ -305,19 +305,17 @@ export interface Cache { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** SKU for the cache. */ + /** SKU for the Cache. */ sku?: CacheSku; - /** The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - List SKUs. */ + /** The size of this Cache, in GB. */ cacheSizeGB?: number; - /** Multiplier that sets the current storage and throughput capacity of the cache. Values depend on the cache SKU - List SKUs. Values above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% larger than its base size. */ - scalingFactor?: number; /** - * Health of the cache. + * Health of the Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly health?: CacheHealth; /** - * Array of IPv4 addresses that can be used by clients mounting this cache. + * Array of IP addresses that can be used by clients mounting this Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountAddresses?: string[]; @@ -326,14 +324,14 @@ export interface Cache { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningStateType; - /** Subnet used for the cache. */ + /** Subnet used for the Cache. */ subnet?: string; /** - * Upgrade status of the cache. + * Upgrade status of the Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly upgradeStatus?: CacheUpgradeStatus; - /** Upgrade settings of the cache. */ + /** Upgrade settings of the Cache. */ upgradeSettings?: CacheUpgradeSettings; /** Specifies network settings of the cache. */ networkSettings?: CacheNetworkSettings; @@ -406,9 +404,9 @@ export interface SystemData { lastModifiedAt?: Date; } -/** An indication of cache health. Gives more information about health than just that related to provisioning. */ +/** An indication of Cache health. Gives more information about health than just that related to provisioning. */ export interface CacheHealth { - /** List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be given access to the encryption key in the encryption settings. */ + /** List of Cache health states. */ state?: HealthStateType; /** Describes explanation of state. */ statusDescription?: string; @@ -433,20 +431,20 @@ export interface Condition { readonly message?: string; } -/** Properties describing the software upgrade state of the cache. */ +/** Properties describing the software upgrade state of the Cache. */ export interface CacheUpgradeStatus { /** - * Version string of the firmware currently installed on this cache. + * Version string of the firmware currently installed on this Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentFirmwareVersion?: string; /** - * True if there is a firmware update ready to install on this cache. The firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation. + * True if there is a firmware update ready to install on this Cache. The firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly firmwareUpdateStatus?: FirmwareStatusType; /** - * Time at which the pending firmware update will automatically be installed on the cache. + * Time at which the pending firmware update will automatically be installed on the Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly firmwareUpdateDeadline?: Date; @@ -475,7 +473,7 @@ export interface CacheNetworkSettings { /** The IPv4 maximum transmission unit configured for the subnet. */ mtu?: number; /** - * Array of additional IP addresses used by this cache. + * Array of additional IP addresses used by this Cache. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly utilityAddresses?: string[]; @@ -489,21 +487,21 @@ export interface CacheNetworkSettings { /** Cache encryption settings. */ export interface CacheEncryptionSettings { - /** Specifies the location of the key encryption key in key vault. */ + /** Specifies the location of the key encryption key in Key Vault. */ keyEncryptionKey?: KeyVaultKeyReference; - /** Specifies whether the service will automatically rotate to the newest version of the key in the key vault. */ + /** Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault. */ rotationToLatestKeyVersionEnabled?: boolean; } -/** Describes a reference to key vault key. */ +/** Describes a reference to Key Vault Key. */ export interface KeyVaultKeyReference { - /** The URL referencing a key encryption key in key vault. */ + /** The URL referencing a key encryption key in Key Vault. */ keyUrl: string; - /** Describes a resource Id to source key vault. */ + /** Describes a resource Id to source Key Vault. */ sourceVault: KeyVaultKeyReferenceSourceVault; } -/** Describes a resource Id to source key vault. */ +/** Describes a resource Id to source Key Vault. */ export interface KeyVaultKeyReferenceSourceVault { /** Resource Id. */ id?: string; @@ -577,7 +575,7 @@ export interface CacheActiveDirectorySettingsCredentials { /** Username of the Active Directory domain administrator. This value is stored encrypted and not returned on response. */ username: string; /** Plain text password of the Active Directory domain administrator. This value is stored encrypted and not returned on response. */ - password?: string; + password: string; } /** Settings for Extended Groups username and group download. */ @@ -660,9 +658,9 @@ export interface StorageTargetSpaceAllocation { allocationPercentage?: number; } -/** SKU for the cache. */ +/** SKU for the Cache. */ export interface CacheSku { - /** SKU name for this cache. */ + /** SKU name for this Cache. */ name?: string; } @@ -670,13 +668,13 @@ export interface CacheSku { export interface StorageTargetsResult { /** The URI to fetch the next page of Storage Targets. */ nextLink?: string; - /** The list of Storage Targets defined for the cache. */ + /** The list of Storage Targets defined for the Cache. */ value?: StorageTarget[]; } /** A namespace junction. */ export interface NamespaceJunction { - /** Namespace path on a cache for a Storage Target. */ + /** Namespace path on a Cache for a Storage Target. */ namespacePath?: string; /** Path in Storage Target to which namespacePath points. */ targetPath?: string; @@ -722,7 +720,7 @@ export interface BlobNfsTarget { writeBackTimer?: number; } -/** Resource used by a cache. */ +/** Resource used by a Cache. */ export interface StorageTargetResource { /** * Name of the Storage Target. @@ -757,237 +755,9 @@ export interface PrimingJobIdParameter { primingJobId: string; } -/** Result of the request to list AML file systems. It contains a list of AML file systems and a URL link to get the next set of results. */ -export interface AmlFilesystemsListResult { - /** URL to get the next set of AML file system list results, if there are any. */ - nextLink?: string; - /** List of AML file systems. */ - value?: AmlFilesystem[]; -} - -/** Managed Identity properties. */ -export interface AmlFilesystemIdentity { - /** - * The principal ID for the user-assigned identity of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID associated with the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** The type of identity used for the resource. */ - type?: AmlFilesystemIdentityType; - /** A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; - }; -} - -export interface UserAssignedIdentitiesValueAutoGenerated { - /** - * The principal ID of the user-assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client ID of the user-assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} - -/** SKU for the resource. */ -export interface SkuName { - /** SKU name for this resource. */ - name?: string; -} - -/** An indication of AML file system health. Gives more information about health than just that related to provisioning. */ -export interface AmlFilesystemHealth { - /** List of AML file system health states. */ - state?: AmlFilesystemHealthStateType; - /** Server-defined error code for the AML file system health */ - statusCode?: string; - /** Describes the health state. */ - statusDescription?: string; -} - -/** AML file system encryption settings. */ -export interface AmlFilesystemEncryptionSettings { - /** Specifies the location of the encryption key in Key Vault. */ - keyEncryptionKey?: KeyVaultKeyReference; -} - -/** Start time of a 30-minute weekly maintenance window. */ -export interface AmlFilesystemPropertiesMaintenanceWindow { - /** Day of the week on which the maintenance window will occur. */ - dayOfWeek?: MaintenanceDayOfWeekType; - /** The time of day (in UTC) to start the maintenance window. */ - timeOfDayUTC?: string; -} - -/** Hydration and archive settings and status */ -export interface AmlFilesystemPropertiesHsm { - /** Specifies HSM settings of the AML file system. */ - settings?: AmlFilesystemHsmSettings; - /** - * Archive status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly archiveStatus?: AmlFilesystemArchive[]; -} - -/** AML file system HSM settings. */ -export interface AmlFilesystemHsmSettings { - /** Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. */ - container: string; - /** Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. */ - loggingContainer: string; - /** Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. */ - importPrefix?: string; -} - -/** Information about the AML file system archive */ -export interface AmlFilesystemArchive { - /** - * Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly filesystemPath?: string; - /** - * The status of the archive - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: AmlFilesystemArchiveStatus; -} - -/** The status of the archive */ -export interface AmlFilesystemArchiveStatus { - /** - * The state of the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ArchiveStatusType; - /** - * The time of the last completed archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastCompletionTime?: Date; - /** - * The time the latest archive operation started - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastStartedTime?: Date; - /** - * The completion percentage of the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly percentComplete?: number; - /** - * Server-defined error code for the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: string; - /** - * Server-defined error message for the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** An AML file system update instance. */ -export interface AmlFilesystemUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Specifies encryption settings of the AML file system. */ - encryptionSettings?: AmlFilesystemEncryptionSettings; - /** Start time of a 30-minute weekly maintenance window. */ - maintenanceWindow?: AmlFilesystemUpdatePropertiesMaintenanceWindow; -} - -/** Start time of a 30-minute weekly maintenance window. */ -export interface AmlFilesystemUpdatePropertiesMaintenanceWindow { - /** Day of the week on which the maintenance window will occur. */ - dayOfWeek?: MaintenanceDayOfWeekType; - /** The time of day (in UTC) to start the maintenance window. */ - timeOfDayUTC?: string; -} - -/** Information required to execute the archive operation */ -export interface AmlFilesystemArchiveInfo { - /** Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. */ - filesystemPath?: string; -} - -/** Information required to validate the subnet that will be used in AML file system create */ -export interface AmlFilesystemSubnetInfo { - /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */ - filesystemSubnet?: string; - /** The size of the AML file system, in TiB. */ - storageCapacityTiB?: number; - /** SKU for the resource. */ - sku?: SkuName; - /** Region that the AML file system will be created in. */ - location?: string; -} - -/** The error details provided when the checkAmlFSSubnets call fails. */ -export interface AmlFilesystemCheckSubnetError { - /** The error details for the AML file system's subnet. */ - filesystemSubnet?: AmlFilesystemCheckSubnetErrorFilesystemSubnet; -} - -/** The error details for the AML file system's subnet. */ -export interface AmlFilesystemCheckSubnetErrorFilesystemSubnet { - /** The status of the AML file system subnet check. */ - status?: FilesystemSubnetStatusType; - /** The details of the AML file system subnet check. */ - message?: string; -} - -/** Information required to get the number of available IP addresses a subnet should have that will be used in AML file system create */ -export interface RequiredAmlFilesystemSubnetsSizeInfo { - /** The size of the AML file system, in TiB. */ - storageCapacityTiB?: number; - /** SKU for the resource. */ - sku?: SkuName; -} - -/** Information about the number of available IP addresses that are required for the AML file system. */ -export interface RequiredAmlFilesystemSubnetsSize { - /** The number of available IP addresses that are required for the AML file system. */ - filesystemSubnetSize?: number; -} - /** Type of the Storage Target. */ export interface StorageTarget extends StorageTargetResource { - /** List of cache namespace junctions to target for namespace associations. */ + /** List of Cache namespace junctions to target for namespace associations. */ junctions?: NamespaceJunction[]; /** Type of the Storage Target. */ targetType?: StorageTargetType; @@ -1013,64 +783,6 @@ export interface StorageTarget extends StorageTargetResource { readonly allocationPercentage?: number; } -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** An AML file system instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md */ -export interface AmlFilesystem extends TrackedResource { - /** The managed identity used by the AML file system, if configured. */ - identity?: AmlFilesystemIdentity; - /** SKU for the resource. */ - sku?: SkuName; - /** Availability zones for resources. This field should only contain a single element in the array. */ - zones?: string[]; - /** The size of the AML file system, in TiB. This might be rounded up. */ - storageCapacityTiB?: number; - /** - * Health of the AML file system. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly health?: AmlFilesystemHealth; - /** - * ARM provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AmlFilesystemProvisioningStateType; - /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */ - filesystemSubnet?: string; - /** - * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mgsAddress?: string; - /** - * Recommended command to mount the AML file system - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mountCommand?: string; - /** - * The version of Lustre running in the AML file system - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lustreVersion?: string; - /** - * Throughput provisioned in MB per sec, calculated as storageCapacityTiB * per-unit storage throughput - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly throughputProvisionedMBps?: number; - /** Specifies encryption settings of the AML file system. */ - encryptionSettings?: AmlFilesystemEncryptionSettings; - /** Start time of a 30-minute weekly maintenance window. */ - maintenanceWindow?: AmlFilesystemPropertiesMaintenanceWindow; - /** Hydration and archive settings and status */ - hsm?: AmlFilesystemPropertiesHsm; -} - /** Defines headers for Caches_delete operation. */ export interface CachesDeleteHeaders { /** Location URI to poll for result */ @@ -1223,28 +935,6 @@ export interface StorageTargetInvalidateHeaders { azureAsyncOperation?: string; } -/** Defines headers for AmlFilesystems_delete operation. */ -export interface AmlFilesystemsDeleteHeaders { - /** Location URI to poll for result */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} - -/** Defines headers for AmlFilesystems_createOrUpdate operation. */ -export interface AmlFilesystemsCreateOrUpdateHeaders { - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} - -/** Defines headers for AmlFilesystems_update operation. */ -export interface AmlFilesystemsUpdateHeaders { - /** URI to poll for the operation status */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} - /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** NotSpecified */ @@ -1374,8 +1064,8 @@ export enum KnownProvisioningStateType { Succeeded = "Succeeded", /** Failed */ Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", + /** Cancelled */ + Cancelled = "Cancelled", /** Creating */ Creating = "Creating", /** Deleting */ @@ -1391,7 +1081,7 @@ export enum KnownProvisioningStateType { * ### Known values supported by the service * **Succeeded** \ * **Failed** \ - * **Canceled** \ + * **Cancelled** \ * **Creating** \ * **Deleting** \ * **Updating** @@ -1595,134 +1285,12 @@ export enum KnownOperationalStateType { * **Flushing** */ export type OperationalStateType = string; - -/** Known values of {@link AmlFilesystemHealthStateType} that the service accepts. */ -export enum KnownAmlFilesystemHealthStateType { - /** Unavailable */ - Unavailable = "Unavailable", - /** Available */ - Available = "Available", - /** Degraded */ - Degraded = "Degraded", - /** Transitioning */ - Transitioning = "Transitioning", - /** Maintenance */ - Maintenance = "Maintenance" -} - -/** - * Defines values for AmlFilesystemHealthStateType. \ - * {@link KnownAmlFilesystemHealthStateType} can be used interchangeably with AmlFilesystemHealthStateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unavailable** \ - * **Available** \ - * **Degraded** \ - * **Transitioning** \ - * **Maintenance** - */ -export type AmlFilesystemHealthStateType = string; - -/** Known values of {@link AmlFilesystemProvisioningStateType} that the service accepts. */ -export enum KnownAmlFilesystemProvisioningStateType { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Updating */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled" -} - -/** - * Defines values for AmlFilesystemProvisioningStateType. \ - * {@link KnownAmlFilesystemProvisioningStateType} can be used interchangeably with AmlFilesystemProvisioningStateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Canceled** - */ -export type AmlFilesystemProvisioningStateType = string; - -/** Known values of {@link ArchiveStatusType} that the service accepts. */ -export enum KnownArchiveStatusType { - /** NotConfigured */ - NotConfigured = "NotConfigured", - /** Idle */ - Idle = "Idle", - /** InProgress */ - InProgress = "InProgress", - /** Canceled */ - Canceled = "Canceled", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** Cancelling */ - Cancelling = "Cancelling", - /** FSScanInProgress */ - FSScanInProgress = "FSScanInProgress" -} - -/** - * Defines values for ArchiveStatusType. \ - * {@link KnownArchiveStatusType} can be used interchangeably with ArchiveStatusType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotConfigured** \ - * **Idle** \ - * **InProgress** \ - * **Canceled** \ - * **Completed** \ - * **Failed** \ - * **Cancelling** \ - * **FSScanInProgress** - */ -export type ArchiveStatusType = string; - -/** Known values of {@link FilesystemSubnetStatusType} that the service accepts. */ -export enum KnownFilesystemSubnetStatusType { - /** Ok */ - Ok = "Ok", - /** Invalid */ - Invalid = "Invalid" -} - -/** - * Defines values for FilesystemSubnetStatusType. \ - * {@link KnownFilesystemSubnetStatusType} can be used interchangeably with FilesystemSubnetStatusType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Ok** \ - * **Invalid** - */ -export type FilesystemSubnetStatusType = string; /** Defines values for CacheIdentityType. */ export type CacheIdentityType = | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; -/** Defines values for AmlFilesystemIdentityType. */ -export type AmlFilesystemIdentityType = "UserAssigned" | "None"; -/** Defines values for MaintenanceDayOfWeekType. */ -export type MaintenanceDayOfWeekType = - | "Monday" - | "Tuesday" - | "Wednesday" - | "Thursday" - | "Friday" - | "Saturday" - | "Sunday"; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -1829,7 +1397,7 @@ export type CachesCreateOrUpdateResponse = Cache; /** Optional parameters. */ export interface CachesUpdateOptionalParams extends coreClient.OperationOptions { - /** Object containing the user-selectable properties of the cache. If read-only properties are included, they must match the existing values of those properties. */ + /** Object containing the user-selectable properties of the Cache. If read-only properties are included, they must match the existing values of those properties. */ cache?: Cache; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2064,102 +1632,6 @@ export interface StorageTargetInvalidateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AmlFilesystemsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AmlFilesystemsListResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type AmlFilesystemsListByResourceGroupResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface AmlFilesystemsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AmlFilesystemsGetResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type AmlFilesystemsCreateOrUpdateResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type AmlFilesystemsUpdateResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsArchiveOptionalParams - extends coreClient.OperationOptions { - /** Information about the archive operation */ - archiveInfo?: AmlFilesystemArchiveInfo; -} - -/** Optional parameters. */ -export interface AmlFilesystemsCancelArchiveOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface AmlFilesystemsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AmlFilesystemsListNextResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type AmlFilesystemsListByResourceGroupNextResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface CheckAmlFSSubnetsOptionalParams - extends coreClient.OperationOptions { - /** Information about the subnets to validate. */ - amlFilesystemSubnetInfo?: AmlFilesystemSubnetInfo; -} - -/** Optional parameters. */ -export interface GetRequiredAmlFSSubnetsSizeOptionalParams - extends coreClient.OperationOptions { - /** Information to determine the number of available IPs a subnet will need to host the AML file system. */ - requiredAMLFilesystemSubnetsSizeInfo?: RequiredAmlFilesystemSubnetsSizeInfo; -} - -/** Contains response data for the getRequiredAmlFSSubnetsSize operation. */ -export type GetRequiredAmlFSSubnetsSizeResponse = RequiredAmlFilesystemSubnetsSize; - /** Optional parameters. */ export interface StorageCacheManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/storagecache/arm-storagecache/src/models/mappers.ts b/sdk/storagecache/arm-storagecache/src/models/mappers.ts index c31bc71158d0..ee2a6f482058 100644 --- a/sdk/storagecache/arm-storagecache/src/models/mappers.ts +++ b/sdk/storagecache/arm-storagecache/src/models/mappers.ts @@ -833,13 +833,6 @@ export const Cache: coreClient.CompositeMapper = { name: "Number" } }, - scalingFactor: { - defaultValue: 1, - serializedName: "properties.scalingFactor", - type: { - name: "Number" - } - }, health: { serializedName: "properties.health", type: { @@ -1514,6 +1507,7 @@ export const CacheActiveDirectorySettingsCredentials: coreClient.CompositeMapper }, password: { serializedName: "password", + required: true, type: { name: "String" } @@ -1565,21 +1559,18 @@ export const CacheUsernameDownloadSettings: coreClient.CompositeMapper = { } }, encryptLdapConnection: { - defaultValue: false, serializedName: "encryptLdapConnection", type: { name: "Boolean" } }, requireValidCertificate: { - defaultValue: false, serializedName: "requireValidCertificate", type: { name: "Boolean" } }, autoDownloadCertificate: { - defaultValue: false, serializedName: "autoDownloadCertificate", type: { name: "Boolean" @@ -1968,90 +1959,99 @@ export const PrimingJobIdParameter: coreClient.CompositeMapper = { } }; -export const AmlFilesystemsListResult: coreClient.CompositeMapper = { +export const StorageTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemsListResult", + className: "StorageTarget", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + ...StorageTargetResource.type.modelProperties, + junctions: { + serializedName: "properties.junctions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlFilesystem" + className: "NamespaceJunction" } } } - } - } - } -}; - -export const AmlFilesystemIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + }, + targetType: { + serializedName: "properties.targetType", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + state: { + serializedName: "properties.state", type: { - name: "Enum", - allowedValues: ["UserAssigned", "None"] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + nfs3: { + serializedName: "properties.nfs3", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValueAutoGenerated" - } - } + name: "Composite", + className: "Nfs3Target" + } + }, + clfs: { + serializedName: "properties.clfs", + type: { + name: "Composite", + className: "ClfsTarget" + } + }, + unknown: { + serializedName: "properties.unknown", + type: { + name: "Composite", + className: "UnknownTarget" + } + }, + blobNfs: { + serializedName: "properties.blobNfs", + type: { + name: "Composite", + className: "BlobNfsTarget" + } + }, + allocationPercentage: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.allocationPercentage", + readOnly: true, + type: { + name: "Number" } } } } }; -export const UserAssignedIdentitiesValueAutoGenerated: coreClient.CompositeMapper = { +export const CachesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentitiesValueAutoGenerated", + className: "CachesDeleteHeaders", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - clientId: { - serializedName: "clientId", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2060,13 +2060,19 @@ export const UserAssignedIdentitiesValueAutoGenerated: coreClient.CompositeMappe } }; -export const SkuName: coreClient.CompositeMapper = { +export const CachesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuName", + className: "CachesUpdateHeaders", modelProperties: { - name: { - serializedName: "name", + location: { + serializedName: "location", + type: { + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2075,25 +2081,19 @@ export const SkuName: coreClient.CompositeMapper = { } }; -export const AmlFilesystemHealth: coreClient.CompositeMapper = { +export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemHealth", + className: "CachesDebugInfoHeaders", modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - statusCode: { - serializedName: "statusCode", + location: { + serializedName: "location", type: { name: "String" } }, - statusDescription: { - serializedName: "statusDescription", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2102,47 +2102,40 @@ export const AmlFilesystemHealth: coreClient.CompositeMapper = { } }; -export const AmlFilesystemEncryptionSettings: coreClient.CompositeMapper = { +export const CachesFlushHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemEncryptionSettings", + className: "CachesFlushHeaders", modelProperties: { - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + location: { + serializedName: "location", type: { - name: "Composite", - className: "KeyVaultKeyReference" + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const AmlFilesystemPropertiesMaintenanceWindow: coreClient.CompositeMapper = { +export const CachesStartHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemPropertiesMaintenanceWindow", + className: "CachesStartHeaders", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", + location: { + serializedName: "location", type: { - name: "Enum", - allowedValues: [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ] + name: "String" } }, - timeOfDayUTC: { - constraints: { - Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") - }, - serializedName: "timeOfDayUTC", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2151,57 +2144,40 @@ export const AmlFilesystemPropertiesMaintenanceWindow: coreClient.CompositeMappe } }; -export const AmlFilesystemPropertiesHsm: coreClient.CompositeMapper = { +export const CachesStopHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemPropertiesHsm", + className: "CachesStopHeaders", modelProperties: { - settings: { - serializedName: "settings", + location: { + serializedName: "location", type: { - name: "Composite", - className: "AmlFilesystemHsmSettings" + name: "String" } }, - archiveStatus: { - serializedName: "archiveStatus", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlFilesystemArchive" - } - } + name: "String" } } } } }; -export const AmlFilesystemHsmSettings: coreClient.CompositeMapper = { +export const CachesStartPrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemHsmSettings", + className: "CachesStartPrimingJobHeaders", modelProperties: { - container: { - serializedName: "container", - required: true, - type: { - name: "String" - } - }, - loggingContainer: { - serializedName: "loggingContainer", - required: true, + location: { + serializedName: "location", type: { name: "String" } }, - importPrefix: { - defaultValue: "/", - serializedName: "importPrefix", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2210,72 +2186,40 @@ export const AmlFilesystemHsmSettings: coreClient.CompositeMapper = { } }; -export const AmlFilesystemArchive: coreClient.CompositeMapper = { +export const CachesStopPrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemArchive", + className: "CachesStopPrimingJobHeaders", modelProperties: { - filesystemPath: { - serializedName: "filesystemPath", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - status: { - serializedName: "status", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Composite", - className: "AmlFilesystemArchiveStatus" + name: "String" } } } } }; -export const AmlFilesystemArchiveStatus: coreClient.CompositeMapper = { +export const CachesPausePrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemArchiveStatus", + className: "CachesPausePrimingJobHeaders", modelProperties: { - state: { - serializedName: "state", - readOnly: true, - type: { - name: "String" - } - }, - lastCompletionTime: { - serializedName: "lastCompletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastStartedTime: { - serializedName: "lastStartedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - percentComplete: { - serializedName: "percentComplete", - readOnly: true, - type: { - name: "Number" - } - }, - errorCode: { - serializedName: "errorCode", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -2284,663 +2228,36 @@ export const AmlFilesystemArchiveStatus: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { +export const CachesResumePrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "CachesResumePrimingJobHeaders", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } }; -export const AmlFilesystemUpdate: coreClient.CompositeMapper = { +export const CachesUpgradeFirmwareHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemUpdate", + className: "CachesUpgradeFirmwareHeaders", modelProperties: { - tags: { - serializedName: "tags", + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", - type: { - name: "Composite", - className: "AmlFilesystemEncryptionSettings" - } - }, - maintenanceWindow: { - serializedName: "properties.maintenanceWindow", - type: { - name: "Composite", - className: "AmlFilesystemUpdatePropertiesMaintenanceWindow" - } - } - } - } -}; - -export const AmlFilesystemUpdatePropertiesMaintenanceWindow: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemUpdatePropertiesMaintenanceWindow", - modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "Enum", - allowedValues: [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ] - } - }, - timeOfDayUTC: { - constraints: { - Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") - }, - serializedName: "timeOfDayUTC", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemArchiveInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemArchiveInfo", - modelProperties: { - filesystemPath: { - defaultValue: "/", - serializedName: "filesystemPath", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemSubnetInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemSubnetInfo", - modelProperties: { - filesystemSubnet: { - serializedName: "filesystemSubnet", - type: { - name: "String" - } - }, - storageCapacityTiB: { - serializedName: "storageCapacityTiB", - type: { - name: "Number" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SkuName" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemCheckSubnetError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemCheckSubnetError", - modelProperties: { - filesystemSubnet: { - serializedName: "filesystemSubnet", - type: { - name: "Composite", - className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet" - } - } - } - } -}; - -export const AmlFilesystemCheckSubnetErrorFilesystemSubnet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const RequiredAmlFilesystemSubnetsSizeInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RequiredAmlFilesystemSubnetsSizeInfo", - modelProperties: { - storageCapacityTiB: { - serializedName: "storageCapacityTiB", - type: { - name: "Number" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SkuName" - } - } - } - } -}; - -export const RequiredAmlFilesystemSubnetsSize: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RequiredAmlFilesystemSubnetsSize", - modelProperties: { - filesystemSubnetSize: { - serializedName: "filesystemSubnetSize", - type: { - name: "Number" - } - } - } - } -}; - -export const StorageTarget: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageTarget", - modelProperties: { - ...StorageTargetResource.type.modelProperties, - junctions: { - serializedName: "properties.junctions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NamespaceJunction" - } - } - } - }, - targetType: { - serializedName: "properties.targetType", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "String" - } - }, - nfs3: { - serializedName: "properties.nfs3", - type: { - name: "Composite", - className: "Nfs3Target" - } - }, - clfs: { - serializedName: "properties.clfs", - type: { - name: "Composite", - className: "ClfsTarget" - } - }, - unknown: { - serializedName: "properties.unknown", - type: { - name: "Composite", - className: "UnknownTarget" - } - }, - blobNfs: { - serializedName: "properties.blobNfs", - type: { - name: "Composite", - className: "BlobNfsTarget" - } - }, - allocationPercentage: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, - serializedName: "properties.allocationPercentage", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystem", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "AmlFilesystemIdentity" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SkuName" - } - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - storageCapacityTiB: { - serializedName: "properties.storageCapacityTiB", - type: { - name: "Number" - } - }, - health: { - serializedName: "properties.health", - type: { - name: "Composite", - className: "AmlFilesystemHealth" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - filesystemSubnet: { - serializedName: "properties.filesystemSubnet", - type: { - name: "String" - } - }, - mgsAddress: { - serializedName: "properties.mgsAddress", - readOnly: true, - type: { - name: "String" - } - }, - mountCommand: { - serializedName: "properties.mountCommand", - readOnly: true, - type: { - name: "String" - } - }, - lustreVersion: { - serializedName: "properties.lustreVersion", - readOnly: true, - type: { - name: "String" - } - }, - throughputProvisionedMBps: { - serializedName: "properties.throughputProvisionedMBps", - readOnly: true, - type: { - name: "Number" - } - }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", - type: { - name: "Composite", - className: "AmlFilesystemEncryptionSettings" - } - }, - maintenanceWindow: { - serializedName: "properties.maintenanceWindow", - type: { - name: "Composite", - className: "AmlFilesystemPropertiesMaintenanceWindow" - } - }, - hsm: { - serializedName: "properties.hsm", - type: { - name: "Composite", - className: "AmlFilesystemPropertiesHsm" - } - } - } - } -}; - -export const CachesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesDebugInfoHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesFlushHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesFlushHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesStartHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesStartHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesStopHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesStopHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesStartPrimingJobHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesStartPrimingJobHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesStopPrimingJobHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesStopPrimingJobHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesPausePrimingJobHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesPausePrimingJobHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesResumePrimingJobHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesResumePrimingJobHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const CachesUpgradeFirmwareHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CachesUpgradeFirmwareHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" + name: "String" } }, azureAsyncOperation: { @@ -3120,60 +2437,3 @@ export const StorageTargetInvalidateHeaders: coreClient.CompositeMapper = { } } }; - -export const AmlFilesystemsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemsCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-async-operation", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-async-operation", - type: { - name: "String" - } - } - } - } -}; diff --git a/sdk/storagecache/arm-storagecache/src/models/parameters.ts b/sdk/storagecache/arm-storagecache/src/models/parameters.ts index 4c20d2b49d66..94f825b4e9ef 100644 --- a/sdk/storagecache/arm-storagecache/src/models/parameters.ts +++ b/sdk/storagecache/arm-storagecache/src/models/parameters.ts @@ -15,12 +15,7 @@ import { Cache as CacheMapper, PrimingJob as PrimingJobMapper, PrimingJobIdParameter as PrimingJobIdParameterMapper, - StorageTarget as StorageTargetMapper, - AmlFilesystem as AmlFilesystemMapper, - AmlFilesystemUpdate as AmlFilesystemUpdateMapper, - AmlFilesystemArchiveInfo as AmlFilesystemArchiveInfoMapper, - AmlFilesystemSubnetInfo as AmlFilesystemSubnetInfoMapper, - RequiredAmlFilesystemSubnetsSizeInfo as RequiredAmlFilesystemSubnetsSizeInfoMapper + StorageTarget as StorageTargetMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -50,7 +45,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01-preview", + defaultValue: "2023-01-01", isConstant: true, serializedName: "api-version", type: { @@ -74,9 +69,6 @@ export const nextLink: OperationURLParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, type: { @@ -88,9 +80,6 @@ export const subscriptionId: OperationURLParameter = { export const location: OperationURLParameter = { parameterPath: "location", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "location", required: true, type: { @@ -102,9 +91,6 @@ export const location: OperationURLParameter = { export const operationId: OperationURLParameter = { parameterPath: "operationId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "operationId", required: true, type: { @@ -113,24 +99,9 @@ export const operationId: OperationURLParameter = { } }; -export const location1: OperationURLParameter = { - parameterPath: "location", - mapper: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } -}; - export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, serializedName: "resourceGroupName", required: true, type: { @@ -229,44 +200,3 @@ export const storagetarget: OperationParameter = { parameterPath: "storagetarget", mapper: StorageTargetMapper }; - -export const amlFilesystemName: OperationURLParameter = { - parameterPath: "amlFilesystemName", - mapper: { - constraints: { - Pattern: new RegExp("^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$"), - MaxLength: 80, - MinLength: 2 - }, - serializedName: "amlFilesystemName", - required: true, - type: { - name: "String" - } - } -}; - -export const amlFilesystem: OperationParameter = { - parameterPath: "amlFilesystem", - mapper: AmlFilesystemMapper -}; - -export const amlFilesystem1: OperationParameter = { - parameterPath: "amlFilesystem", - mapper: AmlFilesystemUpdateMapper -}; - -export const archiveInfo: OperationParameter = { - parameterPath: ["options", "archiveInfo"], - mapper: AmlFilesystemArchiveInfoMapper -}; - -export const amlFilesystemSubnetInfo: OperationParameter = { - parameterPath: ["options", "amlFilesystemSubnetInfo"], - mapper: AmlFilesystemSubnetInfoMapper -}; - -export const requiredAMLFilesystemSubnetsSizeInfo: OperationParameter = { - parameterPath: ["options", "requiredAMLFilesystemSubnetsSizeInfo"], - mapper: RequiredAmlFilesystemSubnetsSizeInfoMapper -}; diff --git a/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts b/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts deleted file mode 100644 index bb9190714f3a..000000000000 --- a/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts +++ /dev/null @@ -1,808 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AmlFilesystems } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { StorageCacheManagementClient } from "../storageCacheManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - AmlFilesystem, - AmlFilesystemsListNextOptionalParams, - AmlFilesystemsListOptionalParams, - AmlFilesystemsListResponse, - AmlFilesystemsListByResourceGroupNextOptionalParams, - AmlFilesystemsListByResourceGroupOptionalParams, - AmlFilesystemsListByResourceGroupResponse, - AmlFilesystemsDeleteOptionalParams, - AmlFilesystemsGetOptionalParams, - AmlFilesystemsGetResponse, - AmlFilesystemsCreateOrUpdateOptionalParams, - AmlFilesystemsCreateOrUpdateResponse, - AmlFilesystemUpdate, - AmlFilesystemsUpdateOptionalParams, - AmlFilesystemsUpdateResponse, - AmlFilesystemsArchiveOptionalParams, - AmlFilesystemsCancelArchiveOptionalParams, - AmlFilesystemsListNextResponse, - AmlFilesystemsListByResourceGroupNextResponse -} from "../models"; - -/// -/** Class containing AmlFilesystems operations. */ -export class AmlFilesystemsImpl implements AmlFilesystems { - private readonly client: StorageCacheManagementClient; - - /** - * Initialize a new instance of the class AmlFilesystems class. - * @param client Reference to the service client - */ - constructor(client: StorageCacheManagementClient) { - this.client = client; - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * @param options The options parameters. - */ - public list( - options?: AmlFilesystemsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - } - }; - } - - private async *listPagingPage( - options?: AmlFilesystemsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: AmlFilesystemsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: AmlFilesystemsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: AmlFilesystemsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: AmlFilesystemsListByResourceGroupOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: AmlFilesystemsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: AmlFilesystemsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { - yield* page; - } - } - - /** - * Returns all AML file systems the user has access to under a subscription. - * @param options The options parameters. - */ - private _list( - options?: AmlFilesystemsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Returns all AML file systems the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: AmlFilesystemsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Schedules an AML file system for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, amlFilesystemName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Schedules an AML file system for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - amlFilesystemName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Returns an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, amlFilesystemName, options }, - getOperationSpec - ); - } - - /** - * Create or update an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystem, - options?: AmlFilesystemsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AmlFilesystemsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, amlFilesystemName, amlFilesystem, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - AmlFilesystemsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystem, - options?: AmlFilesystemsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - amlFilesystemName, - amlFilesystem, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update an AML file system instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystemUpdate, - options?: AmlFilesystemsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AmlFilesystemsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, amlFilesystemName, amlFilesystem, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - AmlFilesystemsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Update an AML file system instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystemUpdate, - options?: AmlFilesystemsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - amlFilesystemName, - amlFilesystem, - options - ); - return poller.pollUntilDone(); - } - - /** - * Archive data from the AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - archive( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsArchiveOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, amlFilesystemName, options }, - archiveOperationSpec - ); - } - - /** - * Cancel archiving data from the AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - cancelArchive( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsCancelArchiveOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, amlFilesystemName, options }, - cancelArchiveOperationSpec - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: AmlFilesystemsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: AmlFilesystemsListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystemsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystemsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystem - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystem - }, - 201: { - bodyMapper: Mappers.AmlFilesystem - }, - 202: { - bodyMapper: Mappers.AmlFilesystem - }, - 204: { - bodyMapper: Mappers.AmlFilesystem - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.amlFilesystem, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystem - }, - 201: { - bodyMapper: Mappers.AmlFilesystem - }, - 202: { - bodyMapper: Mappers.AmlFilesystem - }, - 204: { - bodyMapper: Mappers.AmlFilesystem - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.amlFilesystem1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const archiveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/archive", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.archiveInfo, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const cancelArchiveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/cancelArchive", - httpMethod: "POST", - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.amlFilesystemName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystemsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AmlFilesystemsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/storagecache/arm-storagecache/src/operations/ascOperations.ts b/sdk/storagecache/arm-storagecache/src/operations/ascOperations.ts index ab1c8ae086b9..c3951b4ac34a 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/ascOperations.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/ascOperations.ts @@ -30,8 +30,8 @@ export class AscOperationsImpl implements AscOperations { /** * Gets the status of an asynchronous operation for the Azure HPC Cache - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @param options The options parameters. */ get( diff --git a/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts b/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts index c654ec4a5859..8528090b2120 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts @@ -143,7 +143,7 @@ const listOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location ], headerParameters: [Parameters.accept], serializer @@ -163,7 +163,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.location1 + Parameters.location ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/storagecache/arm-storagecache/src/operations/caches.ts b/sdk/storagecache/arm-storagecache/src/operations/caches.ts index d98e266831ec..213f4af30ed1 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/caches.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/caches.ts @@ -67,7 +67,7 @@ export class CachesImpl implements Caches { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * @param options The options parameters. */ public list( @@ -121,8 +121,8 @@ export class CachesImpl implements Caches { } /** - * Returns all caches the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * Returns all Caches the user has access to under a resource group. + * @param resourceGroupName Target resource group. * @param options The options parameters. */ public listByResourceGroup( @@ -190,7 +190,7 @@ export class CachesImpl implements Caches { } /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * @param options The options parameters. */ private _list( @@ -200,8 +200,8 @@ export class CachesImpl implements Caches { } /** - * Returns all caches the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * Returns all Caches the user has access to under a resource group. + * @param resourceGroupName Target resource group. * @param options The options parameters. */ private _listByResourceGroup( @@ -215,9 +215,9 @@ export class CachesImpl implements Caches { } /** - * Schedules a cache for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Schedules a Cache for deletion. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -279,9 +279,9 @@ export class CachesImpl implements Caches { } /** - * Schedules a cache for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Schedules a Cache for deletion. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -299,9 +299,9 @@ export class CachesImpl implements Caches { } /** - * Returns a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -317,11 +317,11 @@ export class CachesImpl implements Caches { } /** - * Create or update a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Create or update a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only + * @param cache Object containing the user-selectable properties of the new Cache. If read-only * properties are included, they must match the existing values of those properties. * @param options The options parameters. */ @@ -392,11 +392,11 @@ export class CachesImpl implements Caches { } /** - * Create or update a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Create or update a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only + * @param cache Object containing the user-selectable properties of the new Cache. If read-only * properties are included, they must match the existing values of those properties. * @param options The options parameters. */ @@ -416,9 +416,9 @@ export class CachesImpl implements Caches { } /** - * Update a cache instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Update a Cache instance. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -486,9 +486,9 @@ export class CachesImpl implements Caches { } /** - * Update a cache instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Update a Cache instance. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -506,9 +506,9 @@ export class CachesImpl implements Caches { } /** - * Tells a cache to write generate debug info for support to process. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Cache to write generate debug info for support to process. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -571,9 +571,9 @@ export class CachesImpl implements Caches { } /** - * Tells a cache to write generate debug info for support to process. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Cache to write generate debug info for support to process. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -591,10 +591,10 @@ export class CachesImpl implements Caches { } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see * errors returned until the flush is complete. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -657,10 +657,10 @@ export class CachesImpl implements Caches { } /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see * errors returned until the flush is complete. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -674,9 +674,9 @@ export class CachesImpl implements Caches { } /** - * Tells a Stopped state cache to transition to Active state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Stopped state Cache to transition to Active state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -739,9 +739,9 @@ export class CachesImpl implements Caches { } /** - * Tells a Stopped state cache to transition to Active state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Stopped state Cache to transition to Active state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -755,9 +755,9 @@ export class CachesImpl implements Caches { } /** - * Tells an Active cache to transition to Stopped state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells an Active Cache to transition to Stopped state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -820,9 +820,9 @@ export class CachesImpl implements Caches { } /** - * Tells an Active cache to transition to Stopped state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells an Active Cache to transition to Stopped state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -837,8 +837,8 @@ export class CachesImpl implements Caches { /** * Create a priming job. This operation is only allowed when the cache is healthy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -910,8 +910,8 @@ export class CachesImpl implements Caches { /** * Create a priming job. This operation is only allowed when the cache is healthy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -930,8 +930,8 @@ export class CachesImpl implements Caches { /** * Schedule a priming job for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1003,8 +1003,8 @@ export class CachesImpl implements Caches { /** * Schedule a priming job for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1023,8 +1023,8 @@ export class CachesImpl implements Caches { /** * Schedule a priming job to be paused. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1096,8 +1096,8 @@ export class CachesImpl implements Caches { /** * Schedule a priming job to be paused. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1116,8 +1116,8 @@ export class CachesImpl implements Caches { /** * Resumes a paused priming job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1189,8 +1189,8 @@ export class CachesImpl implements Caches { /** * Resumes a paused priming job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1208,9 +1208,9 @@ export class CachesImpl implements Caches { } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1273,9 +1273,9 @@ export class CachesImpl implements Caches { } /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1294,8 +1294,8 @@ export class CachesImpl implements Caches { /** * Update cache space allocation. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1367,8 +1367,8 @@ export class CachesImpl implements Caches { /** * Update cache space allocation. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -1402,7 +1402,7 @@ export class CachesImpl implements Caches { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Target resource group. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ diff --git a/sdk/storagecache/arm-storagecache/src/operations/index.ts b/sdk/storagecache/arm-storagecache/src/operations/index.ts index 90ffd761b195..cf99b666ad1e 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/index.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/index.ts @@ -14,4 +14,3 @@ export * from "./ascUsages"; export * from "./caches"; export * from "./storageTargets"; export * from "./storageTargetOperations"; -export * from "./amlFilesystems"; diff --git a/sdk/storagecache/arm-storagecache/src/operations/storageTargetOperations.ts b/sdk/storagecache/arm-storagecache/src/operations/storageTargetOperations.ts index fa9652c6e192..d2f8a8d61980 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/storageTargetOperations.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/storageTargetOperations.ts @@ -39,8 +39,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to * this storage target's namespace will return errors until the flush operation completes. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -107,8 +107,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to * this storage target's namespace will return errors until the flush operation completes. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -130,8 +130,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Suspends client access to a storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -197,8 +197,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Suspends client access to a storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -220,8 +220,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Resumes client access to a previously suspended storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -287,8 +287,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Resumes client access to a previously suspended storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -311,8 +311,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the * back end on the next request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -379,8 +379,8 @@ export class StorageTargetOperationsImpl implements StorageTargetOperations { /** * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the * back end on the next request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. diff --git a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts index 5d3b7927afae..ce207d1248c0 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts @@ -48,9 +48,9 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Returns a list of Storage Targets for the specified cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a list of Storage Targets for the specified Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -130,8 +130,8 @@ export class StorageTargetsImpl implements StorageTargets { /** * Tells a storage target to refresh its DNS information. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -197,8 +197,8 @@ export class StorageTargetsImpl implements StorageTargets { /** * Tells a storage target to refresh its DNS information. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -219,9 +219,9 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Returns a list of Storage Targets for the specified cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a list of Storage Targets for the specified Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -237,12 +237,12 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is - * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is - * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is + * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is + * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be * flushed before the Storage Target will be deleted. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -306,12 +306,12 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is - * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is - * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is + * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is + * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be * flushed before the Storage Target will be deleted. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -332,9 +332,9 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Returns a Storage Target from a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a Storage Target from a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -352,11 +352,11 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down - * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down + * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache * is healthy again. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -436,11 +436,11 @@ export class StorageTargetsImpl implements StorageTargets { } /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down - * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down + * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache * is healthy again. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -465,8 +465,8 @@ export class StorageTargetsImpl implements StorageTargets { /** * Tells a storage target to restore its settings to their default values. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -532,8 +532,8 @@ export class StorageTargetsImpl implements StorageTargets { /** * Tells a storage target to restore its settings to their default values. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -555,8 +555,8 @@ export class StorageTargetsImpl implements StorageTargets { /** * ListByCacheNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param nextLink The nextLink from the previous successful call to the ListByCache method. * @param options The options parameters. diff --git a/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts b/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts index d59cbbf7e8e9..858ddc1d714e 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts @@ -35,7 +35,7 @@ export class UsageModelsImpl implements UsageModels { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * @param options The options parameters. */ public list( @@ -89,7 +89,7 @@ export class UsageModelsImpl implements UsageModels { } /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * @param options The options parameters. */ private _list( diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/amlFilesystems.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/amlFilesystems.ts deleted file mode 100644 index fc2666976784..000000000000 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/amlFilesystems.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - AmlFilesystem, - AmlFilesystemsListOptionalParams, - AmlFilesystemsListByResourceGroupOptionalParams, - AmlFilesystemsDeleteOptionalParams, - AmlFilesystemsGetOptionalParams, - AmlFilesystemsGetResponse, - AmlFilesystemsCreateOrUpdateOptionalParams, - AmlFilesystemsCreateOrUpdateResponse, - AmlFilesystemUpdate, - AmlFilesystemsUpdateOptionalParams, - AmlFilesystemsUpdateResponse, - AmlFilesystemsArchiveOptionalParams, - AmlFilesystemsCancelArchiveOptionalParams -} from "../models"; - -/// -/** Interface representing a AmlFilesystems. */ -export interface AmlFilesystems { - /** - * Returns all AML file systems the user has access to under a subscription. - * @param options The options parameters. - */ - list( - options?: AmlFilesystemsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns all AML file systems the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: AmlFilesystemsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Schedules an AML file system for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsDeleteOptionalParams - ): Promise, void>>; - /** - * Schedules an AML file system for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsDeleteOptionalParams - ): Promise; - /** - * Returns an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsGetOptionalParams - ): Promise; - /** - * Create or update an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystem, - options?: AmlFilesystemsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AmlFilesystemsCreateOrUpdateResponse - > - >; - /** - * Create or update an AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystem, - options?: AmlFilesystemsCreateOrUpdateOptionalParams - ): Promise; - /** - * Update an AML file system instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystemUpdate, - options?: AmlFilesystemsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AmlFilesystemsUpdateResponse - > - >; - /** - * Update an AML file system instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If - * read-only properties are included, they must match the existing values of those properties. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - amlFilesystemName: string, - amlFilesystem: AmlFilesystemUpdate, - options?: AmlFilesystemsUpdateOptionalParams - ): Promise; - /** - * Archive data from the AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - archive( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsArchiveOptionalParams - ): Promise; - /** - * Cancel archiving data from the AML file system. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and - * hyphens. Start and end with alphanumeric. - * @param options The options parameters. - */ - cancelArchive( - resourceGroupName: string, - amlFilesystemName: string, - options?: AmlFilesystemsCancelArchiveOptionalParams - ): Promise; -} diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.ts index 1fabda5b551f..95356add12e8 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.ts @@ -15,8 +15,8 @@ import { export interface AscOperations { /** * Gets the status of an asynchronous operation for the Azure HPC Cache - * @param location The name of Azure region. - * @param operationId The ID of an ongoing async operation. + * @param location The name of the region used to look up the operation. + * @param operationId The operation id which uniquely identifies the asynchronous operation. * @param options The options parameters. */ get( diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/caches.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/caches.ts index e695f16bde9c..616406e66844 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/caches.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/caches.ts @@ -40,13 +40,13 @@ import { /** Interface representing a Caches. */ export interface Caches { /** - * Returns all caches the user has access to under a subscription. + * Returns all Caches the user has access to under a subscription. * @param options The options parameters. */ list(options?: CachesListOptionalParams): PagedAsyncIterableIterator; /** - * Returns all caches the user has access to under a resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * Returns all Caches the user has access to under a resource group. + * @param resourceGroupName Target resource group. * @param options The options parameters. */ listByResourceGroup( @@ -54,9 +54,9 @@ export interface Caches { options?: CachesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** - * Schedules a cache for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Schedules a Cache for deletion. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -66,9 +66,9 @@ export interface Caches { options?: CachesDeleteOptionalParams ): Promise, void>>; /** - * Schedules a cache for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Schedules a Cache for deletion. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -78,9 +78,9 @@ export interface Caches { options?: CachesDeleteOptionalParams ): Promise; /** - * Returns a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -90,11 +90,11 @@ export interface Caches { options?: CachesGetOptionalParams ): Promise; /** - * Create or update a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Create or update a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only + * @param cache Object containing the user-selectable properties of the new Cache. If read-only * properties are included, they must match the existing values of those properties. * @param options The options parameters. */ @@ -110,11 +110,11 @@ export interface Caches { > >; /** - * Create or update a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Create or update a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. - * @param cache Object containing the user-selectable properties of the new cache. If read-only + * @param cache Object containing the user-selectable properties of the new Cache. If read-only * properties are included, they must match the existing values of those properties. * @param options The options parameters. */ @@ -125,9 +125,9 @@ export interface Caches { options?: CachesCreateOrUpdateOptionalParams ): Promise; /** - * Update a cache instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Update a Cache instance. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -139,9 +139,9 @@ export interface Caches { SimplePollerLike, CachesUpdateResponse> >; /** - * Update a cache instance. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Update a Cache instance. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -151,9 +151,9 @@ export interface Caches { options?: CachesUpdateOptionalParams ): Promise; /** - * Tells a cache to write generate debug info for support to process. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Cache to write generate debug info for support to process. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -163,9 +163,9 @@ export interface Caches { options?: CachesDebugInfoOptionalParams ): Promise, void>>; /** - * Tells a cache to write generate debug info for support to process. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Cache to write generate debug info for support to process. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -175,10 +175,10 @@ export interface Caches { options?: CachesDebugInfoOptionalParams ): Promise; /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see * errors returned until the flush is complete. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -188,10 +188,10 @@ export interface Caches { options?: CachesFlushOptionalParams ): Promise, void>>; /** - * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see + * Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see * errors returned until the flush is complete. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -201,9 +201,9 @@ export interface Caches { options?: CachesFlushOptionalParams ): Promise; /** - * Tells a Stopped state cache to transition to Active state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Stopped state Cache to transition to Active state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -213,9 +213,9 @@ export interface Caches { options?: CachesStartOptionalParams ): Promise, void>>; /** - * Tells a Stopped state cache to transition to Active state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells a Stopped state Cache to transition to Active state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -225,9 +225,9 @@ export interface Caches { options?: CachesStartOptionalParams ): Promise; /** - * Tells an Active cache to transition to Stopped state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells an Active Cache to transition to Stopped state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -237,9 +237,9 @@ export interface Caches { options?: CachesStopOptionalParams ): Promise, void>>; /** - * Tells an Active cache to transition to Stopped state. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Tells an Active Cache to transition to Stopped state. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -250,8 +250,8 @@ export interface Caches { ): Promise; /** * Create a priming job. This operation is only allowed when the cache is healthy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -267,8 +267,8 @@ export interface Caches { >; /** * Create a priming job. This operation is only allowed when the cache is healthy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -279,8 +279,8 @@ export interface Caches { ): Promise; /** * Schedule a priming job for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -296,8 +296,8 @@ export interface Caches { >; /** * Schedule a priming job for deletion. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -308,8 +308,8 @@ export interface Caches { ): Promise; /** * Schedule a priming job to be paused. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -325,8 +325,8 @@ export interface Caches { >; /** * Schedule a priming job to be paused. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -337,8 +337,8 @@ export interface Caches { ): Promise; /** * Resumes a paused priming job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -354,8 +354,8 @@ export interface Caches { >; /** * Resumes a paused priming job. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -365,9 +365,9 @@ export interface Caches { options?: CachesResumePrimingJobOptionalParams ): Promise; /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -377,9 +377,9 @@ export interface Caches { options?: CachesUpgradeFirmwareOptionalParams ): Promise, void>>; /** - * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -390,8 +390,8 @@ export interface Caches { ): Promise; /** * Update cache space allocation. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -407,8 +407,8 @@ export interface Caches { >; /** * Update cache space allocation. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts index 90ffd761b195..cf99b666ad1e 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts @@ -14,4 +14,3 @@ export * from "./ascUsages"; export * from "./caches"; export * from "./storageTargets"; export * from "./storageTargetOperations"; -export * from "./amlFilesystems"; diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargetOperations.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargetOperations.ts index 9dd0f405ef03..d5ec17515a22 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargetOperations.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargetOperations.ts @@ -19,8 +19,8 @@ export interface StorageTargetOperations { /** * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to * this storage target's namespace will return errors until the flush operation completes. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -34,8 +34,8 @@ export interface StorageTargetOperations { /** * Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to * this storage target's namespace will return errors until the flush operation completes. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -48,8 +48,8 @@ export interface StorageTargetOperations { ): Promise; /** * Suspends client access to a storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -62,8 +62,8 @@ export interface StorageTargetOperations { ): Promise, void>>; /** * Suspends client access to a storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -76,8 +76,8 @@ export interface StorageTargetOperations { ): Promise; /** * Resumes client access to a previously suspended storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -90,8 +90,8 @@ export interface StorageTargetOperations { ): Promise, void>>; /** * Resumes client access to a previously suspended storage target. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -105,8 +105,8 @@ export interface StorageTargetOperations { /** * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the * back end on the next request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -120,8 +120,8 @@ export interface StorageTargetOperations { /** * Invalidate all cached data for a storage target. Cached files are discarded and fetched from the * back end on the next request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargets.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargets.ts index bc9bf4055071..c9eebaef1dc2 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargets.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargets.ts @@ -24,9 +24,9 @@ import { /** Interface representing a StorageTargets. */ export interface StorageTargets { /** - * Returns a list of Storage Targets for the specified cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a list of Storage Targets for the specified Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param options The options parameters. */ @@ -37,8 +37,8 @@ export interface StorageTargets { ): PagedAsyncIterableIterator; /** * Tells a storage target to refresh its DNS information. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -51,8 +51,8 @@ export interface StorageTargets { ): Promise, void>>; /** * Tells a storage target to refresh its DNS information. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -64,12 +64,12 @@ export interface StorageTargets { options?: StorageTargetsDnsRefreshOptionalParams ): Promise; /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is - * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is - * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is + * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is + * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be * flushed before the Storage Target will be deleted. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -81,12 +81,12 @@ export interface StorageTargets { options?: StorageTargetsDeleteOptionalParams ): Promise, void>>; /** - * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is - * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is - * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be + * Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is + * down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is + * healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be * flushed before the Storage Target will be deleted. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -98,9 +98,9 @@ export interface StorageTargets { options?: StorageTargetsDeleteOptionalParams ): Promise; /** - * Returns a Storage Target from a cache. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * Returns a Storage Target from a Cache. + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -112,11 +112,11 @@ export interface StorageTargets { options?: StorageTargetsGetOptionalParams ): Promise; /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down - * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down + * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache * is healthy again. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -135,11 +135,11 @@ export interface StorageTargets { > >; /** - * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down - * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache + * Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down + * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache * is healthy again. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param storagetarget Object containing the definition of a Storage Target. @@ -154,8 +154,8 @@ export interface StorageTargets { ): Promise; /** * Tells a storage target to restore its settings to their default values. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. @@ -168,8 +168,8 @@ export interface StorageTargets { ): Promise, void>>; /** * Tells a storage target to restore its settings to their default values. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from + * @param resourceGroupName Target resource group. + * @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from * the [-0-9a-zA-Z_] char class. * @param storageTargetName Name of Storage Target. * @param options The options parameters. diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/usageModels.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/usageModels.ts index f078618127cf..b07e9c06165d 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/usageModels.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/usageModels.ts @@ -13,7 +13,7 @@ import { UsageModel, UsageModelsListOptionalParams } from "../models"; /** Interface representing a UsageModels. */ export interface UsageModels { /** - * Get the list of cache usage models available to this subscription. + * Get the list of Cache Usage Models available to this subscription. * @param options The options parameters. */ list( diff --git a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts index fbdf047aeae2..f0c8c646c134 100644 --- a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts +++ b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts @@ -22,8 +22,7 @@ import { AscUsagesImpl, CachesImpl, StorageTargetsImpl, - StorageTargetOperationsImpl, - AmlFilesystemsImpl + StorageTargetOperationsImpl } from "./operations"; import { Operations, @@ -33,17 +32,9 @@ import { AscUsages, Caches, StorageTargets, - StorageTargetOperations, - AmlFilesystems + StorageTargetOperations } from "./operationsInterfaces"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; -import { - StorageCacheManagementClientOptionalParams, - CheckAmlFSSubnetsOptionalParams, - GetRequiredAmlFSSubnetsSizeOptionalParams, - GetRequiredAmlFSSubnetsSizeResponse -} from "./models"; +import { StorageCacheManagementClientOptionalParams } from "./models"; export class StorageCacheManagementClient extends coreClient.ServiceClient { $host: string; @@ -53,7 +44,8 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the StorageCacheManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. + * The subscription ID forms part of the URI for every service call. * @param options The parameter options */ constructor( @@ -77,7 +69,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-storagecache/7.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-storagecache/7.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -130,7 +122,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-03-01-preview"; + this.apiVersion = options.apiVersion || "2023-01-01"; this.operations = new OperationsImpl(this); this.skus = new SkusImpl(this); this.usageModels = new UsageModelsImpl(this); @@ -139,7 +131,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { this.caches = new CachesImpl(this); this.storageTargets = new StorageTargetsImpl(this); this.storageTargetOperations = new StorageTargetOperationsImpl(this); - this.amlFilesystems = new AmlFilesystemsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -171,30 +162,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - /** - * Check that subnets will be valid for AML file system create calls. - * @param options The options parameters. - */ - checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise { - return this.sendOperationRequest( - { options }, - checkAmlFSSubnetsOperationSpec - ); - } - - /** - * Get the number of available IP addresses needed for the AML file system information provided. - * @param options The options parameters. - */ - getRequiredAmlFSSubnetsSize( - options?: GetRequiredAmlFSSubnetsSizeOptionalParams - ): Promise { - return this.sendOperationRequest( - { options }, - getRequiredAmlFSSubnetsSizeOperationSpec - ); - } - operations: Operations; skus: Skus; usageModels: UsageModels; @@ -203,48 +170,4 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { caches: Caches; storageTargets: StorageTargets; storageTargetOperations: StorageTargetOperations; - amlFilesystems: AmlFilesystems; } -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const checkAmlFSSubnetsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets", - httpMethod: "POST", - responses: { - 200: {}, - 400: { - bodyMapper: Mappers.AmlFilesystemCheckSubnetError, - isError: true - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.amlFilesystemSubnetInfo, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getRequiredAmlFSSubnetsSizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/storagecache/arm-storagecache/test/sampleTest.ts b/sdk/storagecache/arm-storagecache/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/storagecache/arm-storagecache/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/storagecache/arm-storagecache/tsconfig.json b/sdk/storagecache/arm-storagecache/tsconfig.json index 1054055624f9..3e6ae96443f3 100644 --- a/sdk/storagecache/arm-storagecache/tsconfig.json +++ b/sdk/storagecache/arm-storagecache/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-storagecache": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"