anyscale 0.26.0__py3-none-any.whl → 0.26.1__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 (30) hide show
  1. anyscale/client/README.md +11 -10
  2. anyscale/client/openapi_client/__init__.py +6 -6
  3. anyscale/client/openapi_client/api/default_api.py +210 -83
  4. anyscale/client/openapi_client/models/__init__.py +6 -6
  5. anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +81 -3
  6. anyscale/client/openapi_client/models/create_organization_configuration.py +3 -3
  7. anyscale/client/openapi_client/models/{create_resource_alert.py → create_resource_notification.py} +40 -40
  8. anyscale/client/openapi_client/models/{list_resource_alerts_query.py → list_resource_notifications_query.py} +24 -24
  9. anyscale/client/openapi_client/models/{customer_billing_type.py → machine_launch_failure.py} +65 -14
  10. anyscale/client/openapi_client/models/organization_configuration.py +3 -3
  11. anyscale/client/openapi_client/models/organization_configuration_response.py +3 -3
  12. anyscale/client/openapi_client/models/resource_alert_event_type.py +4 -1
  13. anyscale/client/openapi_client/models/{resource_alert.py → resource_notification.py} +64 -64
  14. anyscale/client/openapi_client/models/{resourcealert_list_response.py → resourcenotification_list_response.py} +15 -15
  15. anyscale/client/openapi_client/models/{resourcealert_response.py → resourcenotification_response.py} +11 -11
  16. anyscale/client/openapi_client/models/scheduler_info.py +32 -3
  17. anyscale/client/openapi_client/models/tool.py +2 -1
  18. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  19. anyscale/commands/machine_pool_commands.py +15 -10
  20. anyscale/resource_quota/commands.py +1 -2
  21. anyscale/service/_private/service_sdk.py +2 -3
  22. anyscale/shared_anyscale_utils/constants.py +3 -0
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/RECORD +30 -29
  26. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/LICENSE +0 -0
  27. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/NOTICE +0 -0
  28. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/WHEEL +0 -0
  29. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/entry_points.txt +0 -0
  30. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/top_level.txt +0 -0
@@ -56,7 +56,10 @@ class AggregatedInstanceUsageCSV(object):
56
56
  'gpu_type': 'str',
57
57
  'memory_mib': 'int',
58
58
  'cpu_count': 'int',
59
- 'gpu_count': 'int'
59
+ 'gpu_count': 'int',
60
+ 'anyscale_managed_machine_pool_id': 'str',
61
+ 'anyscale_managed_machine_pool_name': 'str',
62
+ 'user_defined_machine_type': 'str'
60
63
  }
61
64
 
62
65
  attribute_map = {
@@ -83,10 +86,13 @@ class AggregatedInstanceUsageCSV(object):
83
86
  'gpu_type': 'gpu_type',
84
87
  'memory_mib': 'memory_mib',
85
88
  'cpu_count': 'cpu_count',
86
- 'gpu_count': 'gpu_count'
89
+ 'gpu_count': 'gpu_count',
90
+ 'anyscale_managed_machine_pool_id': 'anyscale_managed_machine_pool_id',
91
+ 'anyscale_managed_machine_pool_name': 'anyscale_managed_machine_pool_name',
92
+ 'user_defined_machine_type': 'user_defined_machine_type'
87
93
  }
88
94
 
