Skip to content

Commit

Permalink
fix: remove wrongly used time span
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Feb 27, 2023
1 parent 9d7315d commit 85bf196
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 968 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ Class | Method | HTTP request | Description
- [TagDetailsResource](docs/TagDetailsResource.md)
- [TagResource](docs/TagResource.md)
- [TaskResource](docs/TaskResource.md)
- [TimeSpan](docs/TimeSpan.md)
- [TrackedDownloadState](docs/TrackedDownloadState.md)
- [TrackedDownloadStatus](docs/TrackedDownloadStatus.md)
- [TrackedDownloadStatusMessage](docs/TrackedDownloadStatusMessage.md)
Expand Down
2 changes: 0 additions & 2 deletions sonarr/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ docs/TagDetailsResource.md
docs/TagResource.md
docs/TaskApi.md
docs/TaskResource.md
docs/TimeSpan.md
docs/TrackedDownloadState.md
docs/TrackedDownloadStatus.md
docs/TrackedDownloadStatusMessage.md
Expand Down Expand Up @@ -374,7 +373,6 @@ model_system_resource.go
model_tag_details_resource.go
model_tag_resource.go
model_task_resource.go
model_time_span.go
model_tracked_download_state.go
model_tracked_download_status.go
model_tracked_download_status_message.go
Expand Down
150 changes: 16 additions & 134 deletions sonarr/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6433,18 +6433,7 @@ components:
sendUpdatesToClient: true
updateScheduledTask: true
priority: null
duration:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
duration: 2000-01-23T04:56:07.000+00:00
commandName: commandName
name: name
ended: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -6484,7 +6473,8 @@ components:
nullable: true
type: string
duration:
$ref: '#/components/schemas/TimeSpan'
format: date-time
type: string
exception:
nullable: true
type: string
Expand Down Expand Up @@ -11560,18 +11550,7 @@ components:
ImportListResource:
additionalProperties: false
example:
minRefreshInterval:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
minRefreshInterval: 2000-01-23T04:56:07.000+00:00
implementationName: implementationName
rootFolderPath: rootFolderPath
implementation: implementation
Expand Down Expand Up @@ -11698,7 +11677,8 @@ components:
format: int32
type: integer
minRefreshInterval:
$ref: '#/components/schemas/TimeSpan'
format: date-time
type: string
type: object
ImportListType:
enum:
Expand Down Expand Up @@ -16941,18 +16921,7 @@ components:
indexer: indexer
episodeId: 1
title: title
timeleft:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
timeleft: 2000-01-23T04:56:07.000+00:00
trackedDownloadState: null
trackedDownloadStatus: null
seriesId: 6
Expand Down Expand Up @@ -17141,7 +17110,8 @@ components:
format: double
type: number
timeleft:
$ref: '#/components/schemas/TimeSpan'
format: date-time
type: string
estimatedCompletionTime:
format: date-time
nullable: true
Expand Down Expand Up @@ -17845,18 +17815,7 @@ components:
indexer: indexer
episodeId: 1
title: title
timeleft:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
timeleft: 2000-01-23T04:56:07.000+00:00
trackedDownloadState: null
trackedDownloadStatus: null
seriesId: 6
Expand Down Expand Up @@ -18669,18 +18628,7 @@ components:
indexer: indexer
episodeId: 1
title: title
timeleft:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
timeleft: 2000-01-23T04:56:07.000+00:00
trackedDownloadState: null
trackedDownloadStatus: null
seriesId: 6
Expand Down Expand Up @@ -20428,18 +20376,7 @@ components:
TaskResource:
additionalProperties: false
example:
lastDuration:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
lastDuration: 2000-01-23T04:56:07.000+00:00
lastExecution: 2000-01-23T04:56:07.000+00:00
name: name
lastStartTime: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -20470,67 +20407,12 @@ components:
format: date-time
type: string
lastDuration:
$ref: '#/components/schemas/TimeSpan'
format: date-time
type: string
type: object
TimeSpan:
additionalProperties: false
example:
milliseconds: 5
hours: 5
seconds: 7
totalDays: 9.301444243932576
ticks: 6
totalHours: 3.616076749251911
totalMilliseconds: 2.027123023002322
totalMinutes: 4.145608029883936
minutes: 2
days: 1
totalSeconds: 7.386281948385884
properties:
ticks:
format: int64
type: integer
days:
format: int32
readOnly: true
type: integer
hours:
format: int32
readOnly: true
type: integer
milliseconds:
format: int32
readOnly: true
type: integer
minutes:
format: int32
readOnly: true
type: integer
seconds:
format: int32
readOnly: true
type: integer
totalDays:
format: double
readOnly: true
type: number
totalHours:
format: double
readOnly: true
type: number
totalMilliseconds:
format: double
readOnly: true
type: number
totalMinutes:
format: double
readOnly: true
type: number
totalSeconds:
format: double
readOnly: true
type: number
type: object
format: date-time
type: string
TrackedDownloadState:
enum:
- downloading
Expand Down
8 changes: 4 additions & 4 deletions sonarr/docs/CommandResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Queued** | Pointer to **time.Time** | | [optional]
**Started** | Pointer to **NullableTime** | | [optional]
**Ended** | Pointer to **NullableTime** | | [optional]
**Duration** | Pointer to [**TimeSpan**](TimeSpan.md) | | [optional]
**Duration** | Pointer to **time.Time** | | [optional]
**Exception** | Pointer to **NullableString** | | [optional]
**Trigger** | Pointer to [**CommandTrigger**](CommandTrigger.md) | | [optional]
**ClientUserAgent** | Pointer to **NullableString** | | [optional]
Expand Down Expand Up @@ -344,20 +344,20 @@ HasEnded returns a boolean if a field has been set.
UnsetEnded ensures that no value is present for Ended, not even an explicit nil
### GetDuration

`func (o *CommandResource) GetDuration() TimeSpan`
`func (o *CommandResource) GetDuration() time.Time`

GetDuration returns the Duration field if non-nil, zero value otherwise.

### GetDurationOk

`func (o *CommandResource) GetDurationOk() (*TimeSpan, bool)`
`func (o *CommandResource) GetDurationOk() (*time.Time, bool)`

GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDuration

`func (o *CommandResource) SetDuration(v TimeSpan)`
`func (o *CommandResource) SetDuration(v time.Time)`

SetDuration sets Duration field to given value.

Expand Down
8 changes: 4 additions & 4 deletions sonarr/docs/ImportListResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Name | Type | Description | Notes
**SeasonFolder** | Pointer to **bool** | | [optional]
**ListType** | Pointer to [**ImportListType**](ImportListType.md) | | [optional]
**ListOrder** | Pointer to **int32** | | [optional]
**MinRefreshInterval** | Pointer to [**TimeSpan**](TimeSpan.md) | | [optional]
**MinRefreshInterval** | Pointer to **time.Time** | | [optional]

## Methods

Expand Down Expand Up @@ -585,20 +585,20 @@ HasListOrder returns a boolean if a field has been set.

### GetMinRefreshInterval

`func (o *ImportListResource) GetMinRefreshInterval() TimeSpan`
`func (o *ImportListResource) GetMinRefreshInterval() time.Time`

GetMinRefreshInterval returns the MinRefreshInterval field if non-nil, zero value otherwise.

### GetMinRefreshIntervalOk

`func (o *ImportListResource) GetMinRefreshIntervalOk() (*TimeSpan, bool)`
`func (o *ImportListResource) GetMinRefreshIntervalOk() (*time.Time, bool)`

GetMinRefreshIntervalOk returns a tuple with the MinRefreshInterval field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMinRefreshInterval

`func (o *ImportListResource) SetMinRefreshInterval(v TimeSpan)`
`func (o *ImportListResource) SetMinRefreshInterval(v time.Time)`

SetMinRefreshInterval sets MinRefreshInterval field to given value.

Expand Down
8 changes: 4 additions & 4 deletions sonarr/docs/QueueResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**Size** | Pointer to **float64** | | [optional]
**Title** | Pointer to **NullableString** | | [optional]
**Sizeleft** | Pointer to **float64** | | [optional]
**Timeleft** | Pointer to [**TimeSpan**](TimeSpan.md) | | [optional]
**Timeleft** | Pointer to **time.Time** | | [optional]
**EstimatedCompletionTime** | Pointer to **NullableTime** | | [optional]
**Status** | Pointer to **NullableString** | | [optional]
**TrackedDownloadStatus** | Pointer to [**TrackedDownloadStatus**](TrackedDownloadStatus.md) | | [optional]
Expand Down Expand Up @@ -374,20 +374,20 @@ HasSizeleft returns a boolean if a field has been set.

### GetTimeleft

`func (o *QueueResource) GetTimeleft() TimeSpan`
`func (o *QueueResource) GetTimeleft() time.Time`

GetTimeleft returns the Timeleft field if non-nil, zero value otherwise.

### GetTimeleftOk

`func (o *QueueResource) GetTimeleftOk() (*TimeSpan, bool)`
`func (o *QueueResource) GetTimeleftOk() (*time.Time, bool)`

GetTimeleftOk returns a tuple with the Timeleft field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTimeleft

`func (o *QueueResource) SetTimeleft(v TimeSpan)`
`func (o *QueueResource) SetTimeleft(v time.Time)`

SetTimeleft sets Timeleft field to given value.

Expand Down
8 changes: 4 additions & 4 deletions sonarr/docs/TaskResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**LastExecution** | Pointer to **time.Time** | | [optional]
**LastStartTime** | Pointer to **time.Time** | | [optional]
**NextExecution** | Pointer to **time.Time** | | [optional]
**LastDuration** | Pointer to [**TimeSpan**](TimeSpan.md) | | [optional]
**LastDuration** | Pointer to **time.Time** | | [optional]

## Methods

Expand Down Expand Up @@ -229,20 +229,20 @@ HasNextExecution returns a boolean if a field has been set.

### GetLastDuration

`func (o *TaskResource) GetLastDuration() TimeSpan`
`func (o *TaskResource) GetLastDuration() time.Time`

GetLastDuration returns the LastDuration field if non-nil, zero value otherwise.

### GetLastDurationOk

`func (o *TaskResource) GetLastDurationOk() (*TimeSpan, bool)`
`func (o *TaskResource) GetLastDurationOk() (*time.Time, bool)`

GetLastDurationOk returns a tuple with the LastDuration field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLastDuration

`func (o *TaskResource) SetLastDuration(v TimeSpan)`
`func (o *TaskResource) SetLastDuration(v time.Time)`

SetLastDuration sets LastDuration field to given value.

Expand Down
Loading

0 comments on commit 85bf196

Please sign in to comment.