h2o-workflows 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. h2o_workflows/__init__.py +3 -0
  2. h2o_workflows/_version.py +3 -0
  3. h2o_workflows/auth/__init__.py +0 -0
  4. h2o_workflows/auth/token_api_client.py +25 -0
  5. h2o_workflows/connection_config.py +116 -0
  6. h2o_workflows/exception.py +28 -0
  7. h2o_workflows/gen/__init__.py +27 -0
  8. h2o_workflows/gen/api/__init__.py +3 -0
  9. h2o_workflows/gen/api/job_service_api.py +342 -0
  10. h2o_workflows/gen/api/run_attempt_service_api.py +330 -0
  11. h2o_workflows/gen/api/run_service_api.py +772 -0
  12. h2o_workflows/gen/api/runner_service_api.py +789 -0
  13. h2o_workflows/gen/api/step_service_api.py +616 -0
  14. h2o_workflows/gen/api/workflow_revision_service_api.py +482 -0
  15. h2o_workflows/gen/api/workflow_service_api.py +1233 -0
  16. h2o_workflows/gen/api_client.py +896 -0
  17. h2o_workflows/gen/apis/__init__.py +23 -0
  18. h2o_workflows/gen/configuration.py +446 -0
  19. h2o_workflows/gen/exceptions.py +158 -0
  20. h2o_workflows/gen/model/__init__.py +5 -0
  21. h2o_workflows/gen/model/job_job_failure_reason.py +285 -0
  22. h2o_workflows/gen/model/protobuf_any.py +263 -0
  23. h2o_workflows/gen/model/required_the_runner_to_update.py +303 -0
  24. h2o_workflows/gen/model/required_the_workflow_to_update.py +325 -0
  25. h2o_workflows/gen/model/retry_run_request_retry_mode.py +283 -0
  26. h2o_workflows/gen/model/rpc_status.py +277 -0
  27. h2o_workflows/gen/model/run_attempt_run_attempt_failure_reason.py +285 -0
  28. h2o_workflows/gen/model/run_run_failure_reason.py +285 -0
  29. h2o_workflows/gen/model/run_service_retry_run_request.py +269 -0
  30. h2o_workflows/gen/model/run_trigger.py +284 -0
  31. h2o_workflows/gen/model/step_step_failure_reason.py +285 -0
  32. h2o_workflows/gen/model/stream_result_of_v1_stream_step_logs_response.py +275 -0
  33. h2o_workflows/gen/model/v1_activate_workflow_response.py +269 -0
  34. h2o_workflows/gen/model/v1_bool_input_definition.py +281 -0
  35. h2o_workflows/gen/model/v1_bool_input_value.py +275 -0
  36. h2o_workflows/gen/model/v1_cancel_run_response.py +269 -0
  37. h2o_workflows/gen/model/v1_create_runner_response.py +269 -0
  38. h2o_workflows/gen/model/v1_create_workflow_response.py +269 -0
  39. h2o_workflows/gen/model/v1_deactivate_workflow_response.py +269 -0
  40. h2o_workflows/gen/model/v1_get_job_response.py +269 -0
  41. h2o_workflows/gen/model/v1_get_run_attempt_response.py +269 -0
  42. h2o_workflows/gen/model/v1_get_run_response.py +269 -0
  43. h2o_workflows/gen/model/v1_get_runner_response.py +269 -0
  44. h2o_workflows/gen/model/v1_get_step_logs_response.py +268 -0
  45. h2o_workflows/gen/model/v1_get_step_response.py +269 -0
  46. h2o_workflows/gen/model/v1_get_workflow_response.py +269 -0
  47. h2o_workflows/gen/model/v1_get_workflow_revision_response.py +269 -0
  48. h2o_workflows/gen/model/v1_input_definitions.py +281 -0
  49. h2o_workflows/gen/model/v1_input_values.py +281 -0
  50. h2o_workflows/gen/model/v1_int_input_definition.py +281 -0
  51. h2o_workflows/gen/model/v1_int_input_value.py +275 -0
  52. h2o_workflows/gen/model/v1_job.py +335 -0
  53. h2o_workflows/gen/model/v1_job_state.py +286 -0
  54. h2o_workflows/gen/model/v1_job_type.py +283 -0
  55. h2o_workflows/gen/model/v1_list_jobs_response.py +273 -0
  56. h2o_workflows/gen/model/v1_list_run_attempts_response.py +273 -0
  57. h2o_workflows/gen/model/v1_list_runners_response.py +273 -0
  58. h2o_workflows/gen/model/v1_list_runs_response.py +273 -0
  59. h2o_workflows/gen/model/v1_list_steps_response.py +273 -0
  60. h2o_workflows/gen/model/v1_list_workflow_revisions_response.py +273 -0
  61. h2o_workflows/gen/model/v1_list_workflows_response.py +273 -0
  62. h2o_workflows/gen/model/v1_retry_run_response.py +269 -0
  63. h2o_workflows/gen/model/v1_run.py +326 -0
  64. h2o_workflows/gen/model/v1_run_attempt.py +304 -0
  65. h2o_workflows/gen/model/v1_run_attempt_state.py +285 -0
  66. h2o_workflows/gen/model/v1_run_state.py +286 -0
  67. h2o_workflows/gen/model/v1_run_workflow_revision_response.py +269 -0
  68. h2o_workflows/gen/model/v1_runner.py +307 -0
  69. h2o_workflows/gen/model/v1_step.py +315 -0
  70. h2o_workflows/gen/model/v1_step_state.py +286 -0
  71. h2o_workflows/gen/model/v1_step_type.py +284 -0
  72. h2o_workflows/gen/model/v1_stream_step_logs_response.py +274 -0
  73. h2o_workflows/gen/model/v1_string_input_definition.py +285 -0
  74. h2o_workflows/gen/model/v1_string_input_value.py +275 -0
  75. h2o_workflows/gen/model/v1_update_runner_response.py +269 -0
  76. h2o_workflows/gen/model/v1_update_workflow_response.py +269 -0
  77. h2o_workflows/gen/model/v1_validate_workflow_response.py +273 -0
  78. h2o_workflows/gen/model/v1_validation_error.py +285 -0
  79. h2o_workflows/gen/model/v1_workflow.py +329 -0
  80. h2o_workflows/gen/model/v1_workflow_revision.py +304 -0
  81. h2o_workflows/gen/model/v1_workflow_revision_state.py +283 -0
  82. h2o_workflows/gen/model/v1_workflow_state.py +283 -0
  83. h2o_workflows/gen/model/validation_error_severity.py +284 -0
  84. h2o_workflows/gen/model/workflow_revision_service_run_workflow_revision_request.py +269 -0
  85. h2o_workflows/gen/model/workflow_service_validate_workflow_request.py +269 -0
  86. h2o_workflows/gen/model_utils.py +2056 -0
  87. h2o_workflows/gen/models/__init__.py +76 -0
  88. h2o_workflows/gen/rest.py +352 -0
  89. h2o_workflows/inputs.py +195 -0
  90. h2o_workflows/job/__init__.py +0 -0
  91. h2o_workflows/job/client.py +92 -0
  92. h2o_workflows/job/job.py +142 -0
  93. h2o_workflows/job/page.py +33 -0
  94. h2o_workflows/login.py +182 -0
  95. h2o_workflows/run/__init__.py +0 -0
  96. h2o_workflows/run/client.py +136 -0
  97. h2o_workflows/run/page.py +33 -0
  98. h2o_workflows/run/run.py +141 -0
  99. h2o_workflows/run_attempt/__init__.py +0 -0
  100. h2o_workflows/run_attempt/client.py +80 -0
  101. h2o_workflows/run_attempt/page.py +37 -0
  102. h2o_workflows/run_attempt/run_attempt.py +95 -0
  103. h2o_workflows/runner/__init__.py +0 -0
  104. h2o_workflows/runner/client.py +196 -0
  105. h2o_workflows/runner/page.py +33 -0
  106. h2o_workflows/runner/runner.py +76 -0
  107. h2o_workflows/runner/runner_config.py +24 -0
  108. h2o_workflows/step/__init__.py +0 -0
  109. h2o_workflows/step/client.py +129 -0
  110. h2o_workflows/step/page.py +33 -0
  111. h2o_workflows/step/step.py +122 -0
  112. h2o_workflows/workflow/__init__.py +0 -0
  113. h2o_workflows/workflow/client.py +205 -0
  114. h2o_workflows/workflow/page.py +33 -0
  115. h2o_workflows/workflow/validate_response.py +79 -0
  116. h2o_workflows/workflow/workflow.py +98 -0
  117. h2o_workflows/workflow_revision/__init__.py +0 -0
  118. h2o_workflows/workflow_revision/client.py +116 -0
  119. h2o_workflows/workflow_revision/page.py +40 -0
  120. h2o_workflows/workflow_revision/workflow_revision.py +67 -0
  121. h2o_workflows-0.2.0.dist-info/METADATA +10 -0
  122. h2o_workflows-0.2.0.dist-info/RECORD +123 -0
  123. h2o_workflows-0.2.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,330 @@
