Esempio n. 1
0
 internal InboundNatRule(ArmResource options, InboundNatRuleData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Esempio n. 2
0
 internal InboundNatRule(ArmResource options, InboundNatRuleData resource) : base(options, new ResourceIdentifier(resource.Id))
 {
     HasData                    = true;
     _data                      = resource;
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _inboundNatRulesRestClient = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal InboundNatRulesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new InboundNatRulesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
 internal InboundNatRuleContainer(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Esempio n. 5
0
 internal InboundNatRule(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Esempio n. 6
0
 internal InboundNatRule(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 internal InboundNatRuleCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _inboundNatRulesRestClient = new InboundNatRulesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }