| | 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.Resources; |
| | 12 | |
|
| | 13 | | namespace Azure.ResourceManager.Resources |
| | 14 | | { |
| | 15 | | /// <summary> Resources service management client. </summary> |
| | 16 | | public class ResourcesManagementClient |
| | 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 ResourcesManagementClient for mocking. </summary> |
| 564 | 24 | | protected ResourcesManagementClient() |
| | 25 | | { |
| 564 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of ResourcesManagementClient. </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> |
| 564 | 32 | | public ResourcesManagementClient(string subscriptionId, TokenCredential tokenCredential, ResourcesManagementClie |
| | 33 | | { |
| 564 | 34 | | } |
| | 35 | | /// <summary> Initializes a new instance of ResourcesManagementClient. </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 |
| 564 | 41 | | public ResourcesManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, Resources |
| | 42 | | { |
| 564 | 43 | | endpoint ??= new Uri("https://management.azure.com"); |
| 564 | 44 | | if (subscriptionId == null) |
| | 45 | | { |
| 0 | 46 | | throw new ArgumentNullException(nameof(subscriptionId)); |
| | 47 | | } |
| | 48 | |
|
| 564 | 49 | | options ??= new ResourcesManagementClientOptions(); |
| 564 | 50 | | _clientDiagnostics = new ClientDiagnostics(options); |
| 564 | 51 | | _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); |
| 564 | 52 | | _endpoint = endpoint; |
| 564 | 53 | | _subscriptionId = subscriptionId; |
| 564 | 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 DeploymentsOperations. </summary> |
| 352 | 60 | | public virtual DeploymentsOperations Deployments => new DeploymentsOperations(_clientDiagnostics, _pipeline, _su |
| | 61 | |
|
| | 62 | | /// <summary> Returns an instance of ProvidersOperations. </summary> |
| 284 | 63 | | public virtual ProvidersOperations Providers => new ProvidersOperations(_clientDiagnostics, _pipeline, _subscrip |
| | 64 | |
|
| | 65 | | /// <summary> Returns an instance of ResourcesOperations. </summary> |
| 336 | 66 | | public virtual ResourcesOperations Resources => new ResourcesOperations(_clientDiagnostics, _pipeline, _subscrip |
| | 67 | |
|
| | 68 | | /// <summary> Returns an instance of ResourceGroupsOperations. </summary> |
| 312 | 69 | | public virtual ResourceGroupsOperations ResourceGroups => new ResourceGroupsOperations(_clientDiagnostics, _pipe |
| | 70 | |
|
| | 71 | | /// <summary> Returns an instance of TagsOperations. </summary> |
| 256 | 72 | | public virtual TagsOperations Tags => new TagsOperations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoi |
| | 73 | |
|
| | 74 | | /// <summary> Returns an instance of DeploymentOperations. </summary> |
| 272 | 75 | | public virtual DeploymentOperations Deployment => new DeploymentOperations(_clientDiagnostics, _pipeline, _subsc |
| | 76 | |
|
| | 77 | | /// <summary> Returns an instance of SubscriptionsOperations. </summary> |
| 268 | 78 | | public virtual SubscriptionsOperations Subscriptions => new SubscriptionsOperations(_clientDiagnostics, _pipelin |
| | 79 | |
|
| | 80 | | /// <summary> Returns an instance of TenantsOperations. </summary> |
| 256 | 81 | | public virtual TenantsOperations Tenants => new TenantsOperations(_clientDiagnostics, _pipeline, _endpoint); |
| | 82 | |
|
| | 83 | | /// <summary> Returns an instance of PolicyAssignmentsOperations. </summary> |
| 256 | 84 | | public virtual PolicyAssignmentsOperations PolicyAssignments => new PolicyAssignmentsOperations(_clientDiagnosti |
| | 85 | |
|
| | 86 | | /// <summary> Returns an instance of PolicyDefinitionsOperations. </summary> |
| 256 | 87 | | public virtual PolicyDefinitionsOperations PolicyDefinitions => new PolicyDefinitionsOperations(_clientDiagnosti |
| | 88 | |
|
| | 89 | | /// <summary> Returns an instance of PolicySetDefinitionsOperations. </summary> |
| 256 | 90 | | public virtual PolicySetDefinitionsOperations PolicySetDefinitions => new PolicySetDefinitionsOperations(_client |
| | 91 | |
|
| | 92 | | /// <summary> Returns an instance of DeploymentScriptsOperations. </summary> |
| 256 | 93 | | public virtual DeploymentScriptsOperations DeploymentScripts => new DeploymentScriptsOperations(_clientDiagnosti |
| | 94 | |
|
| | 95 | | /// <summary> Returns an instance of ServiceOperations. </summary> |
| 0 | 96 | | public virtual ServiceOperations Service => new ServiceOperations(_clientDiagnostics, _pipeline, _endpoint); |
| | 97 | |
|
| | 98 | | /// <summary> Returns an instance of FeaturesOperations. </summary> |
| 16 | 99 | | public virtual FeaturesOperations Features => new FeaturesOperations(_clientDiagnostics, _pipeline, _subscriptio |
| | 100 | |
|
| | 101 | | /// <summary> Returns an instance of AuthorizationOperations. </summary> |
| 0 | 102 | | public virtual AuthorizationOperations Authorization => new AuthorizationOperations(_clientDiagnostics, _pipelin |
| | 103 | |
|
| | 104 | | /// <summary> Returns an instance of ManagementLocksOperations. </summary> |
| 0 | 105 | | public virtual ManagementLocksOperations ManagementLocks => new ManagementLocksOperations(_clientDiagnostics, _p |
| | 106 | |
|
| | 107 | | /// <summary> Returns an instance of ResourceLinksOperations. </summary> |
| 28 | 108 | | public virtual ResourceLinksOperations ResourceLinks => new ResourceLinksOperations(_clientDiagnostics, _pipelin |
| | 109 | |
|
| | 110 | | /// <summary> Returns an instance of ApplicationsOperations. </summary> |
| 0 | 111 | | public virtual ApplicationsOperations Applications => new ApplicationsOperations(_clientDiagnostics, _pipeline, |
| | 112 | |
|
| | 113 | | /// <summary> Returns an instance of ApplicationDefinitionsOperations. </summary> |
| 0 | 114 | | public virtual ApplicationDefinitionsOperations ApplicationDefinitions => new ApplicationDefinitionsOperations(_ |
| | 115 | | } |
| | 116 | | } |