mergetbapi 1.3.46__tar.gz → 1.3.47__tar.gz

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.
Files changed (23) hide show
  1. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/PKG-INFO +1 -1
  2. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/portal/v1/__init__.py +45 -30
  3. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/PKG-INFO +1 -1
  4. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/LICENSE.md +0 -0
  5. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/README.md +0 -0
  6. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/__init__.py +0 -0
  7. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/google/__init__.py +0 -0
  8. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/google/api/__init__.py +0 -0
  9. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/grpc/__init__.py +0 -0
  10. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/grpc/gateway/__init__.py +0 -0
  11. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/__init__.py +0 -0
  12. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/grpc/gateway/protoc_gen_openapiv2/options/__init__.py +0 -0
  13. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/portal/__init__.py +0 -0
  14. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/reconcile/__init__.py +0 -0
  15. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/validator/__init__.py +0 -0
  16. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi/xir/__init__.py +0 -0
  17. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/SOURCES.txt +0 -0
  18. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/dependency_links.txt +0 -0
  19. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/not-zip-safe +0 -0
  20. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/requires.txt +0 -0
  21. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/mergetbapi.egg-info/top_level.txt +0 -0
  22. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/setup.cfg +0 -0
  23. {mergetbapi-1.3.46 → mergetbapi-1.3.47}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mergetbapi
3
- Version: 1.3.46
3
+ Version: 1.3.47
4
4
  Summary: Client interface to the MergeTB API
5
5
  Home-page: https://gitlab.com/mergetb/api
6
6
  Author: Brian Kocoloski
@@ -57,6 +57,11 @@ class TaskStatusStatusType(betterproto.Enum):
57
57
  Error = 6
58
58
 
59
59
 
60
+ class DurationCode(betterproto.Enum):
61
+ given = 0
62
+ never = 1
63
+
64
+
60
65
  class AccessMode(betterproto.Enum):
61
66
  Public = 0
62
67
  Protected = 1
@@ -152,11 +157,6 @@ class ArtifactGetDetail(betterproto.Enum):
152
157
  MetaOnly = 2
153
158
 
154
159
 
155
- class PortalDurationCode(betterproto.Enum):
156
- given = 0
157
- never = 1
158
-
159
-
160
160
  class DiagnosticLevel(betterproto.Enum):
161
161
  DiagUnspec = 0
162
162
  Error = 1
@@ -438,6 +438,27 @@ class TaskSummary(betterproto.Message):
438
438
  messages: List["TaskMessage"] = betterproto.message_field(4)
439
439
 
440
440
 
441
+ @dataclass(eq=False, repr=False)
442
+ class Duration(betterproto.Message):
443
+ when: "DurationCode" = betterproto.enum_field(1)
444
+ duration: str = betterproto.string_field(2)
445
+ """
446
+ How long to reserve the resources of the realization. After the duration
447
+ ends the realization is available to be forcibly relinquished to free
448
+ reserved resources.
449
+
450
+ The format of the duration follows the golang time.ParseDuration with
451
+ extra fields for weeks and days prepending the golang duration.
452
+
453
+ Example: 2 weeks, 3 days, 4 hours, 5 seconds is "2w3d4h5s".
454
+
455
+ Any field may be absent. "2w4h" is 2 weeks for hours.
456
+ A day is 24 hours. A week is 7 days.
457
+
458
+ Only used if "when" is "given".
459
+ """
460
+
461
+
441
462
  @dataclass(eq=False, repr=False)
442
463
  class AccessModeUpdate(betterproto.Message):
443
464
  value: "AccessMode" = betterproto.enum_field(1)
@@ -523,6 +544,7 @@ class User(betterproto.Message):
523
544
  email: str = betterproto.string_field(15)
524
545
  country: str = betterproto.string_field(16)
525
546
  usstate: str = betterproto.string_field(17)
547
+ created: datetime = betterproto.message_field(18)
526
548
 
527
549
 
528
550
  @dataclass(eq=False, repr=False)
@@ -626,6 +648,11 @@ class UpdateUserRequest(betterproto.Message):
626
648
  (Only useful if your portal supports email validation.)
627
649
  """
628
650
 
651
+ demo_duration: "Duration" = betterproto.message_field(16)
652
+ """
653
+ DemoDuration - if demo mode is active, how long until the user's demo mode expires.
654
+ """
655
+
629
656
 
630
657
  @dataclass(eq=False, repr=False)
631
658
  class UpdateUserResponse(betterproto.Message):
@@ -732,6 +759,7 @@ class Project(betterproto.Message):
732
759
  org_membership: "Member" = betterproto.message_field(10)
733
760
  category: str = betterproto.string_field(11)
734
761
  subcategory: str = betterproto.string_field(12)
762
+ created: datetime = betterproto.message_field(13)
735
763
 
736
764
 
737
765
  @dataclass(eq=False, repr=False)
@@ -900,6 +928,8 @@ class Experiment(betterproto.Message):
900
928
  Experiment version, increments each time experiment metadata is updated.
901
929
  """
902
930
 
931
+ created: datetime = betterproto.message_field(10)
932
+
903
933
 
904
934
  @dataclass(eq=False, repr=False)
905
935
  class GetExperimentsRequest(betterproto.Message):
@@ -1026,6 +1056,7 @@ class Organization(betterproto.Message):
1026
1056
 
1027
1057
  category: str = betterproto.string_field(9)
1028
1058
  subcategory: str = betterproto.string_field(10)
1059
+ created: datetime = betterproto.message_field(11)
1029
1060
 
1030
1061
 
1031
1062
  @dataclass(eq=False, repr=False)
@@ -2102,27 +2133,6 @@ class UpdateIdentityResponse(betterproto.Message):
2102
2133
  pass
2103
2134
 
2104
2135
 
2105
- @dataclass(eq=False, repr=False)
2106
- class PortalDuration(betterproto.Message):
2107
- when: "PortalDurationCode" = betterproto.enum_field(1)
2108
- duration: str = betterproto.string_field(2)
2109
- """
2110
- How long to reserve the resources of the realization. After the duration
2111
- ends the realization is available to be forcibly relinquished to free
2112
- reserved resources.
2113
-
2114
- The format of the duration follows the golang time.ParseDuration with
2115
- extra fields for weeks and days prepending the golang duration.
2116
-
2117
- Example: 2 weeks, 3 days, 4 hours, 5 seconds is "2w3d4h5s".
2118
-
2119
- Any field may be absent. "2w4h" is 2 weeks for hours.
2120
- A day is 24 hours. A week is 7 days.
2121
-
2122
- Only used if "when" is "given".
2123
- """
2124
-
2125
-
2126
2136
  @dataclass(eq=False, repr=False)
2127
2137
  class CountSet(betterproto.Message):
2128
2138
  name: str = betterproto.string_field(1)
@@ -2533,7 +2543,8 @@ class RealizeRequest(betterproto.Message):
2533
2543
  Only one of revision, tag, or branch is allowed.
2534
2544
  """
2535
2545
 
2536
- duration: "PortalDuration" = betterproto.message_field(10)
2546
+ duration: "Duration" = betterproto.message_field(10)
2547
+ created: datetime = betterproto.message_field(11)
2537
2548
 
2538
2549
 
2539
2550
  @dataclass(eq=False, repr=False)
@@ -2593,7 +2604,7 @@ class UpdateRealizationRequest(betterproto.Message):
2593
2604
  project: str = betterproto.string_field(1)
2594
2605
  experiment: str = betterproto.string_field(2)
2595
2606
  realization: str = betterproto.string_field(3)
2596
- duration: "PortalDuration" = betterproto.message_field(4)
2607
+ duration: "Duration" = betterproto.message_field(4)
2597
2608
 
2598
2609
 
2599
2610
  @dataclass(eq=False, repr=False)
@@ -2633,6 +2644,8 @@ class Materialization(betterproto.Message):
2633
2644
  link_emulation: "LinkEmulationParams" = betterproto.message_field(12)
2634
2645
  """Moa"""
2635
2646
 
2647
+ created: datetime = betterproto.message_field(13)
2648
+
2636
2649
 
2637
2650
  @dataclass(eq=False, repr=False)
2638
2651
  class MaterializationSummary(betterproto.Message):
@@ -2976,6 +2989,7 @@ class XdcStorage(betterproto.Message):
2976
2989
  """
2977
2990
 
2978
2991
  type: "XdcType" = betterproto.enum_field(11)
2992
+ created: datetime = betterproto.message_field(12)
2979
2993
  expires: datetime = betterproto.message_field(13)
2980
2994
  """When this XDC expires and will be deleted."""
2981
2995
 
@@ -3025,7 +3039,7 @@ class CreateXdcRequest(betterproto.Message):
3025
3039
  memlimit: int = betterproto.int32_field(4)
3026
3040
  cpulimit: int = betterproto.int32_field(5)
3027
3041
  type: "XdcType" = betterproto.enum_field(6)
3028
- duration: "PortalDuration" = betterproto.message_field(7)
3042
+ duration: "Duration" = betterproto.message_field(7)
3029
3043
 
3030
3044
 
3031
3045
  @dataclass(eq=False, repr=False)
@@ -3096,7 +3110,7 @@ class UpdateXdcRequest(betterproto.Message):
3096
3110
  project: str = betterproto.string_field(2)
3097
3111
  """part of the xdc name <xdc>.<project>"""
3098
3112
 
3099
- expires: "PortalDuration" = betterproto.message_field(3)
3113
+ expires: "Duration" = betterproto.message_field(3)
3100
3114
 
3101
3115
 
3102
3116
  @dataclass(eq=False, repr=False)
@@ -3147,6 +3161,7 @@ class WgEnclave(betterproto.Message):
3147
3161
  client_ips: Dict[str, str] = betterproto.map_field(
3148
3162
  6, betterproto.TYPE_STRING, betterproto.TYPE_STRING
3149
3163
  )
3164
+ created: datetime = betterproto.message_field(7)
3150
3165
 
3151
3166
 
3152
3167
  @dataclass(eq=False, repr=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mergetbapi
3
- Version: 1.3.46
3
+ Version: 1.3.47
4
4
  Summary: Client interface to the MergeTB API
5
5
  Home-page: https://gitlab.com/mergetb/api
6
6
  Author: Brian Kocoloski
File without changes
File without changes
File without changes
File without changes