internal IscsiTargetCollection(ArmResource parent) : base(parent)
        {
            _iscsiTargetClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.StoragePool", IscsiTarget.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(IscsiTarget.ResourceType, out string iscsiTargetApiVersion);
            _iscsiTargetRestClient = new IscsiTargetsRestOperations(_iscsiTargetClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, iscsiTargetApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Example #2
0
        internal IscsiTargetCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _iscsiTargetClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.StoragePool", IscsiTargetResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(IscsiTargetResource.ResourceType, out string iscsiTargetApiVersion);
            _iscsiTargetRestClient = new IscsiTargetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, iscsiTargetApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }