anyscale 0.26.69__py3-none-any.whl → 0.26.71__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 (113) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +126 -3
  2. anyscale/_private/anyscale_client/common.py +51 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
  4. anyscale/client/README.md +43 -4
  5. anyscale/client/openapi_client/__init__.py +30 -4
  6. anyscale/client/openapi_client/api/default_api.py +1769 -27
  7. anyscale/client/openapi_client/models/__init__.py +30 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  11. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  12. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  13. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  14. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  15. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  16. anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
  17. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  18. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  19. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  20. anyscale/client/openapi_client/models/column_info.py +265 -0
  21. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  22. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  23. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  24. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  25. anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
  26. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  27. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  28. anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
  29. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  30. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  31. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  32. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  33. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  34. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  36. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  37. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  38. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  39. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  40. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  41. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  42. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  43. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  44. anyscale/client/openapi_client/models/event_level.py +2 -1
  45. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  46. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  47. anyscale/client/openapi_client/models/partition_info.py +30 -1
  48. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  49. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  50. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  51. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  52. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  53. anyscale/client/openapi_client/models/sso_config.py +18 -18
  54. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
  55. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  56. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  57. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  58. anyscale/client/openapi_client/models/unified_event.py +377 -0
  59. anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
  60. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  61. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  62. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  63. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  64. anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
  65. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
  66. anyscale/cloud/models.py +2 -2
  67. anyscale/commands/cloud_commands.py +133 -2
  68. anyscale/commands/job_commands.py +121 -1
  69. anyscale/commands/job_queue_commands.py +99 -2
  70. anyscale/commands/service_commands.py +267 -67
  71. anyscale/commands/setup_k8s.py +546 -31
  72. anyscale/commands/util.py +104 -1
  73. anyscale/commands/workspace_commands.py +123 -5
  74. anyscale/commands/workspace_commands_v2.py +17 -1
  75. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  76. anyscale/compute_config/models.py +15 -0
  77. anyscale/controllers/cloud_controller.py +15 -2
  78. anyscale/controllers/job_controller.py +12 -0
  79. anyscale/controllers/kubernetes_verifier.py +80 -66
  80. anyscale/controllers/workspace_controller.py +67 -5
  81. anyscale/job/_private/job_sdk.py +50 -2
  82. anyscale/job/commands.py +3 -0
  83. anyscale/job/models.py +16 -0
  84. anyscale/job_queue/__init__.py +37 -1
  85. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  86. anyscale/job_queue/commands.py +61 -1
  87. anyscale/sdk/anyscale_client/__init__.py +1 -0
  88. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  89. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  90. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  91. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  92. anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
  93. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  94. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  95. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  96. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
  97. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  98. anyscale/service/__init__.py +51 -3
  99. anyscale/service/_private/service_sdk.py +481 -58
  100. anyscale/service/commands.py +90 -4
  101. anyscale/service/models.py +56 -0
  102. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  103. anyscale/version.py +1 -1
  104. anyscale/workspace/_private/workspace_sdk.py +1 -0
  105. anyscale/workspace/models.py +19 -0
  106. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
  107. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
  108. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  109. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
  110. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
  111. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
  112. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
  113. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,206 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ConnectionMetadata(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'owner': 'str',
37
+ 'full_name': 'str',
38
+ 'workspace_url': 'str',
39
+ 'client_id': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'owner': 'owner',
44
+ 'full_name': 'full_name',
45
+ 'workspace_url': 'workspace_url',
46
+ 'client_id': 'client_id'
47
+ }
48
+
49
+ def __init__(self, owner=None, full_name=None, workspace_url=None, client_id=None, local_vars_configuration=None): # noqa: E501
50
+ """ConnectionMetadata - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._owner = None
56
+ self._full_name = None
57
+ self._workspace_url = None
58
+ self._client_id = None
59
+ self.discriminator = None
60
+
61
+ if owner is not None:
62
+ self.owner = owner
63
+ if full_name is not None:
64
+ self.full_name = full_name
65
+ if workspace_url is not None:
66
+ self.workspace_url = workspace_url
67
+ if client_id is not None:
68
+ self.client_id = client_id
69
+
70
+ @property
71
+ def owner(self):
72
+ """Gets the owner of this ConnectionMetadata. # noqa: E501
73
+
74
+ Owner of the entity # noqa: E501
75
+
76
+ :return: The owner of this ConnectionMetadata. # noqa: E501
77
+ :rtype: str
78
+ """
79
+ return self._owner
80
+
81
+ @owner.setter
82
+ def owner(self, owner):
83
+ """Sets the owner of this ConnectionMetadata.
84
+
85
+ Owner of the entity # noqa: E501
86
+
87
+ :param owner: The owner of this ConnectionMetadata. # noqa: E501
88
+ :type: str
89
+ """
90
+
91
+ self._owner = owner
92
+
93
+ @property
94
+ def full_name(self):
95
+ """Gets the full_name of this ConnectionMetadata. # noqa: E501
96
+
97
+ Fully qualified name of the entity # noqa: E501
98
+
99
+ :return: The full_name of this ConnectionMetadata. # noqa: E501
100
+ :rtype: str
101
+ """
102
+ return self._full_name
103
+
104
+ @full_name.setter
105
+ def full_name(self, full_name):
106
+ """Sets the full_name of this ConnectionMetadata.
107
+
108
+ Fully qualified name of the entity # noqa: E501
109
+
110
+ :param full_name: The full_name of this ConnectionMetadata. # noqa: E501
111
+ :type: str
112
+ """
113
+
114
+ self._full_name = full_name
115
+
116
+ @property
117
+ def workspace_url(self):
118
+ """Gets the workspace_url of this ConnectionMetadata. # noqa: E501
119
+
120
+ Workspace URL for the connection # noqa: E501
121
+
122
+ :return: The workspace_url of this ConnectionMetadata. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._workspace_url
126
+
127
+ @workspace_url.setter
128
+ def workspace_url(self, workspace_url):
129
+ """Sets the workspace_url of this ConnectionMetadata.
130
+
131
+ Workspace URL for the connection # noqa: E501
132
+
133
+ :param workspace_url: The workspace_url of this ConnectionMetadata. # noqa: E501
134
+ :type: str
135
+ """
136
+
137
+ self._workspace_url = workspace_url
138
+
139
+ @property
140
+ def client_id(self):
141
+ """Gets the client_id of this ConnectionMetadata. # noqa: E501
142
+
143
+ OAuth client ID # noqa: E501
144
+
145
+ :return: The client_id of this ConnectionMetadata. # noqa: E501
146
+ :rtype: str
147
+ """
148
+ return self._client_id
149
+
150
+ @client_id.setter
151
+ def client_id(self, client_id):
152
+ """Sets the client_id of this ConnectionMetadata.
153
+
154
+ OAuth client ID # noqa: E501
155
+
156
+ :param client_id: The client_id of this ConnectionMetadata. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._client_id = client_id
161
+
162
+ def to_dict(self):
163
+ """Returns the model properties as a dict"""
164
+ result = {}
165
+
166
+ for attr, _ in six.iteritems(self.openapi_types):
167
+ value = getattr(self, attr)
168
+ if isinstance(value, list):
169
+ result[attr] = list(map(
170
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
171
+ value
172
+ ))
173
+ elif hasattr(value, "to_dict"):
174
+ result[attr] = value.to_dict()
175
+ elif isinstance(value, dict):
176
+ result[attr] = dict(map(
177
+ lambda item: (item[0], item[1].to_dict())
178
+ if hasattr(item[1], "to_dict") else item,
179
+ value.items()
180
+ ))
181
+ else:
182
+ result[attr] = value
183
+
184
+ return result
185
+
186
+ def to_str(self):
187
+ """Returns the string representation of the model"""
188
+ return pprint.pformat(self.to_dict())
189
+
190
+ def __repr__(self):
191
+ """For `print` and `pprint`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, ConnectionMetadata):
197
+ return False
198
+
199
+ return self.to_dict() == other.to_dict()
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ if not isinstance(other, ConnectionMetadata):
204
+ return True
205
+
206
+ return self.to_dict() != other.to_dict()
@@ -47,6 +47,7 @@ class CreateExperimentalWorkspace(object):
47
47
  'template_version_id': 'str',
48
48
  'template_url': 'str',
49
49
  'tags': 'dict(str, str)',
50
+ 'proxied_artifacts': 'WorkspaceDataplaneProxiedArtifacts',
50
51
  'skip_start': 'bool'
51
52
  }
52
53
 
@@ -65,10 +66,11 @@ class CreateExperimentalWorkspace(object):
65
66
  'template_version_id': 'template_version_id',
66
67
  'template_url': 'template_url',
67
68
  'tags': 'tags',
69
+ 'proxied_artifacts': 'proxied_artifacts',
68
70
  'skip_start': 'skip_start'
69
71
  }
70
72
 
71
- def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, template_version_id=None, template_url=None, tags=None, skip_start=None, local_vars_configuration=None): # noqa: E501
73
+ def __init__(self, name=None, description=None, project_id=None, cloud_id=None, compute_config_id=None, base_snapshot=None, cluster_environment_build_id=None, idle_timeout_minutes=None, cloned_job_id=None, cloned_workspace_id=None, template_id=None, template_version_id=None, template_url=None, tags=None, proxied_artifacts=None, skip_start=None, local_vars_configuration=None): # noqa: E501
72
74
  """CreateExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
73
75
  if local_vars_configuration is None:
74
76
  local_vars_configuration = Configuration()
@@ -88,6 +90,7 @@ class CreateExperimentalWorkspace(object):
88
90
  self._template_version_id = None
89
91
  self._template_url = None
90
92
  self._tags = None
93
+ self._proxied_artifacts = None
91
94
  self._skip_start = None
92
95
  self.discriminator = None
93
96
 
@@ -114,6 +117,8 @@ class CreateExperimentalWorkspace(object):
114
117
  self.template_url = template_url
115
118
  if tags is not None:
116
119
  self.tags = tags
120
+ if proxied_artifacts is not None:
121
+ self.proxied_artifacts = proxied_artifacts
117
122
  if skip_start is not None:
118
123
  self.skip_start = skip_start
119
124
 
@@ -449,6 +454,29 @@ class CreateExperimentalWorkspace(object):
449
454
 
450
455
  self._tags = tags
451
456
 
457
+ @property
458
+ def proxied_artifacts(self):
459
+ """Gets the proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
460
+
461
+ The proxied artifacts for the workspace. # noqa: E501
462
+
463
+ :return: The proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
464
+ :rtype: WorkspaceDataplaneProxiedArtifacts
465
+ """
466
+ return self._proxied_artifacts
467
+
468
+ @proxied_artifacts.setter
469
+ def proxied_artifacts(self, proxied_artifacts):
470
+ """Sets the proxied_artifacts of this CreateExperimentalWorkspace.
471
+
472
+ The proxied artifacts for the workspace. # noqa: E501
473
+
474
+ :param proxied_artifacts: The proxied_artifacts of this CreateExperimentalWorkspace. # noqa: E501
475
+ :type: WorkspaceDataplaneProxiedArtifacts
476
+ """
477
+
478
+ self._proxied_artifacts = proxied_artifacts
479
+
452
480
  @property
453
481
  def skip_start(self):
454
482
  """Gets the skip_start of this CreateExperimentalWorkspace. # noqa: E501
