simvue 2.5.2__tar.gz → 2.5.3__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.
- {simvue-2.5.2 → simvue-2.5.3}/PKG-INFO +1 -1
- {simvue-2.5.2 → simvue-2.5.3}/pyproject.toml +1 -1
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/storage/s3.py +8 -11
- {simvue-2.5.2 → simvue-2.5.3}/LICENSE +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/README.md +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/administrator/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/administrator/tenant.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/administrator/user.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/events.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/fetch.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/metrics.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/alert/user.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/artifact/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/artifact/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/artifact/fetch.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/artifact/file.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/artifact/object.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/events.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/filter.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/folder.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/grids.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/metrics.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/run.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/stats.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/storage/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/storage/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/storage/fetch.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/storage/file.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/objects/tag.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/request.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/api/url.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/bin/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/bin/sender.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/client.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/config/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/config/files.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/config/parameters.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/config/simvue_config_schema.json +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/config/user.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/converters.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/dispatch/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/dispatch/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/dispatch/direct.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/dispatch/queued.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/eco/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/eco/api_client.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/eco/config.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/eco/emissions_monitor.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/exception.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/executor.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/handler.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/metadata.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/metrics.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/models.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/pynvml.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/run.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/sender/__init__.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/sender/actions.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/sender/base.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/serialization.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/simvue_types.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/system.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/utilities.py +0 -0
- {simvue-2.5.2 → simvue-2.5.3}/simvue/version.py +0 -0
|
@@ -63,13 +63,13 @@ class S3Storage(StorageBase):
|
|
|
63
63
|
name: typing.Annotated[str, pydantic.Field(pattern=NAME_REGEX)],
|
|
64
64
|
disable_check: bool,
|
|
65
65
|
endpoint_url: pydantic.HttpUrl,
|
|
66
|
-
region_name: str,
|
|
67
66
|
access_key_id: str,
|
|
68
67
|
secret_access_key: pydantic.SecretStr,
|
|
69
68
|
bucket: str,
|
|
70
69
|
is_tenant_useable: bool,
|
|
71
70
|
is_default: bool,
|
|
72
71
|
is_enabled: bool,
|
|
72
|
+
region_name: str | None = None,
|
|
73
73
|
ca_cert: pydantic.SecretStr | None = None,
|
|
74
74
|
offline: bool = False,
|
|
75
75
|
**__,
|
|
@@ -84,14 +84,14 @@ class S3Storage(StorageBase):
|
|
|
84
84
|
whether to disable checks for this system
|
|
85
85
|
endpoint_url : str
|
|
86
86
|
endpoint defining the S3 upload URL
|
|
87
|
-
region_name : str
|
|
88
|
-
the region name associated with this storage system
|
|
89
87
|
access_key_id : str
|
|
90
88
|
the access key identifier for the storage
|
|
91
89
|
secret_access_key : str
|
|
92
90
|
the secret access key, stored as a secret string
|
|
93
91
|
bucket : str
|
|
94
92
|
the bucket associated with this storage system
|
|
93
|
+
region_name : str | None, optional
|
|
94
|
+
the region name associated with this storage system if applicable
|
|
95
95
|
ca_cert : str | None, optional
|
|
96
96
|
provide a CA certificate for this storage
|
|
97
97
|
is_tenant_useable : bool
|
|
@@ -111,12 +111,14 @@ class S3Storage(StorageBase):
|
|
|
111
111
|
"""
|
|
112
112
|
_config: dict[str, str] = {
|
|
113
113
|
"endpoint_url": endpoint_url.__str__(),
|
|
114
|
-
"region_name": region_name,
|
|
115
114
|
"access_key_id": access_key_id,
|
|
116
115
|
"secret_access_key": secret_access_key.get_secret_value(),
|
|
117
116
|
"bucket": bucket,
|
|
118
117
|
}
|
|
119
118
|
|
|
119
|
+
if region_name:
|
|
120
|
+
_config["region_name"] = region_name
|
|
121
|
+
|
|
120
122
|
if ca_cert:
|
|
121
123
|
_config["ca_cert"] = ca_cert.get_secret_value()
|
|
122
124
|
|
|
@@ -176,14 +178,9 @@ class Config:
|
|
|
176
178
|
|
|
177
179
|
@property
|
|
178
180
|
@staging_check
|
|
179
|
-
def region_name(self) -> str:
|
|
181
|
+
def region_name(self) -> str | None:
|
|
180
182
|
"""Retrieve the region name for this storage"""
|
|
181
|
-
|
|
182
|
-
return self._sv_obj.get_config()["region_name"]
|
|
183
|
-
except KeyError as e:
|
|
184
|
-
raise RuntimeError(
|
|
185
|
-
"Expected key 'region_name' in alert definition retrieval"
|
|
186
|
-
) from e
|
|
183
|
+
return self._sv_obj.get_config().get("region_name")
|
|
187
184
|
|
|
188
185
|
@region_name.setter
|
|
189
186
|
@write_only
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|