]>
git.proxmox.com Git - flutter/proxmox_dart_api_client.git/log
Thomas Lamprecht [Wed, 17 Apr 2024 07:53:07 +0000 (09:53 +0200)]
update dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Mon, 15 Apr 2024 10:30:20 +0000 (12:30 +0200)]
client: correctly set parameter for node actions
using '?' in the url will be escaped and not used for the get
parameters. Instead add the command to the parameters map.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Wed, 10 Apr 2024 06:10:57 +0000 (08:10 +0200)]
pubspec: switch to using dart 3
After following the migration guide [0] switch over to dart 3 to
avoid accumulating to much tech-debt.
[0]: https://dart.dev/resources/dart-3-migration
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 10 Apr 2024 06:03:42 +0000 (08:03 +0200)]
models: node disk list: rename helper to get wearout percentage to camel case
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 10 Apr 2024 05:56:07 +0000 (07:56 +0200)]
models: qemu config: add "import" as accepted lock
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:44:27 +0000 (11:44 +0200)]
tree-wide: use super-initializer parameters where possible
As recommended by dart analyze for slightly shorter code.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:26:07 +0000 (11:26 +0200)]
treewide: avoid unnecessary imports
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:25:06 +0000 (11:25 +0200)]
tree wide: avoid redundant initialization to 'null'
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:23:13 +0000 (11:23 +0200)]
tfa: drop unreachable null-fallback for has-recovery check
any already returns false if there wasn't any value foudn meeting the
check.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:22:37 +0000 (11:22 +0200)]
drop depreacated author field from pubspec
as recommended by dart analyzer
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 09:21:24 +0000 (11:21 +0200)]
models: fix on-wire value for journal_mode in node disk-list type filter
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 08:53:41 +0000 (10:53 +0200)]
auto-fix preferring interpolation to compose strings and values
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Apr 2024 08:47:35 +0000 (10:47 +0200)]
run dart format
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 2 Apr 2024 14:57:20 +0000 (16:57 +0200)]
update dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 4 Jul 2023 09:57:22 +0000 (11:57 +0200)]
update dependencies and track pubspec lock file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 4 Jul 2023 08:38:09 +0000 (10:38 +0200)]
drop unused imports
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 4 Jul 2023 08:37:39 +0000 (10:37 +0200)]
login: increase timeout for gettin auth-realms from 5s to 25s
like
e3192e3 ("auth: increase login timeout to 25s")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 4 Jul 2023 08:31:02 +0000 (10:31 +0200)]
support older API again
the new-format option got only added in Proxmox VE 7.1, also, the
library is actually product agnostic and thus should not be relying
to much on PVE details...
Simply keep the old check and add a legacy bool to the newer
TfaChallenge class with a constructor that sets this and only allows
TOTP as second factor.
On login check if we got a "unknown param" error for the "new-format"
param, and if, retry the request without that as we can assume that
we talk with an older Proxmox VE instance.
This not only fixes login with TFA enabled, but also normal login, as
no API before PVE 7.1 understood the "new-format" parameter.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 3 Jul 2023 11:53:15 +0000 (13:53 +0200)]
auth: increase login timeout to 25s
I sometimes get a latency of 10s in some lower developed parts of
europe when travelling with the train and our backend cuts this hard
a 30s, so go for 25s for now – albeit none might be OK too?!
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Tue, 27 Jun 2023 11:05:14 +0000 (13:05 +0200)]
update to new TFA API
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
[TL: drop debug print and fix nullabillity of recovery keys ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 15 Mar 2023 08:35:58 +0000 (09:35 +0100)]
update build_runner dependency
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 5 Nov 2022 10:23:30 +0000 (11:23 +0100)]
update dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 8 Sep 2022 14:17:38 +0000 (16:17 +0200)]
pubspec: update lints dev dependency
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 17 Dec 2021 10:11:35 +0000 (11:11 +0100)]
models: node network: "type" porperty is not optional
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 Dec 2021 20:05:31 +0000 (21:05 +0100)]
client: clarify comment
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 Dec 2021 20:05:14 +0000 (21:05 +0100)]
models: lxc status: improve null-safety annotation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 Dec 2021 20:04:28 +0000 (21:04 +0100)]
models: node/service state: add unit/active state optional properties
can be used to see if a stopped service is actually startable, added
for PVE 7.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 13 Dec 2021 13:08:59 +0000 (14:08 +0100)]
node tasks: improve null-safety interface
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Dec 2021 23:46:21 +0000 (00:46 +0100)]
models: userid gets only injected into token later, mark nullable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Dec 2021 22:30:55 +0000 (23:30 +0100)]
models: further null-safety improvements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Dec 2021 21:29:35 +0000 (22:29 +0100)]
pubspec: update deps
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Dec 2021 21:28:35 +0000 (22:28 +0100)]
tree wide null-safety improvements
try to better encode what actually is nullable so that we migrate to
null-safety more easily and nicer in pve flutter frontend.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Dec 2021 15:56:19 +0000 (16:56 +0100)]
pubspec: swap depreacated pedantic module with lints
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Wed, 17 Nov 2021 11:45:33 +0000 (12:45 +0100)]
add win11 ostype
or else the deserialization will fail for vms with that ostype set
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Aaron Lauterer [Wed, 23 Jun 2021 10:04:43 +0000 (12:04 +0200)]
Add double serializer to handle String and int values
Adding a custom serializer for double values allows us to handle
situations in which the PVE API provides values in other types. The most
likely possibility is that numbers are formatted as string in the JSON
response which needs to be parsed to double.
We must also handle the situation that the value is an integer which
needs to be cast to double.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Aaron Lauterer [Wed, 23 Jun 2021 10:04:42 +0000 (12:04 +0200)]
Add int serializer to handle string values
Adding a custom serializer for integers, allows us to handle situations
in which the PVE API provides the values in other types. For now, the
most likely situation is that the API formats the JSON value as string
instead of a number, therefore we try to catch that and parse it as int.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Aaron Lauterer [Wed, 23 Jun 2021 10:04:41 +0000 (12:04 +0200)]
Add string serializer to handle int and double values
Adding a custom serializer for Strings allows us to catch situations
where the PVE API provides an int or a double instead of the expected
string and convert that to a string.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Thomas Lamprecht [Sat, 29 May 2021 12:03:25 +0000 (14:03 +0200)]
update build_runner
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 29 May 2021 12:02:34 +0000 (14:02 +0200)]
run darfmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Thu, 27 May 2021 10:12:14 +0000 (12:12 +0200)]
add wearout_percentage helper
Thomas Lamprecht [Thu, 11 Mar 2021 18:15:04 +0000 (19:15 +0100)]
make dart analyzer happy, annotate nullable types
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 9 Mar 2021 12:21:36 +0000 (13:21 +0100)]
migrate to null safe code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 9 Mar 2021 12:16:36 +0000 (13:16 +0100)]
update dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tim Marx [Mon, 28 Sep 2020 12:14:21 +0000 (14:14 +0200)]
PveNodesLxcConfigModel: fix lxc parameter parsing
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 23 Sep 2020 10:22:35 +0000 (12:22 +0200)]
fix String/num type mismatch for PveNodesLxcStatusModel cpus
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 23 Sep 2020 09:48:23 +0000 (11:48 +0200)]
remove unused model fields
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 15 Sep 2020 11:32:40 +0000 (13:32 +0200)]
add socketexception to retry reasons
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 14 Sep 2020 12:58:18 +0000 (14:58 +0200)]
qemu status model: add spice parameter
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 10 Sep 2020 10:40:11 +0000 (12:40 +0200)]
add typecheck to custom bool serializer
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 10 Sep 2020 09:49:16 +0000 (11:49 +0200)]
add template parameter
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 31 Aug 2020 09:17:10 +0000 (11:17 +0200)]
update HA model
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 31 Aug 2020 09:16:56 +0000 (11:16 +0200)]
update dependencies
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 25 Aug 2020 08:38:25 +0000 (10:38 +0200)]
add meta data
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 19 Aug 2020 11:01:08 +0000 (13:01 +0200)]
add mailto parameter to vzdump api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 29 Jul 2020 12:00:39 +0000 (14:00 +0200)]
remove shared prefs & flutter dependency
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 29 Jul 2020 11:09:54 +0000 (13:09 +0200)]
add accessDomains api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 29 Jul 2020 11:09:26 +0000 (13:09 +0200)]
remove shared preferences dependency & add ssl validation setting
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 10:05:28 +0000 (12:05 +0200)]
fix missing default return value
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 10:03:53 +0000 (12:03 +0200)]
cleanup: do use curly brackets
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 10:02:30 +0000 (12:02 +0200)]
update analyzer rules
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:58:53 +0000 (11:58 +0200)]
cleanup: remove unnecessery this
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:57:54 +0000 (11:57 +0200)]
cleanup: convert all strings to single quoted
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:50:47 +0000 (11:50 +0200)]
cleanup: remove unused import statements
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:18:11 +0000 (11:18 +0200)]
reword exception message
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:17:17 +0000 (11:17 +0200)]
remove unused parameter
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:16:34 +0000 (11:16 +0200)]
remove unnecessery this prefix
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:15:33 +0000 (11:15 +0200)]
remove dead code
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 2 Jul 2020 09:14:45 +0000 (11:14 +0200)]
add missing override annotation
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 26 Jun 2020 11:34:47 +0000 (13:34 +0200)]
client remove empty paramters
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 19 Jun 2020 12:23:37 +0000 (14:23 +0200)]
add task log model fields
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 19 Jun 2020 12:22:44 +0000 (14:22 +0200)]
add nodesVZDumpCreateBackup api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 17 Jun 2020 12:40:32 +0000 (14:40 +0200)]
add getNodesVZDumpExtractConfig api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 17 Jun 2020 12:39:51 +0000 (14:39 +0200)]
add deleteNodeStorageContent api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 13:26:57 +0000 (15:26 +0200)]
fix group model nullable fields
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 13:26:38 +0000 (15:26 +0200)]
set timeout for credentials refresh
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 12:47:08 +0000 (14:47 +0200)]
add lxc migrate model
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 09:47:31 +0000 (11:47 +0200)]
add lxc pending config to apiclient
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 09:23:51 +0000 (11:23 +0200)]
add qemu pending config to apiclient
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 09:23:19 +0000 (11:23 +0200)]
add default path check to get helper
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 22 May 2020 09:22:41 +0000 (11:22 +0200)]
add put request wrapper
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 18 May 2020 11:44:02 +0000 (13:44 +0200)]
qemu/lxc config: add parsing for enumerated json fields e.g. scsi0-n
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 12 May 2020 12:08:49 +0000 (14:08 +0200)]
change apt update model fields to nullable
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 12 May 2020 11:33:50 +0000 (13:33 +0200)]
add content type to storage content model
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 11 May 2020 12:36:46 +0000 (14:36 +0200)]
add api token model
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 27 Apr 2020 18:02:26 +0000 (20:02 +0200)]
add tfa challenge to client
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 27 Apr 2020 15:59:47 +0000 (17:59 +0200)]
add access api calls (domain, group, user, role)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Thu, 23 Apr 2020 16:46:01 +0000 (18:46 +0200)]
fix displayName for guests
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Mon, 20 Apr 2020 17:22:12 +0000 (19:22 +0200)]
convert wearout field to jsonObject -> api endpoint not typed
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 17 Apr 2020 10:54:23 +0000 (12:54 +0200)]
add timeout to auth call
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Fri, 17 Apr 2020 10:53:46 +0000 (12:53 +0200)]
fix wrong null check
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Wed, 15 Apr 2020 09:05:26 +0000 (11:05 +0200)]
remove osdid field from PveNodesDisksListModel
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:26:26 +0000 (23:26 +0200)]
correct types for class fields
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:24:38 +0000 (23:24 +0200)]
add getQemuStatus method
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:23:39 +0000 (23:23 +0200)]
add unified typed getStatus method
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:22:29 +0000 (23:22 +0200)]
rearrange class fields
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:21:38 +0000 (23:21 +0200)]
make ProxmoxApiException toString more verbose
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:21:06 +0000 (23:21 +0200)]
temporarily revert to async for handleAccessTicketResponse
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:19:07 +0000 (23:19 +0200)]
add null check
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:18:24 +0000 (23:18 +0200)]
whitespace and format cleanup
Signed-off-by: Tim Marx <t.marx@proxmox.com>
Tim Marx [Tue, 14 Apr 2020 21:11:33 +0000 (23:11 +0200)]
add getNodeDisksList api call
Signed-off-by: Tim Marx <t.marx@proxmox.com>