scope-client 1.4.888__py3-none-any.whl → 1.4.890__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.
@@ -34,6 +34,7 @@ from scope_client.api_bindings.api.models_v1_api import ModelsV1Api
34
34
  from scope_client.api_bindings.api.o_auth_v1_api import OAuthV1Api
35
35
  from scope_client.api_bindings.api.organizations_v1_api import OrganizationsV1Api
36
36
  from scope_client.api_bindings.api.projects_v1_api import ProjectsV1Api
37
+ from scope_client.api_bindings.api.registration_v1_api import RegistrationV1Api
37
38
  from scope_client.api_bindings.api.roles_v1_api import RolesV1Api
38
39
  from scope_client.api_bindings.api.upsolve_v1_api import UpsolveV1Api
39
40
  from scope_client.api_bindings.api.users_v1_api import UsersV1Api
@@ -235,6 +236,7 @@ from scope_client.api_bindings.models.put_job_state import PutJobState
235
236
  from scope_client.api_bindings.models.put_model_metric_spec import PutModelMetricSpec
236
237
  from scope_client.api_bindings.models.put_model_metrics_schedule import PutModelMetricsSchedule
237
238
  from scope_client.api_bindings.models.put_retrieved_data import PutRetrievedData
239
+ from scope_client.api_bindings.models.register_user import RegisterUser
238
240
  from scope_client.api_bindings.models.resource_kind import ResourceKind
239
241
  from scope_client.api_bindings.models.resource_list_aggregation_spec_schema import ResourceListAggregationSpecSchema
240
242
  from scope_client.api_bindings.models.resource_list_alert_rule import ResourceListAlertRule
@@ -18,6 +18,7 @@ from scope_client.api_bindings.api.models_v1_api import ModelsV1Api
18
18
  from scope_client.api_bindings.api.o_auth_v1_api import OAuthV1Api
19
19
  from scope_client.api_bindings.api.organizations_v1_api import OrganizationsV1Api
20
20
  from scope_client.api_bindings.api.projects_v1_api import ProjectsV1Api
21
+ from scope_client.api_bindings.api.registration_v1_api import RegistrationV1Api
21
22
  from scope_client.api_bindings.api.roles_v1_api import RolesV1Api
22
23
  from scope_client.api_bindings.api.upsolve_v1_api import UpsolveV1Api
23
24
  from scope_client.api_bindings.api.users_v1_api import UsersV1Api
@@ -36,6 +36,261 @@ class OrganizationsV1Api:
36
36
  self.api_client = api_client
37
37
 
38
38
 
39
+ @validate_call
40
+ def delete_organization(
41
+ self,
42
+ _request_timeout: Union[
43
+ None,
44
+ Annotated[StrictFloat, Field(gt=0)],
45
+ Tuple[
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Annotated[StrictFloat, Field(gt=0)]
48
+ ]
49
+ ] = None,
50
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
+ _content_type: Optional[StrictStr] = None,
52
+ _headers: Optional[Dict[StrictStr, Any]] = None,
53
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
+ ) -> None:
55
+ """Delete Organization.
56
+
57
+ Deletes user's organization. Requires organization_delete permission.
58
+
59
+ :param _request_timeout: timeout setting for this request. If one
60
+ number provided, it will be total request
61
+ timeout. It can also be a pair (tuple) of
62
+ (connection, read) timeouts.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._delete_organization_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ '204': None,
90
+ '500': "InternalServerError",
91
+ '400': "BadRequestError",
92
+ '404': "NotFoundError",
93
+ }
94
+ response_data = self.api_client.call_api(
95
+ *_param,
96
+ _request_timeout=_request_timeout
97
+ )
98
+ response_data.read()
99
+ return self.api_client.response_deserialize(
100
+ response_data=response_data,
101
+ response_types_map=_response_types_map,
102
+ ).data
103
+
104
+
105
+ @validate_call
106
+ def delete_organization_with_http_info(
107
+ self,
108
+ _request_timeout: Union[
109
+ None,
110
+ Annotated[StrictFloat, Field(gt=0)],
111
+ Tuple[
112
+ Annotated[StrictFloat, Field(gt=0)],
113
+ Annotated[StrictFloat, Field(gt=0)]
114
+ ]
115
+ ] = None,
116
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
117
+ _content_type: Optional[StrictStr] = None,
118
+ _headers: Optional[Dict[StrictStr, Any]] = None,
119
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
120
+ ) -> ApiResponse[None]:
121
+ """Delete Organization.
122
+
123
+ Deletes user's organization. Requires organization_delete permission.
124
+
125
+ :param _request_timeout: timeout setting for this request. If one
126
+ number provided, it will be total request
127
+ timeout. It can also be a pair (tuple) of
128
+ (connection, read) timeouts.
129
+ :type _request_timeout: int, tuple(int, int), optional
130
+ :param _request_auth: set to override the auth_settings for an a single
131
+ request; this effectively ignores the
132
+ authentication in the spec for a single request.
133
+ :type _request_auth: dict, optional
134
+ :param _content_type: force content-type for the request.
135
+ :type _content_type: str, Optional
136
+ :param _headers: set to override the headers for a single
137
+ request; this effectively ignores the headers
138
+ in the spec for a single request.
139
+ :type _headers: dict, optional
140
+ :param _host_index: set to override the host_index for a single
141
+ request; this effectively ignores the host_index
142
+ in the spec for a single request.
143
+ :type _host_index: int, optional
144
+ :return: Returns the result object.
145
+ """ # noqa: E501
146
+
147
+ _param = self._delete_organization_serialize(
148
+ _request_auth=_request_auth,
149
+ _content_type=_content_type,
150
+ _headers=_headers,
151
+ _host_index=_host_index
152
+ )
153
+
154
+ _response_types_map: Dict[str, Optional[str]] = {
155
+ '204': None,
156
+ '500': "InternalServerError",
157
+ '400': "BadRequestError",
158
+ '404': "NotFoundError",
159
+ }
160
+ response_data = self.api_client.call_api(
161
+ *_param,
162
+ _request_timeout=_request_timeout
163
+ )
164
+ response_data.read()
165
+ return self.api_client.response_deserialize(
166
+ response_data=response_data,
167
+ response_types_map=_response_types_map,
168
+ )
169
+
170
+
171
+ @validate_call
172
+ def delete_organization_without_preload_content(
173
+ self,
174
+ _request_timeout: Union[
175
+ None,
176
+ Annotated[StrictFloat, Field(gt=0)],
177
+ Tuple[
178
+ Annotated[StrictFloat, Field(gt=0)],
179
+ Annotated[StrictFloat, Field(gt=0)]
180
+ ]
181
+ ] = None,
182
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
183
+ _content_type: Optional[StrictStr] = None,
184
+ _headers: Optional[Dict[StrictStr, Any]] = None,
185
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
186
+ ) -> RESTResponseType:
187
+ """Delete Organization.
188
+
189
+ Deletes user's organization. Requires organization_delete permission.
190
+
191
+ :param _request_timeout: timeout setting for this request. If one
192
+ number provided, it will be total request
193
+ timeout. It can also be a pair (tuple) of
194
+ (connection, read) timeouts.
195
+ :type _request_timeout: int, tuple(int, int), optional
196
+ :param _request_auth: set to override the auth_settings for an a single
197
+ request; this effectively ignores the
198
+ authentication in the spec for a single request.
199
+ :type _request_auth: dict, optional
200
+ :param _content_type: force content-type for the request.
201
+ :type _content_type: str, Optional
202
+ :param _headers: set to override the headers for a single
203
+ request; this effectively ignores the headers
204
+ in the spec for a single request.
205
+ :type _headers: dict, optional
206
+ :param _host_index: set to override the host_index for a single
207
+ request; this effectively ignores the host_index
208
+ in the spec for a single request.
209
+ :type _host_index: int, optional
210
+ :return: Returns the result object.
211
+ """ # noqa: E501
212
+
213
+ _param = self._delete_organization_serialize(
214
+ _request_auth=_request_auth,
215
+ _content_type=_content_type,
216
+ _headers=_headers,
217
+ _host_index=_host_index
218
+ )
219
+
220
+ _response_types_map: Dict[str, Optional[str]] = {
221
+ '204': None,
222
+ '500': "InternalServerError",
223
+ '400': "BadRequestError",
224
+ '404': "NotFoundError",
225
+ }
226
+ response_data = self.api_client.call_api(
227
+ *_param,
228
+ _request_timeout=_request_timeout
229
+ )
230
+ return response_data.response
231
+
232
+
233
+ def _delete_organization_serialize(
234
+ self,
235
+ _request_auth,
236
+ _content_type,
237
+ _headers,
238
+ _host_index,
239
+ ) -> RequestSerialized:
240
+
241
+ _host = None
242
+
243
+ _collection_formats: Dict[str, str] = {
244
+ }
245
+
246
+ _path_params: Dict[str, str] = {}
247
+ _query_params: List[Tuple[str, str]] = []
248
+ _header_params: Dict[str, Optional[str]] = _headers or {}
249
+ _form_params: List[Tuple[str, str]] = []
250
+ _files: Dict[
251
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
252
+ ] = {}
253
+ _body_params: Optional[bytes] = None
254
+
255
+ # process the path parameters
256
+ # process the query parameters
257
+ # process the header parameters
258
+ # process the form parameters
259
+ # process the body parameter
260
+
261
+
262
+ # set the HTTP header `Accept`
263
+ if 'Accept' not in _header_params:
264
+ _header_params['Accept'] = self.api_client.select_header_accept(
265
+ [
266
+ 'application/json'
267
+ ]
268
+ )
269
+
270
+
271
+ # authentication setting
272
+ _auth_settings: List[str] = [
273
+ 'OAuth2AuthorizationCode'
274
+ ]
275
+
276
+ return self.api_client.param_serialize(
277
+ method='DELETE',
278
+ resource_path='/api/v1/organization',
279
+ path_params=_path_params,
280
+ query_params=_query_params,
281
+ header_params=_header_params,
282
+ body=_body_params,
283
+ post_params=_form_params,
284
+ files=_files,
285
+ auth_settings=_auth_settings,
286
+ collection_formats=_collection_formats,
287
+ _host=_host,
288
+ _request_auth=_request_auth
289
+ )
290
+
291
+
292
+
293
+
39
294
  @validate_call
40
295
  def get_users_organization(
41
296
  self,
@@ -0,0 +1,319 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arthur Scope
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from typing import Any
20
+ from scope_client.api_bindings.models.register_user import RegisterUser
21
+
22
+ from scope_client.api_bindings.api_client import ApiClient, RequestSerialized
23
+ from scope_client.api_bindings.api_response import ApiResponse
24
+ from scope_client.api_bindings.rest import RESTResponseType
25
+
26
+
27
+ class RegistrationV1Api:
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None) -> None:
35
+ if api_client is None:
36
+ api_client = ApiClient.get_default()
37
+ self.api_client = api_client
38
+
39
+
40
+ @validate_call
41
+ def post_sign_up_user(
42
+ self,
43
+ register_user: RegisterUser,
44
+ _request_timeout: Union[
45
+ None,
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Tuple[
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Annotated[StrictFloat, Field(gt=0)]
50
+ ]
51
+ ] = None,
52
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
+ _content_type: Optional[StrictStr] = None,
54
+ _headers: Optional[Dict[StrictStr, Any]] = None,
55
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
+ ) -> object:
57
+ """Sign Up New User.
58
+
59
+ Signs up a new user and creates default resources. Triggers invitation to user email. Account creation feature flag must be enabled to use this endpoint.
60
+
61
+ :param register_user: (required)
62
+ :type register_user: RegisterUser
63
+ :param _request_timeout: timeout setting for this request. If one
64
+ number provided, it will be total request
65
+ timeout. It can also be a pair (tuple) of
66
+ (connection, read) timeouts.
67
+ :type _request_timeout: int, tuple(int, int), optional
68
+ :param _request_auth: set to override the auth_settings for an a single
69
+ request; this effectively ignores the
70
+ authentication in the spec for a single request.
71
+ :type _request_auth: dict, optional
72
+ :param _content_type: force content-type for the request.
73
+ :type _content_type: str, Optional
74
+ :param _headers: set to override the headers for a single
75
+ request; this effectively ignores the headers
76
+ in the spec for a single request.
77
+ :type _headers: dict, optional
78
+ :param _host_index: set to override the host_index for a single
79
+ request; this effectively ignores the host_index
80
+ in the spec for a single request.
81
+ :type _host_index: int, optional
82
+ :return: Returns the result object.
83
+ """ # noqa: E501
84
+
85
+ _param = self._post_sign_up_user_serialize(
86
+ register_user=register_user,
87
+ _request_auth=_request_auth,
88
+ _content_type=_content_type,
89
+ _headers=_headers,
90
+ _host_index=_host_index
91
+ )
92
+
93
+ _response_types_map: Dict[str, Optional[str]] = {
94
+ '201': "object",
95
+ '500': "InternalServerError",
96
+ '400': "BadRequestError",
97
+ '422': "HTTPValidationError",
98
+ }
99
+ response_data = self.api_client.call_api(
100
+ *_param,
101
+ _request_timeout=_request_timeout
102
+ )
103
+ response_data.read()
104
+ return self.api_client.response_deserialize(
105
+ response_data=response_data,
106
+ response_types_map=_response_types_map,
107
+ ).data
108
+
109
+
110
+ @validate_call
111
+ def post_sign_up_user_with_http_info(
112
+ self,
113
+ register_user: RegisterUser,
114
+ _request_timeout: Union[
115
+ None,
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Tuple[
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Annotated[StrictFloat, Field(gt=0)]
120
+ ]
121
+ ] = None,
122
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
123
+ _content_type: Optional[StrictStr] = None,
124
+ _headers: Optional[Dict[StrictStr, Any]] = None,
125
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
+ ) -> ApiResponse[object]:
127
+ """Sign Up New User.
128
+
129
+ Signs up a new user and creates default resources. Triggers invitation to user email. Account creation feature flag must be enabled to use this endpoint.
130
+
131
+ :param register_user: (required)
132
+ :type register_user: RegisterUser
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._post_sign_up_user_serialize(
156
+ register_user=register_user,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '201': "object",
165
+ '500': "InternalServerError",
166
+ '400': "BadRequestError",
167
+ '422': "HTTPValidationError",
168
+ }
169
+ response_data = self.api_client.call_api(
170
+ *_param,
171
+ _request_timeout=_request_timeout
172
+ )
173
+ response_data.read()
174
+ return self.api_client.response_deserialize(
175
+ response_data=response_data,
176
+ response_types_map=_response_types_map,
177
+ )
178
+
179
+
180
+ @validate_call
181
+ def post_sign_up_user_without_preload_content(
182
+ self,
183
+ register_user: RegisterUser,
184
+ _request_timeout: Union[
185
+ None,
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Tuple[
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Annotated[StrictFloat, Field(gt=0)]
190
+ ]
191
+ ] = None,
192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
+ _content_type: Optional[StrictStr] = None,
194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
+ ) -> RESTResponseType:
197
+ """Sign Up New User.
198
+
199
+ Signs up a new user and creates default resources. Triggers invitation to user email. Account creation feature flag must be enabled to use this endpoint.
200
+
201
+ :param register_user: (required)
202
+ :type register_user: RegisterUser
203
+ :param _request_timeout: timeout setting for this request. If one
204
+ number provided, it will be total request
205
+ timeout. It can also be a pair (tuple) of
206
+ (connection, read) timeouts.
207
+ :type _request_timeout: int, tuple(int, int), optional
208
+ :param _request_auth: set to override the auth_settings for an a single
209
+ request; this effectively ignores the
210
+ authentication in the spec for a single request.
211
+ :type _request_auth: dict, optional
212
+ :param _content_type: force content-type for the request.
213
+ :type _content_type: str, Optional
214
+ :param _headers: set to override the headers for a single
215
+ request; this effectively ignores the headers
216
+ in the spec for a single request.
217
+ :type _headers: dict, optional
218
+ :param _host_index: set to override the host_index for a single
219
+ request; this effectively ignores the host_index
220
+ in the spec for a single request.
221
+ :type _host_index: int, optional
222
+ :return: Returns the result object.
223
+ """ # noqa: E501
224
+
225
+ _param = self._post_sign_up_user_serialize(
226
+ register_user=register_user,
227
+ _request_auth=_request_auth,
228
+ _content_type=_content_type,
229
+ _headers=_headers,
230
+ _host_index=_host_index
231
+ )
232
+
233
+ _response_types_map: Dict[str, Optional[str]] = {
234
+ '201': "object",
235
+ '500': "InternalServerError",
236
+ '400': "BadRequestError",
237
+ '422': "HTTPValidationError",
238
+ }
239
+ response_data = self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _post_sign_up_user_serialize(
247
+ self,
248
+ register_user,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[
265
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266
+ ] = {}
267
+ _body_params: Optional[bytes] = None
268
+
269
+ # process the path parameters
270
+ # process the query parameters
271
+ # process the header parameters
272
+ # process the form parameters
273
+ # process the body parameter
274
+ if register_user is not None:
275
+ _body_params = register_user
276
+
277
+
278
+ # set the HTTP header `Accept`
279
+ if 'Accept' not in _header_params:
280
+ _header_params['Accept'] = self.api_client.select_header_accept(
281
+ [
282
+ 'application/json'
283
+ ]
284
+ )
285
+
286
+ # set the HTTP header `Content-Type`
287
+ if _content_type:
288
+ _header_params['Content-Type'] = _content_type
289
+ else:
290
+ _default_content_type = (
291
+ self.api_client.select_header_content_type(
292
+ [
293
+ 'application/json'
294
+ ]
295
+ )
296
+ )
297
+ if _default_content_type is not None:
298
+ _header_params['Content-Type'] = _default_content_type
299
+
300
+ # authentication setting
301
+ _auth_settings: List[str] = [
302
+ ]
303
+
304
+ return self.api_client.param_serialize(
305
+ method='POST',
306
+ resource_path='/api/v1/sign-up',
307
+ path_params=_path_params,
308
+ query_params=_query_params,
309
+ header_params=_header_params,
310
+ body=_body_params,
311
+ post_params=_form_params,
312
+ files=_files,
313
+ auth_settings=_auth_settings,
314
+ collection_formats=_collection_formats,
315
+ _host=_host,
316
+ _request_auth=_request_auth
317
+ )
318
+
319
+
@@ -196,6 +196,7 @@ from scope_client.api_bindings.models.put_job_state import PutJobState
196
196
  from scope_client.api_bindings.models.put_model_metric_spec import PutModelMetricSpec
197
197
  from scope_client.api_bindings.models.put_model_metrics_schedule import PutModelMetricsSchedule
198
198
  from scope_client.api_bindings.models.put_retrieved_data import PutRetrievedData
199
+ from scope_client.api_bindings.models.register_user import RegisterUser
199
200
  from scope_client.api_bindings.models.resource_kind import ResourceKind
200
201
  from scope_client.api_bindings.models.resource_list_aggregation_spec_schema import ResourceListAggregationSpecSchema
201
202
  from scope_client.api_bindings.models.resource_list_alert_rule import ResourceListAlertRule
@@ -27,6 +27,7 @@ class PermissionName(str, Enum):
27
27
  allowed enum values
28
28
  """
29
29
  ORGANIZATION_READ = 'organization_read'
30
+ ORGANIZATION_DELETE = 'organization_delete'
30
31
  ORGANIZATION_LIST_WORKSPACES = 'organization_list_workspaces'
31
32
  ORGANIZATION_CREATE_WORKSPACE = 'organization_create_workspace'
32
33
  ORGANIZATION_LIST_GROUP_MEMBERSHIPS = 'organization_list_group_memberships'
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arthur Scope
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class RegisterUser(BaseModel):
26
+ """
27
+ RegisterUser
28
+ """ # noqa: E501
29
+ email: StrictStr = Field(description="The user's email.")
30
+ organization_name: StrictStr = Field(description="Name of user's organization in Arthur.")
31
+ __properties: ClassVar[List[str]] = ["email", "organization_name"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of RegisterUser from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of RegisterUser from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "email": obj.get("email"),
85
+ "organization_name": obj.get("organization_name")
86
+ })
87
+ return _obj
88
+
89
+
@@ -35,14 +35,14 @@ class SensitiveUser(BaseModel):
35
35
  email: Optional[StrictStr] = None
36
36
  picture: Optional[StrictStr] = None
37
37
  user_type: UserType = Field(description="The type of user.")
38
- realm: StrictStr = Field(description="The realm the user belongs to.")
39
38
  data_plane_id: Optional[StrictStr] = None
40
39
  client_id: Optional[StrictStr] = None
40
+ organization_name: StrictStr = Field(description="Name of user's arthur organization.")
41
41
  created_at: datetime = Field(description="Time of record creation.")
42
42
  updated_at: datetime = Field(description="Time of last record update.")
43
43
  organization_id: StrictStr = Field(description="The ID of the organization the user belongs to.")
44
44
  credentials: Credentials
45
- __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "realm", "data_plane_id", "client_id", "created_at", "updated_at", "organization_id", "credentials"]
45
+ __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "data_plane_id", "client_id", "organization_name", "created_at", "updated_at", "organization_id", "credentials"]
46
46
 
47
47
  model_config = ConfigDict(
48
48
  populate_by_name=True,
@@ -129,9 +129,9 @@ class SensitiveUser(BaseModel):
129
129
  "email": obj.get("email"),
130
130
  "picture": obj.get("picture"),
131
131
  "user_type": obj.get("user_type"),
132
- "realm": obj.get("realm"),
133
132
  "data_plane_id": obj.get("data_plane_id"),
134
133
  "client_id": obj.get("client_id"),
134
+ "organization_name": obj.get("organization_name"),
135
135
  "created_at": obj.get("created_at"),
136
136
  "updated_at": obj.get("updated_at"),
137
137
  "organization_id": obj.get("organization_id"),
@@ -34,13 +34,13 @@ class User(BaseModel):
34
34
  email: Optional[StrictStr] = None
35
35
  picture: Optional[StrictStr] = None
36
36
  user_type: UserType = Field(description="The type of user.")
37
- realm: StrictStr = Field(description="The realm the user belongs to.")
38
37
  data_plane_id: Optional[StrictStr] = None
39
38
  client_id: Optional[StrictStr] = None
39
+ organization_name: StrictStr = Field(description="Name of user's arthur organization.")
40
40
  created_at: datetime = Field(description="Time of record creation.")
41
41
  updated_at: datetime = Field(description="Time of last record update.")
42
42
  organization_id: StrictStr = Field(description="The ID of the organization the user belongs to.")
43
- __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "realm", "data_plane_id", "client_id", "created_at", "updated_at", "organization_id"]
43
+ __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "data_plane_id", "client_id", "organization_name", "created_at", "updated_at", "organization_id"]
44
44
 
45
45
  model_config = ConfigDict(
46
46
  populate_by_name=True,
@@ -124,9 +124,9 @@ class User(BaseModel):
124
124
  "email": obj.get("email"),
125
125
  "picture": obj.get("picture"),
126
126
  "user_type": obj.get("user_type"),
127
- "realm": obj.get("realm"),
128
127
  "data_plane_id": obj.get("data_plane_id"),
129
128
  "client_id": obj.get("client_id"),
129
+ "organization_name": obj.get("organization_name"),
130
130
  "created_at": obj.get("created_at"),
131
131
  "updated_at": obj.get("updated_at"),
132
132
  "organization_id": obj.get("organization_id")
@@ -35,14 +35,14 @@ class UserServiceAccountCredentials(BaseModel):
35
35
  email: Optional[StrictStr] = None
36
36
  picture: Optional[StrictStr] = None
37
37
  user_type: UserType = Field(description="The type of user.")
38
- realm: StrictStr = Field(description="The realm the user belongs to.")
39
38
  data_plane_id: Optional[StrictStr] = None
40
39
  client_id: Optional[StrictStr] = None
40
+ organization_name: StrictStr = Field(description="Name of user's arthur organization.")
41
41
  created_at: datetime = Field(description="Time of record creation.")
42
42
  updated_at: datetime = Field(description="Time of last record update.")
43
43
  organization_id: StrictStr = Field(description="The ID of the organization the user belongs to.")
44
44
  credentials: ServiceAccountCredentials = Field(description="The service account credentials.")
45
- __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "realm", "data_plane_id", "client_id", "created_at", "updated_at", "organization_id", "credentials"]
45
+ __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "email", "picture", "user_type", "data_plane_id", "client_id", "organization_name", "created_at", "updated_at", "organization_id", "credentials"]
46
46
 
47
47
  model_config = ConfigDict(
48
48
  populate_by_name=True,
@@ -129,9 +129,9 @@ class UserServiceAccountCredentials(BaseModel):
129
129
  "email": obj.get("email"),
130
130
  "picture": obj.get("picture"),
131
131
  "user_type": obj.get("user_type"),
132
- "realm": obj.get("realm"),
133
132
  "data_plane_id": obj.get("data_plane_id"),
134
133
  "client_id": obj.get("client_id"),
134
+ "organization_name": obj.get("organization_name"),
135
135
  "created_at": obj.get("created_at"),
136
136
  "updated_at": obj.get("updated_at"),
137
137
  "organization_id": obj.get("organization_id"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scope_client
3
- Version: 1.4.888
3
+ Version: 1.4.890
4
4
  Summary: Arthur Python API Client Library
5
5
  Author-email: Arthur <info@arthur.ai>
6
6
  License: MIT
@@ -1,11 +1,11 @@
1
1
  scope_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- scope_client/api_bindings/__init__.py,sha256=phNDfK09D80n68izpZP7xBUVzZUmUEPmuhzR3Lokdw4,21793
2
+ scope_client/api_bindings/__init__.py,sha256=ro7P7QFfJyM2CmvVI_QDS07fDACp6Lm8IfAPOZN11yM,21945
3
3
  scope_client/api_bindings/api_client.py,sha256=nkt88XDyPiuURu94lnI4MtOfMeYXd_jazGUde0T4xVU,27538
4
4
  scope_client/api_bindings/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
5
5
  scope_client/api_bindings/configuration.py,sha256=a0o2OhNYo7GdZscfNtFKW2kfgoln1mcWE-8E_UeiWv8,15338
6
6
  scope_client/api_bindings/exceptions.py,sha256=yy0Uot-WkcM6-PbNo2KDnrKAUL_PFmeCTD2tvq_gFp4,5977
7
7
  scope_client/api_bindings/rest.py,sha256=WjYLgwpOMypfMPuivIUYSaIJLd8YxqIIFx8BTA3RwXA,9428
8
- scope_client/api_bindings/api/__init__.py,sha256=TIuCkJYhvHKBzM_i5mQxcNyFREHeOD84CPgIkY1kxkI,1765
8
+ scope_client/api_bindings/api/__init__.py,sha256=K5ISenvalX2Ms_qLdIp_lghomRqmiOMfRRtRXLprfyk,1845
9
9
  scope_client/api_bindings/api/alert_rules_v1_api.py,sha256=9_4RLl8yXbGasjviiAyGDCrUVn3Pz0UeiRcFGfPIEog,64935
10
10
  scope_client/api_bindings/api/alerts_v1_api.py,sha256=s7PpC39SZ87KTCqKp92TKbbhea4s3sf42DrJZZwKCv4,41221
11
11
  scope_client/api_bindings/api/authorization_v1_api.py,sha256=0hHddXMvsw87SV-VE87mTp1afVyb8AB2pcCIjie4emg,168384
@@ -22,14 +22,15 @@ scope_client/api_bindings/api/metric_functions_v1_api.py,sha256=45LccTGUq20MocyP
22
22
  scope_client/api_bindings/api/metrics_v1_api.py,sha256=QumpmMptWgGyCRBhNCUU23IQFLHslg3W3gFL4BMxLMI,52522
23
23
  scope_client/api_bindings/api/models_v1_api.py,sha256=viDIh3SNeqCwWb5e2JeH9OPdNw5KNzleh_uaCbzHxLI,106912
24
24
  scope_client/api_bindings/api/o_auth_v1_api.py,sha256=g2d7W6cLGXaLGholS0Gk-_Ia_HszfbK3TSpP2L0nqhI,10653
25
- scope_client/api_bindings/api/organizations_v1_api.py,sha256=dtsCjOd2tu73yyZ55gsCBoxDk50lGVsygOnKoRqApd8,10733
25
+ scope_client/api_bindings/api/organizations_v1_api.py,sha256=wCeGjH3bZzP0MNF1ZmAJDyZ2olu_ANsV9Klr4SZgn2s,20469
26
26
  scope_client/api_bindings/api/projects_v1_api.py,sha256=wFqaLcwwxQDrF10VtOgaa8PbOE5VaC6ERNCSrRJaUFQ,59391
27
+ scope_client/api_bindings/api/registration_v1_api.py,sha256=cPmagSOgnne2cZNgYDKm2L7SZmy8tsaL_xZBFekmnH8,12175
27
28
  scope_client/api_bindings/api/roles_v1_api.py,sha256=LnlGL0BhhNAsXpIIkCyoBV765rw2bcIwWPz3EsyQi18,11234
28
29
  scope_client/api_bindings/api/upsolve_v1_api.py,sha256=Vdep9x-_lIJq_kOwtsGqYqkssgSaCEy45_WDupKwrgA,12230
29
30
  scope_client/api_bindings/api/users_v1_api.py,sha256=F1n0VJy3IWrxRIddhdFTM2NgW5qnNF8s40UZrZUd9k4,92844
30
31
  scope_client/api_bindings/api/webhooks_v1_api.py,sha256=86tRi7pgwICshf8WVyYA1WrJggThpnsTaON9Mx8R-0M,71286
31
32
  scope_client/api_bindings/api/workspaces_v1_api.py,sha256=OjMc-pJe2JAGgv5ZGTD8_TkQxw82vz2e381-5m37vJ4,58653
32
- scope_client/api_bindings/models/__init__.py,sha256=ynNSXRbfy3vMZ1SKgvwu9Pypq_ic7pekIg1_RG-ucyQ,19433
33
+ scope_client/api_bindings/models/__init__.py,sha256=jXq5_OPTF60dB0bMXgDHavc4CkXhOUe8kUFgo2viec4,19505
33
34
  scope_client/api_bindings/models/aggregation_metric_type.py,sha256=USKpDqhX4TQ4lqIoHOp3q70mydsf1u_zc1EKus9QhYo,783
34
35
  scope_client/api_bindings/models/aggregation_spec.py,sha256=gWFTgLqxNdiIw4iXwbNqKAnAwDpbcgeoFfQ_7VxtKOQ,4109
35
36
  scope_client/api_bindings/models/aggregation_spec_schema.py,sha256=MHGlB9eF8NfOasOHiqj1ZzYiBaIl8y8J2SmQysoSWVU,4624
@@ -168,7 +169,7 @@ scope_client/api_bindings/models/patch_user.py,sha256=Q_RqYiqCFjWsHfTWK0RqpdKpJu
168
169
  scope_client/api_bindings/models/patch_webhook.py,sha256=Nck18gezSVXn3Tsn2FgbmaVWvlajrm_rRY1Lt7XKRtU,3571
169
170
  scope_client/api_bindings/models/patch_workspace.py,sha256=oX4U-aAgTlCZr5Xor8tyZWBZBll5BwgCeqNXyfC4rAc,2530
170
171
  scope_client/api_bindings/models/permission.py,sha256=uxCnKjgZwGxr_-BidbwKWt_TVRnDhtliWd6uq9qI7yU,3002
171
- scope_client/api_bindings/models/permission_name.py,sha256=rdH0xZEEK1nELBgSXwwlCIkz7OcTNatxHnRWN2-XOOE,7226
172
+ scope_client/api_bindings/models/permission_name.py,sha256=QBqtuXS4jAqnzarQobvWoVZU7XGNlO_aXg2jwYxL-fM,7274
172
173
  scope_client/api_bindings/models/permission_request_item.py,sha256=czzZsHDgvFOyZe8mjnPJtYO-eDz42jzqjzPtGfPketc,3084
173
174
  scope_client/api_bindings/models/permission_response_item.py,sha256=7D0mG1etQeYIYE9U6if8zIgJh0JEQOruk5aH6TtiNtw,3262
174
175
  scope_client/api_bindings/models/permissions_request.py,sha256=dbh_2kJdTzuZzZ8UjQAdfxnDtOXwFeDIzvdflOaU_3A,3311
@@ -212,6 +213,7 @@ scope_client/api_bindings/models/put_job_state.py,sha256=EJblUagbLQsV19ox-Dd7gP8
212
213
  scope_client/api_bindings/models/put_model_metric_spec.py,sha256=UbR3DKfQx681epiBzU2rmrgE7XG3sePOepIaOF3mn0A,3204
213
214
  scope_client/api_bindings/models/put_model_metrics_schedule.py,sha256=IV7Hb5ZXc_9lqT2A2S_rbGGS1A7vA_IrqgkXlCiEjF4,3175
214
215
  scope_client/api_bindings/models/put_retrieved_data.py,sha256=WDSM5cHFoevAGyyLqfiB8ExxW4FCQf1a5XBSNhqGdKI,2547
216
+ scope_client/api_bindings/models/register_user.py,sha256=Eo2hj58W8WGBr9jDcLWSSm1yztVYIL7h1n01xnLd19I,2700
215
217
  scope_client/api_bindings/models/resource_kind.py,sha256=O7SKcED4lBIOgmCCofzP-cPY4WeEumZZsKZTrAw5MP0,1166
216
218
  scope_client/api_bindings/models/resource_list_aggregation_spec_schema.py,sha256=mA_F0lSCg6z4lUe7Q7JbkPQ80685VbgcJVxC-hEy1-I,3579
217
219
  scope_client/api_bindings/models/resource_list_alert_rule.py,sha256=NdWI4bX90tr9TsxqJtAQcap1QZO19OZt-rHUrpfXmPw,3482
@@ -244,16 +246,16 @@ scope_client/api_bindings/models/schedule_jobs_job_spec.py,sha256=S75JHtQV3VvJ58
244
246
  scope_client/api_bindings/models/schema_inspection_job_spec.py,sha256=yKpGEstb0ze_F-jajJd8V9Dfulr4wv5BDUoZ19gnNBk,3352
245
247
  scope_client/api_bindings/models/scope_schema_tag.py,sha256=xvPNpX1reIQxcMPPzKZMbJIKRBTjgsTBI3soRfRazHs,982
246
248
  scope_client/api_bindings/models/sensitive_data_plane.py,sha256=YhYmBumL2FuTjqWPv0FLz0xkNRAvvAjbEzDcJmKyhjw,4062
247
- scope_client/api_bindings/models/sensitive_user.py,sha256=RKbMvnr2x8p_10lVLjuFOs_Acu5m_G5GY1jl-nWHA-I,5466
249
+ scope_client/api_bindings/models/sensitive_user.py,sha256=lTTowkkooF0HPAnCW60Szmb-bfpIl0zs-rRag9QA640,5519
248
250
  scope_client/api_bindings/models/service_account_credentials.py,sha256=jjnqsr-YyTFyOwi8jMx1ygyE1uzvyO83FZSe_5iA8R8,2772
249
251
  scope_client/api_bindings/models/sketch_metric.py,sha256=-V2OOnIKS36ucSdAWZQLD3Q3fMUAx5EnLaYFmYHm3P0,3262
250
252
  scope_client/api_bindings/models/sketch_point.py,sha256=liGTVlg7u3B83hX4vOVtKo987G-x8K5Hn97Ru2YNOc4,2784
251
253
  scope_client/api_bindings/models/sketch_time_series.py,sha256=3xMJay64r1_Mg429Z_5KbXEIJ6Uoy3RxioMHz-JM7nk,3779
252
254
  scope_client/api_bindings/models/sort_order.py,sha256=1k5KX8C4Z1-TPsNKsDcgszsH-9Y5mv4ritAHwwDY3xE,735
253
255
  scope_client/api_bindings/models/upsolve_token.py,sha256=Tp09Alv4XAG_1Jccgr1Wpn3XyuwupCmMqWvF8LHxnTI,2533
254
- scope_client/api_bindings/models/user.py,sha256=BRmgYss6wEduiHMiDlc5leHdABrpMs9Z3UkauPnN0m4,5018
256
+ scope_client/api_bindings/models/user.py,sha256=iW9M0isNrpBBLIf_ycbmMCm6sZv6nMn8AhhtWQmZ43o,5071
255
257
  scope_client/api_bindings/models/user_credentials.py,sha256=EfUMAguJoZBFxUY81mPWVFw35F1V_mOx5jDeY5M42H4,2548
256
- scope_client/api_bindings/models/user_service_account_credentials.py,sha256=4mERTdm5N7IPVNlztvvRn0EmY-CPukKeYjXTQIlSUKY,5644
258
+ scope_client/api_bindings/models/user_service_account_credentials.py,sha256=GW257mS_H-xlgbZNB9FVCQLb7e5yMgBAhGDcbteba3Y,5697
257
259
  scope_client/api_bindings/models/user_sort.py,sha256=I7WwH9B9G46681oGjcG-Oa-cHASpTDhqVcXBKfNPuZs,796
258
260
  scope_client/api_bindings/models/user_type.py,sha256=mdMxrQ317Q_Td13CRUcbLVLTN02sjQb_d-5aX4LWRRw,786
259
261
  scope_client/api_bindings/models/validation_error.py,sha256=zxWsSF4di49xg_XpfsxAwfSVYn3vM4o7RUy2IY5-GGo,3112
@@ -270,7 +272,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
270
272
  scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
271
273
  scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
272
274
  scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
273
- scope_client-1.4.888.dist-info/METADATA,sha256=oZ99owUPdhyOqNjNmLfqXgkqyOEE7LnZ-j-cd-ZR7Co,1776
274
- scope_client-1.4.888.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
275
- scope_client-1.4.888.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
276
- scope_client-1.4.888.dist-info/RECORD,,
275
+ scope_client-1.4.890.dist-info/METADATA,sha256=iYx70OLqPI7j0PXrNpl9-oFlBn44sqFg885YWs9cV-Y,1776
276
+ scope_client-1.4.890.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
277
+ scope_client-1.4.890.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
278
+ scope_client-1.4.890.dist-info/RECORD,,