@@ -34,6 +34,7 @@ class CreateWorkspaceFromTemplate(object):
34
34
  """
35
35
  openapi_types = {
36
36
  'template_id': 'str',
37
+ 'template_version_id': 'str',
37
38
  'cloud_id': 'str',
38
39
  'project_id': 'str',
39
40
  'skip_start': 'bool',
@@ -43,6 +44,7 @@ class CreateWorkspaceFromTemplate(object):
43
44
 
44
45
  attribute_map = {
45
46
  'template_id': 'template_id',
47
+ 'template_version_id': 'template_version_id',
46
48
  'cloud_id': 'cloud_id',
47
49
  'project_id': 'project_id',
48
50
  'skip_start': 'skip_start',
@@ -50,13 +52,14 @@ class CreateWorkspaceFromTemplate(object):
50
52
  'maximum_uptime_minutes': 'maximum_uptime_minutes'
51
53
  }
52
54
 
53
- def __init__(self, template_id=None, cloud_id=None, project_id=None, skip_start=None, name=None, maximum_uptime_minutes=None, local_vars_configuration=None): # noqa: E501
55
+ def __init__(self, template_id=None, template_version_id=None, cloud_id=None, project_id=None, skip_start=None, name=None, maximum_uptime_minutes=None, local_vars_configuration=None): # noqa: E501
54
56
  """CreateWorkspaceFromTemplate - a model defined in OpenAPI""" # noqa: E501
55
57
  if local_vars_configuration is None:
56
58
  local_vars_configuration = Configuration()
57
59
  self.local_vars_configuration = local_vars_configuration
58
60
 
59
61
  self._template_id = None
62
+ self._template_version_id = None
60
63
  self._cloud_id = None
61
64
  self._project_id = None
62
65
  self._skip_start = None
@@ -65,6 +68,8 @@ class CreateWorkspaceFromTemplate(object):
65
68
  self.discriminator = None
66
69
 
67
70
  self.template_id = template_id
71
+ if template_version_id is not None:
72
+ self.template_version_id = template_version_id
68
73
  self.cloud_id = cloud_id
69
74
  if project_id is not None:
70
75
  self.project_id = project_id
@@ -100,6 +105,29 @@ class CreateWorkspaceFromTemplate(object):
100
105
 
101
106
  self._template_id = template_id
102
107
 
108
+ @property
109
+ def template_version_id(self):
110
+ """Gets the template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
111
+
112
+ The Id of the template version to use. # noqa: E501
113
+
114
+ :return: The template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
115
+ :rtype: str
116
+ """
117
+ return self._template_version_id
118
+
119
+ @template_version_id.setter
120
+ def template_version_id(self, template_version_id):
121
+ """Sets the template_version_id of this CreateWorkspaceFromTemplate.
122
+
123
+ The Id of the template version to use. # noqa: E501
124
+
125
+ :param template_version_id: The template_version_id of this CreateWorkspaceFromTemplate. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._template_version_id = template_version_id
130
+
103
131
  @property
