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,150 @@
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 CatalogMetadata(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
+ }
39
+
40
+ attribute_map = {
41
+ 'owner': 'owner',
42
+ 'full_name': 'full_name'
43
+ }
44
+
45
+ def __init__(self, owner=None, full_name=None, local_vars_configuration=None): # noqa: E501
46
+ """CatalogMetadata - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._owner = None
52
+ self._full_name = None
53
+ self.discriminator = None
54
+
55
+ if owner is not None:
56
+ self.owner = owner
57
+ if full_name is not None:
58
+ self.full_name = full_name
59
+
60
+ @property
61
+ def owner(self):
62
+ """Gets the owner of this CatalogMetadata. # noqa: E501
63
+
64
+ Owner of the entity # noqa: E501
65
+
66
+ :return: The owner of this CatalogMetadata. # noqa: E501
67
+ :rtype: str
68
+ """
69
+ return self._owner
70
+
71
+ @owner.setter
72
+ def owner(self, owner):
73
+ """Sets the owner of this CatalogMetadata.
74
+
75
+ Owner of the entity # noqa: E501
76
+
77
+ :param owner: The owner of this CatalogMetadata. # noqa: E501
78
+ :type: str
79
+ """
80
+
81
+ self._owner = owner
82
+
83
+ @property
84
+ def full_name(self):
85
+ """Gets the full_name of this CatalogMetadata. # noqa: E501
86
+
87
+ Fully qualified name of the entity # noqa: E501
88
+
89
+ :return: The full_name of this CatalogMetadata. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._full_name
93
+
94
+ @full_name.setter
95
+ def full_name(self, full_name):
96
+ """Sets the full_name of this CatalogMetadata.
97
+
98
+ Fully qualified name of the entity # noqa: E501
99
+
100
+ :param full_name: The full_name of this CatalogMetadata. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._full_name = full_name
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, CatalogMetadata):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, CatalogMetadata):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()
@@ -32,10 +32,11 @@ class CloudDataBucketFileType(object):
32
32
  DATASETS = "datasets"
33
33
  AUDIT_LOGS = "audit_logs"
34
34
  SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES = "system_storage/workspace_tracking_dependencies"
35
+ SYSTEM_STORAGE_TEMPLATES = "system_storage/templates"
35
36
  SYSTEM_STORAGE_WORKSPACES = "system_storage/workspaces"
36
37
  JOB_MESSAGES = "job_messages"
37
38
 
38
- allowable_values = [RUNTIME_ENV_PACKAGES, DATASETS, AUDIT_LOGS, SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES, SYSTEM_STORAGE_WORKSPACES, JOB_MESSAGES] # noqa: E501
39
+ allowable_values = [RUNTIME_ENV_PACKAGES, DATASETS, AUDIT_LOGS, SYSTEM_STORAGE_WORKSPACE_TRACKING_DEPENDENCIES, SYSTEM_STORAGE_TEMPLATES, SYSTEM_STORAGE_WORKSPACES, JOB_MESSAGES] # noqa: E501
39
40
 
40
41
  """
41
42
  Attributes:
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class OauthconnectionresponseResponse(object):
21
+ class ClouddeploymentResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class OauthconnectionresponseResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'OAuthConnectionResponse'
36
+ 'result': 'CloudDeployment'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class OauthconnectionresponseResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """OauthconnectionresponseResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """ClouddeploymentResponse - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -53,21 +53,21 @@ class OauthconnectionresponseResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this OauthconnectionresponseResponse. # noqa: E501
56
+ """Gets the result of this ClouddeploymentResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this OauthconnectionresponseResponse. # noqa: E501
60
- :rtype: OAuthConnectionResponse
59
+ :return: The result of this ClouddeploymentResponse. # noqa: E501
60
+ :rtype: CloudDeployment
61
61
  """
62
62
  return self._result
63
63
 
64
64
  @result.setter
65
65
  def result(self, result):
