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
@@ -1,606 +1,105 @@
|
|
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
1
|
# coding: utf-8
|
18
2
|
|
19
3
|
"""
|
20
4
|
Polyaxon SDKs and REST API specification.
|
21
5
|
|
22
|
-
|
6
|
+
# noqa: E501
|
23
7
|
|
24
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 2.1.6
|
25
9
|
Contact: contact@polyaxon.com
|
26
|
-
Generated by
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
27
13
|
"""
|
28
14
|
|
29
15
|
|
30
|
-
|
31
|
-
|
32
|
-
except ImportError:
|
33
|
-
from inspect import getargspec as getfullargspec
|
16
|
+
from __future__ import annotations
|
17
|
+
from inspect import getfullargspec
|
34
18
|
import pprint
|
35
19
|
import re # noqa: F401
|
36
|
-
import
|
37
|
-
|
38
|
-
from polyaxon_sdk.configuration import Configuration
|
39
|
-
|
20
|
+
import json
|
40
21
|
|
41
|
-
class V1Environment(object):
|
42
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
43
|
-
Ref: https://openapi-generator.tech
|
44
22
|
|
45
|
-
|
46
|
-
|
23
|
+
from typing import Any, Dict, List, Optional
|
24
|
+
from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist
|
47
25
|
|
26
|
+
class V1Environment(BaseModel):
|
48
27
|
"""
|
49
|
-
|
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.
|
28
|
+
V1Environment
|
54
29
|
"""
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
self.affinity = affinity
|
131
|
-
if tolerations is not None:
|
132
|
-
self.tolerations = tolerations
|
133
|
-
if node_name is not None:
|
134
|
-
self.node_name = node_name
|
135
|
-
if service_account_name is not None:
|
136
|
-
self.service_account_name = service_account_name
|
137
|
-
if host_aliases is not None:
|
138
|
-
self.host_aliases = host_aliases
|
139
|
-
if security_context is not None:
|
140
|
-
self.security_context = security_context
|
141
|
-
if image_pull_secrets is not None:
|
142
|
-
self.image_pull_secrets = image_pull_secrets
|
143
|
-
if host_network is not None:
|
144
|
-
self.host_network = host_network
|
145
|
-
if host_pid is not None:
|
146
|
-
self.host_pid = host_pid
|
147
|
-
if dns_policy is not None:
|
148
|
-
self.dns_policy = dns_policy
|
149
|
-
if dns_config is not None:
|
150
|
-
self.dns_config = dns_config
|
151
|
-
if scheduler_name is not None:
|
152
|
-
self.scheduler_name = scheduler_name
|
153
|
-
if priority_class_name is not None:
|
154
|
-
self.priority_class_name = priority_class_name
|
155
|
-
if priority is not None:
|
156
|
-
self.priority = priority
|
157
|
-
if restart_policy is not None:
|
158
|
-
self.restart_policy = restart_policy
|
159
|
-
|
160
|
-
@property
|
161
|
-
def labels(self):
|
162
|
-
"""Gets the labels of this V1Environment. # noqa: E501
|
163
|
-
|
164
|
-
|
165
|
-
:return: The labels of this V1Environment. # noqa: E501
|
166
|
-
:rtype: dict(str, str)
|
167
|
-
"""
|
168
|
-
return self._labels
|
169
|
-
|
170
|
-
@labels.setter
|
171
|
-
def labels(self, labels):
|
172
|
-
"""Sets the labels of this V1Environment.
|
173
|
-
|
174
|
-
|
175
|
-
:param labels: The labels of this V1Environment. # noqa: E501
|
176
|
-
:type labels: dict(str, str)
|
177
|
-
"""
|
178
|
-
|
179
|
-
self._labels = labels
|
180
|
-
|
181
|
-
@property
|
182
|
-
def annotations(self):
|
183
|
-
"""Gets the annotations of this V1Environment. # noqa: E501
|
184
|
-
|
185
|
-
|
186
|
-
:return: The annotations of this V1Environment. # noqa: E501
|
187
|
-
:rtype: dict(str, str)
|
188
|
-
"""
|
189
|
-
return self._annotations
|
190
|
-
|
191
|
-
@annotations.setter
|
192
|
-
def annotations(self, annotations):
|
193
|
-
"""Sets the annotations of this V1Environment.
|
194
|
-
|
195
|
-
|
196
|
-
:param annotations: The annotations of this V1Environment. # noqa: E501
|
197
|
-
:type annotations: dict(str, str)
|
198
|
-
"""
|
199
|
-
|
200
|
-
self._annotations = annotations
|
201
|
-
|
202
|
-
@property
|
203
|
-
def node_selector(self):
|
204
|
-
"""Gets the node_selector of this V1Environment. # noqa: E501
|
205
|
-
|
206
|
-
|
207
|
-
:return: The node_selector of this V1Environment. # noqa: E501
|
208
|
-
:rtype: dict(str, str)
|
209
|
-
"""
|
210
|
-
return self._node_selector
|
211
|
-
|
212
|
-
@node_selector.setter
|
213
|
-
def node_selector(self, node_selector):
|
214
|
-
"""Sets the node_selector of this V1Environment.
|
215
|
-
|
216
|
-
|
217
|
-
:param node_selector: The node_selector of this V1Environment. # noqa: E501
|
218
|
-
:type node_selector: dict(str, str)
|
219
|
-
"""
|
220
|
-
|
221
|
-
self._node_selector = node_selector
|
222
|
-
|
223
|
-
@property
|
224
|
-
def affinity(self):
|
225
|
-
"""Gets the affinity of this V1Environment. # noqa: E501
|
226
|
-
|
227
|
-
|
228
|
-
:return: The affinity of this V1Environment. # noqa: E501
|
229
|
-
:rtype: V1Affinity
|
230
|
-
"""
|
231
|
-
return self._affinity
|
232
|
-
|
233
|
-
@affinity.setter
|
234
|
-
def affinity(self, affinity):
|
235
|
-
"""Sets the affinity of this V1Environment.
|
236
|
-
|
237
|
-
|
238
|
-
:param affinity: The affinity of this V1Environment. # noqa: E501
|
239
|
-
:type affinity: V1Affinity
|
240
|
-
"""
|
241
|
-
|
242
|
-
self._affinity = affinity
|
243
|
-
|
244
|
-
@property
|
245
|
-
def tolerations(self):
|
246
|
-
"""Gets the tolerations of this V1Environment. # noqa: E501
|
247
|
-
|
248
|
-
Optional Tolerations to apply. # noqa: E501
|
249
|
-
|
250
|
-
:return: The tolerations of this V1Environment. # noqa: E501
|
251
|
-
:rtype: list[V1Toleration]
|
252
|
-
"""
|
253
|
-
return self._tolerations
|
254
|
-
|
255
|
-
@tolerations.setter
|
256
|
-
def tolerations(self, tolerations):
|
257
|
-
"""Sets the tolerations of this V1Environment.
|
258
|
-
|
259
|
-
Optional Tolerations to apply. # noqa: E501
|
260
|
-
|
261
|
-
:param tolerations: The tolerations of this V1Environment. # noqa: E501
|
262
|
-
:type tolerations: list[V1Toleration]
|
263
|
-
"""
|
264
|
-
|
265
|
-
self._tolerations = tolerations
|
266
|
-
|
267
|
-
@property
|
268
|
-
def node_name(self):
|
269
|
-
"""Gets the node_name of this V1Environment. # noqa: E501
|
270
|
-
|
271
|
-
Optional NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. # noqa: E501
|
272
|
-
|
273
|
-
:return: The node_name of this V1Environment. # noqa: E501
|
274
|
-
:rtype: str
|
275
|
-
"""
|
276
|
-
return self._node_name
|
277
|
-
|
278
|
-
@node_name.setter
|
279
|
-
def node_name(self, node_name):
|
280
|
-
"""Sets the node_name of this V1Environment.
|
281
|
-
|
282
|
-
Optional NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. # noqa: E501
|
283
|
-
|
284
|
-
:param node_name: The node_name of this V1Environment. # noqa: E501
|
285
|
-
:type node_name: str
|
286
|
-
"""
|
287
|
-
|
288
|
-
self._node_name = node_name
|
289
|
-
|
290
|
-
@property
|
291
|
-
def service_account_name(self):
|
292
|
-
"""Gets the service_account_name of this V1Environment. # noqa: E501
|
293
|
-
|
294
|
-
|
295
|
-
:return: The service_account_name of this V1Environment. # noqa: E501
|
296
|
-
:rtype: str
|
297
|
-
"""
|
298
|
-
return self._service_account_name
|
299
|
-
|
300
|
-
@service_account_name.setter
|
301
|
-
def service_account_name(self, service_account_name):
|
302
|
-
"""Sets the service_account_name of this V1Environment.
|
303
|
-
|
304
|
-
|
305
|
-
:param service_account_name: The service_account_name of this V1Environment. # noqa: E501
|
306
|
-
:type service_account_name: str
|
307
|
-
"""
|
308
|
-
|
309
|
-
self._service_account_name = service_account_name
|
310
|
-
|
311
|
-
@property
|
312
|
-
def host_aliases(self):
|
313
|
-
"""Gets the host_aliases of this V1Environment. # noqa: E501
|
314
|
-
|
315
|
-
Optional HostAliases is an optional list of hosts and IPs that will be injected into the pod spec. # noqa: E501
|
316
|
-
|
317
|
-
:return: The host_aliases of this V1Environment. # noqa: E501
|
318
|
-
:rtype: list[V1HostAlias]
|
319
|
-
"""
|
320
|
-
return self._host_aliases
|
321
|
-
|
322
|
-
@host_aliases.setter
|
323
|
-
def host_aliases(self, host_aliases):
|
324
|
-
"""Sets the host_aliases of this V1Environment.
|
325
|
-
|
326
|
-
Optional HostAliases is an optional list of hosts and IPs that will be injected into the pod spec. # noqa: E501
|
327
|
-
|
328
|
-
:param host_aliases: The host_aliases of this V1Environment. # noqa: E501
|
329
|
-
:type host_aliases: list[V1HostAlias]
|
330
|
-
"""
|
331
|
-
|
332
|
-
self._host_aliases = host_aliases
|
333
|
-
|
334
|
-
@property
|
335
|
-
def security_context(self):
|
336
|
-
"""Gets the security_context of this V1Environment. # noqa: E501
|
337
|
-
|
338
|
-
|
339
|
-
:return: The security_context of this V1Environment. # noqa: E501
|
340
|
-
:rtype: V1PodSecurityContext
|
341
|
-
"""
|
342
|
-
return self._security_context
|
343
|
-
|
344
|
-
@security_context.setter
|
345
|
-
def security_context(self, security_context):
|
346
|
-
"""Sets the security_context of this V1Environment.
|
347
|
-
|
348
|
-
|
349
|
-
:param security_context: The security_context of this V1Environment. # noqa: E501
|
350
|
-
:type security_context: V1PodSecurityContext
|
351
|
-
"""
|
352
|
-
|
353
|
-
self._security_context = security_context
|
354
|
-
|
355
|
-
@property
|
356
|
-
def image_pull_secrets(self):
|
357
|
-
"""Gets the image_pull_secrets of this V1Environment. # noqa: E501
|
358
|
-
|
359
|
-
|
360
|
-
:return: The image_pull_secrets of this V1Environment. # noqa: E501
|
361
|
-
:rtype: list[str]
|
362
|
-
"""
|
363
|
-
return self._image_pull_secrets
|
364
|
-
|
365
|
-
@image_pull_secrets.setter
|
366
|
-
def image_pull_secrets(self, image_pull_secrets):
|
367
|
-
"""Sets the image_pull_secrets of this V1Environment.
|
368
|
-
|
369
|
-
|
370
|
-
:param image_pull_secrets: The image_pull_secrets of this V1Environment. # noqa: E501
|
371
|
-
:type image_pull_secrets: list[str]
|
372
|
-
"""
|
373
|
-
|
374
|
-
self._image_pull_secrets = image_pull_secrets
|
375
|
-
|
376
|
-
@property
|
377
|
-
def host_network(self):
|
378
|
-
"""Gets the host_network of this V1Environment. # noqa: E501
|
379
|
-
|
380
|
-
Host networking requested for this workflow pod. Default to false. # noqa: E501
|
381
|
-
|
382
|
-
:return: The host_network of this V1Environment. # noqa: E501
|
383
|
-
:rtype: bool
|
384
|
-
"""
|
385
|
-
return self._host_network
|
386
|
-
|
387
|
-
@host_network.setter
|
388
|
-
def host_network(self, host_network):
|
389
|
-
"""Sets the host_network of this V1Environment.
|
390
|
-
|
391
|
-
Host networking requested for this workflow pod. Default to false. # noqa: E501
|
392
|
-
|
393
|
-
:param host_network: The host_network of this V1Environment. # noqa: E501
|
394
|
-
:type host_network: bool
|
395
|
-
"""
|
396
|
-
|
397
|
-
self._host_network = host_network
|
398
|
-
|
399
|
-
@property
|
400
|
-
def host_pid(self):
|
401
|
-
"""Gets the host_pid of this V1Environment. # noqa: E501
|
402
|
-
|
403
|
-
Use the host's pid namespace. Default to false. # noqa: E501
|
404
|
-
|
405
|
-
:return: The host_pid of this V1Environment. # noqa: E501
|
406
|
-
:rtype: str
|
407
|
-
"""
|
408
|
-
return self._host_pid
|
409
|
-
|
410
|
-
@host_pid.setter
|
411
|
-
def host_pid(self, host_pid):
|
412
|
-
"""Sets the host_pid of this V1Environment.
|
413
|
-
|
414
|
-
Use the host's pid namespace. Default to false. # noqa: E501
|
415
|
-
|
416
|
-
:param host_pid: The host_pid of this V1Environment. # noqa: E501
|
417
|
-
:type host_pid: str
|
418
|
-
"""
|
419
|
-
|
420
|
-
self._host_pid = host_pid
|
421
|
-
|
422
|
-
@property
|
423
|
-
def dns_policy(self):
|
424
|
-
"""Gets the dns_policy of this V1Environment. # noqa: E501
|
425
|
-
|
426
|
-
Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
|
427
|
-
|
428
|
-
:return: The dns_policy of this V1Environment. # noqa: E501
|
429
|
-
:rtype: str
|
430
|
-
"""
|
431
|
-
return self._dns_policy
|
432
|
-
|
433
|
-
@dns_policy.setter
|
434
|
-
def dns_policy(self, dns_policy):
|
435
|
-
"""Sets the dns_policy of this V1Environment.
|
436
|
-
|
437
|
-
Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. # noqa: E501
|
438
|
-
|
439
|
-
:param dns_policy: The dns_policy of this V1Environment. # noqa: E501
|
440
|
-
:type dns_policy: str
|
441
|
-
"""
|
442
|
-
|
443
|
-
self._dns_policy = dns_policy
|
444
|
-
|
445
|
-
@property
|
446
|
-
def dns_config(self):
|
447
|
-
"""Gets the dns_config of this V1Environment. # noqa: E501
|
448
|
-
|
449
|
-
|
450
|
-
:return: The dns_config of this V1Environment. # noqa: E501
|
451
|
-
:rtype: V1PodDNSConfig
|
452
|
-
"""
|
453
|
-
return self._dns_config
|
454
|
-
|
455
|
-
@dns_config.setter
|
456
|
-
def dns_config(self, dns_config):
|
457
|
-
"""Sets the dns_config of this V1Environment.
|
458
|
-
|
459
|
-
|
460
|
-
:param dns_config: The dns_config of this V1Environment. # noqa: E501
|
461
|
-
:type dns_config: V1PodDNSConfig
|
462
|
-
"""
|
463
|
-
|
464
|
-
self._dns_config = dns_config
|
465
|
-
|
466
|
-
@property
|
467
|
-
def scheduler_name(self):
|
468
|
-
"""Gets the scheduler_name of this V1Environment. # noqa: E501
|
469
|
-
|
470
|
-
|
471
|
-
:return: The scheduler_name of this V1Environment. # noqa: E501
|
472
|
-
:rtype: str
|
473
|
-
"""
|
474
|
-
return self._scheduler_name
|
475
|
-
|
476
|
-
@scheduler_name.setter
|
477
|
-
def scheduler_name(self, scheduler_name):
|
478
|
-
"""Sets the scheduler_name of this V1Environment.
|
479
|
-
|
480
|
-
|
481
|
-
:param scheduler_name: The scheduler_name of this V1Environment. # noqa: E501
|
482
|
-
:type scheduler_name: str
|
483
|
-
"""
|
484
|
-
|
485
|
-
self._scheduler_name = scheduler_name
|
486
|
-
|
487
|
-
@property
|
488
|
-
def priority_class_name(self):
|
489
|
-
"""Gets the priority_class_name of this V1Environment. # noqa: E501
|
490
|
-
|
491
|
-
If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
|
492
|
-
|
493
|
-
:return: The priority_class_name of this V1Environment. # noqa: E501
|
494
|
-
:rtype: str
|
495
|
-
"""
|
496
|
-
return self._priority_class_name
|
497
|
-
|
498
|
-
@priority_class_name.setter
|
499
|
-
def priority_class_name(self, priority_class_name):
|
500
|
-
"""Sets the priority_class_name of this V1Environment.
|
501
|
-
|
502
|
-
If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. # noqa: E501
|
503
|
-
|
504
|
-
:param priority_class_name: The priority_class_name of this V1Environment. # noqa: E501
|
505
|
-
:type priority_class_name: str
|
506
|
-
"""
|
507
|
-
|
508
|
-
self._priority_class_name = priority_class_name
|
509
|
-
|
510
|
-
@property
|
511
|
-
def priority(self):
|
512
|
-
"""Gets the priority of this V1Environment. # noqa: E501
|
513
|
-
|
514
|
-
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
|
515
|
-
|
516
|
-
:return: The priority of this V1Environment. # noqa: E501
|
517
|
-
:rtype: int
|
518
|
-
"""
|
519
|
-
return self._priority
|
520
|
-
|
521
|
-
@priority.setter
|
522
|
-
def priority(self, priority):
|
523
|
-
"""Sets the priority of this V1Environment.
|
524
|
-
|
525
|
-
The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. # noqa: E501
|
526
|
-
|
527
|
-
:param priority: The priority of this V1Environment. # noqa: E501
|
528
|
-
:type priority: int
|
529
|
-
"""
|
530
|
-
|
531
|
-
self._priority = priority
|
532
|
-
|
533
|
-
@property
|
534
|
-
def restart_policy(self):
|
535
|
-
"""Gets the restart_policy of this V1Environment. # noqa: E501
|
536
|
-
|
537
|
-
|
538
|
-
:return: The restart_policy of this V1Environment. # noqa: E501
|
539
|
-
:rtype: str
|
540
|
-
"""
|
541
|
-
return self._restart_policy
|
542
|
-
|
543
|
-
@restart_policy.setter
|
544
|
-
def restart_policy(self, restart_policy):
|
545
|
-
"""Sets the restart_policy of this V1Environment.
|
546
|
-
|
547
|
-
|
548
|
-
:param restart_policy: The restart_policy of this V1Environment. # noqa: E501
|
549
|
-
:type restart_policy: str
|
550
|
-
"""
|
551
|
-
|
552
|
-
self._restart_policy = restart_policy
|
553
|
-
|
554
|
-
def to_dict(self, serialize=False):
|
555
|
-
"""Returns the model properties as a dict"""
|
556
|
-
result = {}
|
557
|
-
|
558
|
-
def convert(x):
|
559
|
-
if hasattr(x, "to_dict"):
|
560
|
-
args = getfullargspec(x.to_dict).args
|
561
|
-
if len(args) == 1:
|
562
|
-
return x.to_dict()
|
563
|
-
else:
|
564
|
-
return x.to_dict(serialize)
|
565
|
-
else:
|
566
|
-
return x
|
567
|
-
|
568
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
569
|
-
value = getattr(self, attr)
|
570
|
-
attr = self.attribute_map.get(attr, attr) if serialize else attr
|
571
|
-
if isinstance(value, list):
|
572
|
-
result[attr] = list(map(
|
573
|
-
lambda x: convert(x),
|
574
|
-
value
|
575
|
-
))
|
576
|
-
elif isinstance(value, dict):
|
577
|
-
result[attr] = dict(map(
|
578
|
-
lambda item: (item[0], convert(item[1])),
|
579
|
-
value.items()
|
580
|
-
))
|
581
|
-
else:
|
582
|
-
result[attr] = convert(value)
|
583
|
-
|
584
|
-
return result
|
585
|
-
|
586
|
-
def to_str(self):
|
587
|
-
"""Returns the string representation of the model"""
|
588
|
-
return pprint.pformat(self.to_dict())
|
589
|
-
|
590
|
-
def __repr__(self):
|
591
|
-
"""For `print` and `pprint`"""
|
592
|
-
return self.to_str()
|
593
|
-
|
594
|
-
def __eq__(self, other):
|
595
|
-
"""Returns true if both objects are equal"""
|
596
|
-
if not isinstance(other, V1Environment):
|
597
|
-
return False
|
598
|
-
|
599
|
-
return self.to_dict() == other.to_dict()
|
600
|
-
|
601
|
-
def __ne__(self, other):
|
602
|
-
"""Returns true if both objects are not equal"""
|
603
|
-
if not isinstance(other, V1Environment):
|
604
|
-
return True
|
30
|
+
labels: Optional[Dict[str, StrictStr]] = None
|
31
|
+
annotations: Optional[Dict[str, StrictStr]] = None
|
32
|
+
node_selector: Optional[Dict[str, StrictStr]] = Field(None, alias="nodeSelector")
|
33
|
+
affinity: Optional[Dict[str, Any]] = None
|
34
|
+
tolerations: Optional[conlist(Dict[str, Any])] = Field(None, description="Optional Tolerations to apply.")
|
35
|
+
node_name: Optional[StrictStr] = Field(None, alias="nodeName", description="Optional NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.")
|
36
|
+
service_account_name: Optional[StrictStr] = Field(None, alias="serviceAccountName")
|
37
|
+
host_aliases: Optional[conlist(Dict[str, Any])] = Field(None, alias="hostAliases", description="Optional HostAliases is an optional list of hosts and IPs that will be injected into the pod spec.")
|
38
|
+
security_context: Optional[Dict[str, Any]] = Field(None, alias="securityContext")
|
39
|
+
image_pull_secrets: Optional[conlist(StrictStr)] = Field(None, alias="imagePullSecrets")
|
40
|
+
host_network: Optional[StrictBool] = Field(None, alias="hostNetwork", description="Host networking requested for this workflow pod. Default to false.")
|
41
|
+
host_pid: Optional[StrictStr] = Field(None, alias="hostPID", description="Use the host's pid namespace. Default to false.")
|
42
|
+
dns_policy: Optional[StrictStr] = Field(None, alias="dnsPolicy", description="Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.")
|
43
|
+
dns_config: Optional[Dict[str, Any]] = Field(None, alias="dnsConfig")
|
44
|
+
scheduler_name: Optional[StrictStr] = Field(None, alias="schedulerName")
|
45
|
+
priority_class_name: Optional[StrictStr] = Field(None, alias="priorityClassName", description="If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.")
|
46
|
+
priority: Optional[StrictInt] = Field(None, description="The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.")
|
47
|
+
restart_policy: Optional[StrictStr] = Field(None, alias="restartPolicy")
|
48
|
+
__properties = ["labels", "annotations", "nodeSelector", "affinity", "tolerations", "nodeName", "serviceAccountName", "hostAliases", "securityContext", "imagePullSecrets", "hostNetwork", "hostPID", "dnsPolicy", "dnsConfig", "schedulerName", "priorityClassName", "priority", "restartPolicy"]
|
49
|
+
|
50
|
+
class Config:
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
validate_assignment = True
|
53
|
+
|
54
|
+
def to_str(self) -> str:
|
55
|
+
"""Returns the string representation of the model using alias"""
|
56
|
+
return pprint.pformat(self.dict(by_alias=True))
|
57
|
+
|
58
|
+
def to_json(self) -> str:
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
60
|
+
return json.dumps(self.to_dict())
|
61
|
+
|
62
|
+
@classmethod
|
63
|
+
def from_json(cls, json_str: str) -> V1Environment:
|
64
|
+
"""Create an instance of V1Environment from a JSON string"""
|
65
|
+
return cls.from_dict(json.loads(json_str))
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the dictionary representation of the model using alias"""
|
69
|
+
_dict = self.dict(by_alias=True,
|
70
|
+
exclude={
|
71
|
+
},
|
72
|
+
exclude_none=True)
|
73
|
+
return _dict
|
74
|
+
|
75
|
+
@classmethod
|
76
|
+
def from_dict(cls, obj: dict) -> V1Environment:
|
77
|
+
"""Create an instance of V1Environment from a dict"""
|
78
|
+
if obj is None:
|
79
|
+
return None
|
80
|
+
|
81
|
+
if type(obj) is not dict:
|
82
|
+
return V1Environment.parse_obj(obj)
|
83
|
+
|
84
|
+
_obj = V1Environment.parse_obj({
|
85
|
+
"labels": obj.get("labels"),
|
86
|
+
"annotations": obj.get("annotations"),
|
87
|
+
"node_selector": obj.get("nodeSelector"),
|
88
|
+
"affinity": obj.get("affinity"),
|
89
|
+
"tolerations": obj.get("tolerations"),
|
90
|
+
"node_name": obj.get("nodeName"),
|
91
|
+
"service_account_name": obj.get("serviceAccountName"),
|
92
|
+
"host_aliases": obj.get("hostAliases"),
|
93
|
+
"security_context": obj.get("securityContext"),
|
94
|
+
"image_pull_secrets": obj.get("imagePullSecrets"),
|
95
|
+
"host_network": obj.get("hostNetwork"),
|
96
|
+
"host_pid": obj.get("hostPID"),
|
97
|
+
"dns_policy": obj.get("dnsPolicy"),
|
98
|
+
"dns_config": obj.get("dnsConfig"),
|
99
|
+
"scheduler_name": obj.get("schedulerName"),
|
100
|
+
"priority_class_name": obj.get("priorityClassName"),
|
101
|
+
"priority": obj.get("priority"),
|
102
|
+
"restart_policy": obj.get("restartPolicy")
|
103
|
+
})
|
104
|
+
return _obj
|
605
105
|
|
606
|
-
return self.to_dict() != other.to_dict()
|