vgs-api-client 0.0.1.dev202305231053__py3-none-any.whl → 0.0.1.dev202305302031__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.
vgs/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.0.1-dev202305231053"
1
+ __version__ = "0.0.1-dev202305302031"
2
2
 
3
3
  # import Aliases
4
4
  from vgs.aliases_api import Aliases
vgs/aliases_api.py CHANGED
@@ -1,3 +1,5 @@
1
+ import logging
2
+
1
3
  import vgs.exceptions
2
4
  import vgs_api_client
3
5
  from vgs.configuration import Configuration
@@ -58,21 +60,24 @@ class Aliases:
58
60
  api_response = self._api.create_aliases(create_aliases_request=create_aliases_request)
59
61
  return api_response["data"]
60
62
  except Exception as e:
63
+ logging.warning(f"EXCEPTION ${str(e)}")
61
64
  raise _map_exception(f"Failed to redact data ${data}", e)
62
65
 
63
66
  def reveal(self, aliases):
64
67
  # TODO: validate data and raise meaningful exception on validation error
65
68
  try:
66
69
  query = ",".join(aliases) if isinstance(aliases, list) else aliases
67
- api_response = self._api.reveal_multiple_aliases(q=query)
70
+ api_response = self._api.reveal_multiple_aliases(aliases=query)
68
71
  return api_response["data"]
69
72
  except Exception as e:
73
+ logging.warning(f"EXCEPTION ${str(e)}")
70
74
  raise _map_exception(f"Failed to reveal aliases ${aliases}", e)
71
75
 
72
76
  def delete(self, alias):
73
77
  try:
74
78
  self._api.delete_alias(alias=alias)
75
79
  except Exception as e:
80
+ logging.warning(f"EXCEPTION ${str(e)}")
76
81
  raise _map_exception(f"Failed to reveal delete ${alias}", e)
77
82
 
78
83
  def update(self, alias, data):
@@ -84,4 +89,5 @@ class Aliases:
84
89
  ),
85
90
  )
86
91
  except Exception as e:
92
+ logging.warning(f"EXCEPTION ${str(e)}")
87
93
  raise _map_exception(f"Failed to update alias ${alias}.", e)
vgs/functions_api.py CHANGED
@@ -16,7 +16,7 @@ from vgs import certs
16
16
  from vgs.base_api import BaseApi
17
17
  from vgs.configuration import Configuration
18
18
 
19
- USER_AGENT = "vgs-sdk/0.0.1-dev202305231053/python"
19
+ USER_AGENT = "vgs-sdk/0.0.1-dev202305302031/python"
20
20
 
21
21
  ECHO_SECURE_HOST_CONFIG = "echo\\.secure\\.verygood\\.systems"
22
22
  FUNCTION_CONDITION_EXPRESSION = (
vgs/sdk/account_mgmt.py CHANGED
@@ -10,7 +10,7 @@ class AccountMgmtAPI(API):
10
10
  "Accept": "application/vnd.api+json",
11
11
  "Authorization": f"Bearer {access_token}",
12
12
  "Content-Type": "application/vnd.api+json",
13
- "User-Agent": f"VGS SDK 0.0.1-dev202305231053",
13
+ "User-Agent": f"VGS SDK 0.0.1-dev202305302031",
14
14
  },
15
15
  json_encode_body=True,
16
16
  )
vgs/sdk/accounts_api.py CHANGED
@@ -33,7 +33,7 @@ def create_api(token, environment):
33
33
  headers={
34
34
  "Content-Type": "application/vnd.api+json",
35
35
  "Accept": "application/vnd.api+json",
36
- "User-Agent": "VGS SDK {}".format("0.0.1-dev202305231053"),
36
+ "User-Agent": "VGS SDK {}".format("0.0.1-dev202305302031"),
37
37
  "Authorization": "Bearer {}".format(token),
38
38
  },
39
39
  timeout=50, # default timeout in seconds
vgs/sdk/auth_api.py CHANGED
@@ -21,7 +21,7 @@ def create_api(environment):
21
21
  api = API(
22
22
  api_root_url=env_url[environment],
23
23
  params={}, # default params
24
- headers={"User-Agent": f"VGS SDK 0.0.1-dev202305231053"}, # default headers
24
+ headers={"User-Agent": f"VGS SDK 0.0.1-dev202305302031"}, # default headers
25
25
  timeout=50, # default timeout in seconds
26
26
  append_slash=False, # append slash to final url
27
27
  )
@@ -45,7 +45,7 @@ def logout(api, client_id, access_token, refresh_token):
45
45
  headers={
46
46
  "Authorization": access_token,
47
47
  "Content-Type": "application/x-www-form-urlencoded",
48
- "User-Agent": f"VGS SDK 0.0.1-dev202305231053",
48
+ "User-Agent": f"VGS SDK 0.0.1-dev202305302031",
49
49
  },
50
50
  body="client_id={client_id}&refresh_token={refresh_token}".format(
51
51
  client_id=client_id, refresh_token=refresh_token
vgs/sdk/vault_mgmt.py CHANGED
@@ -10,7 +10,7 @@ class VaultMgmtAPI(API):
10
10
  "Accept": "application/vnd.api+json",
11
11
  "Authorization": f"Bearer {access_token}",
12
12
  "Content-Type": "application/vnd.api+json",
13
- "User-Agent": f"VGS SDK 0.0.1-dev202305231053",
13
+ "User-Agent": f"VGS SDK 0.0.1-dev202305302031",
14
14
  },
15
15
  json_encode_body=True,
16
16
  )
vgs/sdk/vaults_api.py CHANGED
@@ -21,7 +21,7 @@ def create_api(ctx, vault_id, environment, token):
21
21
  "VGS-Tenant": vault_id,
22
22
  "Content-Type": "application/vnd.api+json",
23
23
  "Accept": "application/vnd.api+json",
24
- "User-Agent": "VGS SDK {}".format("0.0.1-dev202305231053"),
24
+ "User-Agent": "VGS SDK {}".format("0.0.1-dev202305302031"),
25
25
  "Authorization": "Bearer {}".format(token),
26
26
  }, # default headers
27
27
  timeout=50, # default timeout in seconds
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "0.0.1-dev202305231053"
14
+ __version__ = "0.0.1-dev202305302031"
15
15
 
16
16
  # import ApiClient
17
17
  from vgs_api_client.api_client import ApiClient
