internal SharedPrivateLink(ArmResource options, SharedPrivateLinkData resource) : base(options, resource.Id)
 {
     HasData                       = true;
     _data                         = resource;
     _clientDiagnostics            = new ClientDiagnostics(ClientOptions);
     _sharedPrivateLinksRestClient = new SharedPrivateLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Пример #2
0
        internal SharedPrivateLink(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _sharedPrivateLinkClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.WebPubSub", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string sharedPrivateLinkApiVersion);
            _sharedPrivateLinkRestClient = new SharedPrivateLinksRestOperations(_sharedPrivateLinkClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, sharedPrivateLinkApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Пример #3
0
        internal SharedPrivateLinkCollection(ArmResource parent) : base(parent)
        {
            _sharedPrivateLinkClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.WebPubSub", SharedPrivateLink.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(SharedPrivateLink.ResourceType, out string sharedPrivateLinkApiVersion);
            _sharedPrivateLinkRestClient = new SharedPrivateLinksRestOperations(_sharedPrivateLinkClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, sharedPrivateLinkApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal SharedPrivateLink(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics            = new ClientDiagnostics(ClientOptions);
     _sharedPrivateLinksRestClient = new SharedPrivateLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal SharedPrivateLink(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics            = new ClientDiagnostics(ClientOptions);
     _sharedPrivateLinksRestClient = new SharedPrivateLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal SharedPrivateLinkCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics            = new ClientDiagnostics(ClientOptions);
     _sharedPrivateLinksRestClient = new SharedPrivateLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }