internal DscpConfiguration(ArmResource options, DscpConfigurationData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 internal DscpConfiguration(ArmResource options, DscpConfigurationData resource) : base(options, new ResourceIdentifier(resource.Id))
 {
     HasData                      = true;
     _data                        = resource;
     _clientDiagnostics           = new ClientDiagnostics(ClientOptions);
     _dscpConfigurationRestClient = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Example #3
0
        internal DscpConfiguration(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _dscpConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string dscpConfigurationApiVersion);
            _dscpConfigurationRestClient = new DscpConfigurationRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, dscpConfigurationApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
Example #4
0
        internal DscpConfigurationCollection(ArmResource parent) : base(parent)
        {
            _dscpConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", DscpConfiguration.ResourceType.Namespace, DiagnosticOptions);
            ArmClient.TryGetApiVersion(DscpConfiguration.ResourceType, out string dscpConfigurationApiVersion);
            _dscpConfigurationRestClient = new DscpConfigurationRestOperations(_dscpConfigurationClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, dscpConfigurationApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal DscpConfiguration(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 internal DscpConfiguration(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 internal DscpConfigurationContainer(ArmResource parent) : base(parent)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Example #8
0
 internal DscpConfigurationCollection(ArmResource parent) : base(parent)
 {
     _clientDiagnostics           = new ClientDiagnostics(ClientOptions);
     _dscpConfigurationRestClient = new DscpConfigurationRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }