anyscale 0.24.87__py3-none-any.whl → 0.24.91__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 (120) hide show
  1. anyscale/__init__.py +56 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +158 -28
  3. anyscale/_private/anyscale_client/common.py +82 -0
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +193 -1
  5. anyscale/_private/docgen/README.md +1 -1
  6. anyscale/_private/docgen/__main__.py +74 -19
  7. anyscale/_private/docgen/api.md +0 -20
  8. anyscale/_private/docgen/generator.py +4 -2
  9. anyscale/_private/docgen/models.md +1 -46
  10. anyscale/_private/workload/workload_config.py +1 -1
  11. anyscale/aggregated_instance_usage/__init__.py +1 -1
  12. anyscale/aggregated_instance_usage/commands.py +2 -4
  13. anyscale/aggregated_instance_usage/models.py +8 -8
  14. anyscale/client/README.md +19 -23
  15. anyscale/client/openapi_client/__init__.py +13 -15
  16. anyscale/client/openapi_client/api/default_api.py +825 -962
  17. anyscale/client/openapi_client/models/__init__.py +13 -15
  18. anyscale/client/openapi_client/models/admin_create_user.py +255 -0
  19. anyscale/client/openapi_client/models/admin_created_user.py +281 -0
  20. anyscale/client/openapi_client/models/{sessionevent_list_response.py → admincreateduser_list_response.py} +15 -15
  21. anyscale/client/openapi_client/models/aggregated_usage_query.py +1 -29
  22. anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
  23. anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
  24. anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
  25. anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
  26. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  27. anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
  28. anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
  29. anyscale/client/openapi_client/models/{fine_tuning_job_status.py → describemachinepoolresponse_response.py} +34 -16
  30. anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
  31. anyscale/client/openapi_client/models/machine_state_info.py +326 -0
  32. anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
  33. anyscale/client/openapi_client/models/request_state_info.py +210 -0
  34. anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
  35. anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
  36. anyscale/client/openapi_client/models/usage_by_user.py +30 -3
  37. anyscale/client/openapi_client/models/workload_info.py +210 -0
  38. anyscale/cloud/__init__.py +83 -0
  39. anyscale/cloud/_private/cloud_sdk.py +25 -0
  40. anyscale/cloud/commands.py +45 -0
  41. anyscale/cloud/models.py +91 -0
  42. anyscale/cluster_compute.py +1 -1
  43. anyscale/commands/aggregated_instance_usage_commands.py +4 -4
  44. anyscale/commands/cloud_commands.py +38 -2
  45. anyscale/commands/command_examples.py +67 -0
  46. anyscale/commands/job_commands.py +15 -3
  47. anyscale/commands/machine_pool_commands.py +113 -1
  48. anyscale/commands/organization_invitation_commands.py +98 -0
  49. anyscale/commands/project_commands.py +52 -2
  50. anyscale/commands/resource_quota_commands.py +98 -11
  51. anyscale/commands/service_commands.py +1 -1
  52. anyscale/commands/session_commands_hidden.py +5 -1
  53. anyscale/commands/user_commands.py +49 -0
  54. anyscale/commands/util.py +1 -1
  55. anyscale/commands/workspace_commands.py +1 -1
  56. anyscale/connect.py +1 -1
  57. anyscale/connect_utils/project.py +7 -4
  58. anyscale/controllers/cloud_controller.py +6 -6
  59. anyscale/controllers/cloud_functional_verification_controller.py +1 -1
  60. anyscale/controllers/cluster_controller.py +2 -2
  61. anyscale/controllers/compute_config_controller.py +1 -1
  62. anyscale/controllers/experimental_integrations_controller.py +1 -1
  63. anyscale/controllers/job_controller.py +8 -3
  64. anyscale/controllers/list_controller.py +2 -2
  65. anyscale/controllers/machine_pool_controller.py +12 -1
  66. anyscale/controllers/project_controller.py +4 -3
  67. anyscale/controllers/schedule_controller.py +1 -1
  68. anyscale/controllers/service_controller.py +1 -1
  69. anyscale/controllers/workspace_controller.py +1 -1
  70. anyscale/models/job_model.py +1 -1
  71. anyscale/organization_invitation/__init__.py +61 -0
  72. anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
  73. anyscale/organization_invitation/commands.py +84 -0
  74. anyscale/organization_invitation/models.py +45 -0
  75. anyscale/project/__init__.py +35 -0
  76. anyscale/project/_private/project_sdk.py +27 -0
  77. anyscale/project/commands.py +56 -0
  78. anyscale/project/models.py +91 -0
  79. anyscale/{project.py → project_utils.py} +3 -4
  80. anyscale/resource_quota/__init__.py +99 -0
  81. anyscale/resource_quota/_private/resource_quota_sdk.py +111 -0
  82. anyscale/resource_quota/commands.py +150 -0
  83. anyscale/resource_quota/models.py +303 -0
  84. anyscale/scripts.py +6 -0
  85. anyscale/sdk/anyscale_client/__init__.py +0 -5
  86. anyscale/sdk/anyscale_client/api/default_api.py +0 -150
  87. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  88. anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
  89. anyscale/sdk/anyscale_client/sdk.py +1 -1
  90. anyscale/user/__init__.py +35 -0
  91. anyscale/user/_private/user_sdk.py +32 -0
  92. anyscale/user/commands.py +42 -0
  93. anyscale/user/models.py +201 -0
  94. anyscale/util.py +15 -0
  95. anyscale/utils/cloud_utils.py +1 -1
  96. anyscale/version.py +1 -1
  97. anyscale/workspace_utils.py +1 -1
  98. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/METADATA +1 -5
  99. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/RECORD +105 -92
  100. anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
  101. anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
  102. anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
  103. anyscale/client/openapi_client/models/log_level_types.py +0 -100
  104. anyscale/client/openapi_client/models/paging_context.py +0 -172
  105. anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
  106. anyscale/client/openapi_client/models/session_event.py +0 -267
  107. anyscale/client/openapi_client/models/session_event_cause.py +0 -150
  108. anyscale/controllers/resource_quota_controller.py +0 -183
  109. anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
  110. anyscale/sdk/anyscale_client/models/session_event.py +0 -267
  111. anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
  112. anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
  113. anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
  114. anyscale/utils/imports/azure.py +0 -14
  115. /anyscale/{cloud.py → cloud_utils.py} +0 -0
  116. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/LICENSE +0 -0
  117. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/NOTICE +0 -0
  118. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/WHEEL +0 -0
  119. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/entry_points.txt +0 -0
  120. {anyscale-0.24.87.dist-info → anyscale-0.24.91.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class SessioneventListResponse(object):
21
+ class AdmincreateduserListResponse(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 SessioneventListResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'results': 'list[SessionEvent]',
36
+ 'results': 'list[AdminCreatedUser]',
37
37
  'metadata': 'ListResponseMetadata'
38
38
  }
39
39
 
@@ -43,7 +43,7 @@ class SessioneventListResponse(object):
43
43
  }
44
44
 
45
45
  def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """SessioneventListResponse - a model defined in OpenAPI""" # noqa: E501
46
+ """AdmincreateduserListResponse - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
@@ -58,21 +58,21 @@ class SessioneventListResponse(object):
58
58
 
59
59
  @property
60
60
  def results(self):
61
- """Gets the results of this SessioneventListResponse. # noqa: E501
61
+ """Gets the results of this AdmincreateduserListResponse. # noqa: E501
62
62
 
63
63
 
64
- :return: The results of this SessioneventListResponse. # noqa: E501
65
- :rtype: list[SessionEvent]
64
+ :return: The results of this AdmincreateduserListResponse. # noqa: E501
65
+ :rtype: list[AdminCreatedUser]
66
66
  """
67
67
  return self._results
68
68
 
69
69
  @results.setter
70
70
  def results(self, results):
71
- """Sets the results of this SessioneventListResponse.
71
+ """Sets the results of this AdmincreateduserListResponse.
72
72
 
73
73
 
74
- :param results: The results of this SessioneventListResponse. # noqa: E501
75
- :type: list[SessionEvent]
74
+ :param results: The results of this AdmincreateduserListResponse. # noqa: E501
75
+ :type: list[AdminCreatedUser]
76
76
  """
77
77
  if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
78
  raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
@@ -81,20 +81,20 @@ class SessioneventListResponse(object):
81
81
 
82
82
  @property
83
83
  def metadata(self):
84
- """Gets the metadata of this SessioneventListResponse. # noqa: E501
84
+ """Gets the metadata of this AdmincreateduserListResponse. # noqa: E501
85
85
 
86
86
 
87
- :return: The metadata of this SessioneventListResponse. # noqa: E501
87
+ :return: The metadata of this AdmincreateduserListResponse. # noqa: E501
88
88
  :rtype: ListResponseMetadata
89
89
  """
90
90
  return self._metadata
91
91
 
92
92
  @metadata.setter
93
93
  def metadata(self, metadata):
94
- """Sets the metadata of this SessioneventListResponse.
94
+ """Sets the metadata of this AdmincreateduserListResponse.
95
95
 
96
96
 
97
- :param metadata: The metadata of this SessioneventListResponse. # noqa: E501
97
+ :param metadata: The metadata of this AdmincreateduserListResponse. # noqa: E501
98
98
  :type: ListResponseMetadata
99
99
  """
100
100
 
@@ -134,14 +134,14 @@ class SessioneventListResponse(object):
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, SessioneventListResponse):
137
+ if not isinstance(other, AdmincreateduserListResponse):
138
138
  return False
139
139
 
140
140
  return self.to_dict() == other.to_dict()
141
141
 
142
142
  def __ne__(self, other):
143
143
  """Returns true if both objects are not equal"""
144
- if not isinstance(other, SessioneventListResponse):
144
+ if not isinstance(other, AdmincreateduserListResponse):
145
145
  return True
146
146
 
147
147
  return self.to_dict() != other.to_dict()
@@ -35,7 +35,6 @@ class AggregatedUsageQuery(object):
35
35
  openapi_types = {
36
36
  'start_date': 'date',
37
37
  'end_date': 'date',
38
- 'paging': 'PagingContext',
39
38
  'name_contains': 'str',
40
39
  'group_by_date': 'bool',
41
40
  'asc': 'bool'
@@ -44,13 +43,12 @@ class AggregatedUsageQuery(object):
44
43
  attribute_map = {
45
44
  'start_date': 'start_date',
46
45
  'end_date': 'end_date',
47
- 'paging': 'paging',
48
46
  'name_contains': 'name_contains',
49
47
  'group_by_date': 'group_by_date',
50
48
  'asc': 'asc'
51
49
  }
52
50
 
53
- def __init__(self, start_date=None, end_date=None, paging=None, name_contains=None, group_by_date=False, asc=False, local_vars_configuration=None): # noqa: E501
51
+ def __init__(self, start_date=None, end_date=None, name_contains=None, group_by_date=False, asc=False, local_vars_configuration=None): # noqa: E501
54
52
  """AggregatedUsageQuery - a model defined in OpenAPI""" # noqa: E501
55
53
  if local_vars_configuration is None:
56
54
  local_vars_configuration = Configuration()
@@ -58,7 +56,6 @@ class AggregatedUsageQuery(object):
58
56
 
59
57
  self._start_date = None
60
58
  self._end_date = None
61
- self._paging = None
62
59
  self._name_contains = None
63
60
  self._group_by_date = None
64
61
  self._asc = None
@@ -66,8 +63,6 @@ class AggregatedUsageQuery(object):
66
63
 
67
64
  self.start_date = start_date
68
65
  self.end_date = end_date
69
- if paging is not None:
70
- self.paging = paging
71
66
  if name_contains is not None:
72
67
  self.name_contains = name_contains
73
68
  if group_by_date is not None:
@@ -125,29 +120,6 @@ class AggregatedUsageQuery(object):
125
120
 
126
121
  self._end_date = end_date
127
122
 
128
- @property
129
- def paging(self):
130
- """Gets the paging of this AggregatedUsageQuery. # noqa: E501
131
-
132
- Pagination information. # noqa: E501
133
-
134
- :return: The paging of this AggregatedUsageQuery. # noqa: E501
135
- :rtype: PagingContext
136
- """
137
- return self._paging
138
-
139
- @paging.setter
140
- def paging(self, paging):
141
- """Sets the paging of this AggregatedUsageQuery.
142
-
143
- Pagination information. # noqa: E501
144
-
145
- :param paging: The paging of this AggregatedUsageQuery. # noqa: E501
146
- :type: PagingContext
147
- """
148
-
149
- self._paging = paging
150
-
151
123
  @property
152
124
  def name_contains(self):
153
125
  """Gets the name_contains of this AggregatedUsageQuery. # noqa: E501
@@ -18,32 +18,13 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class SessionEventTypes(object):
21
+ class CloudDeploymentConfig(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
25
25
  Do not edit the class manually.
26
26
  """
27
27
 
28
- """
29
- allowed enum values
30
- """
31
- EDITED = "edited"
32
- TERMINATE_COMMAND = "terminate_command"
33
- START_COMMAND = "start_command"
34
- RUNNING = "running"
35
- TERMINATED = "terminated"
36
- AWAITING_FILE_MOUNTS = "awaiting_file_mounts"
37
- STARTING = "starting"
38
- UPDATING = "updating"
39
- TERMINATING = "terminating"
40
- CREATED = "created"
41
- TERMINATING_ERRORED = "terminating_errored"
42
- UPDATING_ERRORED = "updating_errored"
43
- STARTUP_ERRORED = "startup_errored"
44
-
45
- allowable_values = [EDITED, TERMINATE_COMMAND, START_COMMAND, RUNNING, TERMINATED, AWAITING_FILE_MOUNTS, STARTING, UPDATING, TERMINATING, CREATED, TERMINATING_ERRORED, UPDATING_ERRORED, STARTUP_ERRORED] # noqa: E501
46
-
47
28
  """
48
29
  Attributes:
49
30
  openapi_types (dict): The key is attribute name
@@ -52,18 +33,48 @@ class SessionEventTypes(object):
52
33
  and the value is json key in definition.
53
34
  """
54
35
  openapi_types = {
36
+ 'spec': 'object'
55
37
  }
56
38
 
57
39
  attribute_map = {
40
+ 'spec': 'spec'
58
41
  }
59
42
 
60
- def __init__(self, local_vars_configuration=None): # noqa: E501
61
- """SessionEventTypes - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, spec=None, local_vars_configuration=None): # noqa: E501
44
+ """CloudDeploymentConfig - a model defined in OpenAPI""" # noqa: E501
62
45
  if local_vars_configuration is None:
63
46
  local_vars_configuration = Configuration()
64
47
  self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._spec = None
65
50
  self.discriminator = None
66
51
 
52
+ if spec is not None:
53
+ self.spec = spec
54
+
55
+ @property
56
+ def spec(self):
57
+ """Gets the spec of this CloudDeploymentConfig. # noqa: E501
58
+
59
+ Configurations of the cloud deployment. # noqa: E501
60
+
61
+ :return: The spec of this CloudDeploymentConfig. # noqa: E501
62
+ :rtype: object
63
+ """
64
+ return self._spec
65
+
66
+ @spec.setter
67
+ def spec(self, spec):
68
+ """Sets the spec of this CloudDeploymentConfig.
69
+
70
+ Configurations of the cloud deployment. # noqa: E501
71
+
72
+ :param spec: The spec of this CloudDeploymentConfig. # noqa: E501
73
+ :type: object
74
+ """
75
+
76
+ self._spec = spec
77
+
67
78
  def to_dict(self):
68
79
  """Returns the model properties as a dict"""
69
80
  result = {}
@@ -98,14 +109,14 @@ class SessionEventTypes(object):
98
109
 
99
110
  def __eq__(self, other):
100
111
  """Returns true if both objects are equal"""
101
- if not isinstance(other, SessionEventTypes):
112
+ if not isinstance(other, CloudDeploymentConfig):
102
113
  return False
103
114
 
104
115
  return self.to_dict() == other.to_dict()
105
116
 
106
117
  def __ne__(self, other):
107
118
  """Returns true if both objects are not equal"""
108
- if not isinstance(other, SessionEventTypes):
119
+ if not isinstance(other, CloudDeploymentConfig):
109
120
  return True
110
121
 
111
122
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class PlatformfinetuningjobResponse(object):
21
+ class ClouddeploymentconfigResponse(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 PlatformfinetuningjobResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'PlatformFineTuningJob'
36
+ 'result': 'CloudDeploymentConfig'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class PlatformfinetuningjobResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """PlatformfinetuningjobResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """ClouddeploymentconfigResponse - 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 PlatformfinetuningjobResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this PlatformfinetuningjobResponse. # noqa: E501
56
+ """Gets the result of this ClouddeploymentconfigResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this PlatformfinetuningjobResponse. # noqa: E501
60
- :rtype: PlatformFineTuningJob
59
+ :return: The result of this ClouddeploymentconfigResponse. # noqa: E501
60
+ :rtype: CloudDeploymentConfig
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 PlatformfinetuningjobResponse.
66
+ """Sets the result of this ClouddeploymentconfigResponse.
67
67
 
68
68
 
69
- :param result: The result of this PlatformfinetuningjobResponse. # noqa: E501
70
- :type: PlatformFineTuningJob
69
+ :param result: The result of this ClouddeploymentconfigResponse. # noqa: E501
70
+ :type: CloudDeploymentConfig
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 PlatformfinetuningjobResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, PlatformfinetuningjobResponse):
111
+ if not isinstance(other, ClouddeploymentconfigResponse):
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, PlatformfinetuningjobResponse):
118
+ if not isinstance(other, ClouddeploymentconfigResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class CompanySize(object):
21
+ class ClusterSize(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -28,13 +28,13 @@ class CompanySize(object):
28
28
  """
29
29
  allowed enum values
30
30
  """
31
- _1_10 = "1 - 10"
32
- _11_50 = "11 - 50"
33
- _51_200 = "51 - 200"
34
- _201_500 = "201 - 500"
35
- _500 = "> 500"
31
+ _1_NODE = "1 node"
32
+ _2_10_NODES = "2-10 nodes"
33
+ _10_100_NODES = "10-100 nodes"
34
+ _100_NODES = "100+ nodes"
35
+ N_A = "N/A"
36
36
 
37
- allowable_values = [_1_10, _11_50, _51_200, _201_500, _500] # noqa: E501
37
+ allowable_values = [_1_NODE, _2_10_NODES, _10_100_NODES, _100_NODES, N_A] # noqa: E501
38
38
 
39
39
  """
40
40
  Attributes:
@@ -50,7 +50,7 @@ class CompanySize(object):
50
50
  }
51
51
 
52
52
  def __init__(self, local_vars_configuration=None): # noqa: E501
53
- """CompanySize - a model defined in OpenAPI""" # noqa: E501
53
+ """ClusterSize - a model defined in OpenAPI""" # noqa: E501
54
54
  if local_vars_configuration is None:
55
55
  local_vars_configuration = Configuration()
56
56
  self.local_vars_configuration = local_vars_configuration
@@ -90,14 +90,14 @@ class CompanySize(object):
90
90
 
91
91
  def __eq__(self, other):
92
92
  """Returns true if both objects are equal"""
93
- if not isinstance(other, CompanySize):
93
+ if not isinstance(other, ClusterSize):
94
94
  return False
95
95
 
96
96
  return self.to_dict() == other.to_dict()
97
97
 
98
98
  def __ne__(self, other):
99
99
  """Returns true if both objects are not equal"""
100
- if not isinstance(other, CompanySize):
100
+ if not isinstance(other, ClusterSize):
101
101
  return True
102
102
 
103
103
  return self.to_dict() != other.to_dict()
@@ -30,8 +30,9 @@ class ClusterStatusDetails(object):
30
30
  """
31
31
  LAUNCHING_NODES = "LAUNCHING_NODES"
32
32
  CONFIGURING_HEAD_NODE = "CONFIGURING_HEAD_NODE"
33
+ UPDATING_CONTAINERS = "UPDATING_CONTAINERS"
33
34
 
34
- allowable_values = [LAUNCHING_NODES, CONFIGURING_HEAD_NODE] # noqa: E501
35
+ allowable_values = [LAUNCHING_NODES, CONFIGURING_HEAD_NODE, UPDATING_CONTAINERS] # noqa: E501
35
36
 
36
37
  """
37
38
  Attributes:
@@ -44,6 +44,7 @@ class CreateExperimentalWorkspace(object):
44
44
  'cloned_job_id': 'str',
45
45
  'cloned_workspace_id': 'str',
46
46
  'template_id': 'str',
47
+ 'template_url': 'str',
47
48
  'skip_start': 'bool'
48
49
  }
49
50
 
@@ -59,10 +60,11 @@ class CreateExperimentalWorkspace(object):
59
60
  'cloned_job_id': 'cloned_job_id',
60
61
  'cloned_workspace_id': 'cloned_workspace_id',
61
62
  'template_id': 'template_id',
63
+ 'template_url': 'template_url',
62
64
  'skip_start': 'skip_start'
63
65
  }
64
66
 
65
- 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, skip_start=None, local_vars_configuration=None): # noqa: E501
67
+ 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_url=None, skip_start=None, local_vars_configuration=None): # noqa: E501
66
68
  """CreateExperimentalWorkspace - a model defined in OpenAPI""" # noqa: E501
67
69
  if local_vars_configuration is None:
68
70
  local_vars_configuration = Configuration()
@@ -79,6 +81,7 @@ class CreateExperimentalWorkspace(object):
79
81
  self._cloned_job_id = None
80
82
  self._cloned_workspace_id = None
81
83
  self._template_id = None
84
+ self._template_url = None
82
85
  self._skip_start = None
83
86
  self.discriminator = None
84
87
 
@@ -99,6 +102,8 @@ class CreateExperimentalWorkspace(object):
99
102
  self.cloned_workspace_id = cloned_workspace_id
100
103
  if template_id is not None:
101
104
  self.template_id = template_id
105
+ if template_url is not None:
106
+ self.template_url = template_url
102
107
  if skip_start is not None:
103
108
  self.skip_start = skip_start
104
109
 
@@ -365,6 +370,29 @@ class CreateExperimentalWorkspace(object):
365
370
 
366
371
  self._template_id = template_id
367
372
 
373
+ @property
374
+ def template_url(self):
375
+ """Gets the template_url of this CreateExperimentalWorkspace. # noqa: E501
376
+
377
+ The template's URL to use. When this is specified, the template_id is only used for generating the build id. # noqa: E501
378
+
379
+ :return: The template_url of this CreateExperimentalWorkspace. # noqa: E501
380
+ :rtype: str
381
+ """
382
+ return self._template_url
383
+
384
+ @template_url.setter
385
+ def template_url(self, template_url):
386
+ """Sets the template_url of this CreateExperimentalWorkspace.
387
+
388
+ The template's URL to use. When this is specified, the template_id is only used for generating the build id. # noqa: E501
389
+
390
+ :param template_url: The template_url of this CreateExperimentalWorkspace. # noqa: E501
391
+ :type: str
392
+ """
393
+
394
+ self._template_url = template_url
395
+
368
396
  @property
369
397
  def skip_start(self):
370
398
  """Gets the skip_start of this CreateExperimentalWorkspace. # noqa: E501
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class ResubmitFTJobRequest(object):
21
+ class DescribeMachinePoolRequest(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,46 +33,47 @@ class ResubmitFTJobRequest(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'finetuning_job_id': 'str'
36
+ 'machine_pool_name': 'str'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'finetuning_job_id': 'finetuning_job_id'
40
+ 'machine_pool_name': 'machine_pool_name'
41
41
  }
42
42
 
43
- def __init__(self, finetuning_job_id=None, local_vars_configuration=None): # noqa: E501
44
- """ResubmitFTJobRequest - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
+ """DescribeMachinePoolRequest - 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
48
48
 
49
- self._finetuning_job_id = None
49
+ self._machine_pool_name = None
50
50
  self.discriminator = None
51
51
 
52
- self.finetuning_job_id = finetuning_job_id
52
+ if machine_pool_name is not None:
53
+ self.machine_pool_name = machine_pool_name
53
54
 
54
55
  @property
55
- def finetuning_job_id(self):
56
- """Gets the finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
56
+ def machine_pool_name(self):
57
+ """Gets the machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
57
58
 
59
+ The name of the machine pool. # noqa: E501
58
60
 
59
- :return: The finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
61
+ :return: The machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
60
62
  :rtype: str
61
63
  """
62
- return self._finetuning_job_id
64
+ return self._machine_pool_name
63
65
 
64
- @finetuning_job_id.setter
65
- def finetuning_job_id(self, finetuning_job_id):
66
- """Sets the finetuning_job_id of this ResubmitFTJobRequest.
66
+ @machine_pool_name.setter
67
+ def machine_pool_name(self, machine_pool_name):
68
+ """Sets the machine_pool_name of this DescribeMachinePoolRequest.
67
69
 
70
+ The name of the machine pool. # noqa: E501
68
71
 
69
- :param finetuning_job_id: The finetuning_job_id of this ResubmitFTJobRequest. # noqa: E501
72
+ :param machine_pool_name: The machine_pool_name of this DescribeMachinePoolRequest. # noqa: E501
70
73
  :type: str
71
74
  """
72
- if self.local_vars_configuration.client_side_validation and finetuning_job_id is None: # noqa: E501
73
- raise ValueError("Invalid value for `finetuning_job_id`, must not be `None`") # noqa: E501
74
75
 
75
- self._finetuning_job_id = finetuning_job_id
76
+ self._machine_pool_name = machine_pool_name
76
77
 
77
78
  def to_dict(self):
78
79
  """Returns the model properties as a dict"""
@@ -108,14 +109,14 @@ class ResubmitFTJobRequest(object):
108
109
 
109
110
  def __eq__(self, other):
110
111
  """Returns true if both objects are equal"""
111
- if not isinstance(other, ResubmitFTJobRequest):
112
+ if not isinstance(other, DescribeMachinePoolRequest):
112
113
  return False
113
114
 
114
115
  return self.to_dict() == other.to_dict()
115
116
 
116
117
  def __ne__(self, other):
117
118
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, ResubmitFTJobRequest):
119
+ if not isinstance(other, DescribeMachinePoolRequest):
119
120
  return True
120
121
 
121
122
  return self.to_dict() != other.to_dict()