示例#1
0
 internal EventHubAuthorizationRule(ArmResource options, AuthorizationRuleData resource) : base(options, resource.Id)
 {
     HasData              = true;
     _data                = resource;
     _clientDiagnostics   = new ClientDiagnostics(ClientOptions);
     _eventHubsRestClient = new EventHubsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#2
0
        internal EventHubCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _eventHubClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHubResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(EventHubResource.ResourceType, out string eventHubApiVersion);
            _eventHubRestClient = new EventHubsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, eventHubApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
示例#3
0
        internal EventHubAuthorizationRule(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _eventHubAuthorizationRuleEventHubsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string eventHubAuthorizationRuleEventHubsApiVersion);
            _eventHubAuthorizationRuleEventHubsRestClient = new EventHubsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, eventHubAuthorizationRuleEventHubsApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
示例#4
0
        internal EventHubCollection(ArmResource parent) : base(parent)
        {
            _eventHubClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.EventHubs", EventHub.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(EventHub.ResourceType, out string eventHubApiVersion);
            _eventHubRestClient = new EventHubsRestOperations(_eventHubClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, eventHubApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
示例#5
0
 internal EventHubAuthorizationRule(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics   = new ClientDiagnostics(ClientOptions);
     _eventHubsRestClient = new EventHubsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#6
0
 internal EventHubAuthorizationRule(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics   = new ClientDiagnostics(ClientOptions);
     _eventHubsRestClient = new EventHubsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#7
0
 internal EventHubsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new EventHubsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal EventHubAuthorizationRuleCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics   = new ClientDiagnostics(ClientOptions);
     _eventHubsRestClient = new EventHubsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }