internal MaintenanceWindowOptions(ArmResource options, MaintenanceWindowOptionsData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     Parent             = options;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _maintenanceWindowOptionsRestClient = new MaintenanceWindowOptionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Пример #2
0
        internal MaintenanceWindowOptions(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _maintenanceWindowOptionsMaintenanceWindowOptionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Sql", ResourceType.Namespace, DiagnosticOptions);
            TryGetApiVersion(ResourceType, out string maintenanceWindowOptionsMaintenanceWindowOptionsApiVersion);
            _maintenanceWindowOptionsMaintenanceWindowOptionsRestClient = new MaintenanceWindowOptionsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, maintenanceWindowOptionsMaintenanceWindowOptionsApiVersion);
#if DEBUG
            ValidateResourceId(Id);
#endif
        }
 internal MaintenanceWindowOptions(ArmClientOptions clientOptions, TokenCredential credential, Uri uri, HttpPipeline pipeline, ResourceIdentifier id) : base(clientOptions, credential, uri, pipeline, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _maintenanceWindowOptionsRestClient = new MaintenanceWindowOptionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal MaintenanceWindowOptions(ArmResource options, ResourceIdentifier id) : base(options, id)
 {
     Parent             = options;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _maintenanceWindowOptionsRestClient = new MaintenanceWindowOptionsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }