protected override void ProcessRecord()
        {
            base.ProcessRecord();
            GetTransferJobRequest request;

            try
            {
                request = new GetTransferJobRequest
                {
                    Id           = Id,
                    OpcRequestId = OpcRequestId
                };

                HandleOutput(request);
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }
Exemple #2
0
 /// <summary>
 /// Creates a waiter using default wait configuration.
 /// </summary>
 /// <param name="request">Request to send.</param>
 /// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
 /// <returns>a new Oci.common.Waiter instance</returns>
 public Waiter <GetTransferJobRequest, GetTransferJobResponse> ForTransferJob(GetTransferJobRequest request, params TransferJob.LifecycleStateEnum[] targetStates)
 {
     return(this.ForTransferJob(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates));
 }