104
132
  def cloud_id(self):
105
133
  """Gets the cloud_id of this CreateWorkspaceFromTemplate. # noqa: E501
@@ -35,16 +35,20 @@ class CreateWorkspaceTemplateVersion(object):
35
35
  openapi_types = {
36
36
  'image_uri': 'str',
37
37
  'compute_configs': 'dict(str, str)',
38
- 'artifacts': 'WorkspaceSystemArtifacts'
38
+ 'artifacts': 'WorkspaceSystemArtifacts',
39
+ 'source_workspace_id': 'str',
40
+ 'idle_termination_minutes': 'int'
39
41
  }
40
42
 
41
43
  attribute_map = {
42
44
  'image_uri': 'image_uri',
43
45
  'compute_configs': 'compute_configs',
44
- 'artifacts': 'artifacts'
46
+ 'artifacts': 'artifacts',
47
+ 'source_workspace_id': 'source_workspace_id',
48
+ 'idle_termination_minutes': 'idle_termination_minutes'
45
49
  }
46
50
 
47
- def __init__(self, image_uri=None, compute_configs=None, artifacts=None, local_vars_configuration=None): # noqa: E501
51
+ def __init__(self, image_uri=None, compute_configs=None, artifacts=None, source_workspace_id=None, idle_termination_minutes=None, local_vars_configuration=None): # noqa: E501
48
52
  """CreateWorkspaceTemplateVersion - a model defined in OpenAPI""" # noqa: E501
49
53
  if local_vars_configuration is None:
50
54
  local_vars_configuration = Configuration()
@@ -53,6 +57,8 @@ class CreateWorkspaceTemplateVersion(object):
53
57
  self._image_uri = None
54
58
  self._compute_configs = None
55
59
  self._artifacts = None
60
+ self._source_workspace_id = None
61
+ self._idle_termination_minutes = None
56
62
  self.discriminator = None
57
63
 
58
64
  if image_uri is not None:
@@ -61,6 +67,10 @@ class CreateWorkspaceTemplateVersion(object):
61
67
  self.compute_configs = compute_configs
62
68
  if artifacts is not None:
63
69
  self.artifacts = artifacts
70
+ if source_workspace_id is not None:
71
+ self.source_workspace_id = source_workspace_id
72
+ if idle_termination_minutes is not None:
73
+ self.idle_termination_minutes = idle_termination_minutes
64
74
 
65
75
  @property
66
76
  def image_uri(self):
@@ -131,6 +141,52 @@ class CreateWorkspaceTemplateVersion(object):
131
141
 
132
142
  self._artifacts = artifacts
133
143
 
144
+ @property
145
+ def source_workspace_id(self):
146
+ """Gets the source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
147
+
148
+ Source workspace ID to copy image_uri, compute_configs, and artifacts from. If both source_workspace_id and artifacts are provided, artifacts will take precedence. # noqa: E501
149
+
150
+ :return: The source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
151
+ :rtype: str
152
+ """
153
+ return self._source_workspace_id
154
+
155
+ @source_workspace_id.setter
156
+ def source_workspace_id(self, source_workspace_id):
157
+ """Sets the source_workspace_id of this CreateWorkspaceTemplateVersion.
158
+
159
+ Source workspace ID to copy image_uri, compute_configs, and artifacts from. If both source_workspace_id and artifacts are provided, artifacts will take precedence. # noqa: E501
160
+
161
+ :param source_workspace_id: The source_workspace_id of this CreateWorkspaceTemplateVersion. # noqa: E501
162
+ :type: str
163
+ """
164
+
165
+ self._source_workspace_id = source_workspace_id
166
+
167
+ @property
168
+ def idle_termination_minutes(self):
169
+ """Gets the idle_termination_minutes of this CreateWorkspaceTemplateVersion. # noqa: E501
170
+
171
+ Idle termination minutes for this version # noqa: E501
172
+
173
+ :return: The idle_termination_minutes of this CreateWorkspaceTemplateVersion. # noqa: E501
174
+ :rtype: int
175
+ """
176
+ return self._idle_termination_minutes
177
+
178
+ @idle_termination_minutes.setter
179
+ def idle_termination_minutes(self, idle_termination_minutes):
180
+ """Sets the idle_termination_minutes of this CreateWorkspaceTemplateVersion.
181
+
182
+ Idle termination minutes for this version # noqa: E501
183
+
184
+ :param idle_termination_minutes: The idle_termination_minutes of this CreateWorkspaceTemplateVersion. # noqa: E501
185
+ :type: int
186
+ """
187
+
188
+ self._idle_termination_minutes = idle_termination_minutes
189
+
134
190
  def to_dict(self):
135
191
  """Returns the model properties as a dict"""
136
192
  result = {}
@@ -35,24 +35,24 @@ class DataCatalog(object):
35
35
  openapi_types = {
36
36
  'id': 'str',
37
37
  'name': 'str',
38
- 'connection_id': 'str',
39
38
  'description': 'str',
40
39
  'created_at': 'str',
41
40
  'updated_at': 'str',
42
- 'metadata': 'object'
41
+ 'connection_id': 'str',
42
+ 'metadata': 'CatalogMetadata'
43
43
  }
44
44
 
45
45
  attribute_map = {
46
46
  'id': 'id',
47
47
  'name': 'name',
48
- 'connection_id': 'connection_id',
49
48
  'description': 'description',
50
49
  'created_at': 'created_at',
51
50
  'updated_at': 'updated_at',
51
+ 'connection_id': 'connection_id',
52
52
  'metadata': 'metadata'
53
53
  }
54
54
 
55
- def __init__(self, id=None, name=None, connection_id=None, description=None, created_at=None, updated_at=None, metadata=None, local_vars_configuration=None): # noqa: E501
55
+ def __init__(self, id=None, name=None, description=None, created_at=None, updated_at=None, connection_id=None, metadata=None, local_vars_configuration=None): # noqa: E501
56
56
  """DataCatalog - a model defined in OpenAPI""" # noqa: E501
57
57
  if local_vars_configuration is None:
58
58
  local_vars_configuration = Configuration()
@@ -60,20 +60,20 @@ class DataCatalog(object):
60
60
 
61
61
  self._id = None
62
62
  self._name = None
63
- self._connection_id = None
64
63
  self._description = None
65
64
  self._created_at = None
66
65
  self._updated_at = None
66
+ self._connection_id = None
67
67
  self._metadata = None
68
68
  self.discriminator = None
69
69
 
70
70
  self.id = id
71
71
  self.name = name
72
- self.connection_id = connection_id
73
72
  if description is not None:
74
73
  self.description = description
75
74
  self.created_at = created_at
76
75
  self.updated_at = updated_at
76
+ self.connection_id = connection_id
77
77
  if metadata is not None:
78
78
  self.metadata = metadata
79
79
 
@@ -81,6 +81,7 @@ class DataCatalog(object):
81
81
  def id(self):
82
82
  """Gets the id of this DataCatalog. # noqa: E501
