internal DdosProtectionPlan(ArmResource options, DdosProtectionPlanData resource) : base(options, resource.Id) { HasData = true; _data = resource; _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DdosProtectionPlansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri); }
internal DdosProtectionPlanResource(ArmClient client, ResourceIdentifier id) : base(client, id) { _ddosProtectionPlanClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string ddosProtectionPlanApiVersion); _ddosProtectionPlanRestClient = new DdosProtectionPlansRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ddosProtectionPlanApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal DdosProtectionPlanCollection(ArmResource parent) : base(parent) { _ddosProtectionPlanClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", DdosProtectionPlan.ResourceType.Namespace, DiagnosticOptions); ArmClient.TryGetApiVersion(DdosProtectionPlan.ResourceType, out string ddosProtectionPlanApiVersion); _ddosProtectionPlanRestClient = new DdosProtectionPlansRestOperations(_ddosProtectionPlanClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, ddosProtectionPlanApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal DdosProtectionPlan(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DdosProtectionPlansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri); }
internal DdosProtectionPlan(ArmResource options, ResourceIdentifier id) : base(options, id) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DdosProtectionPlansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri); }
internal DdosProtectionPlansOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null) { RestClient = new DdosProtectionPlansRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint); _clientDiagnostics = clientDiagnostics; _pipeline = pipeline; }
internal DdosProtectionPlanCollection(ArmResource parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); _restClient = new DdosProtectionPlansRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri); }