wds-client 0.13.0__py3-none-any.whl → 0.15.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,9 +56,9 @@ class InstancesApi:
56
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
57
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
58
  ) -> None:
59
- """Create an instance
59
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
60
60
 
61
- Create an instance with the given UUID.
61
+ Use POST /collections/v1/{workspaceId} instead.
62
62
 
63
63
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
64
64
  :type instanceid: str
@@ -85,6 +85,7 @@ class InstancesApi:
85
85
  :type _host_index: int, optional
86
86
  :return: Returns the result object.
87
87
  """ # noqa: E501
88
+ warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
88
89
 
89
90
  _param = self._create_wds_instance_serialize(
90
91
  instanceid=instanceid,
@@ -128,9 +129,9 @@ class InstancesApi:
128
129
  _headers: Optional[Dict[StrictStr, Any]] = None,
129
130
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
131
  ) -> ApiResponse[None]:
131
- """Create an instance
132
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
132
133
 
133
- Create an instance with the given UUID.
134
+ Use POST /collections/v1/{workspaceId} instead.
134
135
 
135
136
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
136
137
  :type instanceid: str
@@ -157,6 +158,7 @@ class InstancesApi:
157
158
  :type _host_index: int, optional
158
159
  :return: Returns the result object.
159
160
  """ # noqa: E501
161
+ warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
160
162
 
161
163
  _param = self._create_wds_instance_serialize(
162
164
  instanceid=instanceid,
@@ -200,9 +202,9 @@ class InstancesApi:
200
202
  _headers: Optional[Dict[StrictStr, Any]] = None,
201
203
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
202
204
  ) -> RESTResponseType:
203
- """Create an instance
205
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
204
206
 
205
- Create an instance with the given UUID.
207
+ Use POST /collections/v1/{workspaceId} instead.
206
208
 
207
209
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
208
210
  :type instanceid: str
@@ -229,6 +231,7 @@ class InstancesApi:
229
231
  :type _host_index: int, optional
230
232
  :return: Returns the result object.
231
233
  """ # noqa: E501
234
+ warnings.warn("POST /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
232
235
 
233
236
  _param = self._create_wds_instance_serialize(
234
237
  instanceid=instanceid,
@@ -333,9 +336,9 @@ class InstancesApi:
333
336
  _headers: Optional[Dict[StrictStr, Any]] = None,
334
337
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
335
338
  ) -> None:
336
- """Delete an instance
339
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
337
340
 
338
- Delete the instance with the given UUID. This API is liable to change. THIS WILL DELETE ALL DATA WITHIN THE INSTANCE. Be certain this is what you want to do.
341
+ Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
339
342
 
340
343
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
341
344
  :type instanceid: str
@@ -362,6 +365,7 @@ class InstancesApi:
362
365
  :type _host_index: int, optional
363
366
  :return: Returns the result object.
364
367
  """ # noqa: E501
368
+ warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
365
369
 
366
370
  _param = self._delete_wds_instance_serialize(
367
371
  instanceid=instanceid,
@@ -405,9 +409,9 @@ class InstancesApi:
405
409
  _headers: Optional[Dict[StrictStr, Any]] = None,
406
410
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
407
411
  ) -> ApiResponse[None]:
408
- """Delete an instance
412
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
409
413
 
410
- Delete the instance with the given UUID. This API is liable to change. THIS WILL DELETE ALL DATA WITHIN THE INSTANCE. Be certain this is what you want to do.
414
+ Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
411
415
 
412
416
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
413
417
  :type instanceid: str
@@ -434,6 +438,7 @@ class InstancesApi:
434
438
  :type _host_index: int, optional
435
439
  :return: Returns the result object.
436
440
  """ # noqa: E501
441
+ warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
437
442
 
438
443
  _param = self._delete_wds_instance_serialize(
439
444
  instanceid=instanceid,
@@ -477,9 +482,9 @@ class InstancesApi:
477
482
  _headers: Optional[Dict[StrictStr, Any]] = None,
478
483
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
479
484
  ) -> RESTResponseType:
480
- """Delete an instance
485
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
481
486
 
482
- Delete the instance with the given UUID. This API is liable to change. THIS WILL DELETE ALL DATA WITHIN THE INSTANCE. Be certain this is what you want to do.
487
+ Use DELETE /collections/v1/{workspaceId}/{collectionId} instead.
483
488
 
484
489
  :param instanceid: WDS instance id; by convention equal to workspace id (required)
485
490
  :type instanceid: str
@@ -506,6 +511,7 @@ class InstancesApi:
506
511
  :type _host_index: int, optional
507
512
  :return: Returns the result object.
508
513
  """ # noqa: E501
514
+ warnings.warn("DELETE /instances/{v}/{instanceid} is deprecated.", DeprecationWarning)
509
515
 
510
516
  _param = self._delete_wds_instance_serialize(
511
517
  instanceid=instanceid,
@@ -609,9 +615,9 @@ class InstancesApi:
609
615
  _headers: Optional[Dict[StrictStr, Any]] = None,
610
616
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
611
617
  ) -> List[str]:
612
- """List instances
618
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
613
619
 
614
- List all instances in this server.
620
+ Use GET /collections/v1/{workspaceId} instead.
615
621
 
616
622
  :param v: API version (required)
617
623
  :type v: str
@@ -636,6 +642,7 @@ class InstancesApi:
636
642
  :type _host_index: int, optional
637
643
  :return: Returns the result object.
638
644
  """ # noqa: E501
645
+ warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
639
646
 
640
647
  _param = self._list_wds_instances_serialize(
641
648
  v=v,
@@ -676,9 +683,9 @@ class InstancesApi:
676
683
  _headers: Optional[Dict[StrictStr, Any]] = None,
677
684
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
678
685
  ) -> ApiResponse[List[str]]:
679
- """List instances
686
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
680
687
 
681
- List all instances in this server.
688
+ Use GET /collections/v1/{workspaceId} instead.
682
689
 
683
690
  :param v: API version (required)
684
691
  :type v: str
@@ -703,6 +710,7 @@ class InstancesApi:
703
710
  :type _host_index: int, optional
704
711
  :return: Returns the result object.
705
712
  """ # noqa: E501
713
+ warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
706
714
 
707
715
  _param = self._list_wds_instances_serialize(
708
716
  v=v,
@@ -743,9 +751,9 @@ class InstancesApi:
743
751
  _headers: Optional[Dict[StrictStr, Any]] = None,
744
752
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
745
753
  ) -> RESTResponseType:
746
- """List instances
754
+ """(Deprecated) This API will be deleted on or after August 25, 2024.
747
755
 
748
- List all instances in this server.
756
+ Use GET /collections/v1/{workspaceId} instead.
749
757
 
750
758
  :param v: API version (required)
751
759
  :type v: str
@@ -770,6 +778,7 @@ class InstancesApi:
770
778
  :type _host_index: int, optional
771
779
  :return: Returns the result object.
772
780
  """ # noqa: E501
781
+ warnings.warn("GET /instances/{v} is deprecated.", DeprecationWarning)
773
782
 
774
783
  _param = self._list_wds_instances_serialize(
775
784
  v=v,
@@ -830,6 +839,7 @@ class InstancesApi:
830
839
 
831
840
  # authentication setting
832
841
  _auth_settings: List[str] = [
842
+ 'bearerAuth'
833
843
  ]
834
844
 
835
845
  return self.api_client.param_serialize(
@@ -1331,6 +1331,7 @@ class RecordsApi:
1331
1331
 
1332
1332
  # authentication setting
1333
1333
  _auth_settings: List[str] = [
1334
+ 'bearerAuth'
1334
1335
  ]
1335
1336
 
1336
1337
  return self.api_client.param_serialize(
@@ -1623,6 +1624,7 @@ class RecordsApi:
1623
1624
 
1624
1625
  # authentication setting
1625
1626
  _auth_settings: List[str] = [
1627
+ 'bearerAuth'
1626
1628
  ]
1627
1629
 
1628
1630
  return self.api_client.param_serialize(
@@ -1942,6 +1944,7 @@ class RecordsApi:
1942
1944
 
1943
1945
  # authentication setting
1944
1946
  _auth_settings: List[str] = [
1947
+ 'bearerAuth'
1945
1948
  ]
1946
1949
 
1947
1950
  return self.api_client.param_serialize(
@@ -891,6 +891,7 @@ class SchemaApi:
891
891
 
892
892
  # authentication setting
893
893
  _auth_settings: List[str] = [
894
+ 'bearerAuth'
894
895
  ]
895
896
 
896
897
  return self.api_client.param_serialize(
@@ -1182,6 +1183,7 @@ class SchemaApi:
1182
1183
 
1183
1184
  # authentication setting
1184
1185
  _auth_settings: List[str] = [
1186
+ 'bearerAuth'
1185
1187
  ]
1186
1188
 
1187
1189
  return self.api_client.param_serialize(
wds_client/api_client.py CHANGED
@@ -88,7 +88,7 @@ class ApiClient:
88
88
  self.default_headers[header_name] = header_value
89
89
  self.cookie = cookie
90
90
  # Set default User-Agent.
91
- self.user_agent = 'wds-client/0.13.0/python'
91
+ self.user_agent = 'wds-client/0.15.0/python'
92
92
  self.client_side_validation = configuration.client_side_validation
93
93
 
94
94
  def __enter__(self):
@@ -392,7 +392,7 @@ class Configuration:
392
392
  "OS: {env}\n"\
393
393
  "Python Version: {pyversion}\n"\
394
394
  "Version of the API: v0.2\n"\
395
- "SDK Package Version: 0.13.0".\
395
+ "SDK Package Version: 0.15.0".\
396
396
  format(env=sys.platform, pyversion=sys.version)
397
397
 
398
398
  def get_host_settings(self):
@@ -28,6 +28,7 @@ from wds_client.models.build import Build
28
28
  from wds_client.models.capabilities import Capabilities
29
29
  from wds_client.models.clone_job import CloneJob
30
30
  from wds_client.models.clone_response import CloneResponse
31
+ from wds_client.models.collection import Collection
31
32
  from wds_client.models.commit import Commit
32
33
  from wds_client.models.error_response import ErrorResponse
33
34
  from wds_client.models.generic_job import GenericJob
@@ -0,0 +1,99 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
7
+
8
+ The version of the OpenAPI document: v0.2
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, field_validator
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class Collection(BaseModel):
27
+ """
28
+ Collection
29
+ """ # noqa: E501
30
+ id: Optional[StrictStr] = None
31
+ name: Annotated[str, Field(strict=True)] = Field(description="Letters, numbers, dash and underscore only. Max 128 characters.")
32
+ description: StrictStr
33
+ __properties: ClassVar[List[str]] = ["id", "name", "description"]
34
+
35
+ @field_validator('name')
36
+ def name_validate_regular_expression(cls, value):
37
+ """Validates the regular expression"""
38
+ if not re.match(r"[a-zA-Z0-9-_]{1,128}", value):
39
+ raise ValueError(r"must validate the regular expression /[a-zA-Z0-9-_]{1,128}/")
40
+ return value
41
+
42
+ model_config = ConfigDict(
43
+ populate_by_name=True,
44
+ validate_assignment=True,
45
+ protected_namespaces=(),
46
+ )
47
+
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.model_dump(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Returns the JSON representation of the model using alias"""
55
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
56
+ return json.dumps(self.to_dict())
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> Optional[Self]:
60
+ """Create an instance of Collection from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ """Return the dictionary representation of the model using alias.
65
+
66
+ This has the following differences from calling pydantic's
67
+ `self.model_dump(by_alias=True)`:
68
+
69
+ * `None` is only added to the output dict for nullable fields that
70
+ were set at model initialization. Other fields with value `None`
71
+ are ignored.
72
+ """
73
+ excluded_fields: Set[str] = set([
74
+ ])
75
+
76
+ _dict = self.model_dump(
77
+ by_alias=True,
78
+ exclude=excluded_fields,
79
+ exclude_none=True,
80
+ )
81
+ return _dict
82
+
83
+ @classmethod
84
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
+ """Create an instance of Collection from a dict"""
86
+ if obj is None:
87
+ return None
88
+
89
+ if not isinstance(obj, dict):
90
+ return cls.model_validate(obj)
91
+
92
+ _obj = cls.model_validate({
93
+ "id": obj.get("id"),
94
+ "name": obj.get("name"),
95
+ "description": obj.get("description")
96
+ })
97
+ return _obj
98
+
99
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.13.0
3
+ Version: 0.15.0
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,20 +1,21 @@
1
- wds_client/__init__.py,sha256=A6_YfYu8a4Pbbtnch73laS8ioeeyzmvRGXPMaT9A-OA,3258
2
- wds_client/api_client.py,sha256=FoW6cwNWwut-8P0kPujZujzax2O7T5LjhROo6u7OMh0,26923
1
+ wds_client/__init__.py,sha256=X6yNOO7zB-KB4Y_iIbHwWiiRCK6G2wUGkWLsCkhUGwY,3366
2
+ wds_client/api_client.py,sha256=OMp6nuH20uqG0XbE00XJpQJb8coUl2XhUAZeyrPwj6I,26923
3
3
  wds_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- wds_client/configuration.py,sha256=fBPyFX313X7xrqRlSPcul48QL6pb9ak8CkjBoxa6Mzg,15455
4
+ wds_client/configuration.py,sha256=2V_j1j6cEH176Gu48-4JsRH6e2G4k8jp15EGmB9Qjfc,15455
5
5
  wds_client/exceptions.py,sha256=674T2OrRc-tySXqf45i00iZdt3r6AS-RnWjBUgRxAvc,6122
6
6
  wds_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  wds_client/rest.py,sha256=Gbp9F8A2qoMDg4xrkCjSAG0FDHXUxcNB8oyfzJXxw4U,9554
8
- wds_client/api/__init__.py,sha256=sOPGmC1nqF5yugy7QZrIgnqcpKKWmT8tSUQN7_35SM0,480
8
+ wds_client/api/__init__.py,sha256=v5lOQMp34S1yRr6sWAlsQqoBXvLb6jvHS7DAF4-ZorY,536
9
9
  wds_client/api/capabilities_api.py,sha256=fbu84ZPzJq2cWS_x4HK_AeuvycDavlvbD-RkumXzs1M,10329
10
10
  wds_client/api/cloning_api.py,sha256=LkDwC-FYSyWqYqWHZZTI5Xic-jo01VlrjbT9J1joLjw,32455
11
+ wds_client/api/collection_api.py,sha256=289_Hh_hll8IJu_MKx5AxvgUVCWdHbW9oMPgWVJfaDk,55999
11
12
  wds_client/api/general_wds_information_api.py,sha256=xwfn820K0Q1BaWtIEWWuIkMUNxeFFq2LQiiYIY4BUrA,20256
12
13
  wds_client/api/import_api.py,sha256=-R7A7mr-FkkF-CKA_aEdXw_gFi101vm3n6pgWEoXgfU,12930
13
- wds_client/api/instances_api.py,sha256=o-vro_J-OfcIORXLviD_tCKjScr0c7zVMEXqs45PtTg,32810
14
+ wds_client/api/instances_api.py,sha256=chNSyh-oiihu_6CcsUa2af853TwtDLFRxGTWpPKS9zo,33855
14
15
  wds_client/api/job_api.py,sha256=2oQdl-1Si_QloKtiPGgOitftCb0GMto-O-PZoyUZ7kE,21802
15
- wds_client/api/records_api.py,sha256=YRtEN-WB9jIoBALlyq36tau0vDXs4VFg6royVSo3DlQ,106584
16
- wds_client/api/schema_api.py,sha256=GfEelK0lsBEuxD7TxS7b3PUdM6HO61rMbt2up1Pwhe4,61053
17
- wds_client/models/__init__.py,sha256=IWiDjPW3dO2X2l8EuchR_g_A3_pqrSTcl_3kdL7_RLs,2317
16
+ wds_client/api/records_api.py,sha256=5sESj3Wq6oG2f82Rbtr-Wab4yOr64N023IFr5U5YFNo,106659
17
+ wds_client/api/schema_api.py,sha256=nIuLrh_GJUjkoAZwomIrQXagYZU4HLvg4naHh3uBWZM,61103
18
+ wds_client/models/__init__.py,sha256=_LXg2jqctQ-W-B3Ry3VJpyY_em3EsGE9fWGx7txnvhE,2369
18
19
  wds_client/models/app.py,sha256=9aTIAS8vTOch8zKHBvZHuXumL0vYZBOO2g9Y8VKjPPw,2772
19
20
  wds_client/models/attribute_data_type.py,sha256=R4kI1B2oH7pcyNYcIUElp5MmAMWGj0KY1AeQ5zo0lKk,1514
20
21
  wds_client/models/attribute_schema.py,sha256=Lrrw5iTq9O56DbcCgAGgif500eO9-aaJ8FWHNM6pF7U,3091
@@ -29,6 +30,7 @@ wds_client/models/build.py,sha256=9VpoHN59SYEUBWKWFbmAnseiFX5-zyGA66nAjBWGI7s,30
29
30
  wds_client/models/capabilities.py,sha256=Vqh62U0ZX_tNaBnAvabkdOCzByLp49FHBToxOZ6j6u8,3270
30
31
  wds_client/models/clone_job.py,sha256=Dt7imPtHrLgJbdWBbABjXo3ArZ4aJVRKEHgETiCTI1Y,4057
31
32
  wds_client/models/clone_response.py,sha256=qrBpBfS-b3EmAszCdY7vzfMJj4zr36xvp5Zlj0fLjoM,2943
33
+ wds_client/models/collection.py,sha256=LxuptlecUwSBpieeyuIUCgKghO47i1R7xyv_-HHKoOQ,3261
32
34
  wds_client/models/commit.py,sha256=yE9OxZ_1kGnbD3U80QTBi8HOELfxd21Eb3-RraPqbsc,2720
33
35
  wds_client/models/error_response.py,sha256=U1Fl24jQhD2gEEREBSemaUp8PHKO7XHJ4pSLmgnVxz0,3115
34
36
  wds_client/models/generic_job.py,sha256=XCO9Ll3aFcuVEZtbhbGzJ-u-KqgA18JBjj7MGPOWGck,4385
@@ -46,7 +48,7 @@ wds_client/models/search_sort_direction.py,sha256=fnqUYvbgXHQ5mESZnxDvcUZ5wi6i77
46
48
  wds_client/models/status_response.py,sha256=A5i2yWShlaGVVyi1DGg1KsC8S4fyLbmxJmqLlMKmtH0,2768
47
49
  wds_client/models/tsv_upload_response.py,sha256=yhj-3KEFzs-EYnaGZvsr6KgrK6wlYCZKVA7ObfZ2ECc,2807
48
50
  wds_client/models/version_response.py,sha256=pQ9eukrGQPdLBwvPKN_ucFlMKff25oGywruwIdL918o,3516
49
- wds_client-0.13.0.dist-info/METADATA,sha256=j8IcrDsql5UDjjCI6k2Khe_mYa5_s_TYapOOxp_jJog,675
50
- wds_client-0.13.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
51
- wds_client-0.13.0.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
52
- wds_client-0.13.0.dist-info/RECORD,,
51
+ wds_client-0.15.0.dist-info/METADATA,sha256=bIfXYUhRBuf_LJRqXUnwyOk4wrG_BaO_wQE6DIHDoNw,675
52
+ wds_client-0.15.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
53
+ wds_client-0.15.0.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
54
+ wds_client-0.15.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5