Ejemplo n.º 1
0
 internal NatGateway(ArmResource options, NatGatewayData resource) : base(options, new ResourceIdentifier(resource.Id))
 {
     HasData                = true;
     _data                  = resource;
     _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
     _natGatewaysRestClient = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 2
0
 internal NatGateway(ArmResource options, NatGatewayData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Ejemplo n.º 3
0
        internal NatGateway(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _natGatewayClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string natGatewayApiVersion);
            _natGatewayRestClient = new NatGatewaysRestOperations(_natGatewayClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, natGatewayApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal NatGatewayCollection(ArmResource parent) : base(parent)
        {
            _natGatewayClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", NatGateway.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(NatGateway.ResourceType, out string natGatewayApiVersion);
            _natGatewayRestClient = new NatGatewaysRestOperations(_natGatewayClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, natGatewayApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal NatGatewayCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
     _natGatewaysRestClient = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 6
0
 internal NatGateway(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
     _natGatewaysRestClient = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Ejemplo n.º 7
0
 internal NatGateway(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics     = new ClientDiagnostics(ClientOptions);
     _natGatewaysRestClient = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal NatGatewayContainer(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new NatGatewaysRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Ejemplo n.º 9
0
 internal NatGatewaysOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new NatGatewaysRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }