| | 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.Compute; |
| | 12 | |
|
| | 13 | | namespace Azure.ResourceManager.Compute |
| | 14 | | { |
| | 15 | | /// <summary> Compute service management client. </summary> |
| | 16 | | public class ComputeManagementClient |
| | 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 ComputeManagementClient for mocking. </summary> |
| 396 | 24 | | protected ComputeManagementClient() |
| | 25 | | { |
| 396 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of ComputeManagementClient. </summary> |
| | 29 | | /// <param name="subscriptionId"> Subscription credentials which uniquely identify 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> |
| 396 | 32 | | public ComputeManagementClient(string subscriptionId, TokenCredential tokenCredential, ComputeManagementClientOp |
| | 33 | | { |
| 396 | 34 | | } |
| | 35 | | /// <summary> Initializes a new instance of ComputeManagementClient. </summary> |
| | 36 | | /// <param name="endpoint"> server parameter. </param> |
| | 37 | | /// <param name="subscriptionId"> Subscription credentials which uniquely identify Microsoft Azure subscription. |
| | 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 |
| 396 | 41 | | public ComputeManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, ComputeMana |
| | 42 | | { |
| 396 | 43 | | endpoint ??= new Uri("https://management.azure.com"); |
| 396 | 44 | | if (subscriptionId == null) |
| | 45 | | { |
| 0 | 46 | | throw new ArgumentNullException(nameof(subscriptionId)); |
| | 47 | | } |
| | 48 | |
|
| 396 | 49 | | options ??= new ComputeManagementClientOptions(); |
| 396 | 50 | | _clientDiagnostics = new ClientDiagnostics(options); |
| 396 | 51 | | _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); |
| 396 | 52 | | _endpoint = endpoint; |
| 396 | 53 | | _subscriptionId = subscriptionId; |
| 396 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> Returns an instance of Operations. </summary> |
| 396 | 57 | | public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint); |
| | 58 | |
|
| | 59 | | /// <summary> Returns an instance of AvailabilitySetsOperations. </summary> |
| 396 | 60 | | public virtual AvailabilitySetsOperations AvailabilitySets => new AvailabilitySetsOperations(_clientDiagnostics, |
| | 61 | |
|
| | 62 | | /// <summary> Returns an instance of ProximityPlacementGroupsOperations. </summary> |
| 396 | 63 | | public virtual ProximityPlacementGroupsOperations ProximityPlacementGroups => new ProximityPlacementGroupsOperat |
| | 64 | |
|
| | 65 | | /// <summary> Returns an instance of DedicatedHostGroupsOperations. </summary> |
| 396 | 66 | | public virtual DedicatedHostGroupsOperations DedicatedHostGroups => new DedicatedHostGroupsOperations(_clientDia |
| | 67 | |
|
| | 68 | | /// <summary> Returns an instance of DedicatedHostsOperations. </summary> |
| 396 | 69 | | public virtual DedicatedHostsOperations DedicatedHosts => new DedicatedHostsOperations(_clientDiagnostics, _pipe |
| | 70 | |
|
| | 71 | | /// <summary> Returns an instance of SshPublicKeysOperations. </summary> |
| 0 | 72 | | public virtual SshPublicKeysOperations SshPublicKeys => new SshPublicKeysOperations(_clientDiagnostics, _pipelin |
| | 73 | |
|
| | 74 | | /// <summary> Returns an instance of VirtualMachineExtensionImagesOperations. </summary> |
| 396 | 75 | | public virtual VirtualMachineExtensionImagesOperations VirtualMachineExtensionImages => new VirtualMachineExtens |
| | 76 | |
|
| | 77 | | /// <summary> Returns an instance of VirtualMachineExtensionsOperations. </summary> |
| 396 | 78 | | public virtual VirtualMachineExtensionsOperations VirtualMachineExtensions => new VirtualMachineExtensionsOperat |
| | 79 | |
|
| | 80 | | /// <summary> Returns an instance of VirtualMachineImagesOperations. </summary> |
| 396 | 81 | | public virtual VirtualMachineImagesOperations VirtualMachineImages => new VirtualMachineImagesOperations(_client |
| | 82 | |
|
| | 83 | | /// <summary> Returns an instance of UsageOperations. </summary> |
| 396 | 84 | | public virtual UsageOperations Usage => new UsageOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end |
| | 85 | |
|
| | 86 | | /// <summary> Returns an instance of VirtualMachinesOperations. </summary> |
| 396 | 87 | | public virtual VirtualMachinesOperations VirtualMachines => new VirtualMachinesOperations(_clientDiagnostics, _p |
| | 88 | |
|
| | 89 | | /// <summary> Returns an instance of VirtualMachineSizesOperations. </summary> |
| 396 | 90 | | public virtual VirtualMachineSizesOperations VirtualMachineSizes => new VirtualMachineSizesOperations(_clientDia |
| | 91 | |
|
| | 92 | | /// <summary> Returns an instance of ImagesOperations. </summary> |
| 396 | 93 | | public virtual ImagesOperations Images => new ImagesOperations(_clientDiagnostics, _pipeline, _subscriptionId, _ |
| | 94 | |
|
| | 95 | | /// <summary> Returns an instance of VirtualMachineScaleSetsOperations. </summary> |
| 396 | 96 | | public virtual VirtualMachineScaleSetsOperations VirtualMachineScaleSets => new VirtualMachineScaleSetsOperation |
| | 97 | |
|
| | 98 | | /// <summary> Returns an instance of VirtualMachineScaleSetExtensionsOperations. </summary> |
| 396 | 99 | | public virtual VirtualMachineScaleSetExtensionsOperations VirtualMachineScaleSetExtensions => new VirtualMachine |
| | 100 | |
|
| | 101 | | /// <summary> Returns an instance of VirtualMachineScaleSetRollingUpgradesOperations. </summary> |
| 396 | 102 | | public virtual VirtualMachineScaleSetRollingUpgradesOperations VirtualMachineScaleSetRollingUpgrades => new Virt |
| | 103 | |
|
| | 104 | | /// <summary> Returns an instance of VirtualMachineScaleSetVMExtensionsOperations. </summary> |
| 0 | 105 | | public virtual VirtualMachineScaleSetVMExtensionsOperations VirtualMachineScaleSetVMExtensions => new VirtualMac |
| | 106 | |
|
| | 107 | | /// <summary> Returns an instance of VirtualMachineScaleSetVMsOperations. </summary> |
| 396 | 108 | | public virtual VirtualMachineScaleSetVMsOperations VirtualMachineScaleSetVMs => new VirtualMachineScaleSetVMsOpe |
| | 109 | |
|
| | 110 | | /// <summary> Returns an instance of LogAnalyticsOperations. </summary> |
| 396 | 111 | | public virtual LogAnalyticsOperations LogAnalytics => new LogAnalyticsOperations(_clientDiagnostics, _pipeline, |
| | 112 | |
|
| | 113 | | /// <summary> Returns an instance of VirtualMachineRunCommandsOperations. </summary> |
| 396 | 114 | | public virtual VirtualMachineRunCommandsOperations VirtualMachineRunCommands => new VirtualMachineRunCommandsOpe |
| | 115 | |
|
| | 116 | | /// <summary> Returns an instance of ResourceSkusOperations. </summary> |
| 396 | 117 | | public virtual ResourceSkusOperations ResourceSkus => new ResourceSkusOperations(_clientDiagnostics, _pipeline, |
| | 118 | |
|
| | 119 | | /// <summary> Returns an instance of DisksOperations. </summary> |
| 396 | 120 | | public virtual DisksOperations Disks => new DisksOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end |
| | 121 | |
|
| | 122 | | /// <summary> Returns an instance of SnapshotsOperations. </summary> |
| 396 | 123 | | public virtual SnapshotsOperations Snapshots => new SnapshotsOperations(_clientDiagnostics, _pipeline, _subscrip |
| | 124 | |
|
| | 125 | | /// <summary> Returns an instance of DiskEncryptionSetsOperations. </summary> |
| 396 | 126 | | public virtual DiskEncryptionSetsOperations DiskEncryptionSets => new DiskEncryptionSetsOperations(_clientDiagno |
| | 127 | |
|
| | 128 | | /// <summary> Returns an instance of GalleriesOperations. </summary> |
| 396 | 129 | | public virtual GalleriesOperations Galleries => new GalleriesOperations(_clientDiagnostics, _pipeline, _subscrip |
| | 130 | |
|
| | 131 | | /// <summary> Returns an instance of GalleryImagesOperations. </summary> |
| 396 | 132 | | public virtual GalleryImagesOperations GalleryImages => new GalleryImagesOperations(_clientDiagnostics, _pipelin |
| | 133 | |
|
| | 134 | | /// <summary> Returns an instance of GalleryImageVersionsOperations. </summary> |
| 396 | 135 | | public virtual GalleryImageVersionsOperations GalleryImageVersions => new GalleryImageVersionsOperations(_client |
| | 136 | |
|
| | 137 | | /// <summary> Returns an instance of GalleryApplicationsOperations. </summary> |
| 396 | 138 | | public virtual GalleryApplicationsOperations GalleryApplications => new GalleryApplicationsOperations(_clientDia |
| | 139 | |
|
| | 140 | | /// <summary> Returns an instance of GalleryApplicationVersionsOperations. </summary> |
| 396 | 141 | | public virtual GalleryApplicationVersionsOperations GalleryApplicationVersions => new GalleryApplicationVersions |
| | 142 | |
|
| | 143 | | /// <summary> Returns an instance of ContainerServicesOperations. </summary> |
| 396 | 144 | | public virtual ContainerServicesOperations ContainerServices => new ContainerServicesOperations(_clientDiagnosti |
| | 145 | | } |
| | 146 | | } |