Ejemplo n.º 1
0
 internal JobAgent(ArmResource options, JobAgentData resource) : base(options, resource.Id)
 {
     HasData                  = true;
     _data                    = resource;
     _clientDiagnostics       = new ClientDiagnostics(ClientOptions);
     _jobAgentsRestClient     = new JobAgentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _jobExecutionsRestClient = new JobExecutionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal JobAgentCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _jobAgentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", JobAgentResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(JobAgentResource.ResourceType, out string jobAgentApiVersion);
            _jobAgentRestClient = new JobAgentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobAgentApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal JobAgentCollection(ArmResource parent) : base(parent)
        {
            _jobAgentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", JobAgent.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(JobAgent.ResourceType, out string jobAgentApiVersion);
            _jobAgentRestClient = new JobAgentsRestOperations(_jobAgentClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, jobAgentApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal JobAgent(ArmClient armClient, ResourceIdentifier id) : base(armClient, id)
        {
            _jobAgentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ResourceType, out string jobAgentApiVersion);
            _jobAgentRestClient = new JobAgentsRestOperations(_jobAgentClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, jobAgentApiVersion);
            _serverJobAgentJobExecutionJobExecutionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ServerJobAgentJobExecution.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ServerJobAgentJobExecution.ResourceType, out string serverJobAgentJobExecutionJobExecutionsApiVersion);
            _serverJobAgentJobExecutionJobExecutionsRestClient = new JobExecutionsRestOperations(_serverJobAgentJobExecutionJobExecutionsClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, serverJobAgentJobExecutionJobExecutionsApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Ejemplo n.º 5
0
 internal JobAgent(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics       = new ClientDiagnostics(ClientOptions);
     _jobAgentsRestClient     = new JobAgentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _jobExecutionsRestClient = new JobExecutionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 6
0
 internal JobAgent(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics       = new ClientDiagnostics(ClientOptions);
     _jobAgentsRestClient     = new JobAgentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
     _jobExecutionsRestClient = new JobExecutionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 7
0
 internal JobAgentsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new JobAgentsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
Ejemplo n.º 8
0
 internal JobAgentCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics   = new ClientDiagnostics(ClientOptions);
     _jobAgentsRestClient = new JobAgentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }