You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.logger.warn("don't call network.get_resources() for data centers, always use network.get_edge_router_data_centers() to filter for locations that support this network's version")
fornext_pageinrange(next_range_lower, next_range_upper): # first page is 0 unless network-groups which are 1-based
@@ -436,6 +436,7 @@ def camel(self, snake_str):
436
436
437
437
438
438
NET_RESOURCES=dict() # resources in network domain
439
+
ZITI_NET_RESOURCES=dict() # network resources that are backed 1:1 by a zitiId
439
440
MUTABLE_NET_RESOURCES=dict() # network resources that can be updated
440
441
MUTABLE_RESOURCE_ABBREV=dict() # unique abbreviations for ^
441
442
EMBED_NET_RESOURCES=dict() # network resources that may be fetched as embedded collections
@@ -484,9 +485,8 @@ def __post_init__(self):
484
485
classResourceType(ResourceTypeParent):
485
486
"""Typed resource type spec.
486
487
487
-
As close as I could get to a Go struct. This helps us to suggest possible
488
-
operations such as all resource types in the network domain that can be
489
-
mutated (C_UD).
488
+
This helps the CLI to suggest possible operations such as all resource
489
+
types in the network domain that can be mutated (C_UD).
490
490
"""
491
491
492
492
name: str# plural form as kebab-case e.g. edge-routers
@@ -509,6 +509,7 @@ class ResourceType(ResourceTypeParent):
509
509
abbreviation: str=field(default='default')
510
510
status_symbols: dict=field(default_factory=lambda: RESOURCE_STATUS_SYMBOLS) # dictionary with three predictable keys: complete, progress, error, each a tuple associating status symbols with a state
511
511
host: bool=field(default=False) # may have a managed host in NF cloud
512
+
ziti: bool=field(default=False)
512
513
513
514
def__post_init__(self):
514
515
"""Compute and assign _embedded if not supplied and then check types in parent class."""
0 commit comments