/// <summary> /// Initializes a new instance of the OperationResult class. /// </summary> /// <param name="status">The operation status. Possible values include: /// 'NotStarted', 'InProgress', 'Succeeded', 'Failed', /// 'Canceled'</param> /// <param name="id">Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param> /// <param name="name">The name of the resource</param> /// <param name="startTime">Start time</param> /// <param name="endTime">End time</param> /// <param name="percentComplete">Percent completion</param> /// <param name="error">The error for a failure if the operation /// failed.</param> public OperationResult(OperationStatus status, string id = default(string), string name = default(string), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), double?percentComplete = default(double?), ErrorDetail error = default(ErrorDetail)) { Id = id; Name = name; Status = status; StartTime = startTime; EndTime = endTime; PercentComplete = percentComplete; Error = error; CustomInit(); }
/// <summary> /// Initializes a new instance of the ErrorResponse class. /// </summary> /// <param name="error">The error object.</param> public ErrorResponse(ErrorDetail error = default(ErrorDetail)) { Error = error; CustomInit(); }