internal AfdRuleSet(ArmResource options, AfdRuleSetData resource) : base(options, resource.Id)
 {
     HasData                = true;
     _data                  = resource;
     _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
     _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        internal AfdRuleSetCollection(ArmResource parent) : base(parent)
        {
            _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #3
0
        internal AfdRuleSet(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
        {
            _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #4
0
        internal AfdRuleSet(ArmResource options, ResourceIdentifier id) : base(options, id)
        {
            _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #5
0
        internal AfdRuleSetCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _afdRuleSetClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Cdn", AfdRuleSetResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(AfdRuleSetResource.ResourceType, out string afdRuleSetApiVersion);
            _afdRuleSetRestClient = new AfdRuleSetsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, afdRuleSetApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #6
0
        internal AfdRuleSetCollection(ArmResource parent) : base(parent)
        {
            _afdRuleSetClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Cdn", AfdRuleSet.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(AfdRuleSet.ResourceType, out string afdRuleSetApiVersion);
            _afdRuleSetRestClient = new AfdRuleSetsRestOperations(_afdRuleSetClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, afdRuleSetApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #7
0
        internal AfdRuleSet(ArmResource options, ResourceIdentifier id) : base(options, id)
        {
            _clientDiagnostics = new ClientDiagnostics(ClientOptions);
            ClientOptions.TryGetApiVersion(ResourceType, out string apiVersion);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri, apiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #8
0
        internal AfdRuleSetCollection(ArmResource parent) : base(parent)
        {
            _clientDiagnostics = new ClientDiagnostics(ClientOptions);
            ClientOptions.TryGetApiVersion(AfdRuleSet.ResourceType, out string apiVersion);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri, apiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Exemple #9
0
        internal AfdRuleSet(ArmResource options, AfdRuleSetData data) : base(options, data.Id)
        {
            HasData                = true;
            _data                  = data;
            _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
            _afdRuleSetsRestClient = new AfdRuleSetsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }