internal JobTargetGroup(ArmResource options, JobTargetGroupData resource) : base(options, resource.Id)
 {
     HasData                    = true;
     _data                      = resource;
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal JobTargetGroupCollection(ArmResource parent) : base(parent)
        {
            _jobTargetGroupClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", JobTargetGroup.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(JobTargetGroup.ResourceType, out string jobTargetGroupApiVersion);
            _jobTargetGroupRestClient = new JobTargetGroupsRestOperations(_jobTargetGroupClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, jobTargetGroupApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal JobTargetGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _jobTargetGroupClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ResourceType, out string jobTargetGroupApiVersion);
            _jobTargetGroupRestClient = new JobTargetGroupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobTargetGroupApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal JobTargetGroup(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal JobTargetGroup(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal JobTargetGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new JobTargetGroupsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal JobTargetGroupCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }