dapla-toolbelt-metadata 0.7.0__py3-none-any.whl → 0.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dapla-toolbelt-metadata might be problematic. Click here for more details.
- dapla_metadata/datasets/core.py +29 -1
- dapla_metadata/variable_definitions/_generated/.openapi-generator/FILES +3 -0
- dapla_metadata/variable_definitions/_generated/vardef_client/api/data_migration_api.py +468 -15
- dapla_metadata/variable_definitions/_generated/vardef_client/api/draft_variable_definitions_api.py +20 -51
- dapla_metadata/variable_definitions/_generated/vardef_client/api/patches_api.py +21 -52
- dapla_metadata/variable_definitions/_generated/vardef_client/api/validity_periods_api.py +13 -33
- dapla_metadata/variable_definitions/_generated/vardef_client/api/variable_definitions_api.py +16 -33
- dapla_metadata/variable_definitions/_generated/vardef_client/models/__init__.py +5 -0
- dapla_metadata/variable_definitions/_generated/vardef_client/models/get_vardok_vardef_mapping_by_id200_response.py +158 -0
- dapla_metadata/variable_definitions/_generated/vardef_client/models/language_string_type.py +1 -5
- dapla_metadata/variable_definitions/_generated/vardef_client/models/owner.py +1 -4
- dapla_metadata/variable_definitions/_generated/vardef_client/models/vardok_id_response.py +81 -0
- dapla_metadata/variable_definitions/_generated/vardef_client/models/vardok_vardef_id_pair_response.py +84 -0
- dapla_metadata/variable_definitions/_utils/variable_definition_files.py +23 -0
- dapla_metadata/variable_definitions/vardef.py +79 -1
- dapla_metadata/variable_definitions/vardok_id.py +44 -0
- dapla_metadata/variable_definitions/vardok_vardef_id_pair.py +43 -0
- dapla_metadata/variable_definitions/variable_definition.py +5 -18
- {dapla_toolbelt_metadata-0.7.0.dist-info → dapla_toolbelt_metadata-0.7.2.dist-info}/METADATA +1 -1
- {dapla_toolbelt_metadata-0.7.0.dist-info → dapla_toolbelt_metadata-0.7.2.dist-info}/RECORD +22 -17
- {dapla_toolbelt_metadata-0.7.0.dist-info → dapla_toolbelt_metadata-0.7.2.dist-info}/LICENSE +0 -0
- {dapla_toolbelt_metadata-0.7.0.dist-info → dapla_toolbelt_metadata-0.7.2.dist-info}/WHEEL +0 -0
dapla_metadata/variable_definitions/_generated/vardef_client/api/draft_variable_definitions_api.py
CHANGED
|
@@ -101,8 +101,7 @@ class DraftVariableDefinitionsApi:
|
|
|
101
101
|
"409": "Problem",
|
|
102
102
|
}
|
|
103
103
|
response_data = self.api_client.call_api(
|
|
104
|
-
*_param,
|
|
105
|
-
_request_timeout=_request_timeout,
|
|
104
|
+
*_param, _request_timeout=_request_timeout
|
|
106
105
|
)
|
|
107
106
|
response_data.read()
|
|
108
107
|
return self.api_client.response_deserialize(
|
|
@@ -172,8 +171,7 @@ class DraftVariableDefinitionsApi:
|
|
|
172
171
|
"409": "Problem",
|
|
173
172
|
}
|
|
174
173
|
response_data = self.api_client.call_api(
|
|
175
|
-
*_param,
|
|
176
|
-
_request_timeout=_request_timeout,
|
|
174
|
+
*_param, _request_timeout=_request_timeout
|
|
177
175
|
)
|
|
178
176
|
response_data.read()
|
|
179
177
|
return self.api_client.response_deserialize(
|
|
@@ -243,8 +241,7 @@ class DraftVariableDefinitionsApi:
|
|
|
243
241
|
"409": "Problem",
|
|
244
242
|
}
|
|
245
243
|
response_data = self.api_client.call_api(
|
|
246
|
-
*_param,
|
|
247
|
-
_request_timeout=_request_timeout,
|
|
244
|
+
*_param, _request_timeout=_request_timeout
|
|
248
245
|
)
|
|
249
246
|
return response_data.response
|
|
250
247
|
|
|
@@ -266,8 +263,7 @@ class DraftVariableDefinitionsApi:
|
|
|
266
263
|
_header_params: dict[str, str | None] = _headers or {}
|
|
267
264
|
_form_params: list[tuple[str, str]] = []
|
|
268
265
|
_files: dict[
|
|
269
|
-
str,
|
|
270
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
266
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
271
267
|
] = {}
|
|
272
268
|
_body_params: bytes | None = None
|
|
273
269
|
|
|
@@ -285,10 +281,7 @@ class DraftVariableDefinitionsApi:
|
|
|
285
281
|
# set the HTTP header `Accept`
|
|
286
282
|
if "Accept" not in _header_params:
|
|
287
283
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
288
|
-
[
|
|
289
|
-
"application/json",
|
|
290
|
-
"application/problem+json",
|
|
291
|
-
],
|
|
284
|
+
["application/json", "application/problem+json"]
|
|
292
285
|
)
|
|
293
286
|
|
|
294
287
|
# set the HTTP header `Content-Type`
|
|
@@ -296,17 +289,13 @@ class DraftVariableDefinitionsApi:
|
|
|
296
289
|
_header_params["Content-Type"] = _content_type
|
|
297
290
|
else:
|
|
298
291
|
_default_content_type = self.api_client.select_header_content_type(
|
|
299
|
-
[
|
|
300
|
-
"application/json",
|
|
301
|
-
],
|
|
292
|
+
["application/json"]
|
|
302
293
|
)
|
|
303
294
|
if _default_content_type is not None:
|
|
304
295
|
_header_params["Content-Type"] = _default_content_type
|
|
305
296
|
|
|
306
297
|
# authentication setting
|
|
307
|
-
_auth_settings: list[str] = [
|
|
308
|
-
"keycloak_token",
|
|
309
|
-
]
|
|
298
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
310
299
|
|
|
311
300
|
return self.api_client.param_serialize(
|
|
312
301
|
method="POST",
|
|
@@ -388,8 +377,7 @@ class DraftVariableDefinitionsApi:
|
|
|
388
377
|
"405": "Problem",
|
|
389
378
|
}
|
|
390
379
|
response_data = self.api_client.call_api(
|
|
391
|
-
*_param,
|
|
392
|
-
_request_timeout=_request_timeout,
|
|
380
|
+
*_param, _request_timeout=_request_timeout
|
|
393
381
|
)
|
|
394
382
|
response_data.read()
|
|
395
383
|
return self.api_client.response_deserialize(
|
|
@@ -462,8 +450,7 @@ class DraftVariableDefinitionsApi:
|
|
|
462
450
|
"405": "Problem",
|
|
463
451
|
}
|
|
464
452
|
response_data = self.api_client.call_api(
|
|
465
|
-
*_param,
|
|
466
|
-
_request_timeout=_request_timeout,
|
|
453
|
+
*_param, _request_timeout=_request_timeout
|
|
467
454
|
)
|
|
468
455
|
response_data.read()
|
|
469
456
|
return self.api_client.response_deserialize(
|
|
@@ -536,8 +523,7 @@ class DraftVariableDefinitionsApi:
|
|
|
536
523
|
"405": "Problem",
|
|
537
524
|
}
|
|
538
525
|
response_data = self.api_client.call_api(
|
|
539
|
-
*_param,
|
|
540
|
-
_request_timeout=_request_timeout,
|
|
526
|
+
*_param, _request_timeout=_request_timeout
|
|
541
527
|
)
|
|
542
528
|
return response_data.response
|
|
543
529
|
|
|
@@ -559,8 +545,7 @@ class DraftVariableDefinitionsApi:
|
|
|
559
545
|
_header_params: dict[str, str | None] = _headers or {}
|
|
560
546
|
_form_params: list[tuple[str, str]] = []
|
|
561
547
|
_files: dict[
|
|
562
|
-
str,
|
|
563
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
548
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
564
549
|
] = {}
|
|
565
550
|
_body_params: bytes | None = None
|
|
566
551
|
|
|
@@ -578,16 +563,11 @@ class DraftVariableDefinitionsApi:
|
|
|
578
563
|
# set the HTTP header `Accept`
|
|
579
564
|
if "Accept" not in _header_params:
|
|
580
565
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
581
|
-
[
|
|
582
|
-
"application/json",
|
|
583
|
-
"application/problem+json",
|
|
584
|
-
],
|
|
566
|
+
["application/json", "application/problem+json"]
|
|
585
567
|
)
|
|
586
568
|
|
|
587
569
|
# authentication setting
|
|
588
|
-
_auth_settings: list[str] = [
|
|
589
|
-
"keycloak_token",
|
|
590
|
-
]
|
|
570
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
591
571
|
|
|
592
572
|
return self.api_client.param_serialize(
|
|
593
573
|
method="DELETE",
|
|
@@ -675,8 +655,7 @@ class DraftVariableDefinitionsApi:
|
|
|
675
655
|
"409": "Problem",
|
|
676
656
|
}
|
|
677
657
|
response_data = self.api_client.call_api(
|
|
678
|
-
*_param,
|
|
679
|
-
_request_timeout=_request_timeout,
|
|
658
|
+
*_param, _request_timeout=_request_timeout
|
|
680
659
|
)
|
|
681
660
|
response_data.read()
|
|
682
661
|
return self.api_client.response_deserialize(
|
|
@@ -755,8 +734,7 @@ class DraftVariableDefinitionsApi:
|
|
|
755
734
|
"409": "Problem",
|
|
756
735
|
}
|
|
757
736
|
response_data = self.api_client.call_api(
|
|
758
|
-
*_param,
|
|
759
|
-
_request_timeout=_request_timeout,
|
|
737
|
+
*_param, _request_timeout=_request_timeout
|
|
760
738
|
)
|
|
761
739
|
response_data.read()
|
|
762
740
|
return self.api_client.response_deserialize(
|
|
@@ -835,8 +813,7 @@ class DraftVariableDefinitionsApi:
|
|
|
835
813
|
"409": "Problem",
|
|
836
814
|
}
|
|
837
815
|
response_data = self.api_client.call_api(
|
|
838
|
-
*_param,
|
|
839
|
-
_request_timeout=_request_timeout,
|
|
816
|
+
*_param, _request_timeout=_request_timeout
|
|
840
817
|
)
|
|
841
818
|
return response_data.response
|
|
842
819
|
|
|
@@ -859,8 +836,7 @@ class DraftVariableDefinitionsApi:
|
|
|
859
836
|
_header_params: dict[str, str | None] = _headers or {}
|
|
860
837
|
_form_params: list[tuple[str, str]] = []
|
|
861
838
|
_files: dict[
|
|
862
|
-
str,
|
|
863
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
839
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
864
840
|
] = {}
|
|
865
841
|
_body_params: bytes | None = None
|
|
866
842
|
|
|
@@ -880,10 +856,7 @@ class DraftVariableDefinitionsApi:
|
|
|
880
856
|
# set the HTTP header `Accept`
|
|
881
857
|
if "Accept" not in _header_params:
|
|
882
858
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
883
|
-
[
|
|
884
|
-
"application/json",
|
|
885
|
-
"application/problem+json",
|
|
886
|
-
],
|
|
859
|
+
["application/json", "application/problem+json"]
|
|
887
860
|
)
|
|
888
861
|
|
|
889
862
|
# set the HTTP header `Content-Type`
|
|
@@ -891,17 +864,13 @@ class DraftVariableDefinitionsApi:
|
|
|
891
864
|
_header_params["Content-Type"] = _content_type
|
|
892
865
|
else:
|
|
893
866
|
_default_content_type = self.api_client.select_header_content_type(
|
|
894
|
-
[
|
|
895
|
-
"application/json",
|
|
896
|
-
],
|
|
867
|
+
["application/json"]
|
|
897
868
|
)
|
|
898
869
|
if _default_content_type is not None:
|
|
899
870
|
_header_params["Content-Type"] = _default_content_type
|
|
900
871
|
|
|
901
872
|
# authentication setting
|
|
902
|
-
_auth_settings: list[str] = [
|
|
903
|
-
"keycloak_token",
|
|
904
|
-
]
|
|
873
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
905
874
|
|
|
906
875
|
return self.api_client.param_serialize(
|
|
907
876
|
method="PATCH",
|
|
@@ -118,8 +118,7 @@ class PatchesApi:
|
|
|
118
118
|
"405": "Problem",
|
|
119
119
|
}
|
|
120
120
|
response_data = self.api_client.call_api(
|
|
121
|
-
*_param,
|
|
122
|
-
_request_timeout=_request_timeout,
|
|
121
|
+
*_param, _request_timeout=_request_timeout
|
|
123
122
|
)
|
|
124
123
|
response_data.read()
|
|
125
124
|
return self.api_client.response_deserialize(
|
|
@@ -206,8 +205,7 @@ class PatchesApi:
|
|
|
206
205
|
"405": "Problem",
|
|
207
206
|
}
|
|
208
207
|
response_data = self.api_client.call_api(
|
|
209
|
-
*_param,
|
|
210
|
-
_request_timeout=_request_timeout,
|
|
208
|
+
*_param, _request_timeout=_request_timeout
|
|
211
209
|
)
|
|
212
210
|
response_data.read()
|
|
213
211
|
return self.api_client.response_deserialize(
|
|
@@ -294,8 +292,7 @@ class PatchesApi:
|
|
|
294
292
|
"405": "Problem",
|
|
295
293
|
}
|
|
296
294
|
response_data = self.api_client.call_api(
|
|
297
|
-
*_param,
|
|
298
|
-
_request_timeout=_request_timeout,
|
|
295
|
+
*_param, _request_timeout=_request_timeout
|
|
299
296
|
)
|
|
300
297
|
return response_data.response
|
|
301
298
|
|
|
@@ -319,8 +316,7 @@ class PatchesApi:
|
|
|
319
316
|
_header_params: dict[str, str | None] = _headers or {}
|
|
320
317
|
_form_params: list[tuple[str, str]] = []
|
|
321
318
|
_files: dict[
|
|
322
|
-
str,
|
|
323
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
319
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
324
320
|
] = {}
|
|
325
321
|
_body_params: bytes | None = None
|
|
326
322
|
|
|
@@ -333,10 +329,8 @@ class PatchesApi:
|
|
|
333
329
|
_query_params.append(
|
|
334
330
|
(
|
|
335
331
|
"valid_from",
|
|
336
|
-
valid_from.strftime(
|
|
337
|
-
|
|
338
|
-
),
|
|
339
|
-
),
|
|
332
|
+
valid_from.strftime(self.api_client.configuration.date_format),
|
|
333
|
+
)
|
|
340
334
|
)
|
|
341
335
|
else:
|
|
342
336
|
_query_params.append(("valid_from", valid_from))
|
|
@@ -353,10 +347,7 @@ class PatchesApi:
|
|
|
353
347
|
# set the HTTP header `Accept`
|
|
354
348
|
if "Accept" not in _header_params:
|
|
355
349
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
356
|
-
[
|
|
357
|
-
"application/json",
|
|
358
|
-
"application/problem+json",
|
|
359
|
-
],
|
|
350
|
+
["application/json", "application/problem+json"]
|
|
360
351
|
)
|
|
361
352
|
|
|
362
353
|
# set the HTTP header `Content-Type`
|
|
@@ -364,17 +355,13 @@ class PatchesApi:
|
|
|
364
355
|
_header_params["Content-Type"] = _content_type
|
|
365
356
|
else:
|
|
366
357
|
_default_content_type = self.api_client.select_header_content_type(
|
|
367
|
-
[
|
|
368
|
-
"application/json",
|
|
369
|
-
],
|
|
358
|
+
["application/json"]
|
|
370
359
|
)
|
|
371
360
|
if _default_content_type is not None:
|
|
372
361
|
_header_params["Content-Type"] = _default_content_type
|
|
373
362
|
|
|
374
363
|
# authentication setting
|
|
375
|
-
_auth_settings: list[str] = [
|
|
376
|
-
"keycloak_token",
|
|
377
|
-
]
|
|
364
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
378
365
|
|
|
379
366
|
return self.api_client.param_serialize(
|
|
380
367
|
method="POST",
|
|
@@ -454,8 +441,7 @@ class PatchesApi:
|
|
|
454
441
|
"404": "Problem",
|
|
455
442
|
}
|
|
456
443
|
response_data = self.api_client.call_api(
|
|
457
|
-
*_param,
|
|
458
|
-
_request_timeout=_request_timeout,
|
|
444
|
+
*_param, _request_timeout=_request_timeout
|
|
459
445
|
)
|
|
460
446
|
response_data.read()
|
|
461
447
|
return self.api_client.response_deserialize(
|
|
@@ -526,8 +512,7 @@ class PatchesApi:
|
|
|
526
512
|
"404": "Problem",
|
|
527
513
|
}
|
|
528
514
|
response_data = self.api_client.call_api(
|
|
529
|
-
*_param,
|
|
530
|
-
_request_timeout=_request_timeout,
|
|
515
|
+
*_param, _request_timeout=_request_timeout
|
|
531
516
|
)
|
|
532
517
|
response_data.read()
|
|
533
518
|
return self.api_client.response_deserialize(
|
|
@@ -598,8 +583,7 @@ class PatchesApi:
|
|
|
598
583
|
"404": "Problem",
|
|
599
584
|
}
|
|
600
585
|
response_data = self.api_client.call_api(
|
|
601
|
-
*_param,
|
|
602
|
-
_request_timeout=_request_timeout,
|
|
586
|
+
*_param, _request_timeout=_request_timeout
|
|
603
587
|
)
|
|
604
588
|
return response_data.response
|
|
605
589
|
|
|
@@ -621,8 +605,7 @@ class PatchesApi:
|
|
|
621
605
|
_header_params: dict[str, str | None] = _headers or {}
|
|
622
606
|
_form_params: list[tuple[str, str]] = []
|
|
623
607
|
_files: dict[
|
|
624
|
-
str,
|
|
625
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
608
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
626
609
|
] = {}
|
|
627
610
|
_body_params: bytes | None = None
|
|
628
611
|
|
|
@@ -639,16 +622,11 @@ class PatchesApi:
|
|
|
639
622
|
# set the HTTP header `Accept`
|
|
640
623
|
if "Accept" not in _header_params:
|
|
641
624
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
642
|
-
[
|
|
643
|
-
"application/json",
|
|
644
|
-
"application/problem+json",
|
|
645
|
-
],
|
|
625
|
+
["application/json", "application/problem+json"]
|
|
646
626
|
)
|
|
647
627
|
|
|
648
628
|
# authentication setting
|
|
649
|
-
_auth_settings: list[str] = [
|
|
650
|
-
"keycloak_token",
|
|
651
|
-
]
|
|
629
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
652
630
|
|
|
653
631
|
return self.api_client.param_serialize(
|
|
654
632
|
method="GET",
|
|
@@ -722,8 +700,7 @@ class PatchesApi:
|
|
|
722
700
|
"404": "Problem",
|
|
723
701
|
}
|
|
724
702
|
response_data = self.api_client.call_api(
|
|
725
|
-
*_param,
|
|
726
|
-
_request_timeout=_request_timeout,
|
|
703
|
+
*_param, _request_timeout=_request_timeout
|
|
727
704
|
)
|
|
728
705
|
response_data.read()
|
|
729
706
|
return self.api_client.response_deserialize(
|
|
@@ -788,8 +765,7 @@ class PatchesApi:
|
|
|
788
765
|
"404": "Problem",
|
|
789
766
|
}
|
|
790
767
|
response_data = self.api_client.call_api(
|
|
791
|
-
*_param,
|
|
792
|
-
_request_timeout=_request_timeout,
|
|
768
|
+
*_param, _request_timeout=_request_timeout
|
|
793
769
|
)
|
|
794
770
|
response_data.read()
|
|
795
771
|
return self.api_client.response_deserialize(
|
|
@@ -854,8 +830,7 @@ class PatchesApi:
|
|
|
854
830
|
"404": "Problem",
|
|
855
831
|
}
|
|
856
832
|
response_data = self.api_client.call_api(
|
|
857
|
-
*_param,
|
|
858
|
-
_request_timeout=_request_timeout,
|
|
833
|
+
*_param, _request_timeout=_request_timeout
|
|
859
834
|
)
|
|
860
835
|
return response_data.response
|
|
861
836
|
|
|
@@ -876,8 +851,7 @@ class PatchesApi:
|
|
|
876
851
|
_header_params: dict[str, str | None] = _headers or {}
|
|
877
852
|
_form_params: list[tuple[str, str]] = []
|
|
878
853
|
_files: dict[
|
|
879
|
-
str,
|
|
880
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
854
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
881
855
|
] = {}
|
|
882
856
|
_body_params: bytes | None = None
|
|
883
857
|
|
|
@@ -892,16 +866,11 @@ class PatchesApi:
|
|
|
892
866
|
# set the HTTP header `Accept`
|
|
893
867
|
if "Accept" not in _header_params:
|
|
894
868
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
895
|
-
[
|
|
896
|
-
"application/json",
|
|
897
|
-
"application/problem+json",
|
|
898
|
-
],
|
|
869
|
+
["application/json", "application/problem+json"]
|
|
899
870
|
)
|
|
900
871
|
|
|
901
872
|
# authentication setting
|
|
902
|
-
_auth_settings: list[str] = [
|
|
903
|
-
"keycloak_token",
|
|
904
|
-
]
|
|
873
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
905
874
|
|
|
906
875
|
return self.api_client.param_serialize(
|
|
907
876
|
method="GET",
|
|
@@ -108,8 +108,7 @@ class ValidityPeriodsApi:
|
|
|
108
108
|
"405": "Problem",
|
|
109
109
|
}
|
|
110
110
|
response_data = self.api_client.call_api(
|
|
111
|
-
*_param,
|
|
112
|
-
_request_timeout=_request_timeout,
|
|
111
|
+
*_param, _request_timeout=_request_timeout
|
|
113
112
|
)
|
|
114
113
|
response_data.read()
|
|
115
114
|
return self.api_client.response_deserialize(
|
|
@@ -187,8 +186,7 @@ class ValidityPeriodsApi:
|
|
|
187
186
|
"405": "Problem",
|
|
188
187
|
}
|
|
189
188
|
response_data = self.api_client.call_api(
|
|
190
|
-
*_param,
|
|
191
|
-
_request_timeout=_request_timeout,
|
|
189
|
+
*_param, _request_timeout=_request_timeout
|
|
192
190
|
)
|
|
193
191
|
response_data.read()
|
|
194
192
|
return self.api_client.response_deserialize(
|
|
@@ -266,8 +264,7 @@ class ValidityPeriodsApi:
|
|
|
266
264
|
"405": "Problem",
|
|
267
265
|
}
|
|
268
266
|
response_data = self.api_client.call_api(
|
|
269
|
-
*_param,
|
|
270
|
-
_request_timeout=_request_timeout,
|
|
267
|
+
*_param, _request_timeout=_request_timeout
|
|
271
268
|
)
|
|
272
269
|
return response_data.response
|
|
273
270
|
|
|
@@ -290,8 +287,7 @@ class ValidityPeriodsApi:
|
|
|
290
287
|
_header_params: dict[str, str | None] = _headers or {}
|
|
291
288
|
_form_params: list[tuple[str, str]] = []
|
|
292
289
|
_files: dict[
|
|
293
|
-
str,
|
|
294
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
290
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
295
291
|
] = {}
|
|
296
292
|
_body_params: bytes | None = None
|
|
297
293
|
|
|
@@ -311,10 +307,7 @@ class ValidityPeriodsApi:
|
|
|
311
307
|
# set the HTTP header `Accept`
|
|
312
308
|
if "Accept" not in _header_params:
|
|
313
309
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
314
|
-
[
|
|
315
|
-
"application/json",
|
|
316
|
-
"application/problem+json",
|
|
317
|
-
],
|
|
310
|
+
["application/json", "application/problem+json"]
|
|
318
311
|
)
|
|
319
312
|
|
|
320
313
|
# set the HTTP header `Content-Type`
|
|
@@ -322,17 +315,13 @@ class ValidityPeriodsApi:
|
|
|
322
315
|
_header_params["Content-Type"] = _content_type
|
|
323
316
|
else:
|
|
324
317
|
_default_content_type = self.api_client.select_header_content_type(
|
|
325
|
-
[
|
|
326
|
-
"application/json",
|
|
327
|
-
],
|
|
318
|
+
["application/json"]
|
|
328
319
|
)
|
|
329
320
|
if _default_content_type is not None:
|
|
330
321
|
_header_params["Content-Type"] = _default_content_type
|
|
331
322
|
|
|
332
323
|
# authentication setting
|
|
333
|
-
_auth_settings: list[str] = [
|
|
334
|
-
"keycloak_token",
|
|
335
|
-
]
|
|
324
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
336
325
|
|
|
337
326
|
return self.api_client.param_serialize(
|
|
338
327
|
method="POST",
|
|
@@ -406,8 +395,7 @@ class ValidityPeriodsApi:
|
|
|
406
395
|
"404": "Problem",
|
|
407
396
|
}
|
|
408
397
|
response_data = self.api_client.call_api(
|
|
409
|
-
*_param,
|
|
410
|
-
_request_timeout=_request_timeout,
|
|
398
|
+
*_param, _request_timeout=_request_timeout
|
|
411
399
|
)
|
|
412
400
|
response_data.read()
|
|
413
401
|
return self.api_client.response_deserialize(
|
|
@@ -472,8 +460,7 @@ class ValidityPeriodsApi:
|
|
|
472
460
|
"404": "Problem",
|
|
473
461
|
}
|
|
474
462
|
response_data = self.api_client.call_api(
|
|
475
|
-
*_param,
|
|
476
|
-
_request_timeout=_request_timeout,
|
|
463
|
+
*_param, _request_timeout=_request_timeout
|
|
477
464
|
)
|
|
478
465
|
response_data.read()
|
|
479
466
|
return self.api_client.response_deserialize(
|
|
@@ -538,8 +525,7 @@ class ValidityPeriodsApi:
|
|
|
538
525
|
"404": "Problem",
|
|
539
526
|
}
|
|
540
527
|
response_data = self.api_client.call_api(
|
|
541
|
-
*_param,
|
|
542
|
-
_request_timeout=_request_timeout,
|
|
528
|
+
*_param, _request_timeout=_request_timeout
|
|
543
529
|
)
|
|
544
530
|
return response_data.response
|
|
545
531
|
|
|
@@ -560,8 +546,7 @@ class ValidityPeriodsApi:
|
|
|
560
546
|
_header_params: dict[str, str | None] = _headers or {}
|
|
561
547
|
_form_params: list[tuple[str, str]] = []
|
|
562
548
|
_files: dict[
|
|
563
|
-
str,
|
|
564
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
549
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
565
550
|
] = {}
|
|
566
551
|
_body_params: bytes | None = None
|
|
567
552
|
|
|
@@ -576,16 +561,11 @@ class ValidityPeriodsApi:
|
|
|
576
561
|
# set the HTTP header `Accept`
|
|
577
562
|
if "Accept" not in _header_params:
|
|
578
563
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
579
|
-
[
|
|
580
|
-
"application/json",
|
|
581
|
-
"application/problem+json",
|
|
582
|
-
],
|
|
564
|
+
["application/json", "application/problem+json"]
|
|
583
565
|
)
|
|
584
566
|
|
|
585
567
|
# authentication setting
|
|
586
|
-
_auth_settings: list[str] = [
|
|
587
|
-
"keycloak_token",
|
|
588
|
-
]
|
|
568
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
589
569
|
|
|
590
570
|
return self.api_client.param_serialize(
|
|
591
571
|
method="GET",
|
dapla_metadata/variable_definitions/_generated/vardef_client/api/variable_definitions_api.py
CHANGED
|
@@ -104,8 +104,7 @@ class VariableDefinitionsApi:
|
|
|
104
104
|
"404": "Problem",
|
|
105
105
|
}
|
|
106
106
|
response_data = self.api_client.call_api(
|
|
107
|
-
*_param,
|
|
108
|
-
_request_timeout=_request_timeout,
|
|
107
|
+
*_param, _request_timeout=_request_timeout
|
|
109
108
|
)
|
|
110
109
|
response_data.read()
|
|
111
110
|
return self.api_client.response_deserialize(
|
|
@@ -179,8 +178,7 @@ class VariableDefinitionsApi:
|
|
|
179
178
|
"404": "Problem",
|
|
180
179
|
}
|
|
181
180
|
response_data = self.api_client.call_api(
|
|
182
|
-
*_param,
|
|
183
|
-
_request_timeout=_request_timeout,
|
|
181
|
+
*_param, _request_timeout=_request_timeout
|
|
184
182
|
)
|
|
185
183
|
response_data.read()
|
|
186
184
|
return self.api_client.response_deserialize(
|
|
@@ -254,8 +252,7 @@ class VariableDefinitionsApi:
|
|
|
254
252
|
"404": "Problem",
|
|
255
253
|
}
|
|
256
254
|
response_data = self.api_client.call_api(
|
|
257
|
-
*_param,
|
|
258
|
-
_request_timeout=_request_timeout,
|
|
255
|
+
*_param, _request_timeout=_request_timeout
|
|
259
256
|
)
|
|
260
257
|
return response_data.response
|
|
261
258
|
|
|
@@ -277,8 +274,7 @@ class VariableDefinitionsApi:
|
|
|
277
274
|
_header_params: dict[str, str | None] = _headers or {}
|
|
278
275
|
_form_params: list[tuple[str, str]] = []
|
|
279
276
|
_files: dict[
|
|
280
|
-
str,
|
|
281
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
277
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
282
278
|
] = {}
|
|
283
279
|
_body_params: bytes | None = None
|
|
284
280
|
|
|
@@ -292,9 +288,9 @@ class VariableDefinitionsApi:
|
|
|
292
288
|
(
|
|
293
289
|
"date_of_validity",
|
|
294
290
|
date_of_validity.strftime(
|
|
295
|
-
self.api_client.configuration.date_format
|
|
291
|
+
self.api_client.configuration.date_format
|
|
296
292
|
),
|
|
297
|
-
)
|
|
293
|
+
)
|
|
298
294
|
)
|
|
299
295
|
else:
|
|
300
296
|
_query_params.append(("date_of_validity", date_of_validity))
|
|
@@ -306,16 +302,11 @@ class VariableDefinitionsApi:
|
|
|
306
302
|
# set the HTTP header `Accept`
|
|
307
303
|
if "Accept" not in _header_params:
|
|
308
304
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
309
|
-
[
|
|
310
|
-
"application/json",
|
|
311
|
-
"application/problem+json",
|
|
312
|
-
],
|
|
305
|
+
["application/json", "application/problem+json"]
|
|
313
306
|
)
|
|
314
307
|
|
|
315
308
|
# authentication setting
|
|
316
|
-
_auth_settings: list[str] = [
|
|
317
|
-
"keycloak_token",
|
|
318
|
-
]
|
|
309
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
319
310
|
|
|
320
311
|
return self.api_client.param_serialize(
|
|
321
312
|
method="GET",
|
|
@@ -399,8 +390,7 @@ class VariableDefinitionsApi:
|
|
|
399
390
|
"200": "List[CompleteResponse]",
|
|
400
391
|
}
|
|
401
392
|
response_data = self.api_client.call_api(
|
|
402
|
-
*_param,
|
|
403
|
-
_request_timeout=_request_timeout,
|
|
393
|
+
*_param, _request_timeout=_request_timeout
|
|
404
394
|
)
|
|
405
395
|
response_data.read()
|
|
406
396
|
return self.api_client.response_deserialize(
|
|
@@ -475,8 +465,7 @@ class VariableDefinitionsApi:
|
|
|
475
465
|
"200": "List[CompleteResponse]",
|
|
476
466
|
}
|
|
477
467
|
response_data = self.api_client.call_api(
|
|
478
|
-
*_param,
|
|
479
|
-
_request_timeout=_request_timeout,
|
|
468
|
+
*_param, _request_timeout=_request_timeout
|
|
480
469
|
)
|
|
481
470
|
response_data.read()
|
|
482
471
|
return self.api_client.response_deserialize(
|
|
@@ -551,8 +540,7 @@ class VariableDefinitionsApi:
|
|
|
551
540
|
"200": "List[CompleteResponse]",
|
|
552
541
|
}
|
|
553
542
|
response_data = self.api_client.call_api(
|
|
554
|
-
*_param,
|
|
555
|
-
_request_timeout=_request_timeout,
|
|
543
|
+
*_param, _request_timeout=_request_timeout
|
|
556
544
|
)
|
|
557
545
|
return response_data.response
|
|
558
546
|
|
|
@@ -574,8 +562,7 @@ class VariableDefinitionsApi:
|
|
|
574
562
|
_header_params: dict[str, str | None] = _headers or {}
|
|
575
563
|
_form_params: list[tuple[str, str]] = []
|
|
576
564
|
_files: dict[
|
|
577
|
-
str,
|
|
578
|
-
str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]],
|
|
565
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
579
566
|
] = {}
|
|
580
567
|
_body_params: bytes | None = None
|
|
581
568
|
|
|
@@ -587,9 +574,9 @@ class VariableDefinitionsApi:
|
|
|
587
574
|
(
|
|
588
575
|
"date_of_validity",
|
|
589
576
|
date_of_validity.strftime(
|
|
590
|
-
self.api_client.configuration.date_format
|
|
577
|
+
self.api_client.configuration.date_format
|
|
591
578
|
),
|
|
592
|
-
)
|
|
579
|
+
)
|
|
593
580
|
)
|
|
594
581
|
else:
|
|
595
582
|
_query_params.append(("date_of_validity", date_of_validity))
|
|
@@ -604,15 +591,11 @@ class VariableDefinitionsApi:
|
|
|
604
591
|
# set the HTTP header `Accept`
|
|
605
592
|
if "Accept" not in _header_params:
|
|
606
593
|
_header_params["Accept"] = self.api_client.select_header_accept(
|
|
607
|
-
[
|
|
608
|
-
"application/json",
|
|
609
|
-
],
|
|
594
|
+
["application/json"]
|
|
610
595
|
)
|
|
611
596
|
|
|
612
597
|
# authentication setting
|
|
613
|
-
_auth_settings: list[str] = [
|
|
614
|
-
"keycloak_token",
|
|
615
|
-
]
|
|
598
|
+
_auth_settings: list[str] = ["keycloak_token"]
|
|
616
599
|
|
|
617
600
|
return self.api_client.param_serialize(
|
|
618
601
|
method="GET",
|
|
@@ -17,10 +17,15 @@ Do not edit the class manually.
|
|
|
17
17
|
from ..models.complete_response import CompleteResponse
|
|
18
18
|
from ..models.contact import Contact
|
|
19
19
|
from ..models.draft import Draft
|
|
20
|
+
from ..models.get_vardok_vardef_mapping_by_id200_response import (
|
|
21
|
+
GetVardokVardefMappingById200Response,
|
|
22
|
+
)
|
|
20
23
|
from ..models.language_string_type import LanguageStringType
|
|
21
24
|
from ..models.owner import Owner
|
|
22
25
|
from ..models.patch import Patch
|
|
23
26
|
from ..models.problem import Problem
|
|
24
27
|
from ..models.update_draft import UpdateDraft
|
|
25
28
|
from ..models.validity_period import ValidityPeriod
|
|
29
|
+
from ..models.vardok_id_response import VardokIdResponse
|
|
30
|
+
from ..models.vardok_vardef_id_pair_response import VardokVardefIdPairResponse
|
|
26
31
|
from ..models.variable_status import VariableStatus
|