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.
Files changed (88) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -1
  2. anyscale/_private/docgen/__main__.py +0 -8
  3. anyscale/_private/docgen/models.md +39 -182
  4. anyscale/_private/workload/workload_config.py +1 -1
  5. anyscale/client/README.md +2 -35
  6. anyscale/client/openapi_client/__init__.py +2 -21
  7. anyscale/client/openapi_client/api/default_api.py +275 -1868
  8. anyscale/client/openapi_client/models/__init__.py +2 -21
  9. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  10. anyscale/client/openapi_client/models/cloud_deployment.py +2 -2
  11. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +291 -0
  12. anyscale/client/openapi_client/models/cloud_deployment_selector.py +206 -0
  13. anyscale/client/openapi_client/models/cloud_providers.py +2 -1
  14. anyscale/client/openapi_client/models/compute_template_config.py +61 -34
  15. anyscale/client/openapi_client/models/create_cluster_compute_config.py +59 -31
  16. anyscale/client/openapi_client/models/create_compute_template_config.py +61 -34
  17. anyscale/client/openapi_client/models/create_workspace_from_template.py +3 -2
  18. anyscale/client/openapi_client/models/decorated_compute_template_config.py +61 -34
  19. anyscale/client/openapi_client/models/decorated_session.py +31 -3
  20. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  21. anyscale/cluster_compute.py +4 -4
  22. anyscale/commands/anyscale_api/sessions_commands.py +1 -70
  23. anyscale/commands/cloud_commands.py +5 -4
  24. anyscale/commands/image_commands.py +2 -2
  25. anyscale/commands/job_commands.py +1 -1
  26. anyscale/commands/service_commands.py +1 -1
  27. anyscale/commands/workspace_commands_v2.py +1 -1
  28. anyscale/connect_utils/prepare_cluster.py +1 -3
  29. anyscale/controllers/cloud_controller.py +12 -6
  30. anyscale/controllers/cloud_functional_verification_controller.py +2 -2
  31. anyscale/image/commands.py +1 -1
  32. anyscale/sdk/anyscale_client/__init__.py +2 -15
  33. anyscale/sdk/anyscale_client/api/default_api.py +1270 -2871
  34. anyscale/sdk/anyscale_client/models/__init__.py +2 -15
  35. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +291 -0
  36. anyscale/sdk/anyscale_client/models/cloud_deployment_selector.py +206 -0
  37. anyscale/sdk/anyscale_client/models/cloud_providers.py +2 -1
  38. anyscale/sdk/anyscale_client/models/cluster_compute_config.py +61 -34
  39. anyscale/sdk/anyscale_client/models/cluster_services_urls.py +29 -1
  40. anyscale/sdk/anyscale_client/models/compute_template_config.py +61 -34
  41. anyscale/sdk/anyscale_client/models/create_cluster_compute_config.py +59 -31
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -1
  44. anyscale/version.py +1 -1
  45. anyscale/workspace/models.py +1 -1
  46. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/METADATA +1 -1
  47. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/RECORD +52 -84
  48. anyscale/client/openapi_client/models/bank_account_information.py +0 -239
  49. anyscale/client/openapi_client/models/billing_information.py +0 -181
  50. anyscale/client/openapi_client/models/credit_card_information.py +0 -268
  51. anyscale/client/openapi_client/models/decoratedunifiedjob_response.py +0 -121
  52. anyscale/client/openapi_client/models/invoice.py +0 -413
  53. anyscale/client/openapi_client/models/invoice_list_response.py +0 -147
  54. anyscale/client/openapi_client/models/invoice_status.py +0 -102
  55. anyscale/client/openapi_client/models/invoices_query.py +0 -150
  56. anyscale/client/openapi_client/models/log_stream.py +0 -151
  57. anyscale/client/openapi_client/models/logstream_response.py +0 -121
  58. anyscale/client/openapi_client/models/miniproject_list_response.py +0 -147
  59. anyscale/client/openapi_client/models/organization_project_collaborator.py +0 -175
  60. anyscale/client/openapi_client/models/organization_project_collaborator_value.py +0 -148
  61. anyscale/client/openapi_client/models/organizationprojectcollaborator_list_response.py +0 -147
  62. anyscale/client/openapi_client/models/product_type.py +0 -100
  63. anyscale/client/openapi_client/models/service_usage.py +0 -353
  64. anyscale/client/openapi_client/models/templatized_compute_configs.py +0 -202
  65. anyscale/client/openapi_client/models/templatized_decorated_application_templates.py +0 -202
  66. anyscale/client/openapi_client/models/templatizedcomputeconfigs_response.py +0 -121
  67. anyscale/client/openapi_client/models/templatizeddecoratedapplicationtemplates_response.py +0 -121
  68. anyscale/client/openapi_client/models/write_session.py +0 -147
  69. anyscale/sdk/anyscale_client/models/build_list_response.py +0 -147
  70. anyscale/sdk/anyscale_client/models/build_log_response.py +0 -123
  71. anyscale/sdk/anyscale_client/models/buildlogresponse_response.py +0 -121
  72. anyscale/sdk/anyscale_client/models/compute_template_query.py +0 -316
  73. anyscale/sdk/anyscale_client/models/computetemplate_list_response.py +0 -147
  74. anyscale/sdk/anyscale_client/models/create_build.py +0 -263
  75. anyscale/sdk/anyscale_client/models/create_compute_template.py +0 -229
  76. anyscale/sdk/anyscale_client/models/create_compute_template_config.py +0 -464
  77. anyscale/sdk/anyscale_client/models/session_list_response.py +0 -147
  78. anyscale/sdk/anyscale_client/models/sessions_query.py +0 -206
  79. anyscale/sdk/anyscale_client/models/start_session_options.py +0 -206
  80. anyscale/sdk/anyscale_client/models/terminate_session_options.py +0 -206
  81. anyscale/sdk/anyscale_client/models/update_compute_template.py +0 -146
  82. anyscale/sdk/anyscale_client/models/update_compute_template_config.py +0 -464
  83. anyscale/sdk/anyscale_client/models/update_session.py +0 -150
  84. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/LICENSE +0 -0
  85. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/NOTICE +0 -0
  86. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/WHEEL +0 -0
  87. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/entry_points.txt +0 -0
  88. {anyscale-0.26.23.dist-info → anyscale-0.26.24.dist-info}/top_level.txt +0 -0
@@ -1,239 +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 BankAccountInformation(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
- 'bank_name': 'str',
37
- 'masked_account_number': 'str',
38
- 'first_name': 'str',
39
- 'last_name': 'str',
40
- 'bank_account_holder_type': 'str'
41
- }
42
-
43
- attribute_map = {
44
- 'bank_name': 'bank_name',
45
- 'masked_account_number': 'masked_account_number',
46
- 'first_name': 'first_name',
47
- 'last_name': 'last_name',
48
- 'bank_account_holder_type': 'bank_account_holder_type'
49
- }
50
-
51
- def __init__(self, bank_name=None, masked_account_number=None, first_name=None, last_name=None, bank_account_holder_type=None, local_vars_configuration=None): # noqa: E501
52
- """BankAccountInformation - 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
-
57
- self._bank_name = None
58
- self._masked_account_number = None
59
- self._first_name = None
60
- self._last_name = None
61
- self._bank_account_holder_type = None
62
- self.discriminator = None
63
-
64
- self.bank_name = bank_name
65
- self.masked_account_number = masked_account_number
66
- self.first_name = first_name
67
- self.last_name = last_name
68
- self.bank_account_holder_type = bank_account_holder_type
69
-
70
- @property
71
- def bank_name(self):
72
- """Gets the bank_name of this BankAccountInformation. # noqa: E501
73
-
74
- Name of the bank. # noqa: E501
75
-
76
- :return: The bank_name of this BankAccountInformation. # noqa: E501
77
- :rtype: str
78
- """
79
- return self._bank_name
80
-
81
- @bank_name.setter
82
- def bank_name(self, bank_name):
83
- """Sets the bank_name of this BankAccountInformation.
84
-
85
- Name of the bank. # noqa: E501
86
-
87
- :param bank_name: The bank_name of this BankAccountInformation. # noqa: E501
88
- :type: str
89
- """
90
- if self.local_vars_configuration.client_side_validation and bank_name is None: # noqa: E501
91
- raise ValueError("Invalid value for `bank_name`, must not be `None`") # noqa: E501
92
-
93
- self._bank_name = bank_name
94
-
95
- @property
96
- def masked_account_number(self):
97
- """Gets the masked_account_number of this BankAccountInformation. # noqa: E501
98
-
99
- Masked account number used for subscription. # noqa: E501
100
-
101
- :return: The masked_account_number of this BankAccountInformation. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._masked_account_number
105
-
106
- @masked_account_number.setter
107
- def masked_account_number(self, masked_account_number):
108
- """Sets the masked_account_number of this BankAccountInformation.
109
-
110
- Masked account number used for subscription. # noqa: E501
111
-
112
- :param masked_account_number: The masked_account_number of this BankAccountInformation. # noqa: E501
113
- :type: str
114
- """
115
- if self.local_vars_configuration.client_side_validation and masked_account_number is None: # noqa: E501
116
- raise ValueError("Invalid value for `masked_account_number`, must not be `None`") # noqa: E501
117
-
118
- self._masked_account_number = masked_account_number
119
-
120
- @property
121
- def first_name(self):
122
- """Gets the first_name of this BankAccountInformation. # noqa: E501
123
-
124
- First name of bank account holder. # noqa: E501
125
-
126
- :return: The first_name of this BankAccountInformation. # noqa: E501
127
- :rtype: str
128
- """
129
- return self._first_name
130
-
131
- @first_name.setter
132
- def first_name(self, first_name):
133
- """Sets the first_name of this BankAccountInformation.
134
-
135
- First name of bank account holder. # noqa: E501
136
-
137
- :param first_name: The first_name of this BankAccountInformation. # noqa: E501
138
- :type: str
139
- """
140
- if self.local_vars_configuration.client_side_validation and first_name is None: # noqa: E501
141
- raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501
142
-
143
- self._first_name = first_name
144
-
145
- @property
146
- def last_name(self):
147
- """Gets the last_name of this BankAccountInformation. # noqa: E501
148
-
149
- Last name of bank account holder. # noqa: E501
150
-
151
- :return: The last_name of this BankAccountInformation. # noqa: E501
152
- :rtype: str
153
- """
154
- return self._last_name
155
-
156
- @last_name.setter
157
- def last_name(self, last_name):
158
- """Sets the last_name of this BankAccountInformation.
159
-
160
- Last name of bank account holder. # noqa: E501
161
-
162
- :param last_name: The last_name of this BankAccountInformation. # noqa: E501
163
- :type: str
164
- """
165
- if self.local_vars_configuration.client_side_validation and last_name is None: # noqa: E501
166
- raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501
167
-
168
- self._last_name = last_name
169
-
170
- @property
171
- def bank_account_holder_type(self):
172
- """Gets the bank_account_holder_type of this BankAccountInformation. # noqa: E501
173
-
174
- Type of bank account. # noqa: E501
175
-
176
- :return: The bank_account_holder_type of this BankAccountInformation. # noqa: E501
177
- :rtype: str
178
- """
179
- return self._bank_account_holder_type
180
-
181
- @bank_account_holder_type.setter
182
- def bank_account_holder_type(self, bank_account_holder_type):
183
- """Sets the bank_account_holder_type of this BankAccountInformation.
184
-
185
- Type of bank account. # noqa: E501
186
-
187
- :param bank_account_holder_type: The bank_account_holder_type of this BankAccountInformation. # noqa: E501
188
- :type: str
189
- """
190
- if self.local_vars_configuration.client_side_validation and bank_account_holder_type is None: # noqa: E501
191
- raise ValueError("Invalid value for `bank_account_holder_type`, must not be `None`") # noqa: E501
192
-
193
- self._bank_account_holder_type = bank_account_holder_type
194
-
195
- def to_dict(self):
196
- """Returns the model properties as a dict"""
197
- result = {}
198
-
199
- for attr, _ in six.iteritems(self.openapi_types):
200
- value = getattr(self, attr)
201
- if isinstance(value, list):
202
- result[attr] = list(map(
203
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
204
- value
205
- ))
206
- elif hasattr(value, "to_dict"):
207
- result[attr] = value.to_dict()
208
- elif isinstance(value, dict):
209
- result[attr] = dict(map(
210
- lambda item: (item[0], item[1].to_dict())
211
- if hasattr(item[1], "to_dict") else item,
212
- value.items()
213
- ))
214
- else:
215
- result[attr] = value
216
-
217
- return result
218
-
219
- def to_str(self):
220
- """Returns the string representation of the model"""
221
- return pprint.pformat(self.to_dict())
222
-
223
- def __repr__(self):
224
- """For `print` and `pprint`"""
225
- return self.to_str()
226
-
227
- def __eq__(self, other):
228
- """Returns true if both objects are equal"""
229
- if not isinstance(other, BankAccountInformation):
230
- return False
231
-
232
- return self.to_dict() == other.to_dict()
233
-
234
- def __ne__(self, other):
235
- """Returns true if both objects are not equal"""
236
- if not isinstance(other, BankAccountInformation):
237
- return True
238
-
239
- return self.to_dict() != other.to_dict()
@@ -1,181 +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 BillingInformation(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
- 'edit_payment_profiles': 'str',
37
- 'aioa_billing_information': 'ServiceUsage',
38
- 'aica_billing_information': 'ServiceUsage'
39
- }
40
-
41
- attribute_map = {
42
- 'edit_payment_profiles': 'edit_payment_profiles',
43
- 'aioa_billing_information': 'aioa_billing_information',
44
- 'aica_billing_information': 'aica_billing_information'
45
- }
46
-
47
- def __init__(self, edit_payment_profiles=None, aioa_billing_information=None, aica_billing_information=None, local_vars_configuration=None): # noqa: E501
48
- """BillingInformation - a model defined in OpenAPI""" # noqa: E501
49
- if local_vars_configuration is None:
50
- local_vars_configuration = Configuration()
51
- self.local_vars_configuration = local_vars_configuration
52
-
53
- self._edit_payment_profiles = None
54
- self._aioa_billing_information = None
55
- self._aica_billing_information = None
56
- self.discriminator = None
57
-
58
- self.edit_payment_profiles = edit_payment_profiles
59
- self.aioa_billing_information = aioa_billing_information
60
- self.aica_billing_information = aica_billing_information
61
-
62
- @property
63
- def edit_payment_profiles(self):
64
- """Gets the edit_payment_profiles of this BillingInformation. # noqa: E501
65
-
66
- Link to edit payment information for organization. # noqa: E501
67
-
68
- :return: The edit_payment_profiles of this BillingInformation. # noqa: E501
69
- :rtype: str
70
- """
71
- return self._edit_payment_profiles
72
-
73
- @edit_payment_profiles.setter
74
- def edit_payment_profiles(self, edit_payment_profiles):
75
- """Sets the edit_payment_profiles of this BillingInformation.
76
-
77
- Link to edit payment information for organization. # noqa: E501
78
-
79
- :param edit_payment_profiles: The edit_payment_profiles of this BillingInformation. # noqa: E501
80
- :type: str
81
- """
82
- if self.local_vars_configuration.client_side_validation and edit_payment_profiles is None: # noqa: E501
83
- raise ValueError("Invalid value for `edit_payment_profiles`, must not be `None`") # noqa: E501
84
-
85
- self._edit_payment_profiles = edit_payment_profiles
86
-
87
- @property
88
- def aioa_billing_information(self):
89
- """Gets the aioa_billing_information of this BillingInformation. # noqa: E501
90
-
91
- Billing information for AIOA subscription. # noqa: E501
92
-
93
- :return: The aioa_billing_information of this BillingInformation. # noqa: E501
94
- :rtype: ServiceUsage
95
- """
96
- return self._aioa_billing_information
97
-
98
- @aioa_billing_information.setter
99
- def aioa_billing_information(self, aioa_billing_information):
100
- """Sets the aioa_billing_information of this BillingInformation.
101
-
102
- Billing information for AIOA subscription. # noqa: E501
103
-
104
- :param aioa_billing_information: The aioa_billing_information of this BillingInformation. # noqa: E501
105
- :type: ServiceUsage
106
- """
107
- if self.local_vars_configuration.client_side_validation and aioa_billing_information is None: # noqa: E501
108
- raise ValueError("Invalid value for `aioa_billing_information`, must not be `None`") # noqa: E501
109
-
110
- self._aioa_billing_information = aioa_billing_information
111
-
112
- @property
113
- def aica_billing_information(self):
114
- """Gets the aica_billing_information of this BillingInformation. # noqa: E501
115
-
116
- Billing information for AICA subscription. # noqa: E501
117
-
118
- :return: The aica_billing_information of this BillingInformation. # noqa: E501
119
- :rtype: ServiceUsage
120
- """
121
- return self._aica_billing_information
122
-
123
- @aica_billing_information.setter
124
- def aica_billing_information(self, aica_billing_information):
125
- """Sets the aica_billing_information of this BillingInformation.
126
-
127
- Billing information for AICA subscription. # noqa: E501
128
-
129
- :param aica_billing_information: The aica_billing_information of this BillingInformation. # noqa: E501
130
- :type: ServiceUsage
131
- """
132
- if self.local_vars_configuration.client_side_validation and aica_billing_information is None: # noqa: E501
133
- raise ValueError("Invalid value for `aica_billing_information`, must not be `None`") # noqa: E501
134
-
135
- self._aica_billing_information = aica_billing_information
136
-
137
- def to_dict(self):
138
- """Returns the model properties as a dict"""
139
- result = {}
140
-
141
- for attr, _ in six.iteritems(self.openapi_types):
142
- value = getattr(self, attr)
143
- if isinstance(value, list):
144
- result[attr] = list(map(
145
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
146
- value
147
- ))
148
- elif hasattr(value, "to_dict"):
149
- result[attr] = value.to_dict()
150
- elif isinstance(value, dict):
151
- result[attr] = dict(map(
152
- lambda item: (item[0], item[1].to_dict())
153
- if hasattr(item[1], "to_dict") else item,
154
- value.items()
155
- ))
156
- else:
157
- result[attr] = value
158
-
159
- return result
160
-
161
- def to_str(self):
162
- """Returns the string representation of the model"""
163
- return pprint.pformat(self.to_dict())
164
-
165
- def __repr__(self):
166
- """For `print` and `pprint`"""
167
- return self.to_str()
168
-
169
- def __eq__(self, other):
170
- """Returns true if both objects are equal"""
171
- if not isinstance(other, BillingInformation):
172
- return False
173
-
174
- return self.to_dict() == other.to_dict()
175
-
176
- def __ne__(self, other):
177
- """Returns true if both objects are not equal"""
178
- if not isinstance(other, BillingInformation):
179
- return True
180
-
181
- return self.to_dict() != other.to_dict()
@@ -1,268 +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 CreditCardInformation(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
- 'card_type': 'str',
37
- 'masked_card_number': 'str',
38
- 'first_name': 'str',
39
- 'last_name': 'str',
40
- 'expiration_month': 'int',
41
- 'expiration_year': 'int'
42
- }
43
-
44
- attribute_map = {
45
- 'card_type': 'card_type',
46
- 'masked_card_number': 'masked_card_number',
47
- 'first_name': 'first_name',
48
- 'last_name': 'last_name',
49
- 'expiration_month': 'expiration_month',
50
- 'expiration_year': 'expiration_year'
51
- }
52
-
53
- def __init__(self, card_type=None, masked_card_number=None, first_name=None, last_name=None, expiration_month=None, expiration_year=None, local_vars_configuration=None): # noqa: E501
54
- """CreditCardInformation - a model defined in OpenAPI""" # noqa: E501
55
- if local_vars_configuration is None:
56
- local_vars_configuration = Configuration()
57
- self.local_vars_configuration = local_vars_configuration
58
-
59
- self._card_type = None
60
- self._masked_card_number = None
61
- self._first_name = None
62
- self._last_name = None
63
- self._expiration_month = None
64
- self._expiration_year = None
65
- self.discriminator = None
66
-
67
- self.card_type = card_type
68
- self.masked_card_number = masked_card_number
69
- self.first_name = first_name
70
- self.last_name = last_name
71
- self.expiration_month = expiration_month
72
- self.expiration_year = expiration_year
73
-
74
- @property
75
- def card_type(self):
76
- """Gets the card_type of this CreditCardInformation. # noqa: E501
77
-
78
- Type of credit card. # noqa: E501
79
-
80
- :return: The card_type of this CreditCardInformation. # noqa: E501
81
- :rtype: str
82
- """
83
- return self._card_type
84
-
85
- @card_type.setter
86
- def card_type(self, card_type):
87
- """Sets the card_type of this CreditCardInformation.
88
-
89
- Type of credit card. # noqa: E501
90
-
91
- :param card_type: The card_type of this CreditCardInformation. # noqa: E501
92
- :type: str
93
- """
94
- if self.local_vars_configuration.client_side_validation and card_type is None: # noqa: E501
95
- raise ValueError("Invalid value for `card_type`, must not be `None`") # noqa: E501
96
-
97
- self._card_type = card_type
98
-
99
- @property
100
- def masked_card_number(self):
101
- """Gets the masked_card_number of this CreditCardInformation. # noqa: E501
102
-
103
- Masked credit card number used for subscription. # noqa: E501
104
-
105
- :return: The masked_card_number of this CreditCardInformation. # noqa: E501
106
- :rtype: str
107
- """
108
- return self._masked_card_number
109
-
110
- @masked_card_number.setter
111
- def masked_card_number(self, masked_card_number):
112
- """Sets the masked_card_number of this CreditCardInformation.
113
-
114
- Masked credit card number used for subscription. # noqa: E501
115
-
116
- :param masked_card_number: The masked_card_number of this CreditCardInformation. # noqa: E501
117
- :type: str
118
- """
119
- if self.local_vars_configuration.client_side_validation and masked_card_number is None: # noqa: E501
120
- raise ValueError("Invalid value for `masked_card_number`, must not be `None`") # noqa: E501
121
-
122
- self._masked_card_number = masked_card_number
123
-
124
- @property
125
- def first_name(self):
126
- """Gets the first_name of this CreditCardInformation. # noqa: E501
127
-
128
- First name of credit card owner. # noqa: E501
129
-
130
- :return: The first_name of this CreditCardInformation. # noqa: E501
131
- :rtype: str
132
- """
133
- return self._first_name
134
-
135
- @first_name.setter
136
- def first_name(self, first_name):
137
- """Sets the first_name of this CreditCardInformation.
138
-
139
- First name of credit card owner. # noqa: E501
140
-
141
- :param first_name: The first_name of this CreditCardInformation. # noqa: E501
142
- :type: str
143
- """
144
- if self.local_vars_configuration.client_side_validation and first_name is None: # noqa: E501
145
- raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501
146
-
147
- self._first_name = first_name
148
-
149
- @property
150
- def last_name(self):
151
- """Gets the last_name of this CreditCardInformation. # noqa: E501
152
-
153
- Last name of credit card owner. # noqa: E501
154
-
155
- :return: The last_name of this CreditCardInformation. # noqa: E501
156
- :rtype: str
157
- """
158
- return self._last_name
159
-
160
- @last_name.setter
161
- def last_name(self, last_name):
162
- """Sets the last_name of this CreditCardInformation.
163
-
164
- Last name of credit card owner. # noqa: E501
165
-
166
- :param last_name: The last_name of this CreditCardInformation. # noqa: E501
167
- :type: str
168
- """
169
- if self.local_vars_configuration.client_side_validation and last_name is None: # noqa: E501
170
- raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501
171
-
172
- self._last_name = last_name
173
-
174
- @property
175
- def expiration_month(self):
176
- """Gets the expiration_month of this CreditCardInformation. # noqa: E501
177
-
178
- Month credit card expires. # noqa: E501
179
-
180
- :return: The expiration_month of this CreditCardInformation. # noqa: E501
181
- :rtype: int
182
- """
183
- return self._expiration_month
184
-
185
- @expiration_month.setter
186
- def expiration_month(self, expiration_month):
187
- """Sets the expiration_month of this CreditCardInformation.
188
-
189
- Month credit card expires. # noqa: E501
190
-
191
- :param expiration_month: The expiration_month of this CreditCardInformation. # noqa: E501
192
- :type: int
193
- """
194
- if self.local_vars_configuration.client_side_validation and expiration_month is None: # noqa: E501
195
- raise ValueError("Invalid value for `expiration_month`, must not be `None`") # noqa: E501
196
-
197
- self._expiration_month = expiration_month
198
-
199
- @property
200
- def expiration_year(self):
201
- """Gets the expiration_year of this CreditCardInformation. # noqa: E501
202
-
203
- Year credit card expires. # noqa: E501
204
-
205
- :return: The expiration_year of this CreditCardInformation. # noqa: E501
206
- :rtype: int
207
- """
208
- return self._expiration_year
209
-
210
- @expiration_year.setter
211
- def expiration_year(self, expiration_year):
212
- """Sets the expiration_year of this CreditCardInformation.
213
-
214
- Year credit card expires. # noqa: E501
215
-
216
- :param expiration_year: The expiration_year of this CreditCardInformation. # noqa: E501
217
- :type: int
218
- """
219
- if self.local_vars_configuration.client_side_validation and expiration_year is None: # noqa: E501
220
- raise ValueError("Invalid value for `expiration_year`, must not be `None`") # noqa: E501
221
-
222
- self._expiration_year = expiration_year
223
-
224
- def to_dict(self):
225
- """Returns the model properties as a dict"""
226
- result = {}
227
-
228
- for attr, _ in six.iteritems(self.openapi_types):
229
- value = getattr(self, attr)
230
- if isinstance(value, list):
231
- result[attr] = list(map(
232
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
233
- value
234
- ))
235
- elif hasattr(value, "to_dict"):
236
- result[attr] = value.to_dict()
237
- elif isinstance(value, dict):
238
- result[attr] = dict(map(
239
- lambda item: (item[0], item[1].to_dict())
240
- if hasattr(item[1], "to_dict") else item,
241
- value.items()
242
- ))
243
- else:
244
- result[attr] = value
245
-
246
- return result
247
-
248
- def to_str(self):
249
- """Returns the string representation of the model"""
250
- return pprint.pformat(self.to_dict())
251
-
252
- def __repr__(self):
253
- """For `print` and `pprint`"""
254
- return self.to_str()
255
-
256
- def __eq__(self, other):
257
- """Returns true if both objects are equal"""
258
- if not isinstance(other, CreditCardInformation):
259
- return False
260
-
261
- return self.to_dict() == other.to_dict()
262
-
263
- def __ne__(self, other):
264
- """Returns true if both objects are not equal"""
265
- if not isinstance(other, CreditCardInformation):
266
- return True
267
-
268
- return self.to_dict() != other.to_dict()