| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using Azure.Core; |
| | 10 | | using Azure.Core.Pipeline; |
| | 11 | | using Azure.ResourceManager.Storage; |
| | 12 | |
|
| | 13 | | namespace Azure.ResourceManager.Storage |
| | 14 | | { |
| | 15 | | /// <summary> Storage service management client. </summary> |
| | 16 | | public class StorageManagementClient |
| | 17 | | { |
| | 18 | | private readonly ClientDiagnostics _clientDiagnostics; |
| | 19 | | private readonly HttpPipeline _pipeline; |
| | 20 | | private readonly Uri _endpoint; |
| | 21 | | private readonly string _subscriptionId; |
| | 22 | |
|
| | 23 | | /// <summary> Initializes a new instance of StorageManagementClient for mocking. </summary> |
| 240 | 24 | | protected StorageManagementClient() |
| | 25 | | { |
| 240 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of StorageManagementClient. </summary> |
| | 29 | | /// <param name="subscriptionId"> The ID of the target subscription. </param> |
| | 30 | | /// <param name="tokenCredential"> The OAuth token for making client requests. </param> |
| | 31 | | /// <param name="options"> The options for configuring the client. </param> |
| 240 | 32 | | public StorageManagementClient(string subscriptionId, TokenCredential tokenCredential, StorageManagementClientOp |
| | 33 | | { |
| 240 | 34 | | } |
| | 35 | | /// <summary> Initializes a new instance of StorageManagementClient. </summary> |
| | 36 | | /// <param name="endpoint"> server parameter. </param> |
| | 37 | | /// <param name="subscriptionId"> The ID of the target subscription. </param> |
| | 38 | | /// <param name="tokenCredential"> The OAuth token for making client requests. </param> |
| | 39 | | /// <param name="options"> The options for configuring the client. </param> |
| | 40 | | /// <exception cref="ArgumentNullException"> This occurs when one of the required arguments is null. </exception |
| 240 | 41 | | public StorageManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, StorageMana |
| | 42 | | { |
| 240 | 43 | | endpoint ??= new Uri("https://management.azure.com"); |
| 240 | 44 | | if (subscriptionId == null) |
| | 45 | | { |
| 0 | 46 | | throw new ArgumentNullException(nameof(subscriptionId)); |
| | 47 | | } |
| | 48 | |
|
| 240 | 49 | | options ??= new StorageManagementClientOptions(); |
| 240 | 50 | | _clientDiagnostics = new ClientDiagnostics(options); |
| 240 | 51 | | _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); |
| 240 | 52 | | _endpoint = endpoint; |
| 240 | 53 | | _subscriptionId = subscriptionId; |
| 240 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> Returns an instance of Operations. </summary> |
| 0 | 57 | | public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint); |
| | 58 | |
|
| | 59 | | /// <summary> Returns an instance of SkusOperations. </summary> |
| 240 | 60 | | public virtual SkusOperations Skus => new SkusOperations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoi |
| | 61 | |
|
| | 62 | | /// <summary> Returns an instance of StorageAccountsOperations. </summary> |
| 240 | 63 | | public virtual StorageAccountsOperations StorageAccounts => new StorageAccountsOperations(_clientDiagnostics, _p |
| | 64 | |
|
| | 65 | | /// <summary> Returns an instance of UsagesOperations. </summary> |
| 240 | 66 | | public virtual UsagesOperations Usages => new UsagesOperations(_clientDiagnostics, _pipeline, _subscriptionId, _ |
| | 67 | |
|
| | 68 | | /// <summary> Returns an instance of ManagementPoliciesOperations. </summary> |
| 240 | 69 | | public virtual ManagementPoliciesOperations ManagementPolicies => new ManagementPoliciesOperations(_clientDiagno |
| | 70 | |
|
| | 71 | | /// <summary> Returns an instance of PrivateEndpointConnectionsOperations. </summary> |
| 240 | 72 | | public virtual PrivateEndpointConnectionsOperations PrivateEndpointConnections => new PrivateEndpointConnections |
| | 73 | |
|
| | 74 | | /// <summary> Returns an instance of PrivateLinkResourcesOperations. </summary> |
| 240 | 75 | | public virtual PrivateLinkResourcesOperations PrivateLinkResources => new PrivateLinkResourcesOperations(_client |
| | 76 | |
|
| | 77 | | /// <summary> Returns an instance of ObjectReplicationPoliciesOperations. </summary> |
| 240 | 78 | | public virtual ObjectReplicationPoliciesOperations ObjectReplicationPolicies => new ObjectReplicationPoliciesOpe |
| | 79 | |
|
| | 80 | | /// <summary> Returns an instance of EncryptionScopesOperations. </summary> |
| 240 | 81 | | public virtual EncryptionScopesOperations EncryptionScopes => new EncryptionScopesOperations(_clientDiagnostics, |
| | 82 | |
|
| | 83 | | /// <summary> Returns an instance of BlobServicesOperations. </summary> |
| 240 | 84 | | public virtual BlobServicesOperations BlobServices => new BlobServicesOperations(_clientDiagnostics, _pipeline, |
| | 85 | |
|
| | 86 | | /// <summary> Returns an instance of BlobContainersOperations. </summary> |
| 240 | 87 | | public virtual BlobContainersOperations BlobContainers => new BlobContainersOperations(_clientDiagnostics, _pipe |
| | 88 | |
|
| | 89 | | /// <summary> Returns an instance of FileServicesOperations. </summary> |
| 240 | 90 | | public virtual FileServicesOperations FileServices => new FileServicesOperations(_clientDiagnostics, _pipeline, |
| | 91 | |
|
| | 92 | | /// <summary> Returns an instance of FileSharesOperations. </summary> |
| 240 | 93 | | public virtual FileSharesOperations FileShares => new FileSharesOperations(_clientDiagnostics, _pipeline, _subsc |
| | 94 | |
|
| | 95 | | /// <summary> Returns an instance of QueueServicesOperations. </summary> |
| 0 | 96 | | public virtual QueueServicesOperations QueueServices => new QueueServicesOperations(_clientDiagnostics, _pipelin |
| | 97 | |
|
| | 98 | | /// <summary> Returns an instance of QueueOperations. </summary> |
| 0 | 99 | | public virtual QueueOperations Queue => new QueueOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end |
| | 100 | |
|
| | 101 | | /// <summary> Returns an instance of TableServicesOperations. </summary> |
| 0 | 102 | | public virtual TableServicesOperations TableServices => new TableServicesOperations(_clientDiagnostics, _pipelin |
| | 103 | |
|
| | 104 | | /// <summary> Returns an instance of TableOperations. </summary> |
| 0 | 105 | | public virtual TableOperations Table => new TableOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end |
| | 106 | | } |
| | 107 | | } |