anyscale 0.26.22__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.
Files changed (94) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/anyscale_client/common.py +1 -1
  3. anyscale/_private/docgen/__main__.py +0 -8
  4. anyscale/_private/docgen/models.md +41 -184
  5. anyscale/_private/workload/workload_config.py +1 -1
  6. anyscale/client/README.md +2 -35
  7. anyscale/client/openapi_client/__init__.py +2 -21
  8. anyscale/client/openapi_client/api/default_api.py +275 -1868
  9. anyscale/client/openapi_client/models/__init__.py +2 -21
  10. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  11. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  12. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  13. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  14. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  15. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  16. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  18. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  20. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  21. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  22. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  24. anyscale/cluster_compute.py +4 -4
  25. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  26. anyscale/commands/cloud_commands.py +5 -4
  27. anyscale/commands/image_commands.py +2 -2
  28. anyscale/commands/job_commands.py +1 -1
  29. anyscale/commands/service_commands.py +1 -1
  30. anyscale/commands/workspace_commands_v2.py +1 -1
  31. anyscale/connect_utils/prepare_cluster.py +1 -3
  32. anyscale/controllers/cloud_controller.py +12 -6
  33. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  34. anyscale/image/commands.py +1 -1
  35. anyscale/sdk/anyscale_client/__init__.py +2 -15
  36. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  37. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  38. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  39. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  40. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  41. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  42. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  43. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  44. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  45. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  46. anyscale/sdk/anyscale_client/models/session.py +31 -3
  47. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  48. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  49. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  50. anyscale/version.py +1 -1
  51. anyscale/workspace/models.py +1 -1
  52. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
  53. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/RECORD +58 -90
  54. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  55. anyscale/client/openapi_client/models/billing_information.py +0 -181
  56. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  57. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  58. anyscale/client/openapi_client/models/invoice.py +0 -413
  59. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  60. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  61. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  62. anyscale/client/openapi_client/models/log_stream.py +0 -151
  63. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  64. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  65. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  66. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  67. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  68. anyscale/client/openapi_client/models/product_type.py +0 -100
  69. anyscale/client/openapi_client/models/service_usage.py +0 -353
  70. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  71. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  72. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  73. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  74. anyscale/client/openapi_client/models/write_session.py +0 -147
  75. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  76. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  77. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  78. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  79. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  80. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  81. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  82. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  84. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  85. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  86. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  87. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  88. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  89. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  90. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
  91. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
  92. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
  93. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
  94. {anyscale-0.26.22.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -1,102 +0,0 @@
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 InvoiceStatus(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
- allowed enum values
30
- """
31
- OPEN = "open"
32
- CANCELED = "canceled"
33
- PAID = "paid"
34
- VOIDED = "voided"
35
-
36
- allowable_values = [OPEN, CANCELED, PAID, VOIDED] # noqa: E501
37
-
38
- """
39
- Attributes:
40
- openapi_types (dict): The key is attribute name
41
- and the value is attribute type.
42
- attribute_map (dict): The key is attribute name
43
- and the value is json key in definition.
44
- """
45
- openapi_types = {
46
- }
47
-
48
- attribute_map = {
49
- }
50
-
51
- def __init__(self, local_vars_configuration=None): # noqa: E501
52
- """InvoiceStatus - a model defined in OpenAPI""" # noqa: E501
53
- if local_vars_configuration is None:
54
- local_vars_configuration = Configuration()
55
- self.local_vars_configuration = local_vars_configuration
56
- self.discriminator = None
57
-
58
- def to_dict(self):
59
- """Returns the model properties as a dict"""
60
- result = {}
61
-
62
- for attr, _ in six.iteritems(self.openapi_types):
63
- value = getattr(self, attr)
64
- if isinstance(value, list):
65
- result[attr] = list(map(
66
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67
- value
68
- ))
69
- elif hasattr(value, "to_dict"):
70
- result[attr] = value.to_dict()
71
- elif isinstance(value, dict):
72
- result[attr] = dict(map(
73
- lambda item: (item[0], item[1].to_dict())
74
- if hasattr(item[1], "to_dict") else item,
75
- value.items()
76
- ))
77
- else:
78
- result[attr] = value
79
-
80
- return result
81
-
82
- def to_str(self):
83
- """Returns the string representation of the model"""
84
- return pprint.pformat(self.to_dict())
85
-
86
- def __repr__(self):
87
- """For `print` and `pprint`"""
88
- return self.to_str()
89
-
90
- def __eq__(self, other):
91
- """Returns true if both objects are equal"""
92
- if not isinstance(other, InvoiceStatus):
93
- return False
94
-
95
- return self.to_dict() == other.to_dict()
96
-
97
- def __ne__(self, other):
98
- """Returns true if both objects are not equal"""
99
- if not isinstance(other, InvoiceStatus):
100
- return True
101
-
102
- return self.to_dict() != other.to_dict()
@@ -1,150 +0,0 @@
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 InvoicesQuery(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
- 'status': 'list[InvoiceStatus]',
37
- 'product_type': 'list[ProductType]'
38
- }
39
-
40
- attribute_map = {
41
- 'status': 'status',
42
- 'product_type': 'product_type'
43
- }
44
-
45
- def __init__(self, status=[], product_type=[], local_vars_configuration=None): # noqa: E501
46
- """InvoicesQuery - 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._status = None
52
- self._product_type = None
53
- self.discriminator = None
54
-
55
- if status is not None:
56
- self.status = status
57
- if product_type is not None:
58
- self.product_type = product_type
59
-
60
- @property
61
- def status(self):
62
- """Gets the status of this InvoicesQuery. # noqa: E501
63
-
64
- Search invoices with status in this list. If this field is an empty set, no filtering is done. # noqa: E501
65
-
66
- :return: The status of this InvoicesQuery. # noqa: E501
67
- :rtype: list[InvoiceStatus]
68
- """
69
- return self._status
70
-
71
- @status.setter
72
- def status(self, status):
73
- """Sets the status of this InvoicesQuery.
74
-
75
- Search invoices with status in this list. If this field is an empty set, no filtering is done. # noqa: E501
76
-
77
- :param status: The status of this InvoicesQuery. # noqa: E501
78
- :type: list[InvoiceStatus]
79
- """
80
-
81
- self._status = status
82
-
83
- @property
84
- def product_type(self):
85
- """Gets the product_type of this InvoicesQuery. # noqa: E501
86
-
87
- Search invoices with product_type in this list. If this field is an empty set, no filtering is done. # noqa: E501
88
-
89
- :return: The product_type of this InvoicesQuery. # noqa: E501
90
- :rtype: list[ProductType]
91
- """
92
- return self._product_type
93
-
94
- @product_type.setter
95
- def product_type(self, product_type):
96
- """Sets the product_type of this InvoicesQuery.
97
-
98
- Search invoices with product_type in this list. If this field is an empty set, no filtering is done. # noqa: E501
99
-
100
- :param product_type: The product_type of this InvoicesQuery. # noqa: E501
101
- :type: list[ProductType]
102
- """
103
-
104
- self._product_type = product_type
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, InvoicesQuery):
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, InvoicesQuery):
148
- return True
149
-
150
- return self.to_dict() != other.to_dict()
@@ -1,151 +0,0 @@
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 LogStream(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
- 'http_url': 'str',
37
- 'stream_url': 'str'
38
- }
39
-
40
- attribute_map = {
41
- 'http_url': 'http_url',
42
- 'stream_url': 'stream_url'
43
- }
44
-
45
- def __init__(self, http_url=None, stream_url=None, local_vars_configuration=None): # noqa: E501
46
- """LogStream - 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._http_url = None
52
- self._stream_url = None
53
- self.discriminator = None
54
-
55
- self.http_url = http_url
56
- if stream_url is not None:
57
- self.stream_url = stream_url
58
-
59
- @property
60
- def http_url(self):
61
- """Gets the http_url of this LogStream. # noqa: E501
62
-
63
- HTTP URL for retrieving initial lines. # noqa: E501
64
-
65
- :return: The http_url of this LogStream. # noqa: E501
66
- :rtype: str
67
- """
68
- return self._http_url
69
-
70
- @http_url.setter
71
- def http_url(self, http_url):
72
- """Sets the http_url of this LogStream.
73
-
74
- HTTP URL for retrieving initial lines. # noqa: E501
75
-
76
- :param http_url: The http_url of this LogStream. # noqa: E501
77
- :type: str
78
- """
79
- if self.local_vars_configuration.client_side_validation and http_url is None: # noqa: E501
80
- raise ValueError("Invalid value for `http_url`, must not be `None`") # noqa: E501
81
-
82
- self._http_url = http_url
83
-
84
- @property
85
- def stream_url(self):
86
- """Gets the stream_url of this LogStream. # noqa: E501
87
-
88
- HTTP/WebSocket URL for streaming Ray logs. # noqa: E501
89
-
90
- :return: The stream_url of this LogStream. # noqa: E501
91
- :rtype: str
92
- """
93
- return self._stream_url
94
-
95
- @stream_url.setter
96
- def stream_url(self, stream_url):
97
- """Sets the stream_url of this LogStream.
98
-
99
- HTTP/WebSocket URL for streaming Ray logs. # noqa: E501
100
-
101
- :param stream_url: The stream_url of this LogStream. # noqa: E501
102
- :type: str
103
- """
104
-
105
- self._stream_url = stream_url
106
-
107
- def to_dict(self):
108
- """Returns the model properties as a dict"""
109
- result = {}
110
-
111
- for attr, _ in six.iteritems(self.openapi_types):
112
- value = getattr(self, attr)
113
- if isinstance(value, list):
114
- result[attr] = list(map(
115
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
116
- value
117
- ))
118
- elif hasattr(value, "to_dict"):
119
- result[attr] = value.to_dict()
120
- elif isinstance(value, dict):
121
- result[attr] = dict(map(
122
- lambda item: (item[0], item[1].to_dict())
123
- if hasattr(item[1], "to_dict") else item,
124
- value.items()
125
- ))
126
- else:
127
- result[attr] = value
128
-
129
- return result
130
-
131
- def to_str(self):
132
- """Returns the string representation of the model"""
133
- return pprint.pformat(self.to_dict())
134
-
135
- def __repr__(self):
136
- """For `print` and `pprint`"""
137
- return self.to_str()
138
-
139
- def __eq__(self, other):
140
- """Returns true if both objects are equal"""
141
- if not isinstance(other, LogStream):
142
- return False
143
-
144
- return self.to_dict() == other.to_dict()
145
-
146
- def __ne__(self, other):
147
- """Returns true if both objects are not equal"""
148
- if not isinstance(other, LogStream):
149
- return True
150
-
151
- return self.to_dict() != other.to_dict()
@@ -1,121 +0,0 @@
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 LogstreamResponse(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': 'LogStream'
37
- }
38
-
39
- attribute_map = {
40
- 'result': 'result'
41
- }
42
-
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """LogstreamResponse - 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 LogstreamResponse. # noqa: E501
57
-
58
-
59
- :return: The result of this LogstreamResponse. # noqa: E501
60
- :rtype: LogStream
61
- """
62
- return self._result
63
-
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this LogstreamResponse.
67
-
68
-
69
- :param result: The result of this LogstreamResponse. # noqa: E501
70
- :type: LogStream
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, LogstreamResponse):
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, LogstreamResponse):
119
- return True
120
-
121
- return self.to_dict() != other.to_dict()
@@ -1,147 +0,0 @@
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 MiniprojectListResponse(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[MiniProject]',
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
- """MiniprojectListResponse - 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 MiniprojectListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this MiniprojectListResponse. # noqa: E501
65
- :rtype: list[MiniProject]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this MiniprojectListResponse.
72
-
73
-
74
- :param results: The results of this MiniprojectListResponse. # noqa: E501
75
- :type: list[MiniProject]
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 MiniprojectListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this MiniprojectListResponse. # 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 MiniprojectListResponse.
95
-
96
-
97
- :param metadata: The metadata of this MiniprojectListResponse. # 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, MiniprojectListResponse):
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, MiniprojectListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()