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
        }
Beispiel #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
        }
Beispiel #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
        }
Beispiel #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
        }
Beispiel #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
        }
Beispiel #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
        }
Beispiel #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
        }
Beispiel #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
        }