예제 #1
0
 internal VpnSiteLink(ArmResource options, VpnSiteLinkData resource) : base(options, new ResourceIdentifier(resource.Id))
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _vpnSiteLinksRestClient = new VpnSiteLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
예제 #2
0
 internal VpnSite(ArmResource options, VpnSiteData resource) : base(options, resource.Id)
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _restClient             = new VpnSitesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
     _vpnSiteLinksRestClient = new VpnSiteLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
        internal VpnSiteLinkCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _vpnSiteLinkClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", VpnSiteLinkResource.ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(VpnSiteLinkResource.ResourceType, out string vpnSiteLinkApiVersion);
            _vpnSiteLinkRestClient = new VpnSiteLinksRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, vpnSiteLinkApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
예제 #4
0
        internal VpnSiteLink(ArmClient armClient, ResourceIdentifier id) : base(armClient, id)
        {
            _vpnSiteLinkClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(ResourceType, out string vpnSiteLinkApiVersion);
            _vpnSiteLinkRestClient = new VpnSiteLinksRestOperations(_vpnSiteLinkClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, vpnSiteLinkApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal VpnSiteLinkCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _vpnSiteLinksRestClient = new VpnSiteLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
예제 #6
0
 internal VpnSite(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _restClient             = new VpnSitesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
     _vpnSiteLinksRestClient = new VpnSiteLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
예제 #7
0
 internal VpnSite(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _restClient             = new VpnSitesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
     _vpnSiteLinksRestClient = new VpnSiteLinksRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 internal VpnSiteLinksOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new VpnSiteLinksRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }