Esempio n. 1
0
 internal SqlAgentConfiguration(ArmResource options, SqlAgentConfigurationData resource) : base(options, resource.Id)
 {
     HasData             = true;
     _data               = resource;
     Parent              = options;
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _sqlAgentRestClient = new SqlAgentRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 2
0
        internal SqlAgentConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _sqlAgentConfigurationSqlAgentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ResourceType, out string sqlAgentConfigurationSqlAgentApiVersion);
            _sqlAgentConfigurationSqlAgentRestClient = new SqlAgentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sqlAgentConfigurationSqlAgentApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Esempio n. 3
0
 internal SqlAgentConfiguration(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _sqlAgentRestClient = new SqlAgentRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 4
0
 internal SqlAgentConfiguration(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     Parent              = options;
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _sqlAgentRestClient = new SqlAgentRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }