anyscale 0.26.23__py3-none-any.whl → 0.26.24__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/_private/anyscale_client/anyscale_client.py +1 -1
- anyscale/_private/docgen/__main__.py +0 -8
- anyscale/_private/docgen/models.md +39 -182
- anyscale/_private/workload/workload_config.py +1 -1
- anyscale/client/README.md +2 -35
- anyscale/client/openapi_client/__init__.py +2 -21
- anyscale/client/openapi_client/api/default_api.py +275 -1868
- anyscale/client/openapi_client/models/__init__.py +2 -21
- anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
- anyscale/client/openapi_client/models/cloud_providers.py +2 -1
- anyscale/client/openapi_client/models/compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
- anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
- anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
- anyscale/client/openapi_client/models/decorated_session.py +31 -3
- anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
- anyscale/cluster_compute.py +4 -4
- anyscale/commands/anyscale_api/sessions_commands.py +1 -70
- anyscale/commands/cloud_commands.py +5 -4
- anyscale/commands/image_commands.py +2 -2
- anyscale/commands/job_commands.py +1 -1
- anyscale/commands/service_commands.py +1 -1
- anyscale/commands/workspace_commands_v2.py +1 -1
- anyscale/connect_utils/prepare_cluster.py +1 -3
- anyscale/controllers/cloud_controller.py +12 -6
- anyscale/controllers/cloud_functional_verification_controller.py +2 -2
- anyscale/image/commands.py +1 -1
- anyscale/sdk/anyscale_client/__init__.py +2 -15
- anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
- anyscale/sdk/anyscale_client/models/__init__.py +2 -15
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
- anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
- anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
- anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
- anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
- anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
- anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/models.py +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/RECORD +52 -84
- anyscale/client/openapi_client/models/bank_account_information.py +0 -239
- anyscale/client/openapi_client/models/billing_information.py +0 -181
- anyscale/client/openapi_client/models/credit_card_information.py +0 -268
- anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
- anyscale/client/openapi_client/models/invoice.py +0 -413
- anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
- anyscale/client/openapi_client/models/invoice_status.py +0 -102
- anyscale/client/openapi_client/models/invoices_query.py +0 -150
- anyscale/client/openapi_client/models/log_stream.py +0 -151
- anyscale/client/openapi_client/models/logstream_response.py +0 -121
- anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
- anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
- anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
- anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
- anyscale/client/openapi_client/models/product_type.py +0 -100
- anyscale/client/openapi_client/models/service_usage.py +0 -353
- anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
- anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
- anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
- anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
- anyscale/client/openapi_client/models/write_session.py +0 -147
- anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
- anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
- anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
- anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/create_build.py +0 -263
- anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
- anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
- anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
- anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
- anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
- anyscale/sdk/anyscale_client/models/update_session.py +0 -150
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -1,147 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class BuildListResponse(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
|
-
'results': 'list[Build]',
|
37
|
-
'metadata': 'ListResponseMetadata'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'results': 'results',
|
42
|
-
'metadata': 'metadata'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""BuildListResponse - 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._results = None
|
52
|
-
self._metadata = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.results = results
|
56
|
-
if metadata is not None:
|
57
|
-
self.metadata = metadata
|
58
|
-
|
59
|
-
@property
|
60
|
-
def results(self):
|
61
|
-
"""Gets the results of this BuildListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this BuildListResponse. # noqa: E501
|
65
|
-
:rtype: list[Build]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this BuildListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this BuildListResponse. # noqa: E501
|
75
|
-
:type: list[Build]
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._results = results
|
81
|
-
|
82
|
-
@property
|
83
|
-
def metadata(self):
|
84
|
-
"""Gets the metadata of this BuildListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this BuildListResponse. # noqa: E501
|
88
|
-
:rtype: ListResponseMetadata
|
89
|
-
"""
|
90
|
-
return self._metadata
|
91
|
-
|
92
|
-
@metadata.setter
|
93
|
-
def metadata(self, metadata):
|
94
|
-
"""Sets the metadata of this BuildListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this BuildListResponse. # noqa: E501
|
98
|
-
:type: ListResponseMetadata
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._metadata = metadata
|
102
|
-
|
103
|
-
def to_dict(self):
|
104
|
-
"""Returns the model properties as a dict"""
|
105
|
-
result = {}
|
106
|
-
|
107
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
108
|
-
value = getattr(self, attr)
|
109
|
-
if isinstance(value, list):
|
110
|
-
result[attr] = list(map(
|
111
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
-
value
|
113
|
-
))
|
114
|
-
elif hasattr(value, "to_dict"):
|
115
|
-
result[attr] = value.to_dict()
|
116
|
-
elif isinstance(value, dict):
|
117
|
-
result[attr] = dict(map(
|
118
|
-
lambda item: (item[0], item[1].to_dict())
|
119
|
-
if hasattr(item[1], "to_dict") else item,
|
120
|
-
value.items()
|
121
|
-
))
|
122
|
-
else:
|
123
|
-
result[attr] = value
|
124
|
-
|
125
|
-
return result
|
126
|
-
|
127
|
-
def to_str(self):
|
128
|
-
"""Returns the string representation of the model"""
|
129
|
-
return pprint.pformat(self.to_dict())
|
130
|
-
|
131
|
-
def __repr__(self):
|
132
|
-
"""For `print` and `pprint`"""
|
133
|
-
return self.to_str()
|
134
|
-
|
135
|
-
def __eq__(self, other):
|
136
|
-
"""Returns true if both objects are equal"""
|
137
|
-
if not isinstance(other, BuildListResponse):
|
138
|
-
return False
|
139
|
-
|
140
|
-
return self.to_dict() == other.to_dict()
|
141
|
-
|
142
|
-
def __ne__(self, other):
|
143
|
-
"""Returns true if both objects are not equal"""
|
144
|
-
if not isinstance(other, BuildListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,123 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class BuildLogResponse(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
|
-
'logs': 'str'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'logs': 'logs'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, logs=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""BuildLogResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
-
if local_vars_configuration is None:
|
46
|
-
local_vars_configuration = Configuration()
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._logs = None
|
50
|
-
self.discriminator = None
|
51
|
-
|
52
|
-
self.logs = logs
|
53
|
-
|
54
|
-
@property
|
55
|
-
def logs(self):
|
56
|
-
"""Gets the logs of this BuildLogResponse. # noqa: E501
|
57
|
-
|
58
|
-
Logs of the build. # noqa: E501
|
59
|
-
|
60
|
-
:return: The logs of this BuildLogResponse. # noqa: E501
|
61
|
-
:rtype: str
|
62
|
-
"""
|
63
|
-
return self._logs
|
64
|
-
|
65
|
-
@logs.setter
|
66
|
-
def logs(self, logs):
|
67
|
-
"""Sets the logs of this BuildLogResponse.
|
68
|
-
|
69
|
-
Logs of the build. # noqa: E501
|
70
|
-
|
71
|
-
:param logs: The logs of this BuildLogResponse. # noqa: E501
|
72
|
-
:type: str
|
73
|
-
"""
|
74
|
-
if self.local_vars_configuration.client_side_validation and logs is None: # noqa: E501
|
75
|
-
raise ValueError("Invalid value for `logs`, must not be `None`") # noqa: E501
|
76
|
-
|
77
|
-
self._logs = logs
|
78
|
-
|
79
|
-
def to_dict(self):
|
80
|
-
"""Returns the model properties as a dict"""
|
81
|
-
result = {}
|
82
|
-
|
83
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
84
|
-
value = getattr(self, attr)
|
85
|
-
if isinstance(value, list):
|
86
|
-
result[attr] = list(map(
|
87
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
88
|
-
value
|
89
|
-
))
|
90
|
-
elif hasattr(value, "to_dict"):
|
91
|
-
result[attr] = value.to_dict()
|
92
|
-
elif isinstance(value, dict):
|
93
|
-
result[attr] = dict(map(
|
94
|
-
lambda item: (item[0], item[1].to_dict())
|
95
|
-
if hasattr(item[1], "to_dict") else item,
|
96
|
-
value.items()
|
97
|
-
))
|
98
|
-
else:
|
99
|
-
result[attr] = value
|
100
|
-
|
101
|
-
return result
|
102
|
-
|
103
|
-
def to_str(self):
|
104
|
-
"""Returns the string representation of the model"""
|
105
|
-
return pprint.pformat(self.to_dict())
|
106
|
-
|
107
|
-
def __repr__(self):
|
108
|
-
"""For `print` and `pprint`"""
|
109
|
-
return self.to_str()
|
110
|
-
|
111
|
-
def __eq__(self, other):
|
112
|
-
"""Returns true if both objects are equal"""
|
113
|
-
if not isinstance(other, BuildLogResponse):
|
114
|
-
return False
|
115
|
-
|
116
|
-
return self.to_dict() == other.to_dict()
|
117
|
-
|
118
|
-
def __ne__(self, other):
|
119
|
-
"""Returns true if both objects are not equal"""
|
120
|
-
if not isinstance(other, BuildLogResponse):
|
121
|
-
return True
|
122
|
-
|
123
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,121 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class BuildlogresponseResponse(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
|
-
'result': 'BuildLogResponse'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""BuildlogresponseResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
-
if local_vars_configuration is None:
|
46
|
-
local_vars_configuration = Configuration()
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._result = None
|
50
|
-
self.discriminator = None
|
51
|
-
|
52
|
-
self.result = result
|
53
|
-
|
54
|
-
@property
|
55
|
-
def result(self):
|
56
|
-
"""Gets the result of this BuildlogresponseResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this BuildlogresponseResponse. # noqa: E501
|
60
|
-
:rtype: BuildLogResponse
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this BuildlogresponseResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this BuildlogresponseResponse. # noqa: E501
|
70
|
-
:type: BuildLogResponse
|
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
|
-
|
77
|
-
def to_dict(self):
|
78
|
-
"""Returns the model properties as a dict"""
|
79
|
-
result = {}
|
80
|
-
|
81
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
-
value = getattr(self, attr)
|
83
|
-
if isinstance(value, list):
|
84
|
-
result[attr] = list(map(
|
85
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
-
value
|
87
|
-
))
|
88
|
-
elif hasattr(value, "to_dict"):
|
89
|
-
result[attr] = value.to_dict()
|
90
|
-
elif isinstance(value, dict):
|
91
|
-
result[attr] = dict(map(
|
92
|
-
lambda item: (item[0], item[1].to_dict())
|
93
|
-
if hasattr(item[1], "to_dict") else item,
|
94
|
-
value.items()
|
95
|
-
))
|
96
|
-
else:
|
97
|
-
result[attr] = value
|
98
|
-
|
99
|
-
return result
|
100
|
-
|
101
|
-
def to_str(self):
|
102
|
-
"""Returns the string representation of the model"""
|
103
|
-
return pprint.pformat(self.to_dict())
|
104
|
-
|
105
|
-
def __repr__(self):
|
106
|
-
"""For `print` and `pprint`"""
|
107
|
-
return self.to_str()
|
108
|
-
|
109
|
-
def __eq__(self, other):
|
110
|
-
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other, BuildlogresponseResponse):
|
112
|
-
return False
|
113
|
-
|
114
|
-
return self.to_dict() == other.to_dict()
|
115
|
-
|
116
|
-
def __ne__(self, other):
|
117
|
-
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other, BuildlogresponseResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,316 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Anyscale 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 anyscale_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class ComputeTemplateQuery(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
|
-
'orgwide': 'bool',
|
37
|
-
'project_id': 'str',
|
38
|
-
'creator_id': 'str',
|
39
|
-
'name': 'TextQuery',
|
40
|
-
'include_anonymous': 'bool',
|
41
|
-
'archive_status': 'ArchiveStatus',
|
42
|
-
'cloud_id': 'str',
|
43
|
-
'version': 'int'
|
44
|
-
}
|
45
|
-
|
46
|
-
attribute_map = {
|
47
|
-
'orgwide': 'orgwide',
|
48
|
-
'project_id': 'project_id',
|
49
|
-
'creator_id': 'creator_id',
|
50
|
-
'name': 'name',
|
51
|
-
'include_anonymous': 'include_anonymous',
|
52
|
-
'archive_status': 'archive_status',
|
53
|
-
'cloud_id': 'cloud_id',
|
54
|
-
'version': 'version'
|
55
|
-
}
|
56
|
-
|
57
|
-
def __init__(self, orgwide=False, project_id=None, creator_id=None, name=None, include_anonymous=False, archive_status=None, cloud_id=None, version=None, local_vars_configuration=None): # noqa: E501
|
58
|
-
"""ComputeTemplateQuery - 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._orgwide = None
|
64
|
-
self._project_id = None
|
65
|
-
self._creator_id = None
|
66
|
-
self._name = None
|
67
|
-
self._include_anonymous = None
|
68
|
-
self._archive_status = None
|
69
|
-
self._cloud_id = None
|
70
|
-
self._version = None
|
71
|
-
self.discriminator = None
|
72
|
-
|
73
|
-
if orgwide is not None:
|
74
|
-
self.orgwide = orgwide
|
75
|
-
if project_id is not None:
|
76
|
-
self.project_id = project_id
|
77
|
-
if creator_id is not None:
|
78
|
-
self.creator_id = creator_id
|
79
|
-
if name is not None:
|
80
|
-
self.name = name
|
81
|
-
if include_anonymous is not None:
|
82
|
-
self.include_anonymous = include_anonymous
|
83
|
-
if archive_status is not None:
|
84
|
-
self.archive_status = archive_status
|
85
|
-
if cloud_id is not None:
|
86
|
-
self.cloud_id = cloud_id
|
87
|
-
if version is not None:
|
88
|
-
self.version = version
|
89
|
-
|
90
|
-
@property
|
91
|
-
def orgwide(self):
|
92
|
-
"""Gets the orgwide of this ComputeTemplateQuery. # noqa: E501
|
93
|
-
|
94
|
-
This option is deprectated. It does nothing. # noqa: E501
|
95
|
-
|
96
|
-
:return: The orgwide of this ComputeTemplateQuery. # noqa: E501
|
97
|
-
:rtype: bool
|
98
|
-
"""
|
99
|
-
return self._orgwide
|
100
|
-
|
101
|
-
@orgwide.setter
|
102
|
-
def orgwide(self, orgwide):
|
103
|
-
"""Sets the orgwide of this ComputeTemplateQuery.
|
104
|
-
|
105
|
-
This option is deprectated. It does nothing. # noqa: E501
|
106
|
-
|
107
|
-
:param orgwide: The orgwide of this ComputeTemplateQuery. # noqa: E501
|
108
|
-
:type: bool
|
109
|
-
"""
|
110
|
-
|
111
|
-
self._orgwide = orgwide
|
112
|
-
|
113
|
-
@property
|
114
|
-
def project_id(self):
|
115
|
-
"""Gets the project_id of this ComputeTemplateQuery. # noqa: E501
|
116
|
-
|
117
|
-
|
118
|
-
:return: The project_id of this ComputeTemplateQuery. # noqa: E501
|
119
|
-
:rtype: str
|
120
|
-
"""
|
121
|
-
return self._project_id
|
122
|
-
|
123
|
-
@project_id.setter
|
124
|
-
def project_id(self, project_id):
|
125
|
-
"""Sets the project_id of this ComputeTemplateQuery.
|
126
|
-
|
127
|
-
|
128
|
-
:param project_id: The project_id of this ComputeTemplateQuery. # noqa: E501
|
129
|
-
:type: str
|
130
|
-
"""
|
131
|
-
|
132
|
-
self._project_id = project_id
|
133
|
-
|
134
|
-
@property
|
135
|
-
def creator_id(self):
|
136
|
-
"""Gets the creator_id of this ComputeTemplateQuery. # noqa: E501
|
137
|
-
|
138
|
-
Filters Compute Templates by creator. This is only supported when `orgwide` is True. # noqa: E501
|
139
|
-
|
140
|
-
:return: The creator_id of this ComputeTemplateQuery. # noqa: E501
|
141
|
-
:rtype: str
|
142
|
-
"""
|
143
|
-
return self._creator_id
|
144
|
-
|
145
|
-
@creator_id.setter
|
146
|
-
def creator_id(self, creator_id):
|
147
|
-
"""Sets the creator_id of this ComputeTemplateQuery.
|
148
|
-
|
149
|
-
Filters Compute Templates by creator. This is only supported when `orgwide` is True. # noqa: E501
|
150
|
-
|
151
|
-
:param creator_id: The creator_id of this ComputeTemplateQuery. # noqa: E501
|
152
|
-
:type: str
|
153
|
-
"""
|
154
|
-
|
155
|
-
self._creator_id = creator_id
|
156
|
-
|
157
|
-
@property
|
158
|
-
def name(self):
|
159
|
-
"""Gets the name of this ComputeTemplateQuery. # noqa: E501
|
160
|
-
|
161
|
-
Filters Compute Templates by name. If this field is absent, no filtering is done. # noqa: E501
|
162
|
-
|
163
|
-
:return: The name of this ComputeTemplateQuery. # noqa: E501
|
164
|
-
:rtype: TextQuery
|
165
|
-
"""
|
166
|
-
return self._name
|
167
|
-
|
168
|
-
@name.setter
|
169
|
-
def name(self, name):
|
170
|
-
"""Sets the name of this ComputeTemplateQuery.
|
171
|
-
|
172
|
-
Filters Compute Templates by name. If this field is absent, no filtering is done. # noqa: E501
|
173
|
-
|
174
|
-
:param name: The name of this ComputeTemplateQuery. # noqa: E501
|
175
|
-
:type: TextQuery
|
176
|
-
"""
|
177
|
-
|
178
|
-
self._name = name
|
179
|
-
|
180
|
-
@property
|
181
|
-
def include_anonymous(self):
|
182
|
-
"""Gets the include_anonymous of this ComputeTemplateQuery. # noqa: E501
|
183
|
-
|
184
|
-
Whether to include anonymous Compute Templates in the search.Anonymous compute templates are usually not shown in list views. # noqa: E501
|
185
|
-
|
186
|
-
:return: The include_anonymous of this ComputeTemplateQuery. # noqa: E501
|
187
|
-
:rtype: bool
|
188
|
-
"""
|
189
|
-
return self._include_anonymous
|
190
|
-
|
191
|
-
@include_anonymous.setter
|
192
|
-
def include_anonymous(self, include_anonymous):
|
193
|
-
"""Sets the include_anonymous of this ComputeTemplateQuery.
|
194
|
-
|
195
|
-
Whether to include anonymous Compute Templates in the search.Anonymous compute templates are usually not shown in list views. # noqa: E501
|
196
|
-
|
197
|
-
:param include_anonymous: The include_anonymous of this ComputeTemplateQuery. # noqa: E501
|
198
|
-
:type: bool
|
199
|
-
"""
|
200
|
-
|
201
|
-
self._include_anonymous = include_anonymous
|
202
|
-
|
203
|
-
@property
|
204
|
-
def archive_status(self):
|
205
|
-
"""Gets the archive_status of this ComputeTemplateQuery. # noqa: E501
|
206
|
-
|
207
|
-
The archive status to filter by. Defaults to unarchived. # noqa: E501
|
208
|
-
|
209
|
-
:return: The archive_status of this ComputeTemplateQuery. # noqa: E501
|
210
|
-
:rtype: ArchiveStatus
|
211
|
-
"""
|
212
|
-
return self._archive_status
|
213
|
-
|
214
|
-
@archive_status.setter
|
215
|
-
def archive_status(self, archive_status):
|
216
|
-
"""Sets the archive_status of this ComputeTemplateQuery.
|
217
|
-
|
218
|
-
The archive status to filter by. Defaults to unarchived. # noqa: E501
|
219
|
-
|
220
|
-
:param archive_status: The archive_status of this ComputeTemplateQuery. # noqa: E501
|
221
|
-
:type: ArchiveStatus
|
222
|
-
"""
|
223
|
-
|
224
|
-
self._archive_status = archive_status
|
225
|
-
|
226
|
-
@property
|
227
|
-
def cloud_id(self):
|
228
|
-
"""Gets the cloud_id of this ComputeTemplateQuery. # noqa: E501
|
229
|
-
|
230
|
-
Filters Compute Templates by cloud # noqa: E501
|
231
|
-
|
232
|
-
:return: The cloud_id of this ComputeTemplateQuery. # noqa: E501
|
233
|
-
:rtype: str
|
234
|
-
"""
|
235
|
-
return self._cloud_id
|
236
|
-
|
237
|
-
@cloud_id.setter
|
238
|
-
def cloud_id(self, cloud_id):
|
239
|
-
"""Sets the cloud_id of this ComputeTemplateQuery.
|
240
|
-
|
241
|
-
Filters Compute Templates by cloud # noqa: E501
|
242
|
-
|
243
|
-
:param cloud_id: The cloud_id of this ComputeTemplateQuery. # noqa: E501
|
244
|
-
:type: str
|
245
|
-
"""
|
246
|
-
|
247
|
-
self._cloud_id = cloud_id
|
248
|
-
|
249
|
-
@property
|
250
|
-
def version(self):
|
251
|
-
"""Gets the version of this ComputeTemplateQuery. # noqa: E501
|
252
|
-
|
253
|
-
Filters Compute Templates by version. Versions are positive integers. Setting this field to -1 will return only the latest version of each Compute Template. Setting this field to -2 will not filter by version. Setting version to None is equivalent to setting version to '-1'. # noqa: E501
|
254
|
-
|
255
|
-
:return: The version of this ComputeTemplateQuery. # noqa: E501
|
256
|
-
:rtype: int
|
257
|
-
"""
|
258
|
-
return self._version
|
259
|
-
|
260
|
-
@version.setter
|
261
|
-
def version(self, version):
|
262
|
-
"""Sets the version of this ComputeTemplateQuery.
|
263
|
-
|
264
|
-
Filters Compute Templates by version. Versions are positive integers. Setting this field to -1 will return only the latest version of each Compute Template. Setting this field to -2 will not filter by version. Setting version to None is equivalent to setting version to '-1'. # noqa: E501
|
265
|
-
|
266
|
-
:param version: The version of this ComputeTemplateQuery. # noqa: E501
|
267
|
-
:type: int
|
268
|
-
"""
|
269
|
-
|
270
|
-
self._version = version
|
271
|
-
|
272
|
-
def to_dict(self):
|
273
|
-
"""Returns the model properties as a dict"""
|
274
|
-
result = {}
|
275
|
-
|
276
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
277
|
-
value = getattr(self, attr)
|
278
|
-
if isinstance(value, list):
|
279
|
-
result[attr] = list(map(
|
280
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
281
|
-
value
|
282
|
-
))
|
283
|
-
elif hasattr(value, "to_dict"):
|
284
|
-
result[attr] = value.to_dict()
|
285
|
-
elif isinstance(value, dict):
|
286
|
-
result[attr] = dict(map(
|
287
|
-
lambda item: (item[0], item[1].to_dict())
|
288
|
-
if hasattr(item[1], "to_dict") else item,
|
289
|
-
value.items()
|
290
|
-
))
|
291
|
-
else:
|
292
|
-
result[attr] = value
|
293
|
-
|
294
|
-
return result
|
295
|
-
|
296
|
-
def to_str(self):
|
297
|
-
"""Returns the string representation of the model"""
|
298
|
-
return pprint.pformat(self.to_dict())
|
299
|
-
|
300
|
-
def __repr__(self):
|
301
|
-
"""For `print` and `pprint`"""
|
302
|
-
return self.to_str()
|
303
|
-
|
304
|
-
def __eq__(self, other):
|
305
|
-
"""Returns true if both objects are equal"""
|
306
|
-
if not isinstance(other, ComputeTemplateQuery):
|
307
|
-
return False
|
308
|
-
|
309
|
-
return self.to_dict() == other.to_dict()
|
310
|
-
|
311
|
-
def __ne__(self, other):
|
312
|
-
"""Returns true if both objects are not equal"""
|
313
|
-
if not isinstance(other, ComputeTemplateQuery):
|
314
|
-
return True
|
315
|
-
|
316
|
-
return self.to_dict() != other.to_dict()
|