| | 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.AppConfiguration; |
| | 12 | |
|
| | 13 | | namespace Azure.ResourceManager.AppConfiguration |
| | 14 | | { |
| | 15 | | /// <summary> AppConfiguration service management client. </summary> |
| | 16 | | public class AppConfigurationManagementClient |
| | 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 AppConfigurationManagementClient for mocking. </summary> |
| 8 | 24 | | protected AppConfigurationManagementClient() |
| | 25 | | { |
| 8 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of AppConfigurationManagementClient. </summary> |
| | 29 | | /// <param name="subscriptionId"> The Microsoft Azure subscription ID. </param> |
| | 30 | | /// <param name="tokenCredential"> The OAuth token for making client requests. </param> |
| | 31 | | /// <param name="options"> The options for configuring the client. </param> |
| 8 | 32 | | public AppConfigurationManagementClient(string subscriptionId, TokenCredential tokenCredential, AppConfiguration |
| | 33 | | { |
| 8 | 34 | | } |
| | 35 | | /// <summary> Initializes a new instance of AppConfigurationManagementClient. </summary> |
| | 36 | | /// <param name="subscriptionId"> The Microsoft Azure subscription ID. </param> |
| | 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 |
| 8 | 41 | | public AppConfigurationManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, Ap |
| | 42 | | { |
| 8 | 43 | | if (subscriptionId == null) |
| | 44 | | { |
| 0 | 45 | | throw new ArgumentNullException(nameof(subscriptionId)); |
| | 46 | | } |
| 8 | 47 | | endpoint ??= new Uri("https://management.azure.com"); |
| | 48 | |
|
| 8 | 49 | | options ??= new AppConfigurationManagementClientOptions(); |
| 8 | 50 | | _clientDiagnostics = new ClientDiagnostics(options); |
| 8 | 51 | | _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); |
| 8 | 52 | | _subscriptionId = subscriptionId; |
| 8 | 53 | | _endpoint = endpoint; |
| 8 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> Returns an instance of ConfigurationStoresOperations. </summary> |
| 8 | 57 | | public virtual ConfigurationStoresOperations ConfigurationStores => new ConfigurationStoresOperations(_clientDia |
| | 58 | |
|
| | 59 | | /// <summary> Returns an instance of Operations. </summary> |
| 8 | 60 | | public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint |
| | 61 | |
|
| | 62 | | /// <summary> Returns an instance of PrivateEndpointConnectionsOperations. </summary> |
| 8 | 63 | | public virtual PrivateEndpointConnectionsOperations PrivateEndpointConnections => new PrivateEndpointConnections |
| | 64 | |
|
| | 65 | | /// <summary> Returns an instance of PrivateLinkResourcesOperations. </summary> |
| 8 | 66 | | public virtual PrivateLinkResourcesOperations PrivateLinkResources => new PrivateLinkResourcesOperations(_client |
| | 67 | | } |
| | 68 | | } |