private void HandleOutput(UpdateAutonomousExadataInfrastructureRequest request) { var waiterConfig = new WaiterConfiguration { MaxAttempts = MaxWaitAttempts, GetNextDelayInSeconds = (_) => WaitIntervalSeconds }; switch (ParameterSetName) { case StatusParamSet: response = client.Waiters.ForUpdateAutonomousExadataInfrastructure(request, waiterConfig, WaitForStatus).Execute(); break; case Default: response = client.UpdateAutonomousExadataInfrastructure(request).GetAwaiter().GetResult(); break; } WriteOutput(response, response.AutonomousExadataInfrastructure); }
protected override void ProcessRecord() { base.ProcessRecord(); UpdateAutonomousExadataInfrastructureRequest request; try { request = new UpdateAutonomousExadataInfrastructureRequest { AutonomousExadataInfrastructureId = AutonomousExadataInfrastructureId, UpdateAutonomousExadataInfrastructuresDetails = UpdateAutonomousExadataInfrastructuresDetails, IfMatch = IfMatch }; HandleOutput(request); FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }