import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { OperationsImpl , SkusImpl , StorageAccountsImpl , DeletedAccountsImpl , UsagesImpl , ManagementPoliciesImpl , BlobInventoryPoliciesImpl , PrivateEndpointConnectionsImpl , PrivateLinkResourcesImpl , ObjectReplicationPoliciesOperationsImpl , EncryptionScopesImpl , BlobServicesImpl , BlobContainersImpl , FileServicesImpl , FileSharesImpl , QueueServicesImpl , QueueImpl , TableServicesImpl , TableOperationsImpl } from "./operations" ; import { Operations , Skus , StorageAccounts , DeletedAccounts , Usages , ManagementPolicies , BlobInventoryPolicies , PrivateEndpointConnections , PrivateLinkResources , ObjectReplicationPoliciesOperations , EncryptionScopes , BlobServices , BlobContainers , FileServices , FileShares , QueueServices , Queue , TableServices , TableOperations } from "./operationsInterfaces" ; import { StorageManagementClientOptionalParams } from "./models" ; export class StorageManagementClient extends coreClient . ServiceClient { $host : string ; apiVersion : string ; subscriptionId : string ; param credentials param subscriptionId param options constructor ( credentials , subscriptionId , options ? ) { if ( credentials === undefined ) { throw new Error ( "'credentials' cannot be null" ) ; } if ( subscriptionId === undefined ) { throw new Error ( "'subscriptionId' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" , credential : credentials } ; const packageDetails = `azsdk-js-storage-resource-manager/1.0.0-beta.1` ; const userAgentPrefix = options . userAgentOptions && options . userAgentOptions . userAgentPrefix ? `${ options . userAgentOptions . userAgentPrefix } ${ packageDetails }` : `${ packageDetails }` ; const optionsWithDefaults = { ... defaults , ... options , userAgentOptions : { userAgentPrefix } , baseUri : options . endpoint || "https://management.azure.com" } ; super ( optionsWithDefaults ) ; this . subscriptionId = subscriptionId ; this . $host = options . $host || "https://management.azure.com" ; this . apiVersion = options . apiVersion || "2021-06-01" ; this . operations = new OperationsImpl ( this ) ; this . skus = new SkusImpl ( this ) ; this . storageAccounts = new StorageAccountsImpl ( this ) ; this . deletedAccounts = new DeletedAccountsImpl ( this ) ; this . usages = new UsagesImpl ( this ) ; this . managementPolicies = new ManagementPoliciesImpl ( this ) ; this . blobInventoryPolicies = new BlobInventoryPoliciesImpl ( this ) ; this . privateEndpointConnections = new PrivateEndpointConnectionsImpl ( this ) ; this . privateLinkResources = new PrivateLinkResourcesImpl ( this ) ; this . objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsImpl ( this ) ; this . encryptionScopes = new EncryptionScopesImpl ( this ) ; this . blobServices = new BlobServicesImpl ( this ) ; this . blobContainers = new BlobContainersImpl ( this ) ; this . fileServices = new FileServicesImpl ( this ) ; this . fileShares = new FileSharesImpl ( this ) ; this . queueServices = new QueueServicesImpl ( this ) ; this . queue = new QueueImpl ( this ) ; this . tableServices = new TableServicesImpl ( this ) ; this . tableOperations = new TableOperationsImpl ( this ) ; } operations : Operations ; skus : Skus ; storageAccounts : StorageAccounts ; deletedAccounts : DeletedAccounts ; usages : Usages ; managementPolicies : ManagementPolicies ; blobInventoryPolicies : BlobInventoryPolicies ; privateEndpointConnections : PrivateEndpointConnections ; privateLinkResources : PrivateLinkResources ; objectReplicationPoliciesOperations : ObjectReplicationPoliciesOperations ; encryptionScopes : EncryptionScopes ; blobServices : BlobServices ; blobContainers : BlobContainers ; fileServices : FileServices ; fileShares : FileShares ; queueServices : QueueServices ; queue : Queue ; tableServices : TableServices ; tableOperations : TableOperations ; }