1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 3// Code generated. DO NOT EDIT. 4 5// Application Migration Service API 6// 7// API for the Application Migration service. Use this API to migrate applications from Oracle Cloud Infrastructure - Classic to Oracle Cloud Infrastructure. 8// 9 10package applicationmigration 11 12import ( 13 "github.com/oracle/oci-go-sdk/common" 14) 15 16// WorkRequestSummary A summary of the status of a work request. 17type WorkRequestSummary struct { 18 19 // The asynchronous operation tracked by this work request. 20 OperationType OperationTypesEnum `mandatory:"true" json:"operationType"` 21 22 // The status of the work request. 23 Status OperationStatusEnum `mandatory:"true" json:"status"` 24 25 // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. 26 Id *string `mandatory:"true" json:"id"` 27 28 // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing 29 // this work request. 30 CompartmentId *string `mandatory:"true" json:"compartmentId"` 31 32 // The percentage complete of the operation tracked by this work request. 33 PercentComplete *float32 `mandatory:"true" json:"percentComplete"` 34 35 // The date and time the work request was created, in the format defined by RFC3339. 36 TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` 37 38 // The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`, in 39 // the format defined by RFC3339. 40 TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` 41 42 // The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`. 43 // Format is defined by RFC3339. 44 TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` 45} 46 47func (m WorkRequestSummary) String() string { 48 return common.PointerString(m) 49} 50