66
- """Sets the result of this OauthconnectionresponseResponse.
66
+ """Sets the result of this ClouddeploymentResponse.
67
67
 
68
68
 
69
- :param result: The result of this OauthconnectionresponseResponse. # noqa: E501
70
- :type: OAuthConnectionResponse
69
+ :param result: The result of this ClouddeploymentResponse. # noqa: E501
70
+ :type: CloudDeployment
71
71
  """
72
72
  if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
73
  raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
@@ -108,14 +108,14 @@ class OauthconnectionresponseResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, OauthconnectionresponseResponse):
111
+ if not isinstance(other, ClouddeploymentResponse):
112
112
  return False
113
113
 
114
114
  return self.to_dict() == other.to_dict()
115
115
 
116
116
  def __ne__(self, other):
117
117
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, OauthconnectionresponseResponse):
118
+ if not isinstance(other, ClouddeploymentResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,265 @@
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 ColumnInfo(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
+ 'name': 'str',
37
+ 'type_text': 'str',
38
+ 'type_name': 'str',
39
+ 'description': 'str',
40
+ 'nullable': 'bool',
41
+ 'position': 'int'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'name': 'name',
46
+ 'type_text': 'type_text',
47
+ 'type_name': 'type_name',
48
+ 'description': 'description',
49
+ 'nullable': 'nullable',
50
+ 'position': 'position'
51
+ }
52
+
53
+ def __init__(self, name=None, type_text=None, type_name=None, description=None, nullable=True, position=0, local_vars_configuration=None): # noqa: E501
54
+ """ColumnInfo - a model defined in OpenAPI""" # noqa: E501
55
+ if local_vars_configuration is None:
56
+ local_vars_configuration = Configuration()
57
+ self.local_vars_configuration = local_vars_configuration
58
+
59
+ self._name = None
60
+ self._type_text = None
61
+ self._type_name = None
62
+ self._description = None
63
+ self._nullable = None
64
+ self._position = None
65
+ self.discriminator = None
66
+
67
+ self.name = name
68
+ self.type_text = type_text
69
+ self.type_name = type_name
70
+ if description is not None:
71
+ self.description = description
72
+ if nullable is not None:
73
+ self.nullable = nullable
74
+ if position is not None:
75
+ self.position = position
76
+
77
+ @property
78
+ def name(self):
79
+ """Gets the name of this ColumnInfo. # noqa: E501
80
+
81
+ Name of the column # noqa: E501
82
+
83
+ :return: The name of this ColumnInfo. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._name
87
+
88
+ @name.setter
89
+ def name(self, name):
90
+ """Sets the name of this ColumnInfo.
91
+
92
+ Name of the column # noqa: E501
93
+
94
+ :param name: The name of this ColumnInfo. # noqa: E501
95
+ :type: str
96
+ """
97
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
98
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
99
+
100
+ self._name = name
101
+
102
+ @property
103
+ def type_text(self):
104
+ """Gets the type_text of this ColumnInfo. # noqa: E501
105
+
106
+ Data type in text format (e.g., 'string', 'int', 'array<string>') # noqa: E501
107
+
108
+ :return: The type_text of this ColumnInfo. # noqa: E501
109
+ :rtype: str
110
+ """
111
+ return self._type_text
112
+
113
+ @type_text.setter
114
+ def type_text(self, type_text):
115
+ """Sets the type_text of this ColumnInfo.
116
+
117
+ Data type in text format (e.g., 'string', 'int', 'array<string>') # noqa: E501
118
+
119
+ :param type_text: The type_text of this ColumnInfo. # noqa: E501
120
+ :type: str
121
+ """
122
+ if self.local_vars_configuration.client_side_validation and type_text is None: # noqa: E501
123
+ raise ValueError("Invalid value for `type_text`, must not be `None`") # noqa: E501
124
+
125
+ self._type_text = type_text
126
+
127
+ @property
128
+ def type_name(self):
129
+ """Gets the type_name of this ColumnInfo. # noqa: E501
130
+
131
+ Data type name in uppercase (e.g., 'STRING', 'INT') # noqa: E501
132
+
133
+ :return: The type_name of this ColumnInfo. # noqa: E501
134
+ :rtype: str
135
+ """
136
+ return self._type_name
137
+
138
+ @type_name.setter
139
+ def type_name(self, type_name):
140
+ """Sets the type_name of this ColumnInfo.
141
+
142
+ Data type name in uppercase (e.g., 'STRING', 'INT') # noqa: E501
143
+
144
+ :param type_name: The type_name of this ColumnInfo. # noqa: E501
145
+ :type: str
146
+ """
147
+ if self.local_vars_configuration.client_side_validation and type_name is None: # noqa: E501
148
+ raise ValueError("Invalid value for `type_name`, must not be `None`") # noqa: E501
149
+
150
+ self._type_name = type_name
151
+
152
+ @property
153
+ def description(self):
154
+ """Gets the description of this ColumnInfo. # noqa: E501
155
+
156
+ Description or comment for the column # noqa: E501
157
+
158
+ :return: The description of this ColumnInfo. # noqa: E501
159
+ :rtype: str
160
+ """
161
+ return self._description
162
+
163
+ @description.setter
164
+ def description(self, description):
165
+ """Sets the description of this ColumnInfo.
166
+
167
+ Description or comment for the column # noqa: E501
168
+
169
+ :param description: The description of this ColumnInfo. # noqa: E501
170
+ :type: str
171
+ """
172
+
173
+ self._description = description
174
+
175
+ @property
176
+ def nullable(self):
177
+ """Gets the nullable of this ColumnInfo. # noqa: E501
178
+
179
+ Whether the column allows NULL values # noqa: E501
180
+
181
+ :return: The nullable of this ColumnInfo. # noqa: E501
182
+ :rtype: bool
183
+ """
184
+ return self._nullable
185
+
186
+ @nullable.setter
187
+ def nullable(self, nullable):
188
+ """Sets the nullable of this ColumnInfo.
189
+
190
+ Whether the column allows NULL values # noqa: E501
191
+
192
+ :param nullable: The nullable of this ColumnInfo. # noqa: E501
193
+ :type: bool
194
+ """
195
+
196
+ self._nullable = nullable
197
+
198
+ @property
199
+ def position(self):
200
+ """Gets the position of this ColumnInfo. # noqa: E501
201
+
202
+ Position of the column in the table schema # noqa: E501
203
+
204
+ :return: The position of this ColumnInfo. # noqa: E501
205
+ :rtype: int
206
+ """
207
+ return self._position
208
+
209
+ @position.setter
210
+ def position(self, position):
211
+ """Sets the position of this ColumnInfo.
212
+
213
+ Position of the column in the table schema # noqa: E501
214
+
215
+ :param position: The position of this ColumnInfo. # noqa: E501
216
+ :type: int
217
+ """
218
+
219
+ self._position = position
220
+
221
+ def to_dict(self):
222
+ """Returns the model properties as a dict"""
223
+ result = {}
224
+
225
+ for attr, _ in six.iteritems(self.openapi_types):
226
+ value = getattr(self, attr)
227
+ if isinstance(value, list):
228
+ result[attr] = list(map(
229
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
230
+ value
231
+ ))
232
+ elif hasattr(value, "to_dict"):
233
+ result[attr] = value.to_dict()
234
+ elif isinstance(value, dict):
235
+ result[attr] = dict(map(
236
+ lambda item: (item[0], item[1].to_dict())
237
+ if hasattr(item[1], "to_dict") else item,
238
+ value.items()
239
+ ))
240
+ else:
241
+ result[attr] = value
242
+
243
+ return result
244
+
245
+ def to_str(self):
246
+ """Returns the string representation of the model"""
247
+ return pprint.pformat(self.to_dict())
248
+
249
+ def __repr__(self):
250
+ """For `print` and `pprint`"""
251
+ return self.to_str()
252
+
253
+ def __eq__(self, other):
254
+ """Returns true if both objects are equal"""
255
+ if not isinstance(other, ColumnInfo):
256
+ return False
257
+
258
+ return self.to_dict() == other.to_dict()
259
+
260
+ def __ne__(self, other):
261
+ """Returns true if both objects are not equal"""
262
+ if not isinstance(other, ColumnInfo):
263
+ return True
264
+
265
+ return self.to_dict() != other.to_dict()
@@ -36,6 +36,7 @@ class ComputeNodeType(object):
36
36
  'name': 'str',
