polyaxon-sdk 1.18.0rc7__py2.py3-none-any.whl → 2.1.6__py2.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.
- polyaxon_sdk/__init__.py +26 -34
- polyaxon_sdk/api/__init__.py +2 -18
- polyaxon_sdk/api/agents_v1_api.py +2314 -1108
- polyaxon_sdk/api/artifacts_stores_v1_api.py +90 -97
- polyaxon_sdk/api/auth_v1_api.py +398 -359
- polyaxon_sdk/api/connections_v1_api.py +516 -488
- polyaxon_sdk/api/dashboards_v1_api.py +516 -488
- polyaxon_sdk/api/organizations_v1_api.py +3107 -2327
- polyaxon_sdk/api/policies_v1_api.py +1232 -0
- polyaxon_sdk/api/presets_v1_api.py +528 -498
- polyaxon_sdk/api/project_dashboards_v1_api.py +596 -590
- polyaxon_sdk/api/project_searches_v1_api.py +596 -590
- polyaxon_sdk/api/projects_v1_api.py +2248 -2167
- polyaxon_sdk/api/queues_v1_api.py +701 -670
- polyaxon_sdk/api/runs_v1_api.py +5136 -4477
- polyaxon_sdk/api/schemas_v1_api.py +64 -70
- polyaxon_sdk/api/searches_v1_api.py +516 -488
- polyaxon_sdk/api/service_accounts_v1_api.py +956 -920
- polyaxon_sdk/api/tags_v1_api.py +587 -552
- polyaxon_sdk/api/teams_v1_api.py +953 -916
- polyaxon_sdk/api/users_v1_api.py +730 -646
- polyaxon_sdk/api/versions_v1_api.py +206 -190
- polyaxon_sdk/api_client.py +145 -101
- polyaxon_sdk/configuration.py +46 -79
- polyaxon_sdk/exceptions.py +6 -23
- polyaxon_sdk/models/__init__.py +24 -32
- polyaxon_sdk/models/agent_state_response_agent_state.py +71 -364
- polyaxon_sdk/models/mx_job_mode.py +12 -105
- polyaxon_sdk/models/protobuf_any.py +65 -164
- polyaxon_sdk/models/protobuf_null_value.py +11 -104
- polyaxon_sdk/models/runtime_error.py +67 -208
- polyaxon_sdk/models/search_view.py +18 -111
- polyaxon_sdk/models/v1_activity.py +68 -313
- polyaxon_sdk/models/v1_agent.py +93 -495
- polyaxon_sdk/models/v1_agent_reconcile_body_request.py +75 -0
- polyaxon_sdk/models/v1_agent_state_response.py +64 -208
- polyaxon_sdk/models/v1_agent_status_body_request.py +61 -182
- polyaxon_sdk/models/v1_analytics_spec.py +59 -208
- polyaxon_sdk/models/v1_artifact_kind.py +42 -134
- polyaxon_sdk/models/v1_artifact_tree.py +57 -182
- polyaxon_sdk/models/v1_artifacts_mount.py +55 -156
- polyaxon_sdk/models/v1_artifacts_type.py +57 -182
- polyaxon_sdk/models/v1_auth.py +54 -131
- polyaxon_sdk/models/v1_auth_type.py +55 -156
- polyaxon_sdk/models/v1_average_stopping_policy.py +54 -131
- polyaxon_sdk/models/v1_bayes.py +79 -364
- polyaxon_sdk/models/v1_bucket_connection.py +54 -131
- polyaxon_sdk/models/v1_build.py +82 -312
- polyaxon_sdk/models/v1_cache.py +59 -208
- polyaxon_sdk/models/v1_claim_connection.py +59 -208
- polyaxon_sdk/models/v1_clean_pod_policy.py +13 -106
- polyaxon_sdk/models/v1_cloning.py +58 -182
- polyaxon_sdk/models/v1_cloning_kind.py +13 -106
- polyaxon_sdk/models/v1_compatibility.py +72 -208
- polyaxon_sdk/models/v1_compiled_operation.py +171 -783
- polyaxon_sdk/models/v1_component.py +132 -572
- polyaxon_sdk/models/v1_connection_kind.py +53 -146
- polyaxon_sdk/models/v1_connection_resource.py +77 -0
- polyaxon_sdk/models/v1_connection_response.py +71 -339
- polyaxon_sdk/models/v1_connection_schema.py +81 -234
- polyaxon_sdk/models/v1_connection_type.py +77 -338
- polyaxon_sdk/models/v1_credentials.py +55 -156
- polyaxon_sdk/models/v1_cron_schedule.py +64 -261
- polyaxon_sdk/models/v1_dag.py +87 -314
- polyaxon_sdk/models/v1_dag_ref.py +55 -156
- polyaxon_sdk/models/v1_dashboard.py +74 -339
- polyaxon_sdk/models/v1_dashboard_spec.py +70 -131
- polyaxon_sdk/models/v1_dask_job.py +87 -0
- polyaxon_sdk/models/v1_dask_replica.py +95 -0
- polyaxon_sdk/models/v1_date_time_schedule.py +56 -157
- polyaxon_sdk/models/v1_diff_stopping_policy.py +61 -236
- polyaxon_sdk/models/v1_dockerfile_type.py +79 -468
- polyaxon_sdk/models/v1_early_stopping.py +81 -234
- polyaxon_sdk/models/v1_entities_tags.py +55 -156
- polyaxon_sdk/models/v1_entities_transfer.py +55 -156
- polyaxon_sdk/models/v1_entity_notification_body.py +69 -286
- polyaxon_sdk/models/v1_entity_stage_body_request.py +65 -234
- polyaxon_sdk/models/v1_entity_status_body_request.py +65 -234
- polyaxon_sdk/models/v1_environment.py +87 -588
- polyaxon_sdk/models/v1_event.py +130 -499
- polyaxon_sdk/models/v1_event_artifact.py +56 -156
- polyaxon_sdk/models/v1_event_audio.py +61 -240
- polyaxon_sdk/models/v1_event_chart.py +56 -156
- polyaxon_sdk/models/v1_event_chart_kind.py +13 -106
- polyaxon_sdk/models/v1_event_confusion_matrix.py +57 -182
- polyaxon_sdk/models/v1_event_curve.py +60 -208
- polyaxon_sdk/models/v1_event_curve_kind.py +13 -106
- polyaxon_sdk/models/v1_event_dataframe.py +55 -156
- polyaxon_sdk/models/v1_event_histogram.py +55 -156
- polyaxon_sdk/models/v1_event_image.py +59 -212
- polyaxon_sdk/models/v1_event_kind.py +42 -135
- polyaxon_sdk/models/v1_event_model.py +57 -182
- polyaxon_sdk/models/v1_event_span.py +110 -0
- polyaxon_sdk/models/v1_event_span_kind.py +39 -0
- polyaxon_sdk/models/v1_event_trigger.py +56 -156
- polyaxon_sdk/models/v1_event_type.py +56 -156
- polyaxon_sdk/models/v1_event_video.py +61 -238
- polyaxon_sdk/models/v1_events_response.py +54 -131
- polyaxon_sdk/models/v1_failure_early_stopping.py +55 -158
- polyaxon_sdk/models/v1_file_type.py +59 -208
- polyaxon_sdk/models/v1_gcs_type.py +55 -156
- polyaxon_sdk/models/v1_git_connection.py +57 -182
- polyaxon_sdk/models/v1_git_type.py +57 -182
- polyaxon_sdk/models/v1_grid_search.py +63 -260
- polyaxon_sdk/models/v1_hook.py +78 -312
- polyaxon_sdk/models/v1_host_connection.py +55 -156
- polyaxon_sdk/models/v1_host_path_connection.py +59 -208
- polyaxon_sdk/models/v1_hp_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_date_range.py +55 -156
- polyaxon_sdk/models/v1_hp_date_time_range.py +55 -156
- polyaxon_sdk/models/v1_hp_geom_space.py +55 -156
- polyaxon_sdk/models/v1_hp_lin_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_log_space.py +55 -156
- polyaxon_sdk/models/v1_hp_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_p_choice.py +55 -156
- polyaxon_sdk/models/v1_hp_params.py +150 -523
- polyaxon_sdk/models/v1_hp_q_log_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_log_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_q_normal.py +55 -156
- polyaxon_sdk/models/v1_hp_q_uniform.py +55 -156
- polyaxon_sdk/models/v1_hp_range.py +55 -156
- polyaxon_sdk/models/v1_hp_uniform.py +55 -156
- polyaxon_sdk/models/v1_hub_ref.py +55 -156
- polyaxon_sdk/models/v1_hyperband.py +85 -390
- polyaxon_sdk/models/v1_hyperopt.py +80 -364
- polyaxon_sdk/models/v1_hyperopt_algorithms.py +13 -106
- polyaxon_sdk/models/v1_init.py +95 -416
- polyaxon_sdk/models/v1_installation.py +67 -260
- polyaxon_sdk/models/v1_interval_schedule.py +64 -261
- polyaxon_sdk/models/v1_io.py +83 -442
- polyaxon_sdk/models/v1_iterative.py +69 -286
- polyaxon_sdk/models/v1_job.py +77 -288
- polyaxon_sdk/models/v1_join.py +71 -260
- polyaxon_sdk/models/v1_join_param.py +61 -234
- polyaxon_sdk/models/v1_kf_replica.py +77 -286
- polyaxon_sdk/models/v1_list_activities_response.py +67 -208
- polyaxon_sdk/models/v1_list_agents_response.py +67 -208
- polyaxon_sdk/models/v1_list_bookmarks_response.py +59 -208
- polyaxon_sdk/models/v1_list_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_dashboards_response.py +67 -208
- polyaxon_sdk/models/v1_list_organization_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_organizations_response.py +67 -208
- polyaxon_sdk/models/v1_list_policies_response.py +85 -0
- polyaxon_sdk/models/v1_list_presets_response.py +67 -208
- polyaxon_sdk/models/v1_list_project_versions_response.py +67 -208
- polyaxon_sdk/models/v1_list_projects_response.py +67 -208
- polyaxon_sdk/models/v1_list_queues_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_artifacts_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_connections_response.py +67 -208
- polyaxon_sdk/models/v1_list_run_edges_response.py +67 -208
- polyaxon_sdk/models/v1_list_runs_response.py +67 -208
- polyaxon_sdk/models/v1_list_searches_response.py +67 -208
- polyaxon_sdk/models/v1_list_service_accounts_response.py +67 -208
- polyaxon_sdk/models/v1_list_tags_response.py +67 -208
- polyaxon_sdk/models/v1_list_team_members_response.py +67 -208
- polyaxon_sdk/models/v1_list_teams_response.py +67 -208
- polyaxon_sdk/models/v1_list_token_response.py +67 -208
- polyaxon_sdk/models/v1_log.py +62 -235
- polyaxon_sdk/models/v1_log_handler.py +55 -156
- polyaxon_sdk/models/v1_logs.py +68 -209
- polyaxon_sdk/models/v1_managed_by.py +36 -0
- polyaxon_sdk/models/v1_mapping.py +59 -208
- polyaxon_sdk/models/v1_matrix.py +93 -286
- polyaxon_sdk/models/v1_matrix_kind.py +17 -110
- polyaxon_sdk/models/v1_median_stopping_policy.py +59 -210
- polyaxon_sdk/models/v1_metric_early_stopping.py +62 -238
- polyaxon_sdk/models/v1_mpi_job.py +75 -312
- polyaxon_sdk/models/v1_multi_events_response.py +71 -0
- polyaxon_sdk/models/v1_mx_job.py +96 -364
- polyaxon_sdk/models/v1_notification.py +56 -156
- polyaxon_sdk/models/v1_operation.py +178 -939
- polyaxon_sdk/models/v1_operation_body.py +69 -286
- polyaxon_sdk/models/v1_optimization.py +12 -105
- polyaxon_sdk/models/v1_optimization_metric.py +56 -156
- polyaxon_sdk/models/v1_optimization_resource.py +56 -156
- polyaxon_sdk/models/v1_organization.py +84 -495
- polyaxon_sdk/models/v1_organization_member.py +64 -261
- polyaxon_sdk/models/v1_paddle_elastic_polic.py +77 -0
- polyaxon_sdk/models/v1_paddle_job.py +97 -0
- polyaxon_sdk/models/v1_param.py +63 -260
- polyaxon_sdk/models/v1_password_change.py +57 -182
- polyaxon_sdk/models/v1_patch_strategy.py +14 -107
- polyaxon_sdk/models/v1_path_ref.py +55 -156
- polyaxon_sdk/models/v1_pipeline.py +58 -182
- polyaxon_sdk/models/v1_pipeline_kind.py +12 -105
- polyaxon_sdk/models/v1_plugins.py +89 -442
- polyaxon_sdk/models/v1_policy.py +119 -0
- polyaxon_sdk/models/v1_polyaxon_init_container.py +59 -208
- polyaxon_sdk/models/v1_polyaxon_sidecar_container.py +67 -286
- polyaxon_sdk/models/v1_preset.py +70 -339
- polyaxon_sdk/models/v1_project.py +90 -495
- polyaxon_sdk/models/v1_project_settings.py +81 -338
- polyaxon_sdk/models/v1_project_version.py +102 -601
- polyaxon_sdk/models/v1_project_version_kind.py +13 -106
- polyaxon_sdk/models/v1_pytorch_elastic_policy.py +91 -0
- polyaxon_sdk/models/v1_pytorch_job.py +81 -234
- polyaxon_sdk/models/v1_queue.py +76 -417
- polyaxon_sdk/models/v1_random_search.py +63 -260
- polyaxon_sdk/models/v1_ray_job.py +94 -0
- polyaxon_sdk/models/v1_ray_replica.py +103 -0
- polyaxon_sdk/models/v1_reference.py +75 -208
- polyaxon_sdk/models/v1_resource_type.py +12 -105
- polyaxon_sdk/models/v1_run.py +158 -1043
- polyaxon_sdk/models/v1_run_artifact.py +70 -338
- polyaxon_sdk/models/v1_run_artifacts.py +62 -131
- polyaxon_sdk/models/v1_run_connection.py +57 -182
- polyaxon_sdk/models/v1_run_edge.py +70 -234
- polyaxon_sdk/models/v1_run_edge_kind.py +19 -111
- polyaxon_sdk/models/v1_run_edge_lineage.py +75 -0
- polyaxon_sdk/models/v1_run_edges_graph.py +79 -0
- polyaxon_sdk/models/v1_run_kind.py +28 -122
- polyaxon_sdk/models/v1_run_pending.py +14 -107
- polyaxon_sdk/models/v1_run_reference_catalog.py +59 -182
- polyaxon_sdk/models/v1_run_resources.py +61 -234
- polyaxon_sdk/models/v1_run_schema.py +120 -419
- polyaxon_sdk/models/v1_run_settings.py +94 -338
- polyaxon_sdk/models/v1_s3_type.py +55 -156
- polyaxon_sdk/models/v1_schedule.py +69 -182
- polyaxon_sdk/models/v1_schedule_kind.py +13 -106
- polyaxon_sdk/models/v1_scheduling_policy.py +61 -182
- polyaxon_sdk/models/v1_schemas.py +192 -731
- polyaxon_sdk/models/v1_search.py +77 -365
- polyaxon_sdk/models/v1_search_spec.py +87 -468
- polyaxon_sdk/models/v1_section_spec.py +75 -286
- polyaxon_sdk/models/v1_service.py +85 -396
- polyaxon_sdk/models/v1_service_account.py +70 -339
- polyaxon_sdk/models/v1_settings_catalog.py +57 -156
- polyaxon_sdk/models/v1_stage.py +66 -182
- polyaxon_sdk/models/v1_stage_condition.py +67 -261
- polyaxon_sdk/models/v1_stages.py +14 -107
- polyaxon_sdk/models/v1_status.py +68 -208
- polyaxon_sdk/models/v1_status_condition.py +67 -261
- polyaxon_sdk/models/v1_statuses.py +30 -123
- polyaxon_sdk/models/v1_tag.py +63 -260
- polyaxon_sdk/models/v1_team.py +72 -313
- polyaxon_sdk/models/v1_team_member.py +64 -261
- polyaxon_sdk/models/v1_team_settings.py +79 -182
- polyaxon_sdk/models/v1_template.py +57 -182
- polyaxon_sdk/models/v1_tensorboard_type.py +61 -234
- polyaxon_sdk/models/v1_termination.py +57 -182
- polyaxon_sdk/models/v1_tf_job.py +87 -286
- polyaxon_sdk/models/v1_token.py +72 -365
- polyaxon_sdk/models/v1_trial_start.py +63 -260
- polyaxon_sdk/models/v1_trigger_policy.py +16 -109
- polyaxon_sdk/models/v1_truncation_stopping_policy.py +63 -264
- polyaxon_sdk/models/v1_tuner.py +69 -208
- polyaxon_sdk/models/v1_uri_type.py +57 -182
- polyaxon_sdk/models/v1_url_ref.py +55 -156
- polyaxon_sdk/models/v1_user.py +63 -260
- polyaxon_sdk/models/v1_user_access.py +77 -0
- polyaxon_sdk/models/v1_user_email.py +54 -131
- polyaxon_sdk/models/v1_user_singup.py +61 -234
- polyaxon_sdk/models/v1_uuids.py +54 -131
- polyaxon_sdk/models/v1_validation.py +109 -0
- polyaxon_sdk/models/v1_version.py +55 -156
- polyaxon_sdk/models/v1_wasb_type.py +57 -182
- polyaxon_sdk/models/v1_xg_boost_job.py +73 -234
- polyaxon_sdk/rest.py +23 -41
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/METADATA +6 -4
- polyaxon_sdk-2.1.6.dist-info/RECORD +264 -0
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/WHEEL +1 -1
- polyaxon_sdk/models/mpi_job_implementation.py +0 -128
- polyaxon_sdk/models/spark_deploy_mode.py +0 -129
- polyaxon_sdk/models/v1_dask.py +0 -436
- polyaxon_sdk/models/v1_flink.py +0 -174
- polyaxon_sdk/models/v1_k8s_resource_schema.py +0 -226
- polyaxon_sdk/models/v1_k8s_resource_type.py +0 -200
- polyaxon_sdk/models/v1_project_user_access.py +0 -200
- polyaxon_sdk/models/v1_ray.py +0 -174
- polyaxon_sdk/models/v1_spark.py +0 -558
- polyaxon_sdk/models/v1_spark_replica.py +0 -252
- polyaxon_sdk/models/v1_spark_type.py +0 -130
- polyaxon_sdk-1.18.0rc7.dist-info/RECORD +0 -255
- {polyaxon_sdk-1.18.0rc7.dist-info → polyaxon_sdk-2.1.6.dist-info}/top_level.txt +0 -0
polyaxon_sdk/models/v1_spark.py
DELETED
@@ -1,558 +0,0 @@
|
|
1
|
-
#!/usr/bin/python
|
2
|
-
#
|
3
|
-
# Copyright 2018-2022 Polyaxon, Inc.
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# coding: utf-8
|
18
|
-
|
19
|
-
"""
|
20
|
-
Polyaxon SDKs and REST API specification.
|
21
|
-
|
22
|
-
Polyaxon SDKs and REST API specification. # noqa: E501
|
23
|
-
|
24
|
-
The version of the OpenAPI document: 1.18.0
|
25
|
-
Contact: contact@polyaxon.com
|
26
|
-
Generated by: https://openapi-generator.tech
|
27
|
-
"""
|
28
|
-
|
29
|
-
|
30
|
-
try:
|
31
|
-
from inspect import getfullargspec
|
32
|
-
except ImportError:
|
33
|
-
from inspect import getargspec as getfullargspec
|
34
|
-
import pprint
|
35
|
-
import re # noqa: F401
|
36
|
-
import six
|
37
|
-
|
38
|
-
from polyaxon_sdk.configuration import Configuration
|
39
|
-
|
40
|
-
|
41
|
-
class V1Spark(object):
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
|
-
|
45
|
-
Do not edit the class manually.
|
46
|
-
"""
|
47
|
-
|
48
|
-
"""
|
49
|
-
Attributes:
|
50
|
-
openapi_types (dict): The key is attribute name
|
51
|
-
and the value is attribute type.
|
52
|
-
attribute_map (dict): The key is attribute name
|
53
|
-
and the value is json key in definition.
|
54
|
-
"""
|
55
|
-
openapi_types = {
|
56
|
-
'kind': 'str',
|
57
|
-
'connections': 'list[str]',
|
58
|
-
'volumes': 'list[V1Volume]',
|
59
|
-
'type': 'V1SparkType',
|
60
|
-
'spark_version': 'str',
|
61
|
-
'python_version': 'str',
|
62
|
-
'deploy_mode': 'SparkDeployMode',
|
63
|
-
'main_class': 'str',
|
64
|
-
'main_application_file': 'str',
|
65
|
-
'arguments': 'list[str]',
|
66
|
-
'hadoop_conf': 'dict(str, str)',
|
67
|
-
'spark_conf': 'dict(str, str)',
|
68
|
-
'spark_config_map': 'str',
|
69
|
-
'hadoop_config_map': 'str',
|
70
|
-
'executor': 'V1SparkReplica',
|
71
|
-
'driver': 'V1SparkReplica'
|
72
|
-
}
|
73
|
-
|
74
|
-
attribute_map = {
|
75
|
-
'kind': 'kind',
|
76
|
-
'connections': 'connections',
|
77
|
-
'volumes': 'volumes',
|
78
|
-
'type': 'type',
|
79
|
-
'spark_version': 'sparkVersion',
|
80
|
-
'python_version': 'pythonVersion',
|
81
|
-
'deploy_mode': 'deployMode',
|
82
|
-
'main_class': 'mainClass',
|
83
|
-
'main_application_file': 'mainApplicationFile',
|
84
|
-
'arguments': 'arguments',
|
85
|
-
'hadoop_conf': 'hadoopConf',
|
86
|
-
'spark_conf': 'sparkConf',
|
87
|
-
'spark_config_map': 'sparkConfigMap',
|
88
|
-
'hadoop_config_map': 'hadoopConfigMap',
|
89
|
-
'executor': 'executor',
|
90
|
-
'driver': 'driver'
|
91
|
-
}
|
92
|
-
|
93
|
-
def __init__(self, kind='spark', connections=None, volumes=None, type=None, spark_version=None, python_version=None, deploy_mode=None, main_class=None, main_application_file=None, arguments=None, hadoop_conf=None, spark_conf=None, spark_config_map=None, hadoop_config_map=None, executor=None, driver=None, local_vars_configuration=None): # noqa: E501
|
94
|
-
"""V1Spark - a model defined in OpenAPI""" # noqa: E501
|
95
|
-
if local_vars_configuration is None:
|
96
|
-
local_vars_configuration = Configuration.get_default_copy()
|
97
|
-
self.local_vars_configuration = local_vars_configuration
|
98
|
-
|
99
|
-
self._kind = None
|
100
|
-
self._connections = None
|
101
|
-
self._volumes = None
|
102
|
-
self._type = None
|
103
|
-
self._spark_version = None
|
104
|
-
self._python_version = None
|
105
|
-
self._deploy_mode = None
|
106
|
-
self._main_class = None
|
107
|
-
self._main_application_file = None
|
108
|
-
self._arguments = None
|
109
|
-
self._hadoop_conf = None
|
110
|
-
self._spark_conf = None
|
111
|
-
self._spark_config_map = None
|
112
|
-
self._hadoop_config_map = None
|
113
|
-
self._executor = None
|
114
|
-
self._driver = None
|
115
|
-
self.discriminator = None
|
116
|
-
|
117
|
-
if kind is not None:
|
118
|
-
self.kind = kind
|
119
|
-
if connections is not None:
|
120
|
-
self.connections = connections
|
121
|
-
if volumes is not None:
|
122
|
-
self.volumes = volumes
|
123
|
-
if type is not None:
|
124
|
-
self.type = type
|
125
|
-
if spark_version is not None:
|
126
|
-
self.spark_version = spark_version
|
127
|
-
if python_version is not None:
|
128
|
-
self.python_version = python_version
|
129
|
-
if deploy_mode is not None:
|
130
|
-
self.deploy_mode = deploy_mode
|
131
|
-
if main_class is not None:
|
132
|
-
self.main_class = main_class
|
133
|
-
if main_application_file is not None:
|
134
|
-
self.main_application_file = main_application_file
|
135
|
-
if arguments is not None:
|
136
|
-
self.arguments = arguments
|
137
|
-
if hadoop_conf is not None:
|
138
|
-
self.hadoop_conf = hadoop_conf
|
139
|
-
if spark_conf is not None:
|
140
|
-
self.spark_conf = spark_conf
|
141
|
-
if spark_config_map is not None:
|
142
|
-
self.spark_config_map = spark_config_map
|
143
|
-
if hadoop_config_map is not None:
|
144
|
-
self.hadoop_config_map = hadoop_config_map
|
145
|
-
if executor is not None:
|
146
|
-
self.executor = executor
|
147
|
-
if driver is not None:
|
148
|
-
self.driver = driver
|
149
|
-
|
150
|
-
@property
|
151
|
-
def kind(self):
|
152
|
-
"""Gets the kind of this V1Spark. # noqa: E501
|
153
|
-
|
154
|
-
|
155
|
-
:return: The kind of this V1Spark. # noqa: E501
|
156
|
-
:rtype: str
|
157
|
-
"""
|
158
|
-
return self._kind
|
159
|
-
|
160
|
-
@kind.setter
|
161
|
-
def kind(self, kind):
|
162
|
-
"""Sets the kind of this V1Spark.
|
163
|
-
|
164
|
-
|
165
|
-
:param kind: The kind of this V1Spark. # noqa: E501
|
166
|
-
:type kind: str
|
167
|
-
"""
|
168
|
-
|
169
|
-
self._kind = kind
|
170
|
-
|
171
|
-
@property
|
172
|
-
def connections(self):
|
173
|
-
"""Gets the connections of this V1Spark. # noqa: E501
|
174
|
-
|
175
|
-
|
176
|
-
:return: The connections of this V1Spark. # noqa: E501
|
177
|
-
:rtype: list[str]
|
178
|
-
"""
|
179
|
-
return self._connections
|
180
|
-
|
181
|
-
@connections.setter
|
182
|
-
def connections(self, connections):
|
183
|
-
"""Sets the connections of this V1Spark.
|
184
|
-
|
185
|
-
|
186
|
-
:param connections: The connections of this V1Spark. # noqa: E501
|
187
|
-
:type connections: list[str]
|
188
|
-
"""
|
189
|
-
|
190
|
-
self._connections = connections
|
191
|
-
|
192
|
-
@property
|
193
|
-
def volumes(self):
|
194
|
-
"""Gets the volumes of this V1Spark. # noqa: E501
|
195
|
-
|
196
|
-
Volumes is a list of volumes that can be mounted. # noqa: E501
|
197
|
-
|
198
|
-
:return: The volumes of this V1Spark. # noqa: E501
|
199
|
-
:rtype: list[V1Volume]
|
200
|
-
"""
|
201
|
-
return self._volumes
|
202
|
-
|
203
|
-
@volumes.setter
|
204
|
-
def volumes(self, volumes):
|
205
|
-
"""Sets the volumes of this V1Spark.
|
206
|
-
|
207
|
-
Volumes is a list of volumes that can be mounted. # noqa: E501
|
208
|
-
|
209
|
-
:param volumes: The volumes of this V1Spark. # noqa: E501
|
210
|
-
:type volumes: list[V1Volume]
|
211
|
-
"""
|
212
|
-
|
213
|
-
self._volumes = volumes
|
214
|
-
|
215
|
-
@property
|
216
|
-
def type(self):
|
217
|
-
"""Gets the type of this V1Spark. # noqa: E501
|
218
|
-
|
219
|
-
|
220
|
-
:return: The type of this V1Spark. # noqa: E501
|
221
|
-
:rtype: V1SparkType
|
222
|
-
"""
|
223
|
-
return self._type
|
224
|
-
|
225
|
-
@type.setter
|
226
|
-
def type(self, type):
|
227
|
-
"""Sets the type of this V1Spark.
|
228
|
-
|
229
|
-
|
230
|
-
:param type: The type of this V1Spark. # noqa: E501
|
231
|
-
:type type: V1SparkType
|
232
|
-
"""
|
233
|
-
|
234
|
-
self._type = type
|
235
|
-
|
236
|
-
@property
|
237
|
-
def spark_version(self):
|
238
|
-
"""Gets the spark_version of this V1Spark. # noqa: E501
|
239
|
-
|
240
|
-
Spark version is the version of Spark the application uses. # noqa: E501
|
241
|
-
|
242
|
-
:return: The spark_version of this V1Spark. # noqa: E501
|
243
|
-
:rtype: str
|
244
|
-
"""
|
245
|
-
return self._spark_version
|
246
|
-
|
247
|
-
@spark_version.setter
|
248
|
-
def spark_version(self, spark_version):
|
249
|
-
"""Sets the spark_version of this V1Spark.
|
250
|
-
|
251
|
-
Spark version is the version of Spark the application uses. # noqa: E501
|
252
|
-
|
253
|
-
:param spark_version: The spark_version of this V1Spark. # noqa: E501
|
254
|
-
:type spark_version: str
|
255
|
-
"""
|
256
|
-
|
257
|
-
self._spark_version = spark_version
|
258
|
-
|
259
|
-
@property
|
260
|
-
def python_version(self):
|
261
|
-
"""Gets the python_version of this V1Spark. # noqa: E501
|
262
|
-
|
263
|
-
Spark version is the version of Spark the application uses. # noqa: E501
|
264
|
-
|
265
|
-
:return: The python_version of this V1Spark. # noqa: E501
|
266
|
-
:rtype: str
|
267
|
-
"""
|
268
|
-
return self._python_version
|
269
|
-
|
270
|
-
@python_version.setter
|
271
|
-
def python_version(self, python_version):
|
272
|
-
"""Sets the python_version of this V1Spark.
|
273
|
-
|
274
|
-
Spark version is the version of Spark the application uses. # noqa: E501
|
275
|
-
|
276
|
-
:param python_version: The python_version of this V1Spark. # noqa: E501
|
277
|
-
:type python_version: str
|
278
|
-
"""
|
279
|
-
|
280
|
-
self._python_version = python_version
|
281
|
-
|
282
|
-
@property
|
283
|
-
def deploy_mode(self):
|
284
|
-
"""Gets the deploy_mode of this V1Spark. # noqa: E501
|
285
|
-
|
286
|
-
|
287
|
-
:return: The deploy_mode of this V1Spark. # noqa: E501
|
288
|
-
:rtype: SparkDeployMode
|
289
|
-
"""
|
290
|
-
return self._deploy_mode
|
291
|
-
|
292
|
-
@deploy_mode.setter
|
293
|
-
def deploy_mode(self, deploy_mode):
|
294
|
-
"""Sets the deploy_mode of this V1Spark.
|
295
|
-
|
296
|
-
|
297
|
-
:param deploy_mode: The deploy_mode of this V1Spark. # noqa: E501
|
298
|
-
:type deploy_mode: SparkDeployMode
|
299
|
-
"""
|
300
|
-
|
301
|
-
self._deploy_mode = deploy_mode
|
302
|
-
|
303
|
-
@property
|
304
|
-
def main_class(self):
|
305
|
-
"""Gets the main_class of this V1Spark. # noqa: E501
|
306
|
-
|
307
|
-
MainClass is the fully-qualified main class of the Spark application. This only applies to Java/Scala Spark applications. # noqa: E501
|
308
|
-
|
309
|
-
:return: The main_class of this V1Spark. # noqa: E501
|
310
|
-
:rtype: str
|
311
|
-
"""
|
312
|
-
return self._main_class
|
313
|
-
|
314
|
-
@main_class.setter
|
315
|
-
def main_class(self, main_class):
|
316
|
-
"""Sets the main_class of this V1Spark.
|
317
|
-
|
318
|
-
MainClass is the fully-qualified main class of the Spark application. This only applies to Java/Scala Spark applications. # noqa: E501
|
319
|
-
|
320
|
-
:param main_class: The main_class of this V1Spark. # noqa: E501
|
321
|
-
:type main_class: str
|
322
|
-
"""
|
323
|
-
|
324
|
-
self._main_class = main_class
|
325
|
-
|
326
|
-
@property
|
327
|
-
def main_application_file(self):
|
328
|
-
"""Gets the main_application_file of this V1Spark. # noqa: E501
|
329
|
-
|
330
|
-
MainFile is the path to a bundled JAR, Python, or R file of the application. # noqa: E501
|
331
|
-
|
332
|
-
:return: The main_application_file of this V1Spark. # noqa: E501
|
333
|
-
:rtype: str
|
334
|
-
"""
|
335
|
-
return self._main_application_file
|
336
|
-
|
337
|
-
@main_application_file.setter
|
338
|
-
def main_application_file(self, main_application_file):
|
339
|
-
"""Sets the main_application_file of this V1Spark.
|
340
|
-
|
341
|
-
MainFile is the path to a bundled JAR, Python, or R file of the application. # noqa: E501
|
342
|
-
|
343
|
-
:param main_application_file: The main_application_file of this V1Spark. # noqa: E501
|
344
|
-
:type main_application_file: str
|
345
|
-
"""
|
346
|
-
|
347
|
-
self._main_application_file = main_application_file
|
348
|
-
|
349
|
-
@property
|
350
|
-
def arguments(self):
|
351
|
-
"""Gets the arguments of this V1Spark. # noqa: E501
|
352
|
-
|
353
|
-
Arguments is a list of arguments to be passed to the application. # noqa: E501
|
354
|
-
|
355
|
-
:return: The arguments of this V1Spark. # noqa: E501
|
356
|
-
:rtype: list[str]
|
357
|
-
"""
|
358
|
-
return self._arguments
|
359
|
-
|
360
|
-
@arguments.setter
|
361
|
-
def arguments(self, arguments):
|
362
|
-
"""Sets the arguments of this V1Spark.
|
363
|
-
|
364
|
-
Arguments is a list of arguments to be passed to the application. # noqa: E501
|
365
|
-
|
366
|
-
:param arguments: The arguments of this V1Spark. # noqa: E501
|
367
|
-
:type arguments: list[str]
|
368
|
-
"""
|
369
|
-
|
370
|
-
self._arguments = arguments
|
371
|
-
|
372
|
-
@property
|
373
|
-
def hadoop_conf(self):
|
374
|
-
"""Gets the hadoop_conf of this V1Spark. # noqa: E501
|
375
|
-
|
376
|
-
HadoopConf carries user-specified Hadoop configuration properties as they would use the the \"--conf\" option in spark-submit. The SparkApplication controller automatically adds prefix \"spark.hadoop.\" to Hadoop configuration properties. # noqa: E501
|
377
|
-
|
378
|
-
:return: The hadoop_conf of this V1Spark. # noqa: E501
|
379
|
-
:rtype: dict(str, str)
|
380
|
-
"""
|
381
|
-
return self._hadoop_conf
|
382
|
-
|
383
|
-
@hadoop_conf.setter
|
384
|
-
def hadoop_conf(self, hadoop_conf):
|
385
|
-
"""Sets the hadoop_conf of this V1Spark.
|
386
|
-
|
387
|
-
HadoopConf carries user-specified Hadoop configuration properties as they would use the the \"--conf\" option in spark-submit. The SparkApplication controller automatically adds prefix \"spark.hadoop.\" to Hadoop configuration properties. # noqa: E501
|
388
|
-
|
389
|
-
:param hadoop_conf: The hadoop_conf of this V1Spark. # noqa: E501
|
390
|
-
:type hadoop_conf: dict(str, str)
|
391
|
-
"""
|
392
|
-
|
393
|
-
self._hadoop_conf = hadoop_conf
|
394
|
-
|
395
|
-
@property
|
396
|
-
def spark_conf(self):
|
397
|
-
"""Gets the spark_conf of this V1Spark. # noqa: E501
|
398
|
-
|
399
|
-
HadoopConf carries user-specified Hadoop configuration properties as they would use the the \"--conf\" option in spark-submit. The SparkApplication controller automatically adds prefix \"spark.hadoop.\" to Hadoop configuration properties. # noqa: E501
|
400
|
-
|
401
|
-
:return: The spark_conf of this V1Spark. # noqa: E501
|
402
|
-
:rtype: dict(str, str)
|
403
|
-
"""
|
404
|
-
return self._spark_conf
|
405
|
-
|
406
|
-
@spark_conf.setter
|
407
|
-
def spark_conf(self, spark_conf):
|
408
|
-
"""Sets the spark_conf of this V1Spark.
|
409
|
-
|
410
|
-
HadoopConf carries user-specified Hadoop configuration properties as they would use the the \"--conf\" option in spark-submit. The SparkApplication controller automatically adds prefix \"spark.hadoop.\" to Hadoop configuration properties. # noqa: E501
|
411
|
-
|
412
|
-
:param spark_conf: The spark_conf of this V1Spark. # noqa: E501
|
413
|
-
:type spark_conf: dict(str, str)
|
414
|
-
"""
|
415
|
-
|
416
|
-
self._spark_conf = spark_conf
|
417
|
-
|
418
|
-
@property
|
419
|
-
def spark_config_map(self):
|
420
|
-
"""Gets the spark_config_map of this V1Spark. # noqa: E501
|
421
|
-
|
422
|
-
SparkConfigMap carries the name of the ConfigMap containing Spark configuration files such as log4j.properties. The controller will add environment variable SPARK_CONF_DIR to the path where the ConfigMap is mounted to. # noqa: E501
|
423
|
-
|
424
|
-
:return: The spark_config_map of this V1Spark. # noqa: E501
|
425
|
-
:rtype: str
|
426
|
-
"""
|
427
|
-
return self._spark_config_map
|
428
|
-
|
429
|
-
@spark_config_map.setter
|
430
|
-
def spark_config_map(self, spark_config_map):
|
431
|
-
"""Sets the spark_config_map of this V1Spark.
|
432
|
-
|
433
|
-
SparkConfigMap carries the name of the ConfigMap containing Spark configuration files such as log4j.properties. The controller will add environment variable SPARK_CONF_DIR to the path where the ConfigMap is mounted to. # noqa: E501
|
434
|
-
|
435
|
-
:param spark_config_map: The spark_config_map of this V1Spark. # noqa: E501
|
436
|
-
:type spark_config_map: str
|
437
|
-
"""
|
438
|
-
|
439
|
-
self._spark_config_map = spark_config_map
|
440
|
-
|
441
|
-
@property
|
442
|
-
def hadoop_config_map(self):
|
443
|
-
"""Gets the hadoop_config_map of this V1Spark. # noqa: E501
|
444
|
-
|
445
|
-
HadoopConfigMap carries the name of the ConfigMap containing Hadoop configuration files such as core-site.xml. The controller will add environment variable HADOOP_CONF_DIR to the path where the ConfigMap is mounted to. # noqa: E501
|
446
|
-
|
447
|
-
:return: The hadoop_config_map of this V1Spark. # noqa: E501
|
448
|
-
:rtype: str
|
449
|
-
"""
|
450
|
-
return self._hadoop_config_map
|
451
|
-
|
452
|
-
@hadoop_config_map.setter
|
453
|
-
def hadoop_config_map(self, hadoop_config_map):
|
454
|
-
"""Sets the hadoop_config_map of this V1Spark.
|
455
|
-
|
456
|
-
HadoopConfigMap carries the name of the ConfigMap containing Hadoop configuration files such as core-site.xml. The controller will add environment variable HADOOP_CONF_DIR to the path where the ConfigMap is mounted to. # noqa: E501
|
457
|
-
|
458
|
-
:param hadoop_config_map: The hadoop_config_map of this V1Spark. # noqa: E501
|
459
|
-
:type hadoop_config_map: str
|
460
|
-
"""
|
461
|
-
|
462
|
-
self._hadoop_config_map = hadoop_config_map
|
463
|
-
|
464
|
-
@property
|
465
|
-
def executor(self):
|
466
|
-
"""Gets the executor of this V1Spark. # noqa: E501
|
467
|
-
|
468
|
-
|
469
|
-
:return: The executor of this V1Spark. # noqa: E501
|
470
|
-
:rtype: V1SparkReplica
|
471
|
-
"""
|
472
|
-
return self._executor
|
473
|
-
|
474
|
-
@executor.setter
|
475
|
-
def executor(self, executor):
|
476
|
-
"""Sets the executor of this V1Spark.
|
477
|
-
|
478
|
-
|
479
|
-
:param executor: The executor of this V1Spark. # noqa: E501
|
480
|
-
:type executor: V1SparkReplica
|
481
|
-
"""
|
482
|
-
|
483
|
-
self._executor = executor
|
484
|
-
|
485
|
-
@property
|
486
|
-
def driver(self):
|
487
|
-
"""Gets the driver of this V1Spark. # noqa: E501
|
488
|
-
|
489
|
-
|
490
|
-
:return: The driver of this V1Spark. # noqa: E501
|
491
|
-
:rtype: V1SparkReplica
|
492
|
-
"""
|
493
|
-
return self._driver
|
494
|
-
|
495
|
-
@driver.setter
|
496
|
-
def driver(self, driver):
|
497
|
-
"""Sets the driver of this V1Spark.
|
498
|
-
|
499
|
-
|
500
|
-
:param driver: The driver of this V1Spark. # noqa: E501
|
501
|
-
:type driver: V1SparkReplica
|
502
|
-
"""
|
503
|
-
|
504
|
-
self._driver = driver
|
505
|
-
|
506
|
-
def to_dict(self, serialize=False):
|
507
|
-
"""Returns the model properties as a dict"""
|
508
|
-
result = {}
|
509
|
-
|
510
|
-
def convert(x):
|
511
|
-
if hasattr(x, "to_dict"):
|
512
|
-
args = getfullargspec(x.to_dict).args
|
513
|
-
if len(args) == 1:
|
514
|
-
return x.to_dict()
|
515
|
-
else:
|
516
|
-
return x.to_dict(serialize)
|
517
|
-
else:
|
518
|
-
return x
|
519
|
-
|
520
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
521
|
-
value = getattr(self, attr)
|
522
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
523
|
-
if isinstance(value, list):
|
524
|
-
result[attr] = list(map(
|
525
|
-
lambda x: convert(x),
|
526
|
-
value
|
527
|
-
))
|
528
|
-
elif isinstance(value, dict):
|
529
|
-
result[attr] = dict(map(
|
530
|
-
lambda item: (item[0], convert(item[1])),
|
531
|
-
value.items()
|
532
|
-
))
|
533
|
-
else:
|
534
|
-
result[attr] = convert(value)
|
535
|
-
|
536
|
-
return result
|
537
|
-
|
538
|
-
def to_str(self):
|
539
|
-
"""Returns the string representation of the model"""
|
540
|
-
return pprint.pformat(self.to_dict())
|
541
|
-
|
542
|
-
def __repr__(self):
|
543
|
-
"""For `print` and `pprint`"""
|
544
|
-
return self.to_str()
|
545
|
-
|
546
|
-
def __eq__(self, other):
|
547
|
-
"""Returns true if both objects are equal"""
|
548
|
-
if not isinstance(other, V1Spark):
|
549
|
-
return False
|
550
|
-
|
551
|
-
return self.to_dict() == other.to_dict()
|
552
|
-
|
553
|
-
def __ne__(self, other):
|
554
|
-
"""Returns true if both objects are not equal"""
|
555
|
-
if not isinstance(other, V1Spark):
|
556
|
-
return True
|
557
|
-
|
558
|
-
return self.to_dict() != other.to_dict()
|