89
- def __init__(self, date=None, organization_id=None, organization_name=None, cloud_hosting_type=None, cloud_id=None, cloud_name=None, project_id=None, project_name=None, user_id=None, user_email=None, cluster_id=None, workspace_id=None, job_id=None, job_queue_id=None, service_id=None, instance_type=None, instance_seconds=None, cloud_provider=None, anyscale_credits=None, compute_stack=None, gpu_type=None, memory_mib=None, cpu_count=None, gpu_count=None, local_vars_configuration=None): # noqa: E501
95
+ def __init__(self, date=None, organization_id=None, organization_name=None, cloud_hosting_type=None, cloud_id=None, cloud_name=None, project_id=None, project_name=None, user_id=None, user_email=None, cluster_id=None, workspace_id=None, job_id=None, job_queue_id=None, service_id=None, instance_type=None, instance_seconds=None, cloud_provider=None, anyscale_credits=None, compute_stack=None, gpu_type=None, memory_mib=None, cpu_count=None, gpu_count=None, anyscale_managed_machine_pool_id=None, anyscale_managed_machine_pool_name=None, user_defined_machine_type=None, local_vars_configuration=None): # noqa: E501
90
96
  """AggregatedInstanceUsageCSV - a model defined in OpenAPI""" # noqa: E501
91
97
  if local_vars_configuration is None:
92
98
  local_vars_configuration = Configuration()
@@ -116,6 +122,9 @@ class AggregatedInstanceUsageCSV(object):
116
122
  self._memory_mib = None
117
123
  self._cpu_count = None
118
124
  self._gpu_count = None
125
+ self._anyscale_managed_machine_pool_id = None
126
+ self._anyscale_managed_machine_pool_name = None
127
+ self._user_defined_machine_type = None
119
128
  self.discriminator = None
120
129
 
121
130
  self.date = date
@@ -151,6 +160,12 @@ class AggregatedInstanceUsageCSV(object):
151
160
  self.cpu_count = cpu_count
152
161
  if gpu_count is not None:
153
162
  self.gpu_count = gpu_count
163
+ if anyscale_managed_machine_pool_id is not None:
164
+ self.anyscale_managed_machine_pool_id = anyscale_managed_machine_pool_id
165
+ if anyscale_managed_machine_pool_name is not None:
166
+ self.anyscale_managed_machine_pool_name = anyscale_managed_machine_pool_name
167
+ if user_defined_machine_type is not None:
168
+ self.user_defined_machine_type = user_defined_machine_type
154
169
 
155
170
  @property
156
171
  def date(self):
@@ -686,6 +701,69 @@ class AggregatedInstanceUsageCSV(object):
686
701
 
687
702
  self._gpu_count = gpu_count
688
703
 
704
+ @property
705
+ def anyscale_managed_machine_pool_id(self):
706
+ """Gets the anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
707
+
708
+
709
+ :return: The anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
710
+ :rtype: str
711
+ """
712
+ return self._anyscale_managed_machine_pool_id
713
+
714
+ @anyscale_managed_machine_pool_id.setter
715
+ def anyscale_managed_machine_pool_id(self, anyscale_managed_machine_pool_id):
716
+ """Sets the anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV.
717
+
718
+
719
+ :param anyscale_managed_machine_pool_id: The anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
720
+ :type: str
721
+ """
722
+
723
+ self._anyscale_managed_machine_pool_id = anyscale_managed_machine_pool_id
724
+
725
+ @property
726
+ def anyscale_managed_machine_pool_name(self):
727
+ """Gets the anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
728
+
729
+
730
+ :return: The anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
731
+ :rtype: str
732
+ """
733
+ return self._anyscale_managed_machine_pool_name
734
+
735
+ @anyscale_managed_machine_pool_name.setter
736
+ def anyscale_managed_machine_pool_name(self, anyscale_managed_machine_pool_name):
737
+ """Sets the anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV.
738
+
739
+
740
+ :param anyscale_managed_machine_pool_name: The anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
741
+ :type: str
742
+ """
743
+
744
+ self._anyscale_managed_machine_pool_name = anyscale_managed_machine_pool_name
745
+
746
+ @property
747
+ def user_defined_machine_type(self):
748
+ """Gets the user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
749
+
750
+
751
+ :return: The user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
752
+ :rtype: str
753
+ """
754
+ return self._user_defined_machine_type
755
+
756
+ @user_defined_machine_type.setter
757
+ def user_defined_machine_type(self, user_defined_machine_type):
758
+ """Sets the user_defined_machine_type of this AggregatedInstanceUsageCSV.
759
+
760
+
761
+ :param user_defined_machine_type: The user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
762
+ :type: str
763
+ """
764
+
765
+ self._user_defined_machine_type = user_defined_machine_type
766
+
689
767
  def to_dict(self):
690
768
  """Returns the model properties as a dict"""
691
769
  result = {}
@@ -33,7 +33,7 @@ class CreateOrganizationConfiguration(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'customer_billing_type': 'CustomerBillingType',
36
+ 'customer_billing_type': 'str',
37
37
  'invite_code': 'str',
38
38
  'expires_at': 'datetime',
39
39
  'description': 'str'
@@ -72,7 +72,7 @@ class CreateOrganizationConfiguration(object):
72
72
 
73
73
 
74
74
  :return: The customer_billing_type of this CreateOrganizationConfiguration. # noqa: E501
75
- :rtype: CustomerBillingType
75
+ :rtype: str
76
76
  """
77
77
  return self._customer_billing_type
78
78
 
@@ -82,7 +82,7 @@ class CreateOrganizationConfiguration(object):
82
82
 
83
83
 
84
84
  :param customer_billing_type: The customer_billing_type of this CreateOrganizationConfiguration. # noqa: E501
85
- :type: CustomerBillingType
85
+ :type: str
86
86
  """
87
87
  if self.local_vars_configuration.client_side_validation and customer_billing_type is None: # noqa: E501
88
88
  raise ValueError("Invalid value for `customer_billing_type`, must not be `None`") # noqa: E501
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class CreateResourceAlert(object):
21
+ class CreateResourceNotification(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -37,7 +37,7 @@ class CreateResourceAlert(object):
37
37
  'cloud_id': 'str',
38
38
  'project_id': 'str',
39
39
  'user_id': 'str',
40
- 'alert_events': 'list[ResourceAlertEventType]',
40
+ 'notification_events': 'list[ResourceAlertEventType]',
41
41
  'notification_channel': 'CreateNotificationChannelRecord'
42
42
  }
43
43
 
@@ -46,12 +46,12 @@ class CreateResourceAlert(object):
46
46
  'cloud_id': 'cloud_id',
47
47
  'project_id': 'project_id',
48
48
  'user_id': 'user_id',
49
- 'alert_events': 'alert_events',
49
+ 'notification_events': 'notification_events',
50
50
  'notification_channel': 'notification_channel'
51
51
  }
52
52
 
53
- def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, alert_events=None, notification_channel=None, local_vars_configuration=None): # noqa: E501
54
- """CreateResourceAlert - a model defined in OpenAPI""" # noqa: E501
53
+ def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, notification_events=None, notification_channel=None, local_vars_configuration=None): # noqa: E501
54
+ """CreateResourceNotification - a model defined in OpenAPI""" # noqa: E501
55
55
  if local_vars_configuration is None:
56
56
  local_vars_configuration = Configuration()
57
57
  self.local_vars_configuration = local_vars_configuration
@@ -60,7 +60,7 @@ class CreateResourceAlert(object):
60
60
  self._cloud_id = None
61
61
  self._project_id = None
62
62
  self._user_id = None
63
- self._alert_events = None
63
+ self._notification_events = None
64
64
  self._notification_channel = None
65
65
  self.discriminator = None
66
66
 
@@ -70,28 +70,28 @@ class CreateResourceAlert(object):
70
70
  self.project_id = project_id
71
71
  if user_id is not None:
72
72
  self.user_id = user_id
73
- self.alert_events = alert_events
73
+ self.notification_events = notification_events
74
74
  if notification_channel is not None:
75
75
  self.notification_channel = notification_channel
76
76
 
77
77
  @property
78
78
  def name(self):
79
- """Gets the name of this CreateResourceAlert. # noqa: E501
79
+ """Gets the name of this CreateResourceNotification. # noqa: E501
80
80
 
81
81
  The name of this resource alert. # noqa: E501
82
82
 
83
- :return: The name of this CreateResourceAlert. # noqa: E501
83
+ :return: The name of this CreateResourceNotification. # noqa: E501
84
84
  :rtype: str
85
85
  """
86
86
  return self._name
87
87
 
88
88
  @name.setter
89
89
  def name(self, name):
90
- """Sets the name of this CreateResourceAlert.
90
+ """Sets the name of this CreateResourceNotification.
91
91
 
92
92
  The name of this resource alert. # noqa: E501
93
93
 
94
- :param name: The name of this CreateResourceAlert. # noqa: E501
94
+ :param name: The name of this CreateResourceNotification. # noqa: E501
95
95
  :type: str
96
96
  """
97
97
  if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -101,22 +101,22 @@ class CreateResourceAlert(object):
101
101
 
102
102
  @property
103
103
  def cloud_id(self):
104
- """Gets the cloud_id of this CreateResourceAlert. # noqa: E501
104
+ """Gets the cloud_id of this CreateResourceNotification. # noqa: E501
105
105
 
106
106
  The ID of the cloud that this resource alert applies to. # noqa: E501
107
107
 
108
- :return: The cloud_id of this CreateResourceAlert. # noqa: E501
108
+ :return: The cloud_id of this CreateResourceNotification. # noqa: E501
109
109
  :rtype: str
110
110
  """
111
111
  return self._cloud_id
112
112
 
113
113
  @cloud_id.setter
114
114
  def cloud_id(self, cloud_id):
115
- """Sets the cloud_id of this CreateResourceAlert.
115
+ """Sets the cloud_id of this CreateResourceNotification.
116
116
 
117
117
  The ID of the cloud that this resource alert applies to. # noqa: E501
118
118
 
119
- :param cloud_id: The cloud_id of this CreateResourceAlert. # noqa: E501
119
+ :param cloud_id: The cloud_id of this CreateResourceNotification. # noqa: E501
120
120
  :type: str
121
121
  """
122
122
  if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
@@ -126,22 +126,22 @@ class CreateResourceAlert(object):
126
126
 
127
127
  @property
128
128
  def project_id(self):
129
- """Gets the project_id of this CreateResourceAlert. # noqa: E501
129
+ """Gets the project_id of this CreateResourceNotification. # noqa: E501
130
130
 
131
131
  The ID of the project that this resource alert applies to. # noqa: E501
132
132
 
133
- :return: The project_id of this CreateResourceAlert. # noqa: E501
133
+ :return: The project_id of this CreateResourceNotification. # noqa: E501
134
134
  :rtype: str
135
135
  """
136
136
  return self._project_id
137
137
 
138
138
  @project_id.setter
139
139
  def project_id(self, project_id):
140
- """Sets the project_id of this CreateResourceAlert.
140
+ """Sets the project_id of this CreateResourceNotification.
141
141
 
142
142
  The ID of the project that this resource alert applies to. # noqa: E501
143
143
 
144
- :param project_id: The project_id of this CreateResourceAlert. # noqa: E501
144
+ :param project_id: The project_id of this CreateResourceNotification. # noqa: E501
145
145
  :type: str
146
146
  """
147
147
 
@@ -149,70 +149,70 @@ class CreateResourceAlert(object):
149
149
 
150
150
  @property
151
151
  def user_id(self):
152
- """Gets the user_id of this CreateResourceAlert. # noqa: E501
152
+ """Gets the user_id of this CreateResourceNotification. # noqa: E501
153
153
 
154
154
  The ID of the user that this resource alert applies to. # noqa: E501
155
155
 
156
- :return: The user_id of this CreateResourceAlert. # noqa: E501
156
+ :return: The user_id of this CreateResourceNotification. # noqa: E501
157
157
  :rtype: str
158
158
  """
159
159
  return self._user_id
160
160
 
161
161
  @user_id.setter
162
162
  def user_id(self, user_id):
163
- """Sets the user_id of this CreateResourceAlert.
163
+ """Sets the user_id of this CreateResourceNotification.
164
164
 
165
165
  The ID of the user that this resource alert applies to. # noqa: E501
166
166
 
167
- :param user_id: The user_id of this CreateResourceAlert. # noqa: E501
167
+ :param user_id: The user_id of this CreateResourceNotification. # noqa: E501
168
168
  :type: str
169
169
  """
170
170
 
171
171
  self._user_id = user_id
172
172
 
173
173
  @property
174
- def alert_events(self):
175
- """Gets the alert_events of this CreateResourceAlert. # noqa: E501
174
+ def notification_events(self):
175
+ """Gets the notification_events of this CreateResourceNotification. # noqa: E501
176
176
 
177
177
  The event types to alert on. # noqa: E501
178
178
 
179
- :return: The alert_events of this CreateResourceAlert. # noqa: E501
179
+ :return: The notification_events of this CreateResourceNotification. # noqa: E501
180
180
  :rtype: list[ResourceAlertEventType]
181
181
  """
182
- return self._alert_events
182
+ return self._notification_events
183
183
 
184
- @alert_events.setter
185
- def alert_events(self, alert_events):
186
- """Sets the alert_events of this CreateResourceAlert.
184
+ @notification_events.setter
185
+ def notification_events(self, notification_events):
186
+ """Sets the notification_events of this CreateResourceNotification.
187
187
 
188
188
  The event types to alert on. # noqa: E501
189
189
 
190
- :param alert_events: The alert_events of this CreateResourceAlert. # noqa: E501
190
+ :param notification_events: The notification_events of this CreateResourceNotification. # noqa: E501
191
191
  :type: list[ResourceAlertEventType]
192
192
  """
193
- if self.local_vars_configuration.client_side_validation and alert_events is None: # noqa: E501
194
- raise ValueError("Invalid value for `alert_events`, must not be `None`") # noqa: E501
193
+ if self.local_vars_configuration.client_side_validation and notification_events is None: # noqa: E501
194
+ raise ValueError("Invalid value for `notification_events`, must not be `None`") # noqa: E501
195
195
 
196
- self._alert_events = alert_events
196
+ self._notification_events = notification_events
197
197
 
198
198
  @property
199
199
  def notification_channel(self):
200
- """Gets the notification_channel of this CreateResourceAlert. # noqa: E501
200
+ """Gets the notification_channel of this CreateResourceNotification. # noqa: E501
201
201
 
202
202
  The notification channel that this resource alert sends notification to. # noqa: E501
203
203
 
204
- :return: The notification_channel of this CreateResourceAlert. # noqa: E501
204
+ :return: The notification_channel of this CreateResourceNotification. # noqa: E501
205
205
  :rtype: CreateNotificationChannelRecord
206
206
  """
207
207
  return self._notification_channel
208
208
 
209
209
  @notification_channel.setter
210
210
  def notification_channel(self, notification_channel):
211
- """Sets the notification_channel of this CreateResourceAlert.
211
+ """Sets the notification_channel of this CreateResourceNotification.
212
212
 
213
213
  The notification channel that this resource alert sends notification to. # noqa: E501
214
214
 
215
- :param notification_channel: The notification_channel of this CreateResourceAlert. # noqa: E501
215
+ :param notification_channel: The notification_channel of this CreateResourceNotification. # noqa: E501
216
216
  :type: CreateNotificationChannelRecord
217
217
  """
218
218
 
@@ -252,14 +252,14 @@ class CreateResourceAlert(object):
252
252
 
253
253
  def __eq__(self, other):
254
254
  """Returns true if both objects are equal"""
255
- if not isinstance(other, CreateResourceAlert):
255
+ if not isinstance(other, CreateResourceNotification):
256
256
  return False
257
257
 
258
258
  return self.to_dict() == other.to_dict()
259
259
 
260
260
  def __ne__(self, other):
261
261
  """Returns true if both objects are not equal"""
262
- if not isinstance(other, CreateResourceAlert):
262
+ if not isinstance(other, CreateResourceNotification):
263
263
  return True
264
264
 
265
265
  return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class ListResourceAlertsQuery(object):
21
+ class ListResourceNotificationsQuery(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -49,7 +49,7 @@ class ListResourceAlertsQuery(object):
49
49
  }
50
50
 
51
51
  def __init__(self, name=None, cloud_id=None, creator_id=None, is_enabled=None, paging=None, local_vars_configuration=None): # noqa: E501
52
- """ListResourceAlertsQuery - a model defined in OpenAPI""" # noqa: E501
52
+ """ListResourceNotificationsQuery - a model defined in OpenAPI""" # noqa: E501
53
53
  if local_vars_configuration is None:
54
54
  local_vars_configuration = Configuration()
55
55
  self.local_vars_configuration = local_vars_configuration
@@ -74,22 +74,22 @@ class ListResourceAlertsQuery(object):
74
74
 
75
75
  @property
76
76
  def name(self):
77
- """Gets the name of this ListResourceAlertsQuery. # noqa: E501
77
+ """Gets the name of this ListResourceNotificationsQuery. # noqa: E501
78
78
 
79
79
  The name filter for the resource alerts. # noqa: E501
80
80
 
81
- :return: The name of this ListResourceAlertsQuery. # noqa: E501
81
+ :return: The name of this ListResourceNotificationsQuery. # noqa: E501
82
82
  :rtype: TextQuery
83
83
  """
84
84
  return self._name
85
85
 
86
86
  @name.setter
87
87
  def name(self, name):
88
- """Sets the name of this ListResourceAlertsQuery.
88
+ """Sets the name of this ListResourceNotificationsQuery.
89
89
 
90
90
  The name filter for the resource alerts. # noqa: E501
91
91
 
92
- :param name: The name of this ListResourceAlertsQuery. # noqa: E501
92
+ :param name: The name of this ListResourceNotificationsQuery. # noqa: E501
93
93
  :type: TextQuery
94
94
  """
95
95
 
@@ -97,22 +97,22 @@ class ListResourceAlertsQuery(object):
97
97
 
98
98
  @property
99
99
  def cloud_id(self):
100
- """Gets the cloud_id of this ListResourceAlertsQuery. # noqa: E501
100
+ """Gets the cloud_id of this ListResourceNotificationsQuery. # noqa: E501
101
101
 
102
102
  The cloud ID filter for the resource alerts. # noqa: E501
103
103
 
104
- :return: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
104
+ :return: The cloud_id of this ListResourceNotificationsQuery. # noqa: E501
105
105
  :rtype: str
106
106
  """
107
107
  return self._cloud_id
108
108
 
109
109
  @cloud_id.setter
110
110
  def cloud_id(self, cloud_id):
111
- """Sets the cloud_id of this ListResourceAlertsQuery.
111
+ """Sets the cloud_id of this ListResourceNotificationsQuery.
112
112
 
113
113
  The cloud ID filter for the resource alerts. # noqa: E501
114
114
 
115
- :param cloud_id: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
115
+ :param cloud_id: The cloud_id of this ListResourceNotificationsQuery. # noqa: E501
116
116
  :type: str
117
117
  """
118
118
 
@@ -120,22 +120,22 @@ class ListResourceAlertsQuery(object):
120
120
 
121
121
  @property
122
122
  def creator_id(self):
123
- """Gets the creator_id of this ListResourceAlertsQuery. # noqa: E501
123
+ """Gets the creator_id of this ListResourceNotificationsQuery. # noqa: E501
124
124
 
125
125
  The creator ID filter for the resource alerts. # noqa: E501
126
126
 
127
- :return: The creator_id of this ListResourceAlertsQuery. # noqa: E501
127
+ :return: The creator_id of this ListResourceNotificationsQuery. # noqa: E501
128
128
  :rtype: str
129
129
  """
130
130
  return self._creator_id
131
131
 
132
132
  @creator_id.setter
133
133
  def creator_id(self, creator_id):
134
- """Sets the creator_id of this ListResourceAlertsQuery.
134
+ """Sets the creator_id of this ListResourceNotificationsQuery.
135
135
 
136
136
  The creator ID filter for the resource alerts. # noqa: E501
137
137
 
138
- :param creator_id: The creator_id of this ListResourceAlertsQuery. # noqa: E501
138
+ :param creator_id: The creator_id of this ListResourceNotificationsQuery. # noqa: E501
139
139
  :type: str
140
140
  """
141
141
 
@@ -143,22 +143,22 @@ class ListResourceAlertsQuery(object):
143
143
 
144
144
  @property
145
145
  def is_enabled(self):
146
- """Gets the is_enabled of this ListResourceAlertsQuery. # noqa: E501
146
+ """Gets the is_enabled of this ListResourceNotificationsQuery. # noqa: E501
147
147
 
148
148
  The is_enabled filter for the resource alerts. # noqa: E501
149
149
 
150
- :return: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
150
+ :return: The is_enabled of this ListResourceNotificationsQuery. # noqa: E501
151
151
  :rtype: bool
152
152
  """
153
153
  return self._is_enabled
154
154
 
155
155
  @is_enabled.setter
156
156
  def is_enabled(self, is_enabled):
157
- """Sets the is_enabled of this ListResourceAlertsQuery.
157
+ """Sets the is_enabled of this ListResourceNotificationsQuery.
158
158
 
159
159
  The is_enabled filter for the resource alerts. # noqa: E501
160
160
 
161
- :param is_enabled: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
161
+ :param is_enabled: The is_enabled of this ListResourceNotificationsQuery. # noqa: E501
162
162
  :type: bool
163
163
  """
164
164
 
@@ -166,22 +166,22 @@ class ListResourceAlertsQuery(object):
166
166
 
167
167
  @property
168
168
  def paging(self):
169
- """Gets the paging of this ListResourceAlertsQuery. # noqa: E501
169
+ """Gets the paging of this ListResourceNotificationsQuery. # noqa: E501
170
170
 
171
171
  Pagination information. # noqa: E501
172
172
 
173
- :return: The paging of this ListResourceAlertsQuery. # noqa: E501
173
+ :return: The paging of this ListResourceNotificationsQuery. # noqa: E501
174
174
  :rtype: PageQuery
175
175
  """
176
176
  return self._paging
177
177
 
178
178
  @paging.setter
179
179
  def paging(self, paging):
180
- """Sets the paging of this ListResourceAlertsQuery.
180
+ """Sets the paging of this ListResourceNotificationsQuery.
181
181
 
182
182
  Pagination information. # noqa: E501
183
183
 
184
- :param paging: The paging of this ListResourceAlertsQuery. # noqa: E501
184
+ :param paging: The paging of this ListResourceNotificationsQuery. # noqa: E501
185
185
  :type: PageQuery
186
186
  """
187
187
 
@@ -221,14 +221,14 @@ class ListResourceAlertsQuery(object):
221
221
 
222
222
  def __eq__(self, other):
223
223
  """Returns true if both objects are equal"""
224
- if not isinstance(other, ListResourceAlertsQuery):
224
+ if not isinstance(other, ListResourceNotificationsQuery):
225
225
  return False
226
226
 
227
227
  return self.to_dict() == other.to_dict()
228
228
 
229
229
  def __ne__(self, other):
230
230
  """Returns true if both objects are not equal"""
231
- if not isinstance(other, ListResourceAlertsQuery):
231
+ if not isinstance(other, ListResourceNotificationsQuery):
232
232
  return True
233
233
 
234
234
  return self.to_dict() != other.to_dict()
@@ -18,22 +18,13 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class CustomerBillingType(object):
21
+ class MachineLaunchFailure(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
- SELF_SERVICE = "SELF_SERVICE"
32
- PROOF_OF_CONCEPT = "PROOF_OF_CONCEPT"
33
- EXTERNAL_TRAINING = "EXTERNAL_TRAINING"
34
-
35
- allowable_values = [SELF_SERVICE, PROOF_OF_CONCEPT, EXTERNAL_TRAINING] # noqa: E501
36
-
37
28
  """
38
29
  Attributes:
39
30
  openapi_types (dict): The key is attribute name
@@ -42,18 +33,78 @@ class CustomerBillingType(object):
42
33
  and the value is json key in definition.
43
34
  """
44
35
  openapi_types = {
36
+ 'timestamp': 'datetime',
37
+ 'error': 'str'
45
38
  }
46
39
 
47
40
  attribute_map = {
41
+ 'timestamp': 'timestamp',
42
+ 'error': 'error'
48
43
  }
49
44
 
50
- def __init__(self, local_vars_configuration=None): # noqa: E501
51
- """CustomerBillingType - a model defined in OpenAPI""" # noqa: E501
45
+ def __init__(self, timestamp=None, error=None, local_vars_configuration=None): # noqa: E501
46
+ """MachineLaunchFailure - a model defined in OpenAPI""" # noqa: E501
52
47
  if local_vars_configuration is None:
53
48
  local_vars_configuration = Configuration()
54
49
  self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._timestamp = None
52
+ self._error = None
55
53
  self.discriminator = None
56
54
 
55
+ self.timestamp = timestamp
56
+ self.error = error
57
+
58
+ @property
59
+ def timestamp(self):
60
+ """Gets the timestamp of this MachineLaunchFailure. # noqa: E501
61
+
62
+ The timestamp of the failure. # noqa: E501
63
+
64
+ :return: The timestamp of this MachineLaunchFailure. # noqa: E501
65
+ :rtype: datetime
66
+ """
67
+ return self._timestamp
68
+
69
+ @timestamp.setter
70
+ def timestamp(self, timestamp):
71
+ """Sets the timestamp of this MachineLaunchFailure.
72
+
73
+ The timestamp of the failure. # noqa: E501
74
+
75
+ :param timestamp: The timestamp of this MachineLaunchFailure. # noqa: E501
76
+ :type: datetime
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
79
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
80
+
81
+ self._timestamp = timestamp
82
+
83
+ @property
84
+ def error(self):
85
+ """Gets the error of this MachineLaunchFailure. # noqa: E501
86
+
87
+ The error message of the failure. # noqa: E501
88
+
89
+ :return: The error of this MachineLaunchFailure. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._error
93
+
94
+ @error.setter
95
+ def error(self, error):
96
+ """Sets the error of this MachineLaunchFailure.
97
+
98
+ The error message of the failure. # noqa: E501
99
+
100
+ :param error: The error of this MachineLaunchFailure. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and error is None: # noqa: E501
104
+ raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
105
+
106
+ self._error = error
107
+
57
108
  def to_dict(self):
58
109
  """Returns the model properties as a dict"""
59
110
  result = {}
@@ -88,14 +139,14 @@ class CustomerBillingType(object):
88
139
 
89
140
  def __eq__(self, other):
90
141
  """Returns true if both objects are equal"""
91
- if not isinstance(other, CustomerBillingType):
142
+ if not isinstance(other, MachineLaunchFailure):
92
143
  return False
93
144
 
94
145
  return self.to_dict() == other.to_dict()
95
146
 
96
147
  def __ne__(self, other):
97
148
  """Returns true if both objects are not equal"""
98
- if not isinstance(other, CustomerBillingType):
149
+ if not isinstance(other, MachineLaunchFailure):
99
150
  return True
100
151
 
101
152
  return self.to_dict() != other.to_dict()