コード例 #1
0
 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);
 }
コード例 #2
0
        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
        }
コード例 #3
0
        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
        }
コード例 #4
0
 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);
 }
コード例 #5
0
 internal JobTargetGroup(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
コード例 #6
0
 internal JobTargetGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new JobTargetGroupsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
コード例 #7
0
 internal JobTargetGroupCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _jobTargetGroupsRestClient = new JobTargetGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }