| | | 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.EventHubs; |
| | | 12 | | |
| | | 13 | | namespace Azure.ResourceManager.EventHubs |
| | | 14 | | { |
| | | 15 | | /// <summary> EventHubs service management client. </summary> |
| | | 16 | | public class EventHubsManagementClient |
| | | 17 | | { |
| | | 18 | | private readonly ClientDiagnostics _clientDiagnostics; |
| | | 19 | | private readonly HttpPipeline _pipeline; |
| | | 20 | | private readonly string _subscriptionId; |
| | | 21 | | private readonly Uri _endpoint; |
| | | 22 | | |
| | | 23 | | /// <summary> Initializes a new instance of EventHubsManagementClient for mocking. </summary> |
| | 48 | 24 | | protected EventHubsManagementClient() |
| | | 25 | | { |
| | 48 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> Initializes a new instance of EventHubsManagementClient. </summary> |
| | | 29 | | /// <param name="subscriptionId"> Subscription credentials that uniquely identify a Microsoft Azure subscription |
| | | 30 | | /// <param name="tokenCredential"> The OAuth token for making client requests. </param> |
| | | 31 | | /// <param name="options"> The options for configuring the client. </param> |
| | 48 | 32 | | public EventHubsManagementClient(string subscriptionId, TokenCredential tokenCredential, EventHubsManagementClie |
| | | 33 | | { |
| | 48 | 34 | | } |
| | | 35 | | /// <summary> Initializes a new instance of EventHubsManagementClient. </summary> |
| | | 36 | | /// <param name="subscriptionId"> Subscription credentials that uniquely identify a Microsoft Azure subscription |
| | | 37 | | /// <param name="endpoint"> server parameter. </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 |
| | 48 | 41 | | public EventHubsManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, EventHubs |
| | | 42 | | { |
| | 48 | 43 | | if (subscriptionId == null) |
| | | 44 | | { |
| | 0 | 45 | | throw new ArgumentNullException(nameof(subscriptionId)); |
| | | 46 | | } |
| | 48 | 47 | | endpoint ??= new Uri("https://management.azure.com"); |
| | | 48 | | |
| | 48 | 49 | | options ??= new EventHubsManagementClientOptions(); |
| | 48 | 50 | | _clientDiagnostics = new ClientDiagnostics(options); |
| | 48 | 51 | | _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); |
| | 48 | 52 | | _subscriptionId = subscriptionId; |
| | 48 | 53 | | _endpoint = endpoint; |
| | 48 | 54 | | } |
| | | 55 | | |
| | | 56 | | /// <summary> Returns an instance of ClustersOperations. </summary> |
| | 0 | 57 | | public virtual ClustersOperations Clusters => new ClustersOperations(_clientDiagnostics, _pipeline, _subscriptio |
| | | 58 | | |
| | | 59 | | /// <summary> Returns an instance of NamespacesOperations. </summary> |
| | 48 | 60 | | public virtual NamespacesOperations Namespaces => new NamespacesOperations(_clientDiagnostics, _pipeline, _subsc |
| | | 61 | | |
| | | 62 | | /// <summary> Returns an instance of ConfigurationOperations. </summary> |
| | 0 | 63 | | public virtual ConfigurationOperations Configuration => new ConfigurationOperations(_clientDiagnostics, _pipelin |
| | | 64 | | |
| | | 65 | | /// <summary> Returns an instance of DisasterRecoveryConfigsOperations. </summary> |
| | 48 | 66 | | public virtual DisasterRecoveryConfigsOperations DisasterRecoveryConfigs => new DisasterRecoveryConfigsOperation |
| | | 67 | | |
| | | 68 | | /// <summary> Returns an instance of EventHubsOperations. </summary> |
| | 48 | 69 | | public virtual EventHubsOperations EventHubs => new EventHubsOperations(_clientDiagnostics, _pipeline, _subscrip |
| | | 70 | | |
| | | 71 | | /// <summary> Returns an instance of ConsumerGroupsOperations. </summary> |
| | 48 | 72 | | public virtual ConsumerGroupsOperations ConsumerGroups => new ConsumerGroupsOperations(_clientDiagnostics, _pipe |
| | | 73 | | |
| | | 74 | | /// <summary> Returns an instance of Operations. </summary> |
| | 48 | 75 | | public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint); |
| | | 76 | | |
| | | 77 | | /// <summary> Returns an instance of RegionsOperations. </summary> |
| | 0 | 78 | | public virtual RegionsOperations Regions => new RegionsOperations(_clientDiagnostics, _pipeline, _subscriptionId |
| | | 79 | | } |
| | | 80 | | } |