37
37
  'instance_type': 'str',
38
38
  'resources': 'Resources',
39
+ 'physical_resources': 'PhysicalResources',
39
40
  'labels': 'dict(str, str)',
40
41
  'aws_advanced_configurations_json': 'object',
41
42
  'gcp_advanced_configurations_json': 'object',
@@ -47,6 +48,7 @@ class ComputeNodeType(object):
47
48
  'name': 'name',
48
49
  'instance_type': 'instance_type',
49
50
  'resources': 'resources',
51
+ 'physical_resources': 'physical_resources',
50
52
  'labels': 'labels',
51
53
  'aws_advanced_configurations_json': 'aws_advanced_configurations_json',
52
54
  'gcp_advanced_configurations_json': 'gcp_advanced_configurations_json',
@@ -54,7 +56,7 @@ class ComputeNodeType(object):
54
56
  'flags': 'flags'
55
57
  }
56
58
 
57
- def __init__(self, name=None, instance_type=None, resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, local_vars_configuration=None): # noqa: E501
59
+ def __init__(self, name=None, instance_type=None, resources=None, physical_resources=None, labels=None, aws_advanced_configurations_json=None, gcp_advanced_configurations_json=None, advanced_configurations_json=None, flags=None, local_vars_configuration=None): # noqa: E501
58
60
  """ComputeNodeType - a model defined in OpenAPI""" # noqa: E501