83
83
 
84
+ Unique identifier # noqa: E501
84
85
 
85
86
  :return: The id of this DataCatalog. # noqa: E501
86
87
  :rtype: str
@@ -91,6 +92,7 @@ class DataCatalog(object):
91
92
  def id(self, id):
92
93
  """Sets the id of this DataCatalog.
93
94
 
95
+ Unique identifier # noqa: E501
94
96
 
95
97
  :param id: The id of this DataCatalog. # noqa: E501
96
98
  :type: str
@@ -104,6 +106,7 @@ class DataCatalog(object):
104
106
  def name(self):
105
107
  """Gets the name of this DataCatalog. # noqa: E501
106
108
 
109
+ Display name # noqa: E501
107
110
 
108
111
  :return: The name of this DataCatalog. # noqa: E501
109
112
  :rtype: str
@@ -114,6 +117,7 @@ class DataCatalog(object):
114
117
  def name(self, name):
115
118
  """Sets the name of this DataCatalog.
116
119
 
120
+ Display name # noqa: E501
117
121
 
118
122
  :param name: The name of this DataCatalog. # noqa: E501
119
123
  :type: str
@@ -123,33 +127,11 @@ class DataCatalog(object):
123
127
 
124
128
  self._name = name
125
129
 
126
- @property
127
- def connection_id(self):
128
- """Gets the connection_id of this DataCatalog. # noqa: E501
129
-
130
-
131
- :return: The connection_id of this DataCatalog. # noqa: E501
132
- :rtype: str
133
- """
134
- return self._connection_id
135
-
136
- @connection_id.setter
137
- def connection_id(self, connection_id):
138
- """Sets the connection_id of this DataCatalog.
139
-
140
-
141
- :param connection_id: The connection_id of this DataCatalog. # noqa: E501
142
- :type: str
143
- """
144
- if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501
145
- raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501
146
-
147
- self._connection_id = connection_id
148
-
149
130
  @property
150
131
  def description(self):
151
132
  """Gets the description of this DataCatalog. # noqa: E501
152
133
 
134
+ Description # noqa: E501
153
135
 
154
136
  :return: The description of this DataCatalog. # noqa: E501
155
137
  :rtype: str
@@ -160,6 +142,7 @@ class DataCatalog(object):
160
142
  def description(self, description):
161
143
  """Sets the description of this DataCatalog.
162
144
 
145
+ Description # noqa: E501
163
146
 
164
147
  :param description: The description of this DataCatalog. # noqa: E501
165
148
  :type: str
@@ -171,6 +154,7 @@ class DataCatalog(object):
171
154
  def created_at(self):
172
155
  """Gets the created_at of this DataCatalog. # noqa: E501
173
156
 
157
+ Creation timestamp in ISO 8601 format # noqa: E501
174
158
 
175
159
  :return: The created_at of this DataCatalog. # noqa: E501
176
160
  :rtype: str
@@ -181,6 +165,7 @@ class DataCatalog(object):
181
165
  def created_at(self, created_at):
182
166
  """Sets the created_at of this DataCatalog.
183
167
 
168
+ Creation timestamp in ISO 8601 format # noqa: E501
184
169
 
185
170
  :param created_at: The created_at of this DataCatalog. # noqa: E501
186
171
  :type: str
@@ -194,6 +179,7 @@ class DataCatalog(object):
194
179
  def updated_at(self):
195
180
  """Gets the updated_at of this DataCatalog. # noqa: E501