1
+ """
2
+ ai/h2o/workflows/v1/input.proto
3
+
4
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
5
+
6
+ The version of the OpenAPI document: version not set
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from h2o_workflows.gen.api_client import ApiClient, Endpoint as _Endpoint
15
+ from h2o_workflows.gen.model_utils import ( # noqa: F401
16
+ check_allowed_values,
17
+ check_validations,
18
+ date,
19
+ datetime,
20
+ file_type,
21
+ none_type,
22
+ validate_and_convert_types
23
+ )
24
+ from h2o_workflows.gen.model.rpc_status import RpcStatus
25
+ from h2o_workflows.gen.model.v1_get_run_attempt_response import V1GetRunAttemptResponse
26
+ from h2o_workflows.gen.model.v1_list_run_attempts_response import V1ListRunAttemptsResponse
27
+
28
+
29
+ class RunAttemptServiceApi(object):
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None):
37
+ if api_client is None:
38
+ api_client = ApiClient()
39
+ self.api_client = api_client
40
+ self.run_attempt_service_get_run_attempt_endpoint = _Endpoint(
41
+ settings={
42
+ 'response_type': (V1GetRunAttemptResponse,),
43
+ 'auth': [],
44
+ 'endpoint_path': '/v1/{name_1}',
45
+ 'operation_id': 'run_attempt_service_get_run_attempt',
46
+ 'http_method': 'GET',
47
+ 'servers': None,
48
+ },
49
+ params_map={
50
+ 'all': [
51
+ 'name_1',
52
+ ],
53
+ 'required': [
54
+ 'name_1',
55
+ ],
56
+ 'nullable': [
57
+ ],
58
+ 'enum': [
59
+ ],
60
+ 'validation': [
61
+ 'name_1',
62
+ ]
63
+ },
64
+ root_map={
65
+ 'validations': {
66
+ ('name_1',): {
67
+
68
+ 'regex': {
69
+ 'pattern': r'workspaces\/[^\/]+\/workflows\/[^\/]+\/revisions\/[^\/]+\/runs\/[^\/]+\/attempts\/[^\/]+', # noqa: E501
70
+ },
71
+ },
72
+ },
73
+ 'allowed_values': {
74
+ },
75
+ 'openapi_types': {
76
+ 'name_1':
77
+ (str,),
78
+ },
79
+ 'attribute_map': {
80
+ 'name_1': 'name_1',
81
+ },
82
+ 'location_map': {
83
+ 'name_1': 'path',
84
+ },
85
+ 'collection_format_map': {
86
+ }
87
+ },
88
+ headers_map={
89
+ 'accept': [
90
+ 'application/json'
91
+ ],
92
+ 'content_type': [],
93
+ },
94
+ api_client=api_client
95
+ )
96
+ self.run_attempt_service_list_run_attempts_endpoint = _Endpoint(
97
+ settings={
98
+ 'response_type': (V1ListRunAttemptsResponse,),
99
+ 'auth': [],
100
+ 'endpoint_path': '/v1/{parent}/attempts',
101
+ 'operation_id': 'run_attempt_service_list_run_attempts',
102
+ 'http_method': 'GET',
103
+ 'servers': None,
104
+ },
105
+ params_map={
106
+ 'all': [
107
+ 'parent',
108
+ 'page_size',
109
+ 'page_token',
110
+ ],
111
+ 'required': [
112
+ 'parent',
113
+ ],
114
+ 'nullable': [
115
+ ],
116
+ 'enum': [
117
+ ],
118
+ 'validation': [
119
+ 'parent',
120
+ ]
121
+ },
122
+ root_map={
123
+ 'validations': {
124
+ ('parent',): {
125
+
126
+ 'regex': {
127
+ 'pattern': r'workspaces\/[^\/]+\/workflows\/[^\/]+\/revisions\/[^\/]+\/runs\/[^\/]+', # noqa: E501
128
+ },
129
+ },
130
+ },
131
+ 'allowed_values': {
132
+ },
133
+ 'openapi_types': {
134
+ 'parent':
135
+ (str,),
136
+ 'page_size':
137
+ (int,),
138
+ 'page_token':
139
+ (str,),
140
+ },
141
+ 'attribute_map': {
142
+ 'parent': 'parent',
143
+ 'page_size': 'pageSize',
144
+ 'page_token': 'pageToken',
145
+ },
146
+ 'location_map': {
147
+ 'parent': 'path',
148
+ 'page_size': 'query',
149
+ 'page_token': 'query',
150
+ },
151
+ 'collection_format_map': {
152
+ }
153
+ },
154
+ headers_map={
155
+ 'accept': [
156
+ 'application/json'
157
+ ],
158
+ 'content_type': [],
159
+ },
160
+ api_client=api_client
161
+ )
162
+
163
+ def run_attempt_service_get_run_attempt(
164
+ self,
165
+ name_1,
166
+ **kwargs
167
+ ):
168
+ """Gets a run attempt. # noqa: E501
169
+
170
+ Use `latest` as the attempt ID to retrieve the most recent attempt. Requires `actions/workflows/run-attempts/GET` on parent workspace. # noqa: E501
171
+ This method makes a synchronous HTTP request by default. To make an
172
+ asynchronous HTTP request, please pass async_req=True
173
+
174
+ >>> thread = api.run_attempt_service_get_run_attempt(name_1, async_req=True)
175
+ >>> result = thread.get()
176
+
177
+ Args:
178
+ name_1 (str): Required. The resource name of the run attempt to retrieve. Format: `workspaces/{workspace}/workflows/{workflow}/revisions/{revision}/runs/{run}/attempts/{attempt}` Use `latest` as the attempt ID to retrieve the most recent attempt.
179
+
180
+ Keyword Args:
181
+ _return_http_data_only (bool): response data without head status
182
+ code and headers. Default is True.
183
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
184
+ will be returned without reading/decoding response data.
185
+ Default is True.
186
+ _request_timeout (int/float/tuple): timeout setting for this request. If
187
+ one number provided, it will be total request timeout. It can also
188
+ be a pair (tuple) of (connection, read) timeouts.
189
+ Default is None.
190
+ _check_input_type (bool): specifies if type checking
191
+ should be done one the data sent to the server.
192
+ Default is True.
193
+ _check_return_type (bool): specifies if type checking
194
+ should be done one the data received from the server.
195
+ Default is True.
196
+ _spec_property_naming (bool): True if the variable names in the input data
197
+ are serialized names, as specified in the OpenAPI document.
198
+ False if the variable names in the input data
199
+ are pythonic names, e.g. snake case (default)
200
+ _content_type (str/None): force body content-type.
201
+ Default is None and content-type will be predicted by allowed
202
+ content-types and body.
203
+ _host_index (int/None): specifies the index of the server
204
+ that we want to use.
205
+ Default is read from the configuration.
206
+ _request_auths (list): set to override the auth_settings for an a single
207
+ request; this effectively ignores the authentication
208
+ in the spec for a single request.
209
+ Default is None
210
+ async_req (bool): execute request asynchronously
211
+
212
+ Returns:
213
+ V1GetRunAttemptResponse
214
+ If the method is called asynchronously, returns the request
215
+ thread.
216
+ """
217
+ kwargs['async_req'] = kwargs.get(
218
+ 'async_req', False
219
+ )
220
+ kwargs['_return_http_data_only'] = kwargs.get(
221
+ '_return_http_data_only', True
222
+ )
223
+ kwargs['_preload_content'] = kwargs.get(
224
+ '_preload_content', True
225
+ )
226
+ kwargs['_request_timeout'] = kwargs.get(
227
+ '_request_timeout', None
228
+ )
229
+ kwargs['_check_input_type'] = kwargs.get(
230
+ '_check_input_type', True
231
+ )
232
+ kwargs['_check_return_type'] = kwargs.get(
233
+ '_check_return_type', True
234
+ )
235
+ kwargs['_spec_property_naming'] = kwargs.get(
236
+ '_spec_property_naming', False
237
+ )
238
+ kwargs['_content_type'] = kwargs.get(
239
+ '_content_type')
240
+ kwargs['_host_index'] = kwargs.get('_host_index')
241
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
242
+ kwargs['name_1'] = \
243
+ name_1
244
+ return self.run_attempt_service_get_run_attempt_endpoint.call_with_http_info(**kwargs)
245
+
246
+ def run_attempt_service_list_run_attempts(
247
+ self,
248
+ parent,
249
+ **kwargs
250
+ ):
251
+ """Lists attempts for a run. # noqa: E501
252
+
253
+ Results are ordered by attempt number ascending. Requires `actions/workflows/run-attempts/LIST` on parent workspace. # noqa: E501
254
+ This method makes a synchronous HTTP request by default. To make an
255
+ asynchronous HTTP request, please pass async_req=True
256
+
257
+ >>> thread = api.run_attempt_service_list_run_attempts(parent, async_req=True)
258
+ >>> result = thread.get()
259
+
260
+ Args:
261
+ parent (str): Required. The run whose attempts to list. Format: `workspaces/{workspace}/workflows/{workflow}/revisions/{revision}/runs/{run}`
262
+
263
+ Keyword Args:
264
+ page_size (int): The maximum number of attempts to return. The service may return fewer. If unspecified, at most 50 attempts will be returned. The maximum value is 500; values above 500 will be coerced to 500.. [optional]
265
+ page_token (str): A page token, received from a previous `ListRunAttempts` call. Provide this to retrieve the next page.. [optional]
266
+ _return_http_data_only (bool): response data without head status
267
+ code and headers. Default is True.
268
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
269
+ will be returned without reading/decoding response data.
270
+ Default is True.
271
+ _request_timeout (int/float/tuple): timeout setting for this request. If
272
+ one number provided, it will be total request timeout. It can also
273
+ be a pair (tuple) of (connection, read) timeouts.
274
+ Default is None.
275
+ _check_input_type (bool): specifies if type checking
276
+ should be done one the data sent to the server.
277
+ Default is True.
278
+ _check_return_type (bool): specifies if type checking
279
+ should be done one the data received from the server.
280
+ Default is True.
281
+ _spec_property_naming (bool): True if the variable names in the input data
282
+ are serialized names, as specified in the OpenAPI document.
283
+ False if the variable names in the input data
284
+ are pythonic names, e.g. snake case (default)
285
+ _content_type (str/None): force body content-type.
286
+ Default is None and content-type will be predicted by allowed
287
+ content-types and body.
288
+ _host_index (int/None): specifies the index of the server
289
+ that we want to use.
290
+ Default is read from the configuration.
291
+ _request_auths (list): set to override the auth_settings for an a single
292
+ request; this effectively ignores the authentication
293
+ in the spec for a single request.
294
+ Default is None
295
+ async_req (bool): execute request asynchronously
296
+
297
+ Returns:
298
+ V1ListRunAttemptsResponse
299
+ If the method is called asynchronously, returns the request
300
+ thread.
301
+ """
302
+ kwargs['async_req'] = kwargs.get(
303
+ 'async_req', False
304
+ )
305
+ kwargs['_return_http_data_only'] = kwargs.get(
306
+ '_return_http_data_only', True
307
+ )
308
+ kwargs['_preload_content'] = kwargs.get(
309
+ '_preload_content', True
310
+ )
311
+ kwargs['_request_timeout'] = kwargs.get(
312
+ '_request_timeout', None
313
+ )
314
+ kwargs['_check_input_type'] = kwargs.get(
315
+ '_check_input_type', True
316
+ )
317
+ kwargs['_check_return_type'] = kwargs.get(
318
+ '_check_return_type', True
319
+ )
320
+ kwargs['_spec_property_naming'] = kwargs.get(
321
+ '_spec_property_naming', False
322
+ )
323
+ kwargs['_content_type'] = kwargs.get(
324
+ '_content_type')
325
+ kwargs['_host_index'] = kwargs.get('_host_index')
326
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
327
+ kwargs['parent'] = \
328
+ parent
329
+ return self.run_attempt_service_list_run_attempts_endpoint.call_with_http_info(**kwargs)
330
+