nominal-api 0.861.0__py3-none-any.whl → 0.862.0__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.
nominal_api/__init__.py CHANGED
@@ -76,9 +76,10 @@ __all__ = [
76
76
  'timeseries_seriescache',
77
77
  'timeseries_seriescache_api',
78
78
  'upload_api',
79
+ 'usercreation_api',
79
80
  ]
80
81
 
81
82
  __conjure_generator_version__ = "4.17.0"
82
83
 
83
- __version__ = "0.861.0"
84
+ __version__ = "0.862.0"
84
85
 
nominal_api/_impl.py CHANGED
@@ -94220,6 +94220,47 @@ upload_api_UploadService.__qualname__ = "UploadService"
94220
94220
  upload_api_UploadService.__module__ = "nominal_api.upload_api"
94221
94221
 
94222
94222
 
94223
+ class usercreation_api_InternalUserCreationService(Service):
94224
+ """Internal service responsible for handling creation of new users.
94225
+ """
94226
+
94227
+ def ensure_database_user_exists(self, auth_header: str) -> None:
94228
+ """Ensures that the user corresponding to the auth header provided exists in the database.
94229
+ Will do nothing if the user already exists.
94230
+ """
94231
+ _conjure_encoder = ConjureEncoder()
94232
+
94233
+ _headers: Dict[str, Any] = {
94234
+ 'Accept': 'application/json',
94235
+ 'Authorization': auth_header,
94236
+ }
94237
+
94238
+ _params: Dict[str, Any] = {
94239
+ }
94240
+
94241
+ _path_params: Dict[str, str] = {
94242
+ }
94243
+
94244
+ _json: Any = None
94245
+
94246
+ _path = '/user-creation/v1/database'
94247
+ _path = _path.format(**_path_params)
94248
+
94249
+ _response: Response = self._request(
94250
+ 'PUT',
94251
+ self._uri + _path,
94252
+ params=_params,
94253
+ headers=_headers,
94254
+ json=_json)
94255
+
94256
+ return
94257
+
94258
+
94259
+ usercreation_api_InternalUserCreationService.__name__ = "InternalUserCreationService"
94260
+ usercreation_api_InternalUserCreationService.__qualname__ = "InternalUserCreationService"
94261
+ usercreation_api_InternalUserCreationService.__module__ = "nominal_api.usercreation_api"
94262
+
94263
+
94223
94264
  api_ColumnName = str
94224
94265
 
94225
94266
  api_Label = str
@@ -0,0 +1,9 @@
1
+ # coding=utf-8
2
+ from .._impl import (
3
+ usercreation_api_InternalUserCreationService as InternalUserCreationService,
4
+ )
5
+
6
+ __all__ = [
7
+ 'InternalUserCreationService',
8
+ ]
9
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nominal-api
3
- Version: 0.861.0
3
+ Version: 0.862.0
4
4
  Requires-Python: >=3.8
5
5
  Requires-Dist: requests
6
6
  Requires-Dist: conjure-python-client<4,>=2.8.0
@@ -1,5 +1,5 @@
1
- nominal_api/__init__.py,sha256=9g10w67an3dacTOpS19YfdjMo5j2yQsD5vDvhmKlL_M,2064
2
- nominal_api/_impl.py,sha256=FPJnBZbWRtO2X0mvKG2iQUu9Kebf1s0uY82m6QE_3yE,3722409
1
+ nominal_api/__init__.py,sha256=qfYdzLC49ueAvsaQgajAYB9-tw7Ck-HbamcNM_lwvvo,2088
2
+ nominal_api/_impl.py,sha256=uJZbBDzVONrT3GzdbrKz6TQShe0fuillb9thnaBTMDM,3723631
3
3
  nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
4
4
  nominal_api/api/__init__.py,sha256=ZiGjcYwIBCrZR5pPqyqX2ggRJmVcSlOCazMtF2xCZzw,2171
5
5
  nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
@@ -77,7 +77,8 @@ nominal_api/timeseries_logicalseries_api/__init__.py,sha256=lDuOWyLpdVBI9aoN6ujw
77
77
  nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrRjU6tncpmDeuc_47P4,150
78
78
  nominal_api/timeseries_seriescache_api/__init__.py,sha256=USBxFmNnVFdnhTPLvWi3UgsvBZ4Iz4ycNgBTi10F-zI,1603
79
79
  nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
80
- nominal_api-0.861.0.dist-info/METADATA,sha256=9I3L-lN1295z_X6iIZKpUReBFoJsjOqEsdPssAEvUXg,199
81
- nominal_api-0.861.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
82
- nominal_api-0.861.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
83
- nominal_api-0.861.0.dist-info/RECORD,,
80
+ nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
81
+ nominal_api-0.862.0.dist-info/METADATA,sha256=bafJ4r5YHspRo1VAKaaC3snpQcok-vAgqMbdZmYks-I,199
82
+ nominal_api-0.862.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
83
+ nominal_api-0.862.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
84
+ nominal_api-0.862.0.dist-info/RECORD,,