59
61
  if local_vars_configuration is None:
60
62
  local_vars_configuration = Configuration()
@@ -63,6 +65,7 @@ class ComputeNodeType(object):
63
65
  self._name = None
64
66
  self._instance_type = None
65
67
  self._resources = None
68
+ self._physical_resources = None
66
69
  self._labels = None
67
70
  self._aws_advanced_configurations_json = None
68
71
  self._gcp_advanced_configurations_json = None
@@ -74,6 +77,8 @@ class ComputeNodeType(object):
74
77
  self.instance_type = instance_type
75
78
  if resources is not None:
76
79
  self.resources = resources
80
+ if physical_resources is not None:
81
+ self.physical_resources = physical_resources
77
82
  if labels is not None:
78
83
  self.labels = labels
79
84
  if aws_advanced_configurations_json is not None:
@@ -158,6 +163,29 @@ class ComputeNodeType(object):
158
163
 
159
164
  self._resources = resources
160
165
 
166
+ @property
167
+ def physical_resources(self):
168
+ """Gets the physical_resources of this ComputeNodeType. # noqa: E501
169
+
170
+ Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
171
+
172
+ :return: The physical_resources of this ComputeNodeType. # noqa: E501
173
+ :rtype: PhysicalResources
174
+ """
175
+ return self._physical_resources
176
+
177
+ @physical_resources.setter
178
+ def physical_resources(self, physical_resources):
179
+ """Sets the physical_resources of this ComputeNodeType.
180
+
181
+ Physical resources for compute node type which specifies the actual CPU, memory, and GPU resources that should be allocated for this node type. # noqa: E501
182
+
183
+ :param physical_resources: The physical_resources of this ComputeNodeType. # noqa: E501
184
+ :type: PhysicalResources
185
+ """
186
+
187
+ self._physical_resources = physical_resources
188
+
161
189
  @property
162
190
  def labels(self):
163
191
  """Gets the labels of this ComputeNodeType. # noqa: E501