196
181
 
182
+ Last update timestamp in ISO 8601 format # noqa: E501
197
183
 
198
184
  :return: The updated_at of this DataCatalog. # noqa: E501
199
185
  :rtype: str
@@ -204,6 +190,7 @@ class DataCatalog(object):
204
190
  def updated_at(self, updated_at):
205
191
  """Sets the updated_at of this DataCatalog.
206
192
 
193
+ Last update timestamp in ISO 8601 format # noqa: E501
207
194
 
208
195
  :param updated_at: The updated_at of this DataCatalog. # noqa: E501
209
196
  :type: str
@@ -213,13 +200,39 @@ class DataCatalog(object):
213
200
 
214
201
  self._updated_at = updated_at
215
202
 
203
+ @property
204
+ def connection_id(self):
205
+ """Gets the connection_id of this DataCatalog. # noqa: E501
206
+
207
+ ID of the parent data catalog connection # noqa: E501
208
+
209
+ :return: The connection_id of this DataCatalog. # noqa: E501
210
+ :rtype: str
211
+ """
212
+ return self._connection_id
213
+
214
+ @connection_id.setter
215
+ def connection_id(self, connection_id):
216
+ """Sets the connection_id of this DataCatalog.
217
+
218
+ ID of the parent data catalog connection # noqa: E501
219
+
220
+ :param connection_id: The connection_id of this DataCatalog. # noqa: E501
221
+ :type: str
222
+ """
223
+ if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501
224
+ raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501
225
+
226
+ self._connection_id = connection_id
227
+
216
228
  @property
217
229
  def metadata(self):
218
230
  """Gets the metadata of this DataCatalog. # noqa: E501
219
231
 
232
+ Catalog-specific metadata # noqa: E501
220
233
 
221
234
  :return: The metadata of this DataCatalog. # noqa: E501
222
- :rtype: object
235
+ :rtype: CatalogMetadata
223
236
  """
224
237
  return self._metadata
225
238
 
@@ -227,9 +240,10 @@ class DataCatalog(object):
227
240
  def metadata(self, metadata):
228
241
  """Sets the metadata of this DataCatalog.
229
242
 
243
+ Catalog-specific metadata # noqa: E501
230
244
 
231
245
  :param metadata: The metadata of this DataCatalog. # noqa: E501
232
- :type: object
246
+ :type: CatalogMetadata
233
247
  """
234
248
 
235
249
  self._metadata = metadata