@@ -105,6 +105,7 @@ class AliasesApi(object):
105
105
  params_map={
106
106
  'all': [
107
107
  'alias',
108
+ 'storage',
108
109
  ],
109
110
  'required': [
110
111
  'alias',
@@ -112,6 +113,7 @@ class AliasesApi(object):
112
113
  'nullable': [
113
114
  ],
114
115
  'enum': [
116
+ 'storage',
115
117
  ],
116
118
  'validation': [
117
119
  ]
@@ -120,16 +122,25 @@ class AliasesApi(object):
120
122
  'validations': {
121
123
  },
122
124
  'allowed_values': {
125
+ ('storage',): {
126
+
127
+ "PERSISTENT": "PERSISTENT",
128
+ "VOLATILE": "VOLATILE"
129
+ },
123
130
  },
124
131
  'openapi_types': {
125
132
  'alias':
126
133
  (str,),
134
+ 'storage':
135
+ (str,),
127
136
  },
128
137
  'attribute_map': {
129
138
  'alias': 'alias',
139
+ 'storage': 'storage',
130
140
  },
131
141
  'location_map': {
132
142
  'alias': 'path',
143
+ 'storage': 'query',
133
144
  },
134
145
  'collection_format_map': {
135
146
  }
@@ -156,6 +167,7 @@ class AliasesApi(object):
156
167
  params_map={
157
168
  'all': [
158
169
  'alias',
170
+ 'storage',
159
171
  ],
160
172
  'required': [
161
173
  'alias',
@@ -163,6 +175,7 @@ class AliasesApi(object):
163
175
  'nullable': [
164
176
  ],
165
177
  'enum': [
178
+ 'storage',
166
179
  ],
167
180
  'validation': [
168
181
  ]
@@ -171,16 +184,25 @@ class AliasesApi(object):
171
184
  'validations': {
172
185
  },
173
186
  'allowed_values': {
187
+ ('storage',): {
188
+
189
+ "PERSISTENT": "PERSISTENT",
190
+ "VOLATILE": "VOLATILE"
191
+ },
174
192
  },
175
193
  'openapi_types': {
176
194
  'alias':
177
195
  (str,),
196
+ 'storage':
197
+ (str,),
178
198
  },
179
199
  'attribute_map': {
180
200
  'alias': 'alias',
201
+ 'storage': 'storage',
181
202
  },
182
203
  'location_map': {
183
204
  'alias': 'path',
205
+ 'storage': 'query',
184
206
  },
185
207
  'collection_format_map': {
186
208
  }
@@ -206,10 +228,11 @@ class AliasesApi(object):
206
228
  },
207
229
  params_map={
208
230
  'all': [
209
- 'q',
231
+ 'aliases',
232
+ 'storage',
210
233
  ],
211
234
  'required': [
212
- 'q',
235
+ 'aliases',
213
236
  ],
214
237
  'nullable': [
215
238
  ],
@@ -224,14 +247,18 @@ class AliasesApi(object):
224
247
  'allowed_values': {
225
248
  },
226
249
  'openapi_types': {
227
- 'q':
250
+ 'aliases':
251
+ (str,),
252
+ 'storage':
228
253
  (str,),
229
254
  },
230
255
  'attribute_map': {
231
- 'q': 'q',
256
+ 'aliases': 'aliases',
257
+ 'storage': 'storage',
232
258
  },
233
259
  'location_map': {
234
- 'q': 'query',
260
+ 'aliases': 'query',
261
+ 'storage': 'query',
235
262
  },
236
263
  'collection_format_map': {
237
264
  }
@@ -258,6 +285,7 @@ class AliasesApi(object):
258
285
  params_map={
259
286
  'all': [
260
287
  'alias',
288
+ 'storage',
261
289
  'update_alias_request',
262
290
  ],
263
291
  'required': [
@@ -266,6 +294,7 @@ class AliasesApi(object):
266
294
  'nullable': [
267
295
  ],
268
296
  'enum': [
297
+ 'storage',
269
298
  ],
270
299
  'validation': [
271
300
  ]
@@ -274,18 +303,27 @@ class AliasesApi(object):
274
303
  'validations': {
275
304
  },
276
305
  'allowed_values': {
306
+ ('storage',): {
307
+
308
+ "PERSISTENT": "PERSISTENT",
309
+ "VOLATILE": "VOLATILE"
310
+ },
277
311
  },
278
312
  'openapi_types': {
279
313
  'alias':
280
314
  (str,),
315
+ 'storage':
316
+ (str,),
281
317
  'update_alias_request':
282
318
  (UpdateAliasRequest,),
283
319
  },
284
320
  'attribute_map': {
285
321
  'alias': 'alias',
322
+ 'storage': 'storage',
286
323
  },
287
324
  'location_map': {
288
325
  'alias': 'path',
326
+ 'storage': 'query',
289
327
  'update_alias_request': 'body',
290
328
  },
291
329
  'collection_format_map': {
@@ -394,6 +432,7 @@ class AliasesApi(object):
394
432
  alias (str): Alias to operate on.
395
433
 
396
434
  Keyword Args:
435
+ storage (str): [optional] if omitted the server will use the default value of "PERSISTENT"
397
436
  _return_http_data_only (bool): response data without head status
398
437
  code and headers. Default is True.
399
438
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -472,6 +511,7 @@ class AliasesApi(object):
472
511
  alias (str): Alias to operate on.
473
512
 
474
513
  Keyword Args:
514
+ storage (str): [optional] if omitted the server will use the default value of "PERSISTENT"
475
515
  _return_http_data_only (bool): response data without head status
476
516
  code and headers. Default is True.
477
517
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -534,7 +574,7 @@ class AliasesApi(object):
534
574
 
535
575
  def reveal_multiple_aliases(
536
576
  self,
537
- q,
577
+ aliases,
538
578
  **kwargs
539
579
  ):
540
580
  """Reveal multiple aliases # noqa: E501
@@ -543,13 +583,14 @@ class AliasesApi(object):
543
583
  This method makes a synchronous HTTP request by default. To make an
544
584
  asynchronous HTTP request, please pass async_req=True
545
585
 
546
- >>> thread = api.reveal_multiple_aliases(q, async_req=True)
586
+ >>> thread = api.reveal_multiple_aliases(aliases, async_req=True)
547
587
  >>> result = thread.get()
548
588
 
549
589
  Args:
550
- q (str): Comma-separated list of aliases to reveal.
590
+ aliases (str): Comma-separated list of aliases to reveal.
551
591
 
552
592
  Keyword Args:
593
+ storage (str): PERSISTENT or VOLATILE storage. [optional]
553
594
  _return_http_data_only (bool): response data without head status
554
595
  code and headers. Default is True.
555
596
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -606,8 +647,8 @@ class AliasesApi(object):
606
647
  kwargs['_content_type'] = kwargs.get(
607
648
  '_content_type')
608
649
  kwargs['_host_index'] = kwargs.get('_host_index')
609
- kwargs['q'] = \
610
- q
650
+ kwargs['aliases'] = \
651
+ aliases
611
652
  return self.reveal_multiple_aliases_endpoint.call_with_http_info(**kwargs)
612
653
 
613
654
  def update_alias(
@@ -628,6 +669,7 @@ class AliasesApi(object):
628
669
  alias (str): Alias to operate on.
629
670
 
630
671
  Keyword Args:
672
+ storage (str): [optional] if omitted the server will use the default value of "PERSISTENT"
631
673
  update_alias_request (UpdateAliasRequest): [optional]
632
674
  _return_http_data_only (bool): response data without head status
633
675
  code and headers. Default is True.
@@ -0,0 +1,166 @@
1
+ """
2
+ Vault HTTP API
3
+
4
+ The VGS Vault HTTP API is used for storing, retrieving, and managing sensitive data (aka Tokenization) within a VGS Vault. The VGS API is organized around REST. Our API is built with a predictable resource-oriented structure, uses JSON-encoded requests and responses, follows standard HTTP verbs/responses, and uses industry standard authentication. ## What is VGS Storing sensitive data on your company’s infrastructure often comes with a heavy compliance burden. For instance, storing payments data yourself greatly increases the amount of work needed to become PCI compliant. It also increases your security risk in general. To combat this, companies will minimize the amount of sensitive information they have to handle or store. VGS provides multiple methods for minimizing the sensitive information that needs to be stored which allows customers to secure any type of data for any use-case. **Tokenization** is a method that focuses on securing the storage of data. This is the quickest way to get started and is free. [Get started with Tokenization](https://www.verygoodsecurity.com/docs/tokenization/getting-started). **Zero Data** is a unique method invented by VGS in 2016 that securely stores data like Tokenization, however it also removes the customer’s environment from PCI scope completely providing maximum security, and minimum compliance scope. [Get started with Zero Data](https://www.verygoodsecurity.com/docs/getting-started/before-you-start). Additionally, for scenarios where neither technology is a complete solution, for instance with legacy systems, VGS provides a compliance product which guarantees customers are able to meet their compliance needs no matter what may happen. [Get started with Control](https://www.verygoodsecurity.com/docs/control). ## Learn about Tokenization - [Create an Account for Free Tokenization](https://dashboard.verygoodsecurity.com/tokenization) - [Try a Tokenization Demo](https://www.verygoodsecurity.com/docs/tokenization/getting-started) - [Install a Tokenization SDK](https://www.verygoodsecurity.com/docs/tokenization/client-libraries) ### Authentication This API uses `Basic` authentication and is implemented using industry best practices to ensure the security of the connection. Read more about [Identity and Access Management at VGS](https://www.verygoodsecurity.com/docs/vault/the-platform/iam) Credentials to access the API can be generated on the [dashboard](https://dashboard.verygoodsecurity.com) by going to the Settings section of the vault of your choosing. [Docs » Guides » Access credentials](https://www.verygoodsecurity.com/docs/settings/access-credentials) ## Resource Limits ### Data Limits This API allows storing data up to 32MB in size. ### Rate Limiting The API allows up to 3,000 requests per minute. Requests are associated with the vault, regardless of the access credentials used to authenticate the request. Your current rate limit is included as HTTP headers in every API response: | Header Name | Description | |-------------------------|----------------------------------------------------------| | `x-ratelimit-remaining` | The number of requests remaining in the 1-minute window. | If you exceed the rate limit, the API will reject the request with HTTP [429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429). ### Errors The API uses standard HTTP status codes to indicate whether the request succeeded or not. In case of failure, the response body will be JSON in a predefined format. For example, trying to create too many aliases at once results in the following response: ```json { \"errors\": [ { \"status\": 400, \"title\": \"Bad request\", \"detail\": \"Too many values (limit: 20)\", \"href\": \"https://api.sandbox.verygoodvault.com/aliases\" } ] } ``` # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@verygoodsecurity.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from vgs_api_client.api_client import ApiClient, Endpoint as _Endpoint
16
+ from vgs_api_client.model_utils import ( # noqa: F401
17
+ check_allowed_values,
18
+ check_validations,
19
+ date,
20
+ datetime,
21
+ file_type,
22
+ none_type,
23
+ validate_and_convert_types
24
+ )
25
+ from vgs_api_client.model.batch_aliases_request import BatchAliasesRequest
26
+
27
+
28
+ class DefaultApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+ self.delete_aliases_endpoint = _Endpoint(
40
+ settings={
41
+ 'response_type': None,
42
+ 'auth': [
43
+ 'basicAuth'
44
+ ],
45
+ 'endpoint_path': '/aliases/delete',
46
+ 'operation_id': 'delete_aliases',
47
+ 'http_method': 'POST',
48
+ 'servers': None,
49
+ },
50
+ params_map={
51
+ 'all': [
52
+ 'batch_aliases_request',
53
+ ],
54
+ 'required': [
55
+ 'batch_aliases_request',
56
+ ],
57
+ 'nullable': [
58
+ ],
59
+ 'enum': [
60
+ ],
61
+ 'validation': [
62
+ ]
63
+ },
64
+ root_map={
65
+ 'validations': {
66
+ },
67
+ 'allowed_values': {
68
+ },
69
+ 'openapi_types': {
70
+ 'batch_aliases_request':
71
+ (BatchAliasesRequest,),
72
+ },
73
+ 'attribute_map': {
74
+ },
75
+ 'location_map': {
76
+ 'batch_aliases_request': 'body',
77
+ },
78
+ 'collection_format_map': {
79
+ }
80
+ },
81
+ headers_map={
82
+ 'accept': [],
83
+ 'content_type': [
84
+ 'application/json'
85
+ ]
86
+ },
87
+ api_client=api_client
88
+ )
89
+
90
+ def delete_aliases(
91
+ self,
92
+ batch_aliases_request,
93
+ **kwargs
94
+ ):
95
+ """POST aliases/delete # noqa: E501
96
+
97
+ This method makes a synchronous HTTP request by default. To make an
98
+ asynchronous HTTP request, please pass async_req=True
99
+
100
+ >>> thread = api.delete_aliases(batch_aliases_request, async_req=True)
101
+ >>> result = thread.get()
102
+
103
+ Args:
104
+ batch_aliases_request (BatchAliasesRequest):
105
+
106
+ Keyword Args:
107
+ _return_http_data_only (bool): response data without head status
108
+ code and headers. Default is True.
109
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
110
+ will be returned without reading/decoding response data.
111
+ Default is True.
112
+ _request_timeout (int/float/tuple): timeout setting for this request. If
113
+ one number provided, it will be total request timeout. It can also
114
+ be a pair (tuple) of (connection, read) timeouts.
115
+ Default is None.
116
+ _check_input_type (bool): specifies if type checking
117
+ should be done one the data sent to the server.
118
+ Default is True.
119
+ _check_return_type (bool): specifies if type checking
120
+ should be done one the data received from the server.
121
+ Default is True.
122
+ _spec_property_naming (bool): True if the variable names in the input data
123
+ are serialized names, as specified in the OpenAPI document.
124
+ False if the variable names in the input data
125
+ are pythonic names, e.g. snake case (default)
126
+ _content_type (str/None): force body content-type.
127
+ Default is None and content-type will be predicted by allowed
128
+ content-types and body.
129
+ _host_index (int/None): specifies the index of the server
130
+ that we want to use.
131
+ Default is read from the configuration.
132
+ async_req (bool): execute request asynchronously
133
+
134
+ Returns:
135
+ None
136
+ If the method is called asynchronously, returns the request
137
+ thread.
138
+ """
139
+ kwargs['async_req'] = kwargs.get(
140
+ 'async_req', False
141
+ )
142
+ kwargs['_return_http_data_only'] = kwargs.get(
143
+ '_return_http_data_only', True
144
+ )
145
+ kwargs['_preload_content'] = kwargs.get(
146
+ '_preload_content', True
147
+ )
148
+ kwargs['_request_timeout'] = kwargs.get(
149
+ '_request_timeout', None
150
+ )
151
+ kwargs['_check_input_type'] = kwargs.get(
152
+ '_check_input_type', True
153
+ )
154
+ kwargs['_check_return_type'] = kwargs.get(
155
+ '_check_return_type', True
156
+ )
157
+ kwargs['_spec_property_naming'] = kwargs.get(
158
+ '_spec_property_naming', False
159
+ )
160
+ kwargs['_content_type'] = kwargs.get(
161
+ '_content_type')
162
+ kwargs['_host_index'] = kwargs.get('_host_index')
163
+ kwargs['batch_aliases_request'] = \
164
+ batch_aliases_request
165
+ return self.delete_aliases_endpoint.call_with_http_info(**kwargs)
166
+
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = 'vgs-api-client/0.0.1-dev202305231053/python'
80
+ self.user_agent = 'vgs-api-client/0.0.1-dev202305302031/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -15,3 +15,4 @@
15
15
 
16
16
  # Import APIs into API package:
17
17
  from vgs_api_client.api.aliases_api import AliasesApi
18
+ from vgs_api_client.api.default_api import DefaultApi
@@ -405,7 +405,7 @@ conf = vgs_api_client.Configuration(
405
405
  "OS: {env}\n"\
406
406
  "Python Version: {pyversion}\n"\
407
407
  "Version of the API: 1.0.0\n"\
408
- "SDK Package Version: 0.0.1-dev202305231053".\
408
+ "SDK Package Version: 0.0.1-dev202305302031".\
409
409
  format(env=sys.platform, pyversion=sys.version)
410
410
 
411
411
  def get_host_settings(self):
@@ -35,7 +35,7 @@ def lazy_import():
35
35
  globals()['AliasFormat'] = AliasFormat
36
36
 
37
37
 
38
- class Alias(ModelNormal):
38
+ class AliasDto(ModelNormal):
39
39
  """NOTE: This class is auto generated by OpenAPI Generator.
40
40
  Ref: https://openapi-generator.tech
41
41
 
@@ -110,7 +110,7 @@ class Alias(ModelNormal):
110
110
  @classmethod
111
111
  @convert_js_args_to_python_args
112
112
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
113
- """Alias - a model defined in OpenAPI
113
+ """AliasDto - a model defined in OpenAPI
114
114
 
115
115
  Keyword Args:
116
116
  _check_type (bool): if True, values for parameters in openapi_types
@@ -193,7 +193,7 @@ class Alias(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """Alias - a model defined in OpenAPI
196
+ """AliasDto - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -53,12 +53,16 @@ class AliasFormat(ModelSimple):
53
53
 
54
54
  allowed_values = {
55
55
  ('value',): {
56
+ 'None': None,
57
+ 'ALPHANUMERIC_SIX_T_FOUR': "ALPHANUMERIC_SIX_T_FOUR",
58
+ 'CUSTOM': "CUSTOM",
56
59
  'FPE_ACC_NUM_T_FOUR': "FPE_ACC_NUM_T_FOUR",
57
60
  'FPE_ALPHANUMERIC_ACC_NUM_T_FOUR': "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR",
58
61
  'FPE_SIX_T_FOUR': "FPE_SIX_T_FOUR",
59
62
  'FPE_SSN_T_FOUR': "FPE_SSN_T_FOUR",
60
63
  'FPE_T_FOUR': "FPE_T_FOUR",
61
64
  'GENERIC_T_FOUR': "GENERIC_T_FOUR",
65
+ 'JS': "JS",
62
66
  'NON_LUHN_FPE_ALPHANUMERIC': "NON_LUHN_FPE_ALPHANUMERIC",
63
67
  'NUM_LENGTH_PRESERVING': "NUM_LENGTH_PRESERVING",
64
68
  'PFPT': "PFPT",
@@ -73,7 +77,7 @@ class AliasFormat(ModelSimple):
73
77
 
74
78
  additional_properties_type = None
75
79
 
76
- _nullable = False
80
+ _nullable = True
77
81
 
78
82
  @cached_property
79
83
  def openapi_types():
@@ -116,10 +120,10 @@ class AliasFormat(ModelSimple):
116
120
  Note that value can be passed either in args or in kwargs, but not in both.
117
121
 
118
122
  Args:
119
- args[0] (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
123
+ args[0] (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["ALPHANUMERIC_SIX_T_FOUR", "CUSTOM", "FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "JS", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
120
124
 
121
125
  Keyword Args:
122
- value (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
126
+ value (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["ALPHANUMERIC_SIX_T_FOUR", "CUSTOM", "FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "JS", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
123
127
  _check_type (bool): if True, values for parameters in openapi_types
124
128
  will be type checked and a TypeError will be
125
129
  raised if the wrong type is input.
@@ -206,10 +210,10 @@ class AliasFormat(ModelSimple):
206
210
  Note that value can be passed either in args or in kwargs, but not in both.
207
211
 
208
212
  Args:
209
- args[0] (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
213
+ args[0] (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["ALPHANUMERIC_SIX_T_FOUR", "CUSTOM", "FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "JS", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
210
214
 
211
215
  Keyword Args:
212
- value (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
216
+ value (str): Format of the generated alias string. See [Alias Formats](#section/Introduction/Alias-Formats) for details. ., must be one of ["ALPHANUMERIC_SIX_T_FOUR", "CUSTOM", "FPE_ACC_NUM_T_FOUR", "FPE_ALPHANUMERIC_ACC_NUM_T_FOUR", "FPE_SIX_T_FOUR", "FPE_SSN_T_FOUR", "FPE_T_FOUR", "GENERIC_T_FOUR", "JS", "NON_LUHN_FPE_ALPHANUMERIC", "NUM_LENGTH_PRESERVING", "PFPT", "RAW_UUID", "UUID", "VGS_FIXED_LEN_GENERIC", ] # noqa: E501
213
217
  _check_type (bool): if True, values for parameters in openapi_types
214
218
  will be type checked and a TypeError will be
215
219
  raised if the wrong type is input.
@@ -0,0 +1,264 @@
1
+ """
2
+ Vault HTTP API
3
+
4
+ The VGS Vault HTTP API is used for storing, retrieving, and managing sensitive data (aka Tokenization) within a VGS Vault. The VGS API is organized around REST. Our API is built with a predictable resource-oriented structure, uses JSON-encoded requests and responses, follows standard HTTP verbs/responses, and uses industry standard authentication. ## What is VGS Storing sensitive data on your company’s infrastructure often comes with a heavy compliance burden. For instance, storing payments data yourself greatly increases the amount of work needed to become PCI compliant. It also increases your security risk in general. To combat this, companies will minimize the amount of sensitive information they have to handle or store. VGS provides multiple methods for minimizing the sensitive information that needs to be stored which allows customers to secure any type of data for any use-case. **Tokenization** is a method that focuses on securing the storage of data. This is the quickest way to get started and is free. [Get started with Tokenization](https://www.verygoodsecurity.com/docs/tokenization/getting-started). **Zero Data** is a unique method invented by VGS in 2016 that securely stores data like Tokenization, however it also removes the customer’s environment from PCI scope completely providing maximum security, and minimum compliance scope. [Get started with Zero Data](https://www.verygoodsecurity.com/docs/getting-started/before-you-start). Additionally, for scenarios where neither technology is a complete solution, for instance with legacy systems, VGS provides a compliance product which guarantees customers are able to meet their compliance needs no matter what may happen. [Get started with Control](https://www.verygoodsecurity.com/docs/control). ## Learn about Tokenization - [Create an Account for Free Tokenization](https://dashboard.verygoodsecurity.com/tokenization) - [Try a Tokenization Demo](https://www.verygoodsecurity.com/docs/tokenization/getting-started) - [Install a Tokenization SDK](https://www.verygoodsecurity.com/docs/tokenization/client-libraries) ### Authentication This API uses `Basic` authentication and is implemented using industry best practices to ensure the security of the connection. Read more about [Identity and Access Management at VGS](https://www.verygoodsecurity.com/docs/vault/the-platform/iam) Credentials to access the API can be generated on the [dashboard](https://dashboard.verygoodsecurity.com) by going to the Settings section of the vault of your choosing. [Docs » Guides » Access credentials](https://www.verygoodsecurity.com/docs/settings/access-credentials) ## Resource Limits ### Data Limits This API allows storing data up to 32MB in size. ### Rate Limiting The API allows up to 3,000 requests per minute. Requests are associated with the vault, regardless of the access credentials used to authenticate the request. Your current rate limit is included as HTTP headers in every API response: | Header Name | Description | |-------------------------|----------------------------------------------------------| | `x-ratelimit-remaining` | The number of requests remaining in the 1-minute window. | If you exceed the rate limit, the API will reject the request with HTTP [429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429). ### Errors The API uses standard HTTP status codes to indicate whether the request succeeded or not. In case of failure, the response body will be JSON in a predefined format. For example, trying to create too many aliases at once results in the following response: ```json { \"errors\": [ { \"status\": 400, \"title\": \"Bad request\", \"detail\": \"Too many values (limit: 20)\", \"href\": \"https://api.sandbox.verygoodvault.com/aliases\" } ] } ``` # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@verygoodsecurity.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from vgs_api_client.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from vgs_api_client.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class BatchAliasesRequest(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ ('storage',): {
60
+ 'PERSISTENT': "PERSISTENT",
61
+ 'VOLATILE': "VOLATILE",
62
+ },
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+
84
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ return {
89
+ 'data': ([str],), # noqa: E501
90
+ 'storage': (str,), # noqa: E501
91
+ }
92
+
93
+ @cached_property
94
+ def discriminator():
95
+ return None
96
+
97
+
98
+ attribute_map = {
99
+ 'data': 'data', # noqa: E501
100
+ 'storage': 'storage', # noqa: E501
101
+ }
102
+
103
+ read_only_vars = {
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """BatchAliasesRequest - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ data ([str]): [optional] # noqa: E501
145
+ storage (str): [optional] # noqa: E501
146
+ """
147
+
148
+ _check_type = kwargs.pop('_check_type', True)
149
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
150
+ _path_to_item = kwargs.pop('_path_to_item', ())
151
+ _configuration = kwargs.pop('_configuration', None)
152
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
+
154
+ self = super(OpenApiModel, cls).__new__(cls)
155
+
156
+ if args:
157
+ raise ApiTypeError(
158
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
+ args,
160
+ self.__class__.__name__,
161
+ ),
162
+ path_to_item=_path_to_item,
163
+ valid_classes=(self.__class__,),
164
+ )
165
+
166
+ self._data_store = {}
167
+ self._check_type = _check_type
168
+ self._spec_property_naming = _spec_property_naming
169
+ self._path_to_item = _path_to_item
170
+ self._configuration = _configuration
171
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
+
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, *args, **kwargs): # noqa: E501
194
+ """BatchAliasesRequest - a model defined in OpenAPI
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ data ([str]): [optional] # noqa: E501
228
+ storage (str): [optional] # noqa: E501
229
+ """
230
+
231
+ _check_type = kwargs.pop('_check_type', True)
232
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
+ _path_to_item = kwargs.pop('_path_to_item', ())
234
+ _configuration = kwargs.pop('_configuration', None)
235
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
+
237
+ if args:
238
+ raise ApiTypeError(
239
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
240
+ args,
241
+ self.__class__.__name__,
242
+ ),
243
+ path_to_item=_path_to_item,
244
+ valid_classes=(self.__class__,),
245
+ )
246
+
247
+ self._data_store = {}
248
+ self._check_type = _check_type
249
+ self._spec_property_naming = _spec_property_naming
250
+ self._path_to_item = _path_to_item
251
+ self._configuration = _configuration
252
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
253
+
254
+ for var_name, var_value in kwargs.items():
255
+ if var_name not in self.attribute_map and \
256
+ self._configuration is not None and \
257
+ self._configuration.discard_unknown_keys and \
258
+ self.additional_properties_type is None:
259
+ # discard variable.
260
+ continue
261
+ setattr(self, var_name, var_value)
262
+ if var_name in self.read_only_vars:
263
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
264
+ f"class with read only attributes.")
@@ -32,9 +32,7 @@ from vgs_api_client.exceptions import ApiAttributeError
32
32
 
33
33
  def lazy_import():
34
34
  from vgs_api_client.model.create_aliases_request_new import CreateAliasesRequestNew
35
- from vgs_api_client.model.create_aliases_request_reference import CreateAliasesRequestReference
36
35
  globals()['CreateAliasesRequestNew'] = CreateAliasesRequestNew
37
- globals()['CreateAliasesRequestReference'] = CreateAliasesRequestReference
38
36
 
39
37
 
40
38
  class CreateAliasesRequest(ModelNormal):
@@ -94,7 +92,7 @@ class CreateAliasesRequest(ModelNormal):
94
92
  """
95
93
  lazy_import()
96
94
  return {
97
- 'data': ([bool, date, datetime, dict, float, int, list, str, none_type],), # noqa: E501
95
+ 'data': ([CreateAliasesRequestNew],), # noqa: E501
98
96
  }
99
97
 
100
98
  @cached_property
@@ -117,7 +115,7 @@ class CreateAliasesRequest(ModelNormal):
117
115
  """CreateAliasesRequest - a model defined in OpenAPI
118
116
 
119
117
  Args:
120
- data ([bool, date, datetime, dict, float, int, list, str, none_type]):
118
+ data ([CreateAliasesRequestNew]):
121
119
 
122
120
  Keyword Args:
123
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -202,7 +200,7 @@ class CreateAliasesRequest(ModelNormal):
202
200
  """CreateAliasesRequest - a model defined in OpenAPI
203
201
 
204
202
  Args:
205
- data ([bool, date, datetime, dict, float, int, list, str, none_type]):
203
+ data ([CreateAliasesRequestNew]):
206
204
 
207
205
  Keyword Args:
208
206
  _check_type (bool): if True, values for parameters in openapi_types
@@ -31,8 +31,8 @@ from vgs_api_client.exceptions import ApiAttributeError
31
31
 
32
32
 
33
33
  def lazy_import():
34
- from vgs_api_client.model.alias import Alias
35
- globals()['Alias'] = Alias
34
+ from vgs_api_client.model.alias_dto import AliasDto
35
+ globals()['AliasDto'] = AliasDto
36
36
 
37
37
 
38
38
  class RevealedData(ModelNormal):
@@ -92,9 +92,9 @@ class RevealedData(ModelNormal):
92
92
  """
93
93
  lazy_import()
94
94
  return {
95
- 'aliases': ([Alias],), # noqa: E501
95
+ 'aliases': ([AliasDto],), # noqa: E501
96
96
  'classifiers': ([str],), # noqa: E501
97
- 'created_at': (datetime,), # noqa: E501
97
+ 'created_at': (datetime, none_type,), # noqa: E501
98
98
  'storage': (str,), # noqa: E501
99
99
  'value': (str,), # noqa: E501
100
100
  }
@@ -153,9 +153,9 @@ class RevealedData(ModelNormal):
153
153
  Animal class but this time we won't travel
154
154
  through its discriminator because we passed in
155
155
  _visited_composed_classes = (Animal,)
156
- aliases ([Alias]): List of aliases associated with the value.. [optional] # noqa: E501
156
+ aliases ([AliasDto]): List of aliases associated with the value.. [optional] # noqa: E501
157
157
  classifiers ([str]): List of tags the value is classified with.. [optional] # noqa: E501
158
- created_at (datetime): Creation time, in UTC.. [optional] # noqa: E501
158
+ created_at (datetime, none_type): Creation time, in UTC.. [optional] # noqa: E501
159
159
  storage (str): Storage medium to use. VOLATILE results in data being persisted into an in-memory data store for one hour which is required for PCI compliant storage of card security code data. . [optional] if omitted the server will use the default value of "PERSISTENT" # noqa: E501
160
160
  value (str): Decrypted value stored in the vault.. [optional] # noqa: E501
161
161
  """
@@ -239,9 +239,9 @@ class RevealedData(ModelNormal):
239
239
  Animal class but this time we won't travel
240
240
  through its discriminator because we passed in
241
241
  _visited_composed_classes = (Animal,)
242
- aliases ([Alias]): List of aliases associated with the value.. [optional] # noqa: E501
242
+ aliases ([AliasDto]): List of aliases associated with the value.. [optional] # noqa: E501
243
243
  classifiers ([str]): List of tags the value is classified with.. [optional] # noqa: E501
244
- created_at (datetime): Creation time, in UTC.. [optional] # noqa: E501
244
+ created_at (datetime, none_type): Creation time, in UTC.. [optional] # noqa: E501
245
245
  storage (str): Storage medium to use. VOLATILE results in data being persisted into an in-memory data store for one hour which is required for PCI compliant storage of card security code data. . [optional] if omitted the server will use the default value of "PERSISTENT" # noqa: E501
246
246
  value (str): Decrypted value stored in the vault.. [optional] # noqa: E501
247
247
  """
@@ -9,9 +9,10 @@
9
9
  # import sys
10
10
  # sys.setrecursionlimit(n)
11
11
 
12
- from vgs_api_client.model.alias import Alias
12
+ from vgs_api_client.model.alias_dto import AliasDto
13
13
  from vgs_api_client.model.alias_format import AliasFormat
14
14
  from vgs_api_client.model.api_error import ApiError
15
+ from vgs_api_client.model.batch_aliases_request import BatchAliasesRequest
15
16
  from vgs_api_client.model.create_aliases_request import CreateAliasesRequest
16
17
  from vgs_api_client.model.create_aliases_request_new import CreateAliasesRequestNew
17
18
  from vgs_api_client.model.create_aliases_request_reference import CreateAliasesRequestReference
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vgs-api-client
3
- Version: 0.0.1.dev202305231053
3
+ Version: 0.0.1.dev202305302031
4
4
  Summary: VGS API Client
5
5
  Home-page: https://github.com/verygoodsecurity/vgs-api-client-python
6
6
  Author: Very Good Security
@@ -1,50 +1,52 @@
1
1
  sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- vgs/__init__.py,sha256=mEqO6IBnMU-BJk5GzqIXmv4DuRVYW-OzMz0l95m2xEA,213
3
- vgs/aliases_api.py,sha256=mSla6oPwGbaXVYrptTu_ABjwCHyu-ovzyL1qvvWtvxE,3377
2
+ vgs/__init__.py,sha256=0zDlBT3BW5jkdBClD6re0GuPnMBn87SGXvQ3wbKquf4,213
3
+ vgs/aliases_api.py,sha256=vrgOM6nAkCR7zo_zodQrn4JYN4h9dF_gAP8wqjysGbk,3607
4
4
  vgs/base_api.py,sha256=VL8VpPXBKsYMc-1hsq9yQjQsdrq6uX7RzdSA30sFyEQ,1776
5
5
  vgs/configuration.py,sha256=CEQLAg4CrSx2lWL4zE7nEDmj8kq5Vl_fkrv8Yx8gd6o,646
6
6
  vgs/exceptions.py,sha256=JmnO9xKEf3J6aBobxFNyPNqo71DfNvVke2zjqXv07Os,478
7
- vgs/functions_api.py,sha256=e5E93FcDOJCCyXY6p7SR5Pa6rtf3PpaJjtssqyu98LM,10666
7
+ vgs/functions_api.py,sha256=JbRtjrUAgy5GQ-KytBEOpa53vAX2NHJwb5xvmEQVG7I,10666
8
8
  vgs/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  vgs/certs/vgs-proxy-dev.pem,sha256=QDJjqhxofR37v4yZSkGI9U4C0K3q-buab4QUzO0pR_Q,1379
10
10
  vgs/certs/vgs-proxy-live.pem,sha256=fbB0CS-ziPDTKi9gaZcx3oPTqkE9dNp11KKKEUSFlVk,1387
11
11
  vgs/certs/vgs-proxy-sandbox.pem,sha256=_N1Zt7Ywj0XN0gb1rSCxP8VIQnGfx6bjGCq0NNjS_UM,1395
12
12
  vgs/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- vgs/sdk/account_mgmt.py,sha256=nTetmwu1HagyXU_4g6YKCFt3ZZMrZEQb6nmpZTwAD90,2087
14
- vgs/sdk/accounts_api.py,sha256=cvdiGf_tMxaAt9nTIrv_4kmz0ShNdTsPqOhXiLMDdUE,1748
15
- vgs/sdk/auth_api.py,sha256=wLMwtCsaKmk-6Imbmn9QxAcKETmMdsw-N9jjZWMw-MQ,2256
13
+ vgs/sdk/account_mgmt.py,sha256=TC1FrsH1bWhPGhFPnf5qr01-Z-ziOp84_OK6UkWkgfo,2087
14
+ vgs/sdk/accounts_api.py,sha256=oRIGr3wcM5T5RYDnnN03u4c99_cXKkZXuhmEUpM9wDk,1748
15
+ vgs/sdk/auth_api.py,sha256=Zk_arMka-fRx0oHRkYdF0ll2DYVYX9MoJIYfW20rFsQ,2256
16
16
  vgs/sdk/errors.py,sha256=5X7CXXd14gD3kIIRsZyPPjA0rsu46iQrxhptHGltSWY,5223
17
17
  vgs/sdk/routes.py,sha256=xEPDG37ECys1AWWaf_rFx5tt6Y3BkamzvxskeD4xOx8,1349
18
18
  vgs/sdk/serializers.py,sha256=nE4P83LRA4MwJkvvMNRVTxQ34-Ue_-NAtvbNfJ-B-IA,2259
19
19
  vgs/sdk/utils.py,sha256=A_ZKhCefl8v0ELB3xfSIHM-wooxV1GftVMLLvd0RPaM,2668
20
- vgs/sdk/vault_mgmt.py,sha256=gqrEAptO__atmWhttFlusGEGndS7xb-4txAqIvoI8Ho,1854
21
- vgs/sdk/vaults_api.py,sha256=eeUJL0vOkuBWXJQR5zt06YAEslGgdQraVFBMK1WHCbE,1454
22
- vgs_api_client/__init__.py,sha256=ShGhPsG3xvHVNzYuw1khIZq9SyWIaJ6D5UEdMskIDls,4675
23
- vgs_api_client/api_client.py,sha256=XGXhRyBPdwXo56VWiBs0u1Lr5rzCrSYeFNMDNasLpT0,41563
24
- vgs_api_client/configuration.py,sha256=CSbfpd5yyh_eBlUlbn0NLu2P0PNtPrUzEaFwR9kpLhs,21103
20
+ vgs/sdk/vault_mgmt.py,sha256=CNXWRhoUJCsG_uhaNcJE97MDhUCPqxbOrVNeNOvcL_0,1854
21
+ vgs/sdk/vaults_api.py,sha256=udUiehDlUd76TKTqukTC5nI5qKSPX_g0hyJeGx98odU,1454
22
+ vgs_api_client/__init__.py,sha256=pgYzfhVOXuonJS_ja3Hn0n7CYGZnoqtrkYruTcXncwE,4675
23
+ vgs_api_client/api_client.py,sha256=VJg2Gdzr7y-dG2d1rTq3gCvY9K2KpiuXthLfR68WgnI,41563
24
+ vgs_api_client/configuration.py,sha256=U1n6z87-mDkuJdd_mF6pLQbdyoR8OxmpRFnh2xuu8P4,21103
25
25
  vgs_api_client/exceptions.py,sha256=uq6hLBifxzcf26HNEYHenvyYr2WQaGMT9Bm_R4MwGd0,8981
26
26
  vgs_api_client/model_utils.py,sha256=2TUCJD4BlYUYgaTre_Vi0ycJN4lMmFgXkss1JJr59pk,85995
27
27
  vgs_api_client/rest.py,sha256=LA53pnePXISleLyRjQSyomGzJR5ejbja2p-vE1C_W3w,18105
28
28
  vgs_api_client/api/__init__.py,sha256=ZH2vM54I3vD1_ApDnXo1cb3sPmiLCBAPjtEBqnkRFAk,218
29
- vgs_api_client/api/aliases_api.py,sha256=JpiU1G7DZgyiLOM622TEYQ5NZqrhMppgrQaIiaZ2QvU,29489
30
- vgs_api_client/apis/__init__.py,sha256=2-Va0okhCKEPLInN9e0rkcEdO3svrKqn0JfEwL9gbWU,467
29
+ vgs_api_client/api/aliases_api.py,sha256=6VtuwiSM7ZHVMKkt9rFapktITKTjiOHq9qXhB6gDOx8,31208
30
+ vgs_api_client/api/default_api.py,sha256=TkXipV4a7Vez3d9JG0KOjyqAygScaxoInsYQoIFPMac,9523
31
+ vgs_api_client/apis/__init__.py,sha256=euAfvxZwFPFLauwosycJ630-tMsMoIkpMQ6a-M8vTIo,521
31
32
  vgs_api_client/model/__init__.py,sha256=N49d9K35V_Hd5lOHWcMeVRl0Iy_-L-03rZgfKXwlESM,348
32
- vgs_api_client/model/alias.py,sha256=hUITAxJ6ant1rp0V9vCgTJre4wTebCq7ePbYn2sT8vI,15389
33
- vgs_api_client/model/alias_format.py,sha256=-aDeONQvD9PSfOuXsPpMFv5-IgK4aIegBXdvDGIP6KY,17277
33
+ vgs_api_client/model/alias_dto.py,sha256=r9LN5kawU_2teE_sdO7IVT2Rh-Pb2mzsbzB_KNmEN6U,15398
34
+ vgs_api_client/model/alias_format.py,sha256=RaZyP2b9btQXfBBfQ35BQsOxEUJnx0ZcGMcbgCjEZjg,17596
34
35
  vgs_api_client/model/api_error.py,sha256=aDikvoON1eB8giSzOtBNITHYKN5wi3MOpSpsV3KIhXE,15713
35
- vgs_api_client/model/create_aliases_request.py,sha256=j91ed-CNN8cZuBTrKjRz7Vi0xUGh6USYDX8w7ci7Ozk,15656
36
+ vgs_api_client/model/batch_aliases_request.py,sha256=szuCK7_bRxaeSdhaamgVdU7Pkhcf7xR84Wz4ePeYnEE,15257
37
+ vgs_api_client/model/create_aliases_request.py,sha256=oXk7Uhh1gjco_s-maTcKbvAf2dOzfznJopEHkVdbm6w,15366
36
38
  vgs_api_client/model/create_aliases_request_new.py,sha256=TYtHiEUFGExDDz8k0Igz_gdoilQKUf2mFxBFjx5969s,16602
37
39
  vgs_api_client/model/create_aliases_request_reference.py,sha256=_5Lz2Uxmm6znL_hHzSQrfKGh65Huyy_htQFsygeWZTo,15511
38
40
  vgs_api_client/model/inline_response200.py,sha256=9A6MfSnlR6uoG6OtHR6b7wocm6GLu9GJZ5sSJO8AZg0,15171
39
41
  vgs_api_client/model/inline_response2001.py,sha256=Y-bJyP1DIQIUNg4NWMr6f1EyLMJY6i54lnJ3jndOJ4A,15282
40
42
  vgs_api_client/model/inline_response201.py,sha256=dysXMRk4NniTeQmqegwLSLhZy9u21vgI81vAlJ5aZHU,15245
41
43
  vgs_api_client/model/inline_response_default.py,sha256=3AexMWYmdf0ToybLi1Uxgb_CWLQTxZajG43CMAXfCgI,15323
42
- vgs_api_client/model/revealed_data.py,sha256=yQNMLJDC85xtozzgIirmdKRpysG7Lxwu7Ty3L2daepg,16818
44
+ vgs_api_client/model/revealed_data.py,sha256=fux1RcSmnXtH2_NvTPB_J_VcSqhCLMYGqY4NPrCmfXw,16873
43
45
  vgs_api_client/model/update_alias_request.py,sha256=1_U4nTwMEZJydmCaK6xJjwNK7t4cD57DVOVv4fRH8AI,15258
44
46
  vgs_api_client/model/update_alias_request_data.py,sha256=GVSPxYQ6aySolzU6aFV4QQYkhKCh-fhkl0bOwLlS2Ig,15163
45
- vgs_api_client/models/__init__.py,sha256=Dpplz2lyCGEyABG8UXRGxryCicX5nWdCyQgAlrJU-iw,1294
46
- vgs_api_client-0.0.1.dev202305231053.dist-info/LICENSE,sha256=gagH-1SrLS5Ak0nwk7XRKDn_9LHLVj_m0YrWmXKXpjE,1469
47
- vgs_api_client-0.0.1.dev202305231053.dist-info/METADATA,sha256=Frt6_sXYDPOTD6ZNA8wNENZzu5qyODy4_sJXJdQBB_Q,2238
48
- vgs_api_client-0.0.1.dev202305231053.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
49
- vgs_api_client-0.0.1.dev202305231053.dist-info/top_level.txt,sha256=vM9hfijq_VK5Y_UIF-BfISXYfNc4AXOHYV-mORSaauQ,23
50
- vgs_api_client-0.0.1.dev202305231053.dist-info/RECORD,,
47
+ vgs_api_client/models/__init__.py,sha256=EiYza7gtB_YK7gcFkHMfN4BJzXAB1HCSC2tsugz1R84,1376
48
+ vgs_api_client-0.0.1.dev202305302031.dist-info/LICENSE,sha256=gagH-1SrLS5Ak0nwk7XRKDn_9LHLVj_m0YrWmXKXpjE,1469
49
+ vgs_api_client-0.0.1.dev202305302031.dist-info/METADATA,sha256=p6eztkweUBJTaWoZGBKmHgXspQuRb_0L8HwxugFskfQ,2238
50
+ vgs_api_client-0.0.1.dev202305302031.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
51
+ vgs_api_client-0.0.1.dev202305302031.dist-info/top_level.txt,sha256=vM9hfijq_VK5Y_UIF-BfISXYfNc4AXOHYV-mORSaauQ,23
52
+ vgs_api_client-0.0.1.dev202305302031.dist-info/RECORD,,