示例#1
0
 internal IpGroup(ArmResource options, IpGroupData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
示例#2
0
 internal IpGroup(ArmResource options, IpGroupData resource) : base(options, new ResourceIdentifier(resource.Id))
 {
     HasData             = true;
     _data               = resource;
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _ipGroupsRestClient = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#3
0
        internal IPGroupCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _ipGroupIpGroupsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", IPGroup.ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(IPGroup.ResourceType, out string ipGroupIpGroupsApiVersion);
            _ipGroupIpGroupsRestClient = new IpGroupsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, ipGroupIpGroupsApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
        internal IpGroupCollection(ArmResource parent) : base(parent)
        {
            _ipGroupClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", IpGroup.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(IpGroup.ResourceType, out string ipGroupApiVersion);
            _ipGroupRestClient = new IpGroupsRestOperations(_ipGroupClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, ipGroupApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
示例#5
0
 internal IpGroup(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _ipGroupsRestClient = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#6
0
 internal IpGroup(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _ipGroupsRestClient = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
示例#7
0
 internal IpGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null)
 {
     RestClient         = new IpGroupsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
     _clientDiagnostics = clientDiagnostics;
     _pipeline          = pipeline;
 }
示例#8
0
 internal IpGroupContainer(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
示例#9
0
 internal IpGroupCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics  = new ClientDiagnostics(ClientOptions);
     _ipGroupsRestClient = new IpGroupsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }