anyscale 0.24.88__py3-none-any.whl → 0.25.0__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.
- anyscale/__init__.py +46 -0
- anyscale/_private/anyscale_client/anyscale_client.py +148 -28
- anyscale/_private/anyscale_client/common.py +74 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +165 -1
- anyscale/_private/docgen/README.md +1 -1
- anyscale/_private/docgen/__main__.py +62 -19
- anyscale/_private/docgen/api.md +0 -20
- anyscale/_private/docgen/generator.py +3 -2
- anyscale/_private/docgen/models.md +1 -46
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/aggregated_instance_usage/__init__.py +1 -1
- anyscale/aggregated_instance_usage/commands.py +2 -4
- anyscale/aggregated_instance_usage/models.py +8 -8
- anyscale/client/README.md +15 -22
- anyscale/client/openapi_client/__init__.py +10 -14
- anyscale/client/openapi_client/api/default_api.py +634 -957
- anyscale/client/openapi_client/models/__init__.py +10 -14
- anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
- anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
- anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
- anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
- anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
- anyscale/client/openapi_client/models/{fine_tuning_job_status.py → describemachinepoolresponse_response.py} +34 -16
- anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
- anyscale/client/openapi_client/models/machine_state_info.py +326 -0
- anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
- anyscale/client/openapi_client/models/request_state_info.py +210 -0
- anyscale/client/openapi_client/models/{sessionevent_list_response.py → scheduler_info.py} +43 -38
- anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
- anyscale/client/openapi_client/models/usage_by_user.py +30 -3
- anyscale/client/openapi_client/models/workload_info.py +210 -0
- anyscale/cloud/__init__.py +83 -0
- anyscale/cloud/_private/cloud_sdk.py +25 -0
- anyscale/cloud/commands.py +45 -0
- anyscale/cloud/models.py +91 -0
- anyscale/cluster_compute.py +1 -1
- anyscale/commands/aggregated_instance_usage_commands.py +4 -4
- anyscale/commands/cloud_commands.py +38 -2
- anyscale/commands/command_examples.py +61 -0
- anyscale/commands/job_commands.py +15 -3
- anyscale/commands/machine_pool_commands.py +113 -1
- anyscale/commands/organization_invitation_commands.py +98 -0
- anyscale/commands/project_commands.py +52 -2
- anyscale/commands/resource_quota_commands.py +98 -11
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/session_commands_hidden.py +5 -1
- anyscale/commands/user_commands.py +1 -1
- anyscale/commands/util.py +2 -2
- anyscale/commands/workspace_commands.py +1 -1
- anyscale/connect.py +1 -1
- anyscale/connect_utils/project.py +7 -4
- anyscale/controllers/cloud_controller.py +6 -6
- anyscale/controllers/cloud_functional_verification_controller.py +1 -1
- anyscale/controllers/cluster_controller.py +2 -2
- anyscale/controllers/compute_config_controller.py +1 -1
- anyscale/controllers/experimental_integrations_controller.py +1 -1
- anyscale/controllers/job_controller.py +8 -3
- anyscale/controllers/list_controller.py +2 -2
- anyscale/controllers/machine_pool_controller.py +12 -1
- anyscale/controllers/project_controller.py +4 -3
- anyscale/controllers/schedule_controller.py +1 -1
- anyscale/controllers/service_controller.py +1 -1
- anyscale/controllers/workspace_controller.py +1 -1
- anyscale/models/job_model.py +1 -1
- anyscale/organization_invitation/__init__.py +61 -0
- anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
- anyscale/organization_invitation/commands.py +84 -0
- anyscale/organization_invitation/models.py +45 -0
- anyscale/project/__init__.py +35 -0
- anyscale/project/_private/project_sdk.py +27 -0
- anyscale/project/commands.py +56 -0
- anyscale/project/models.py +91 -0
- anyscale/{project.py → project_utils.py} +3 -4
- anyscale/resource_quota/__init__.py +99 -0
- anyscale/resource_quota/_private/resource_quota_sdk.py +111 -0
- anyscale/resource_quota/commands.py +150 -0
- anyscale/resource_quota/models.py +303 -0
- anyscale/scripts.py +4 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +0 -150
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
- anyscale/sdk/anyscale_client/sdk.py +1 -1
- anyscale/user/__init__.py +1 -1
- anyscale/user/commands.py +1 -1
- anyscale/user/models.py +25 -15
- anyscale/util.py +15 -0
- anyscale/utils/cloud_utils.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace_utils.py +1 -1
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/METADATA +1 -5
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/RECORD +100 -94
- anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
- anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
- anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
- anyscale/client/openapi_client/models/log_level_types.py +0 -100
- anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
- anyscale/client/openapi_client/models/platformfinetuningjob_list_response.py +0 -147
- anyscale/client/openapi_client/models/session_event.py +0 -267
- anyscale/client/openapi_client/models/session_event_cause.py +0 -150
- anyscale/controllers/resource_quota_controller.py +0 -183
- anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
- anyscale/sdk/anyscale_client/models/session_event.py +0 -267
- anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
- anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
- anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
- anyscale/utils/imports/azure.py +0 -14
- /anyscale/{cloud.py → cloud_utils.py} +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/LICENSE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/NOTICE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/WHEEL +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.0.dist-info}/top_level.txt +0 -0
|
@@ -18,24 +18,13 @@ import six
|
|
|
18
18
|
from openapi_client.configuration import Configuration
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class DescribemachinepoolresponseResponse(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
|
-
PENDING = "pending"
|
|
32
|
-
RUNNING = "running"
|
|
33
|
-
SUCCEEDED = "succeeded"
|
|
34
|
-
FAILED = "failed"
|
|
35
|
-
CANCELLED = "cancelled"
|
|
36
|
-
|
|
37
|
-
allowable_values = [PENDING, RUNNING, SUCCEEDED, FAILED, CANCELLED] # noqa: E501
|
|
38
|
-
|
|
39
28
|
"""
|
|
40
29
|
Attributes:
|
|
41
30
|
openapi_types (dict): The key is attribute name
|
|
@@ -44,18 +33,47 @@ class FineTuningJobStatus(object):
|
|
|
44
33
|
and the value is json key in definition.
|
|
45
34
|
"""
|
|
46
35
|
openapi_types = {
|
|
36
|
+
'result': 'DescribeMachinePoolResponse'
|
|
47
37
|
}
|
|
48
38
|
|
|
49
39
|
attribute_map = {
|
|
40
|
+
'result': 'result'
|
|
50
41
|
}
|
|
51
42
|
|
|
52
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
53
|
-
"""
|
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
+
"""DescribemachinepoolresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
|
54
45
|
if local_vars_configuration is None:
|
|
55
46
|
local_vars_configuration = Configuration()
|
|
56
47
|
self.local_vars_configuration = local_vars_configuration
|
|
48
|
+
|
|
49
|
+
self._result = None
|
|
57
50
|
self.discriminator = None
|
|
58
51
|
|
|
52
|
+
self.result = result
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def result(self):
|
|
56
|
+
"""Gets the result of this DescribemachinepoolresponseResponse. # noqa: E501
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:return: The result of this DescribemachinepoolresponseResponse. # noqa: E501
|
|
60
|
+
:rtype: DescribeMachinePoolResponse
|
|
61
|
+
"""
|
|
62
|
+
return self._result
|
|
63
|
+
|
|
64
|
+
@result.setter
|
|
65
|
+
def result(self, result):
|
|
66
|
+
"""Sets the result of this DescribemachinepoolresponseResponse.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:param result: The result of this DescribemachinepoolresponseResponse. # noqa: E501
|
|
70
|
+
:type: DescribeMachinePoolResponse
|
|
71
|
+
"""
|
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
|
74
|
+
|
|
75
|
+
self._result = result
|
|
76
|
+
|
|
59
77
|
def to_dict(self):
|
|
60
78
|
"""Returns the model properties as a dict"""
|
|
61
79
|
result = {}
|
|
@@ -90,14 +108,14 @@ class FineTuningJobStatus(object):
|
|
|
90
108
|
|
|
91
109
|
def __eq__(self, other):
|
|
92
110
|
"""Returns true if both objects are equal"""
|
|
93
|
-
if not isinstance(other,
|
|
111
|
+
if not isinstance(other, DescribemachinepoolresponseResponse):
|
|
94
112
|
return False
|
|
95
113
|
|
|
96
114
|
return self.to_dict() == other.to_dict()
|
|
97
115
|
|
|
98
116
|
def __ne__(self, other):
|
|
99
117
|
"""Returns true if both objects are not equal"""
|
|
100
|
-
if not isinstance(other,
|
|
118
|
+
if not isinstance(other, DescribemachinepoolresponseResponse):
|
|
101
119
|
return True
|
|
102
120
|
|
|
103
121
|
return self.to_dict() != other.to_dict()
|
|
@@ -30,8 +30,10 @@ class MachineAllocationState(object):
|
|
|
30
30
|
"""
|
|
31
31
|
AVAILABLE = "available"
|
|
32
32
|
ALLOCATED = "allocated"
|
|
33
|
+
MIGRATING = "migrating"
|
|
34
|
+
RESTORING = "restoring"
|
|
33
35
|
|
|
34
|
-
allowable_values = [AVAILABLE, ALLOCATED] # noqa: E501
|
|
36
|
+
allowable_values = [AVAILABLE, ALLOCATED, MIGRATING, RESTORING] # noqa: E501
|
|
35
37
|
|
|
36
38
|
"""
|
|
37
39
|
Attributes:
|
|
@@ -0,0 +1,326 @@
|
|
|
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 MachineStateInfo(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
|
+
'machine_id': 'str',
|
|
37
|
+
'machine_type': 'str',
|
|
38
|
+
'partition': 'str',
|
|
39
|
+
'allocation_state': 'MachineAllocationState',
|
|
40
|
+
'workload_info': 'WorkloadInfo',
|
|
41
|
+
'workload_score': 'int',
|
|
42
|
+
'workload_instance_id': 'str',
|
|
43
|
+
'cloud_instance_id': 'str'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'machine_id': 'machine_id',
|
|
48
|
+
'machine_type': 'machine_type',
|
|
49
|
+
'partition': 'partition',
|
|
50
|
+
'allocation_state': 'allocation_state',
|
|
51
|
+
'workload_info': 'workload_info',
|
|
52
|
+
'workload_score': 'workload_score',
|
|
53
|
+
'workload_instance_id': 'workload_instance_id',
|
|
54
|
+
'cloud_instance_id': 'cloud_instance_id'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
def __init__(self, machine_id=None, machine_type=None, partition=None, allocation_state=None, workload_info=None, workload_score=None, workload_instance_id=None, cloud_instance_id=None, local_vars_configuration=None): # noqa: E501
|
|
58
|
+
"""MachineStateInfo - a model defined in OpenAPI""" # noqa: E501
|
|
59
|
+
if local_vars_configuration is None:
|
|
60
|
+
local_vars_configuration = Configuration()
|
|
61
|
+
self.local_vars_configuration = local_vars_configuration
|
|
62
|
+
|
|
63
|
+
self._machine_id = None
|
|
64
|
+
self._machine_type = None
|
|
65
|
+
self._partition = None
|
|
66
|
+
self._allocation_state = None
|
|
67
|
+
self._workload_info = None
|
|
68
|
+
self._workload_score = None
|
|
69
|
+
self._workload_instance_id = None
|
|
70
|
+
self._cloud_instance_id = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
|
|
73
|
+
self.machine_id = machine_id
|
|
74
|
+
self.machine_type = machine_type
|
|
75
|
+
self.partition = partition
|
|
76
|
+
self.allocation_state = allocation_state
|
|
77
|
+
self.workload_info = workload_info
|
|
78
|
+
self.workload_score = workload_score
|
|
79
|
+
self.workload_instance_id = workload_instance_id
|
|
80
|
+
self.cloud_instance_id = cloud_instance_id
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def machine_id(self):
|
|
84
|
+
"""Gets the machine_id of this MachineStateInfo. # noqa: E501
|
|
85
|
+
|
|
86
|
+
The ID of the machine. # noqa: E501
|
|
87
|
+
|
|
88
|
+
:return: The machine_id of this MachineStateInfo. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._machine_id
|
|
92
|
+
|
|
93
|
+
@machine_id.setter
|
|
94
|
+
def machine_id(self, machine_id):
|
|
95
|
+
"""Sets the machine_id of this MachineStateInfo.
|
|
96
|
+
|
|
97
|
+
The ID of the machine. # noqa: E501
|
|
98
|
+
|
|
99
|
+
:param machine_id: The machine_id of this MachineStateInfo. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
if self.local_vars_configuration.client_side_validation and machine_id is None: # noqa: E501
|
|
103
|
+
raise ValueError("Invalid value for `machine_id`, must not be `None`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
self._machine_id = machine_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def machine_type(self):
|
|
109
|
+
"""Gets the machine_type of this MachineStateInfo. # noqa: E501
|
|
110
|
+
|
|
111
|
+
The type of the machine. # noqa: E501
|
|
112
|
+
|
|
113
|
+
:return: The machine_type of this MachineStateInfo. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._machine_type
|
|
117
|
+
|
|
118
|
+
@machine_type.setter
|
|
119
|
+
def machine_type(self, machine_type):
|
|
120
|
+
"""Sets the machine_type of this MachineStateInfo.
|
|
121
|
+
|
|
122
|
+
The type of the machine. # noqa: E501
|
|
123
|
+
|
|
124
|
+
:param machine_type: The machine_type of this MachineStateInfo. # noqa: E501
|
|
125
|
+
:type: str
|
|
126
|
+
"""
|
|
127
|
+
if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
|
|
128
|
+
raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
|
|
129
|
+
|
|
130
|
+
self._machine_type = machine_type
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def partition(self):
|
|
134
|
+
"""Gets the partition of this MachineStateInfo. # noqa: E501
|
|
135
|
+
|
|
136
|
+
The partition of the machine. # noqa: E501
|
|
137
|
+
|
|
138
|
+
:return: The partition of this MachineStateInfo. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._partition
|
|
142
|
+
|
|
143
|
+
@partition.setter
|
|
144
|
+
def partition(self, partition):
|
|
145
|
+
"""Sets the partition of this MachineStateInfo.
|
|
146
|
+
|
|
147
|
+
The partition of the machine. # noqa: E501
|
|
148
|
+
|
|
149
|
+
:param partition: The partition of this MachineStateInfo. # noqa: E501
|
|
150
|
+
:type: str
|
|
151
|
+
"""
|
|
152
|
+
if self.local_vars_configuration.client_side_validation and partition is None: # noqa: E501
|
|
153
|
+
raise ValueError("Invalid value for `partition`, must not be `None`") # noqa: E501
|
|
154
|
+
|
|
155
|
+
self._partition = partition
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def allocation_state(self):
|
|
159
|
+
"""Gets the allocation_state of this MachineStateInfo. # noqa: E501
|
|
160
|
+
|
|
161
|
+
The allocation state of the machine. # noqa: E501
|
|
162
|
+
|
|
163
|
+
:return: The allocation_state of this MachineStateInfo. # noqa: E501
|
|
164
|
+
:rtype: MachineAllocationState
|
|
165
|
+
"""
|
|
166
|
+
return self._allocation_state
|
|
167
|
+
|
|
168
|
+
@allocation_state.setter
|
|
169
|
+
def allocation_state(self, allocation_state):
|
|
170
|
+
"""Sets the allocation_state of this MachineStateInfo.
|
|
171
|
+
|
|
172
|
+
The allocation state of the machine. # noqa: E501
|
|
173
|
+
|
|
174
|
+
:param allocation_state: The allocation_state of this MachineStateInfo. # noqa: E501
|
|
175
|
+
:type: MachineAllocationState
|
|
176
|
+
"""
|
|
177
|
+
if self.local_vars_configuration.client_side_validation and allocation_state is None: # noqa: E501
|
|
178
|
+
raise ValueError("Invalid value for `allocation_state`, must not be `None`") # noqa: E501
|
|
179
|
+
|
|
180
|
+
self._allocation_state = allocation_state
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def workload_info(self):
|
|
184
|
+
"""Gets the workload_info of this MachineStateInfo. # noqa: E501
|
|
185
|
+
|
|
186
|
+
Workload metadata associated with this machine. # noqa: E501
|
|
187
|
+
|
|
188
|
+
:return: The workload_info of this MachineStateInfo. # noqa: E501
|
|
189
|
+
:rtype: WorkloadInfo
|
|
190
|
+
"""
|
|
191
|
+
return self._workload_info
|
|
192
|
+
|
|
193
|
+
@workload_info.setter
|
|
194
|
+
def workload_info(self, workload_info):
|
|
195
|
+
"""Sets the workload_info of this MachineStateInfo.
|
|
196
|
+
|
|
197
|
+
Workload metadata associated with this machine. # noqa: E501
|
|
198
|
+
|
|
199
|
+
:param workload_info: The workload_info of this MachineStateInfo. # noqa: E501
|
|
200
|
+
:type: WorkloadInfo
|
|
201
|
+
"""
|
|
202
|
+
if self.local_vars_configuration.client_side_validation and workload_info is None: # noqa: E501
|
|
203
|
+
raise ValueError("Invalid value for `workload_info`, must not be `None`") # noqa: E501
|
|
204
|
+
|
|
205
|
+
self._workload_info = workload_info
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def workload_score(self):
|
|
209
|
+
"""Gets the workload_score of this MachineStateInfo. # noqa: E501
|
|
210
|
+
|
|
211
|
+
The score of the workload. # noqa: E501
|
|
212
|
+
|
|
213
|
+
:return: The workload_score of this MachineStateInfo. # noqa: E501
|
|
214
|
+
:rtype: int
|
|
215
|
+
"""
|
|
216
|
+
return self._workload_score
|
|
217
|
+
|
|
218
|
+
@workload_score.setter
|
|
219
|
+
def workload_score(self, workload_score):
|
|
220
|
+
"""Sets the workload_score of this MachineStateInfo.
|
|
221
|
+
|
|
222
|
+
The score of the workload. # noqa: E501
|
|
223
|
+
|
|
224
|
+
:param workload_score: The workload_score of this MachineStateInfo. # noqa: E501
|
|
225
|
+
:type: int
|
|
226
|
+
"""
|
|
227
|
+
if self.local_vars_configuration.client_side_validation and workload_score is None: # noqa: E501
|
|
228
|
+
raise ValueError("Invalid value for `workload_score`, must not be `None`") # noqa: E501
|
|
229
|
+
|
|
230
|
+
self._workload_score = workload_score
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def workload_instance_id(self):
|
|
234
|
+
"""Gets the workload_instance_id of this MachineStateInfo. # noqa: E501
|
|
235
|
+
|
|
236
|
+
The instance ID of the workload. # noqa: E501
|
|
237
|
+
|
|
238
|
+
:return: The workload_instance_id of this MachineStateInfo. # noqa: E501
|
|
239
|
+
:rtype: str
|
|
240
|
+
"""
|
|
241
|
+
return self._workload_instance_id
|
|
242
|
+
|
|
243
|
+
@workload_instance_id.setter
|
|
244
|
+
def workload_instance_id(self, workload_instance_id):
|
|
245
|
+
"""Sets the workload_instance_id of this MachineStateInfo.
|
|
246
|
+
|
|
247
|
+
The instance ID of the workload. # noqa: E501
|
|
248
|
+
|
|
249
|
+
:param workload_instance_id: The workload_instance_id of this MachineStateInfo. # noqa: E501
|
|
250
|
+
:type: str
|
|
251
|
+
"""
|
|
252
|
+
if self.local_vars_configuration.client_side_validation and workload_instance_id is None: # noqa: E501
|
|
253
|
+
raise ValueError("Invalid value for `workload_instance_id`, must not be `None`") # noqa: E501
|
|
254
|
+
|
|
255
|
+
self._workload_instance_id = workload_instance_id
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def cloud_instance_id(self):
|
|
259
|
+
"""Gets the cloud_instance_id of this MachineStateInfo. # noqa: E501
|
|
260
|
+
|
|
261
|
+
The cloud instance ID of the cloud instance backing this machine. # noqa: E501
|
|
262
|
+
|
|
263
|
+
:return: The cloud_instance_id of this MachineStateInfo. # noqa: E501
|
|
264
|
+
:rtype: str
|
|
265
|
+
"""
|
|
266
|
+
return self._cloud_instance_id
|
|
267
|
+
|
|
268
|
+
@cloud_instance_id.setter
|
|
269
|
+
def cloud_instance_id(self, cloud_instance_id):
|
|
270
|
+
"""Sets the cloud_instance_id of this MachineStateInfo.
|
|
271
|
+
|
|
272
|
+
The cloud instance ID of the cloud instance backing this machine. # noqa: E501
|
|
273
|
+
|
|
274
|
+
:param cloud_instance_id: The cloud_instance_id of this MachineStateInfo. # noqa: E501
|
|
275
|
+
:type: str
|
|
276
|
+
"""
|
|
277
|
+
if self.local_vars_configuration.client_side_validation and cloud_instance_id is None: # noqa: E501
|
|
278
|
+
raise ValueError("Invalid value for `cloud_instance_id`, must not be `None`") # noqa: E501
|
|
279
|
+
|
|
280
|
+
self._cloud_instance_id = cloud_instance_id
|
|
281
|
+
|
|
282
|
+
def to_dict(self):
|
|
283
|
+
"""Returns the model properties as a dict"""
|
|
284
|
+
result = {}
|
|
285
|
+
|
|
286
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
287
|
+
value = getattr(self, attr)
|
|
288
|
+
if isinstance(value, list):
|
|
289
|
+
result[attr] = list(map(
|
|
290
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
291
|
+
value
|
|
292
|
+
))
|
|
293
|
+
elif hasattr(value, "to_dict"):
|
|
294
|
+
result[attr] = value.to_dict()
|
|
295
|
+
elif isinstance(value, dict):
|
|
296
|
+
result[attr] = dict(map(
|
|
297
|
+
lambda item: (item[0], item[1].to_dict())
|
|
298
|
+
if hasattr(item[1], "to_dict") else item,
|
|
299
|
+
value.items()
|
|
300
|
+
))
|
|
301
|
+
else:
|
|
302
|
+
result[attr] = value
|
|
303
|
+
|
|
304
|
+
return result
|
|
305
|
+
|
|
306
|
+
def to_str(self):
|
|
307
|
+
"""Returns the string representation of the model"""
|
|
308
|
+
return pprint.pformat(self.to_dict())
|
|
309
|
+
|
|
310
|
+
def __repr__(self):
|
|
311
|
+
"""For `print` and `pprint`"""
|
|
312
|
+
return self.to_str()
|
|
313
|
+
|
|
314
|
+
def __eq__(self, other):
|
|
315
|
+
"""Returns true if both objects are equal"""
|
|
316
|
+
if not isinstance(other, MachineStateInfo):
|
|
317
|
+
return False
|
|
318
|
+
|
|
319
|
+
return self.to_dict() == other.to_dict()
|
|
320
|
+
|
|
321
|
+
def __ne__(self, other):
|
|
322
|
+
"""Returns true if both objects are not equal"""
|
|
323
|
+
if not isinstance(other, MachineStateInfo):
|
|
324
|
+
return True
|
|
325
|
+
|
|
326
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -33,123 +33,149 @@ class OrganizationMarketingQuestions(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
openapi_types = {
|
|
36
|
-
'size': 'CompanySize',
|
|
37
36
|
'workload': 'str',
|
|
38
|
-
'
|
|
39
|
-
'
|
|
37
|
+
'modalities': 'str',
|
|
38
|
+
'model_types': 'str',
|
|
39
|
+
'similar_tools': 'str',
|
|
40
|
+
'cluster_size': 'ClusterSize'
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
attribute_map = {
|
|
43
|
-
'size': 'size',
|
|
44
44
|
'workload': 'workload',
|
|
45
|
-
'
|
|
46
|
-
'
|
|
45
|
+
'modalities': 'modalities',
|
|
46
|
+
'model_types': 'model_types',
|
|
47
|
+
'similar_tools': 'similar_tools',
|
|
48
|
+
'cluster_size': 'cluster_size'
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
def __init__(self,
|
|
51
|
+
def __init__(self, workload=None, modalities=None, model_types=None, similar_tools=None, cluster_size=None, local_vars_configuration=None): # noqa: E501
|
|
50
52
|
"""OrganizationMarketingQuestions - a model defined in OpenAPI""" # noqa: E501
|
|
51
53
|
if local_vars_configuration is None:
|
|
52
54
|
local_vars_configuration = Configuration()
|
|
53
55
|
self.local_vars_configuration = local_vars_configuration
|
|
54
56
|
|
|
55
|
-
self._size = None
|
|
56
57
|
self._workload = None
|
|
57
|
-
self.
|
|
58
|
-
self.
|
|
58
|
+
self._modalities = None
|
|
59
|
+
self._model_types = None
|
|
60
|
+
self._similar_tools = None
|
|
61
|
+
self._cluster_size = None
|
|
59
62
|
self.discriminator = None
|
|
60
63
|
|
|
61
|
-
if size is not None:
|
|
62
|
-
self.size = size
|
|
63
64
|
if workload is not None:
|
|
64
65
|
self.workload = workload
|
|
65
|
-
if
|
|
66
|
-
self.
|
|
67
|
-
if
|
|
68
|
-
self.
|
|
66
|
+
if modalities is not None:
|
|
67
|
+
self.modalities = modalities
|
|
68
|
+
if model_types is not None:
|
|
69
|
+
self.model_types = model_types
|
|
70
|
+
if similar_tools is not None:
|
|
71
|
+
self.similar_tools = similar_tools
|
|
72
|
+
if cluster_size is not None:
|
|
73
|
+
self.cluster_size = cluster_size
|
|
69
74
|
|
|
70
75
|
@property
|
|
71
|
-
def
|
|
72
|
-
"""Gets the
|
|
76
|
+
def workload(self):
|
|
77
|
+
"""Gets the workload of this OrganizationMarketingQuestions. # noqa: E501
|
|
73
78
|
|
|
74
79
|
|
|
75
|
-
:return: The
|
|
76
|
-
:rtype:
|
|
80
|
+
:return: The workload of this OrganizationMarketingQuestions. # noqa: E501
|
|
81
|
+
:rtype: str
|
|
77
82
|
"""
|
|
78
|
-
return self.
|
|
83
|
+
return self._workload
|
|
79
84
|
|
|
80
|
-
@
|
|
81
|
-
def
|
|
82
|
-
"""Sets the
|
|
85
|
+
@workload.setter
|
|
86
|
+
def workload(self, workload):
|
|
87
|
+
"""Sets the workload of this OrganizationMarketingQuestions.
|
|
83
88
|
|
|
84
89
|
|
|
85
|
-
:param
|
|
86
|
-
:type:
|
|
90
|
+
:param workload: The workload of this OrganizationMarketingQuestions. # noqa: E501
|
|
91
|
+
:type: str
|
|
87
92
|
"""
|
|
88
93
|
|
|
89
|
-
self.
|
|
94
|
+
self._workload = workload
|
|
90
95
|
|
|
91
96
|
@property
|
|
92
|
-
def
|
|
93
|
-
"""Gets the
|
|
97
|
+
def modalities(self):
|
|
98
|
+
"""Gets the modalities of this OrganizationMarketingQuestions. # noqa: E501
|
|
94
99
|
|
|
95
100
|
|
|
96
|
-
:return: The
|
|
101
|
+
:return: The modalities of this OrganizationMarketingQuestions. # noqa: E501
|
|
97
102
|
:rtype: str
|
|
98
103
|
"""
|
|
99
|
-
return self.
|
|
104
|
+
return self._modalities
|
|
100
105
|
|
|
101
|
-
@
|
|
102
|
-
def
|
|
103
|
-
"""Sets the
|
|
106
|
+
@modalities.setter
|
|
107
|
+
def modalities(self, modalities):
|
|
108
|
+
"""Sets the modalities of this OrganizationMarketingQuestions.
|
|
104
109
|
|
|
105
110
|
|
|
106
|
-
:param
|
|
111
|
+
:param modalities: The modalities of this OrganizationMarketingQuestions. # noqa: E501
|
|
107
112
|
:type: str
|
|
108
113
|
"""
|
|
109
114
|
|
|
110
|
-
self.
|
|
115
|
+
self._modalities = modalities
|
|
111
116
|
|
|
112
117
|
@property
|
|
113
|
-
def
|
|
114
|
-
"""Gets the
|
|
118
|
+
def model_types(self):
|
|
119
|
+
"""Gets the model_types of this OrganizationMarketingQuestions. # noqa: E501
|
|
115
120
|
|
|
116
121
|
|
|
117
|
-
:return: The
|
|
122
|
+
:return: The model_types of this OrganizationMarketingQuestions. # noqa: E501
|
|
118
123
|
:rtype: str
|
|
119
124
|
"""
|
|
120
|
-
return self.
|
|
125
|
+
return self._model_types
|
|
121
126
|
|
|
122
|
-
@
|
|
123
|
-
def
|
|
124
|
-
"""Sets the
|
|
127
|
+
@model_types.setter
|
|
128
|
+
def model_types(self, model_types):
|
|
129
|
+
"""Sets the model_types of this OrganizationMarketingQuestions.
|
|
125
130
|
|
|
126
131
|
|
|
127
|
-
:param
|
|
132
|
+
:param model_types: The model_types of this OrganizationMarketingQuestions. # noqa: E501
|
|
128
133
|
:type: str
|
|
129
134
|
"""
|
|
130
135
|
|
|
131
|
-
self.
|
|
136
|
+
self._model_types = model_types
|
|
132
137
|
|
|
133
138
|
@property
|
|
134
|
-
def
|
|
135
|
-
"""Gets the
|
|
139
|
+
def similar_tools(self):
|
|
140
|
+
"""Gets the similar_tools of this OrganizationMarketingQuestions. # noqa: E501
|
|
136
141
|
|
|
137
142
|
|
|
138
|
-
:return: The
|
|
143
|
+
:return: The similar_tools of this OrganizationMarketingQuestions. # noqa: E501
|
|
139
144
|
:rtype: str
|
|
140
145
|
"""
|
|
141
|
-
return self.
|
|
146
|
+
return self._similar_tools
|
|
142
147
|
|
|
143
|
-
@
|
|
144
|
-
def
|
|
145
|
-
"""Sets the
|
|
148
|
+
@similar_tools.setter
|
|
149
|
+
def similar_tools(self, similar_tools):
|
|
150
|
+
"""Sets the similar_tools of this OrganizationMarketingQuestions.
|
|
146
151
|
|
|
147
152
|
|
|
148
|
-
:param
|
|
153
|
+
:param similar_tools: The similar_tools of this OrganizationMarketingQuestions. # noqa: E501
|
|
149
154
|
:type: str
|
|
150
155
|
"""
|
|
151
156
|
|
|
152
|
-
self.
|
|
157
|
+
self._similar_tools = similar_tools
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def cluster_size(self):
|
|
161
|
+
"""Gets the cluster_size of this OrganizationMarketingQuestions. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The cluster_size of this OrganizationMarketingQuestions. # noqa: E501
|
|
165
|
+
:rtype: ClusterSize
|
|
166
|
+
"""
|
|
167
|
+
return self._cluster_size
|
|
168
|
+
|
|
169
|
+
@cluster_size.setter
|
|
170
|
+
def cluster_size(self, cluster_size):
|
|
171
|
+
"""Sets the cluster_size of this OrganizationMarketingQuestions.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param cluster_size: The cluster_size of this OrganizationMarketingQuestions. # noqa: E501
|
|
175
|
+
:type: ClusterSize
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._cluster_size = cluster_size
|
|
153
179
|
|
|
154
180
|
def to_dict(self):
|
|
155
181
|
"""Returns the model properties as a dict"""
|