Exemple #1
0
 internal Certificate(ArmResource options, CertificateData resource) : base(options, resource.Id)
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _certificatesRestClient = new CertificatesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal Certificate(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _certificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string certificateApiVersion);
            _certificateRestClient = new CertificatesRestOperations(_certificateClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, certificateApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal CertificateCollection(ArmResource parent) : base(parent)
        {
            _certificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppService", Certificate.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(Certificate.ResourceType, out string certificateApiVersion);
            _certificateRestClient = new CertificatesRestOperations(_certificateClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, certificateApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal CertificateCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _certificatesRestClient = new CertificatesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Exemple #5
0
 internal Certificate(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _certificatesRestClient = new CertificatesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Exemple #6
0
 internal Certificate(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _certificatesRestClient = new CertificatesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }