Exemple #1
0
 internal ServerDnsAlias(ArmResource options, ServerDnsAliasData resource) : base(options, resource.Id)
 {
     HasData                     = true;
     _data                       = resource;
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _serverDnsAliasesRestClient = new ServerDnsAliasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal ServerDnsAliasCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _serverDnsAliasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerDnsAliasResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ServerDnsAliasResource.ResourceType, out string serverDnsAliasApiVersion);
            _serverDnsAliasRestClient = new ServerDnsAliasesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serverDnsAliasApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal ServerDnsAlias(ArmClient armClient, ResourceIdentifier id) : base(armClient, id)
        {
            _serverDnsAliasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ResourceType, out string serverDnsAliasApiVersion);
            _serverDnsAliasRestClient = new ServerDnsAliasesRestOperations(_serverDnsAliasClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, serverDnsAliasApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #4
0
 internal ServerDnsAliasCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _serverDnsAliasesRestClient = new ServerDnsAliasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Exemple #5
0
 internal ServerDnsAlias(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _serverDnsAliasesRestClient = new ServerDnsAliasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Exemple #6
0
 internal ServerDnsAlias(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _serverDnsAliasesRestClient = new ServerDnsAliasesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal ServerDnsAliasesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new ServerDnsAliasesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }