anyscale 0.26.32__py3-none-any.whl → 0.26.34__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 (39) hide show
  1. anyscale/api.py +22 -0
  2. anyscale/aws_iam_policies.py +0 -3
  3. anyscale/client/README.md +20 -2
  4. anyscale/client/openapi_client/__init__.py +15 -1
  5. anyscale/client/openapi_client/api/default_api.py +625 -167
  6. anyscale/client/openapi_client/models/__init__.py +15 -1
  7. anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
  8. anyscale/client/openapi_client/models/cloud_deployment.py +31 -30
  9. anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
  10. anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
  11. anyscale/client/openapi_client/models/complexity_level.py +101 -0
  12. anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
  13. anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
  14. anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
  15. anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
  16. anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
  17. anyscale/client/openapi_client/models/credit_type.py +100 -0
  18. anyscale/client/openapi_client/models/credits_v2.py +355 -0
  19. anyscale/client/openapi_client/models/partition_info.py +152 -0
  20. anyscale/client/openapi_client/models/{pcp_config.py → summarize_machine_pool_request.py} +13 -12
  21. anyscale/client/openapi_client/models/summarize_machine_pool_response.py +181 -0
  22. anyscale/client/openapi_client/models/summarizemachinepoolresponse_response.py +121 -0
  23. anyscale/client/openapi_client/models/workspace_template.py +115 -3
  24. anyscale/client/openapi_client/models/workspace_template_readme.py +88 -3
  25. anyscale/commands/cloud_commands.py +12 -9
  26. anyscale/commands/command_examples.py +23 -6
  27. anyscale/commands/list_util.py +100 -38
  28. anyscale/integrations.py +0 -20
  29. anyscale/scripts.py +1 -0
  30. anyscale/shared_anyscale_utils/headers.py +4 -0
  31. anyscale/telemetry.py +424 -0
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/METADATA +1 -1
  34. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/RECORD +39 -24
  35. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/LICENSE +0 -0
  36. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/NOTICE +0 -0
  37. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/WHEEL +0 -0
  38. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/entry_points.txt +0 -0
  39. {anyscale-0.26.32.dist-info → anyscale-0.26.34.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,355 @@
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 CreditsV2(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
+ 'in_use_credits': 'list[CreditRecordCreditV2]',
37
+ 'pending_credits': 'list[CreditRecordCreditV2]',
38
+ 'expired_credits': 'list[CreditRecordCreditV2]',
39
+ 'in_use_commits': 'list[CreditRecordCommitV2]',
40
+ 'pending_commits': 'list[CreditRecordCommitV2]',
41
+ 'expired_commits': 'list[CreditRecordCommitV2]',
42
+ 'current_balance_usd': 'float',
43
+ 'amount_spent_usd': 'float',
44
+ 'total_granted_usd': 'float'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'in_use_credits': 'in_use_credits',
49
+ 'pending_credits': 'pending_credits',
50
+ 'expired_credits': 'expired_credits',
51
+ 'in_use_commits': 'in_use_commits',
52
+ 'pending_commits': 'pending_commits',
53
+ 'expired_commits': 'expired_commits',
54
+ 'current_balance_usd': 'current_balance_usd',
55
+ 'amount_spent_usd': 'amount_spent_usd',
56
+ 'total_granted_usd': 'total_granted_usd'
57
+ }
58
+
59
+ def __init__(self, in_use_credits=None, pending_credits=None, expired_credits=None, in_use_commits=None, pending_commits=None, expired_commits=None, current_balance_usd=None, amount_spent_usd=None, total_granted_usd=None, local_vars_configuration=None): # noqa: E501
60
+ """CreditsV2 - a model defined in OpenAPI""" # noqa: E501
61
+ if local_vars_configuration is None:
62
+ local_vars_configuration = Configuration()
63
+ self.local_vars_configuration = local_vars_configuration
64
+
65
+ self._in_use_credits = None
66
+ self._pending_credits = None
67
+ self._expired_credits = None
68
+ self._in_use_commits = None
69
+ self._pending_commits = None
70
+ self._expired_commits = None
71
+ self._current_balance_usd = None
72
+ self._amount_spent_usd = None
73
+ self._total_granted_usd = None
74
+ self.discriminator = None
75
+
76
+ self.in_use_credits = in_use_credits
77
+ self.pending_credits = pending_credits
78
+ self.expired_credits = expired_credits
79
+ self.in_use_commits = in_use_commits
80
+ self.pending_commits = pending_commits
81
+ self.expired_commits = expired_commits
82
+ self.current_balance_usd = current_balance_usd
83
+ self.amount_spent_usd = amount_spent_usd
84
+ self.total_granted_usd = total_granted_usd
85
+
86
+ @property
87
+ def in_use_credits(self):
88
+ """Gets the in_use_credits of this CreditsV2. # noqa: E501
89
+
90
+ List of in-use credits. # noqa: E501
91
+
92
+ :return: The in_use_credits of this CreditsV2. # noqa: E501
93
+ :rtype: list[CreditRecordCreditV2]
94
+ """
95
+ return self._in_use_credits
96
+
97
+ @in_use_credits.setter
98
+ def in_use_credits(self, in_use_credits):
99
+ """Sets the in_use_credits of this CreditsV2.
100
+
101
+ List of in-use credits. # noqa: E501
102
+
103
+ :param in_use_credits: The in_use_credits of this CreditsV2. # noqa: E501
104
+ :type: list[CreditRecordCreditV2]
105
+ """
106
+ if self.local_vars_configuration.client_side_validation and in_use_credits is None: # noqa: E501
107
+ raise ValueError("Invalid value for `in_use_credits`, must not be `None`") # noqa: E501
108
+
109
+ self._in_use_credits = in_use_credits
110
+
111
+ @property
112
+ def pending_credits(self):
113
+ """Gets the pending_credits of this CreditsV2. # noqa: E501
114
+
115
+ List of pending credits. # noqa: E501
116
+
117
+ :return: The pending_credits of this CreditsV2. # noqa: E501
118
+ :rtype: list[CreditRecordCreditV2]
119
+ """
120
+ return self._pending_credits
121
+
122
+ @pending_credits.setter
123
+ def pending_credits(self, pending_credits):
124
+ """Sets the pending_credits of this CreditsV2.
125
+
126
+ List of pending credits. # noqa: E501
127
+
128
+ :param pending_credits: The pending_credits of this CreditsV2. # noqa: E501
129
+ :type: list[CreditRecordCreditV2]
130
+ """
131
+ if self.local_vars_configuration.client_side_validation and pending_credits is None: # noqa: E501
132
+ raise ValueError("Invalid value for `pending_credits`, must not be `None`") # noqa: E501
133
+
134
+ self._pending_credits = pending_credits
135
+
136
+ @property
137
+ def expired_credits(self):
138
+ """Gets the expired_credits of this CreditsV2. # noqa: E501
139
+
140
+ List of expired credits. # noqa: E501
141
+
142
+ :return: The expired_credits of this CreditsV2. # noqa: E501
143
+ :rtype: list[CreditRecordCreditV2]
144
+ """
145
+ return self._expired_credits
146
+
147
+ @expired_credits.setter
148
+ def expired_credits(self, expired_credits):
149
+ """Sets the expired_credits of this CreditsV2.
150
+
151
+ List of expired credits. # noqa: E501
152
+
153
+ :param expired_credits: The expired_credits of this CreditsV2. # noqa: E501
154
+ :type: list[CreditRecordCreditV2]
155
+ """
156
+ if self.local_vars_configuration.client_side_validation and expired_credits is None: # noqa: E501
157
+ raise ValueError("Invalid value for `expired_credits`, must not be `None`") # noqa: E501
158
+
159
+ self._expired_credits = expired_credits
160
+
161
+ @property
162
+ def in_use_commits(self):
163
+ """Gets the in_use_commits of this CreditsV2. # noqa: E501
164
+
165
+ List of in-use commits. # noqa: E501
166
+
167
+ :return: The in_use_commits of this CreditsV2. # noqa: E501
168
+ :rtype: list[CreditRecordCommitV2]
169
+ """
170
+ return self._in_use_commits
171
+
172
+ @in_use_commits.setter
173
+ def in_use_commits(self, in_use_commits):
174
+ """Sets the in_use_commits of this CreditsV2.
175
+
176
+ List of in-use commits. # noqa: E501
177
+
178
+ :param in_use_commits: The in_use_commits of this CreditsV2. # noqa: E501
179
+ :type: list[CreditRecordCommitV2]
180
+ """
181
+ if self.local_vars_configuration.client_side_validation and in_use_commits is None: # noqa: E501
182
+ raise ValueError("Invalid value for `in_use_commits`, must not be `None`") # noqa: E501
183
+
184
+ self._in_use_commits = in_use_commits
185
+
186
+ @property
187
+ def pending_commits(self):
188
+ """Gets the pending_commits of this CreditsV2. # noqa: E501
189
+
190
+ List of pending commits. # noqa: E501
191
+
192
+ :return: The pending_commits of this CreditsV2. # noqa: E501
193
+ :rtype: list[CreditRecordCommitV2]
194
+ """
195
+ return self._pending_commits
196
+
197
+ @pending_commits.setter
198
+ def pending_commits(self, pending_commits):
199
+ """Sets the pending_commits of this CreditsV2.
200
+
201
+ List of pending commits. # noqa: E501
202
+
203
+ :param pending_commits: The pending_commits of this CreditsV2. # noqa: E501
204
+ :type: list[CreditRecordCommitV2]
205
+ """
206
+ if self.local_vars_configuration.client_side_validation and pending_commits is None: # noqa: E501
207
+ raise ValueError("Invalid value for `pending_commits`, must not be `None`") # noqa: E501
208
+
209
+ self._pending_commits = pending_commits
210
+
211
+ @property
212
+ def expired_commits(self):
213
+ """Gets the expired_commits of this CreditsV2. # noqa: E501
214
+
215
+ List of expired commits. # noqa: E501
216
+
217
+ :return: The expired_commits of this CreditsV2. # noqa: E501
218
+ :rtype: list[CreditRecordCommitV2]
219
+ """
220
+ return self._expired_commits
221
+
222
+ @expired_commits.setter
223
+ def expired_commits(self, expired_commits):
224
+ """Sets the expired_commits of this CreditsV2.
225
+
226
+ List of expired commits. # noqa: E501
227
+
228
+ :param expired_commits: The expired_commits of this CreditsV2. # noqa: E501
229
+ :type: list[CreditRecordCommitV2]
230
+ """
231
+ if self.local_vars_configuration.client_side_validation and expired_commits is None: # noqa: E501
232
+ raise ValueError("Invalid value for `expired_commits`, must not be `None`") # noqa: E501
233
+
234
+ self._expired_commits = expired_commits
235
+
236
+ @property
237
+ def current_balance_usd(self):
238
+ """Gets the current_balance_usd of this CreditsV2. # noqa: E501
239
+
240
+ Summary of current balance of all credits and commits. # noqa: E501
241
+
242
+ :return: The current_balance_usd of this CreditsV2. # noqa: E501
243
+ :rtype: float
244
+ """
245
+ return self._current_balance_usd
246
+
247
+ @current_balance_usd.setter
248
+ def current_balance_usd(self, current_balance_usd):
249
+ """Sets the current_balance_usd of this CreditsV2.
250
+
251
+ Summary of current balance of all credits and commits. # noqa: E501
252
+
253
+ :param current_balance_usd: The current_balance_usd of this CreditsV2. # noqa: E501
254
+ :type: float
255
+ """
256
+ if self.local_vars_configuration.client_side_validation and current_balance_usd is None: # noqa: E501
257
+ raise ValueError("Invalid value for `current_balance_usd`, must not be `None`") # noqa: E501
258
+
259
+ self._current_balance_usd = current_balance_usd
260
+
261
+ @property
262
+ def amount_spent_usd(self):
263
+ """Gets the amount_spent_usd of this CreditsV2. # noqa: E501
264
+
265
+ Summary of total amount spent across all credits and commits. # noqa: E501
266
+
267
+ :return: The amount_spent_usd of this CreditsV2. # noqa: E501
268
+ :rtype: float
269
+ """
270
+ return self._amount_spent_usd
271
+
272
+ @amount_spent_usd.setter
273
+ def amount_spent_usd(self, amount_spent_usd):
274
+ """Sets the amount_spent_usd of this CreditsV2.
275
+
276
+ Summary of total amount spent across all credits and commits. # noqa: E501
277
+
278
+ :param amount_spent_usd: The amount_spent_usd of this CreditsV2. # noqa: E501
279
+ :type: float
280
+ """
281
+ if self.local_vars_configuration.client_side_validation and amount_spent_usd is None: # noqa: E501
282
+ raise ValueError("Invalid value for `amount_spent_usd`, must not be `None`") # noqa: E501
283
+
284
+ self._amount_spent_usd = amount_spent_usd
285
+
286
+ @property
287
+ def total_granted_usd(self):
288
+ """Gets the total_granted_usd of this CreditsV2. # noqa: E501
289
+
290
+ Summary of total granted across all credits and commits. # noqa: E501
291
+
292
+ :return: The total_granted_usd of this CreditsV2. # noqa: E501
293
+ :rtype: float
294
+ """
295
+ return self._total_granted_usd
296
+
297
+ @total_granted_usd.setter
298
+ def total_granted_usd(self, total_granted_usd):
299
+ """Sets the total_granted_usd of this CreditsV2.
300
+
301
+ Summary of total granted across all credits and commits. # noqa: E501
302
+
303
+ :param total_granted_usd: The total_granted_usd of this CreditsV2. # noqa: E501
304
+ :type: float
305
+ """
306
+ if self.local_vars_configuration.client_side_validation and total_granted_usd is None: # noqa: E501
307
+ raise ValueError("Invalid value for `total_granted_usd`, must not be `None`") # noqa: E501
308
+
309
+ self._total_granted_usd = total_granted_usd
310
+
311
+ def to_dict(self):
312
+ """Returns the model properties as a dict"""
313
+ result = {}
314
+
315
+ for attr, _ in six.iteritems(self.openapi_types):
316
+ value = getattr(self, attr)
317
+ if isinstance(value, list):
318
+ result[attr] = list(map(
319
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
320
+ value
321
+ ))
322
+ elif hasattr(value, "to_dict"):
323
+ result[attr] = value.to_dict()
324
+ elif isinstance(value, dict):
325
+ result[attr] = dict(map(
326
+ lambda item: (item[0], item[1].to_dict())
327
+ if hasattr(item[1], "to_dict") else item,
328
+ value.items()
329
+ ))
330
+ else:
331
+ result[attr] = value
332
+
333
+ return result
334
+
335
+ def to_str(self):
336
+ """Returns the string representation of the model"""
337
+ return pprint.pformat(self.to_dict())
338
+
339
+ def __repr__(self):
340
+ """For `print` and `pprint`"""
341
+ return self.to_str()
342
+
343
+ def __eq__(self, other):
344
+ """Returns true if both objects are equal"""
345
+ if not isinstance(other, CreditsV2):
346
+ return False
347
+
348
+ return self.to_dict() == other.to_dict()
349
+
350
+ def __ne__(self, other):
351
+ """Returns true if both objects are not equal"""
352
+ if not isinstance(other, CreditsV2):
353
+ return True
354
+
355
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,152 @@
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 PartitionInfo(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
+ 'partition_name': 'str',
37
+ 'allocation_states': 'dict(str, int)'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'partition_name': 'partition_name',
42
+ 'allocation_states': 'allocation_states'
43
+ }
44
+
45
+ def __init__(self, partition_name=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
46
+ """PartitionInfo - 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._partition_name = None
52
+ self._allocation_states = None
53
+ self.discriminator = None
54
+
55
+ self.partition_name = partition_name
56
+ self.allocation_states = allocation_states
57
+
58
+ @property
59
+ def partition_name(self):
60
+ """Gets the partition_name of this PartitionInfo. # noqa: E501
61
+
62
+ The name of the partition. # noqa: E501
63
+
64
+ :return: The partition_name of this PartitionInfo. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._partition_name
68
+
69
+ @partition_name.setter
70
+ def partition_name(self, partition_name):
71
+ """Sets the partition_name of this PartitionInfo.
72
+
73
+ The name of the partition. # noqa: E501
74
+
75
+ :param partition_name: The partition_name of this PartitionInfo. # noqa: E501
76
+ :type: str
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and partition_name is None: # noqa: E501
79
+ raise ValueError("Invalid value for `partition_name`, must not be `None`") # noqa: E501
80
+
81
+ self._partition_name = partition_name
82
+
83
+ @property
84
+ def allocation_states(self):
85
+ """Gets the allocation_states of this PartitionInfo. # noqa: E501
86
+
87
+ The number of machines in each allocation state. # noqa: E501
88
+
89
+ :return: The allocation_states of this PartitionInfo. # noqa: E501
90
+ :rtype: dict(str, int)
91
+ """
92
+ return self._allocation_states
93
+
94
+ @allocation_states.setter
95
+ def allocation_states(self, allocation_states):
96
+ """Sets the allocation_states of this PartitionInfo.
97
+
98
+ The number of machines in each allocation state. # noqa: E501
99
+
100
+ :param allocation_states: The allocation_states of this PartitionInfo. # noqa: E501
101
+ :type: dict(str, int)
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and allocation_states is None: # noqa: E501
104
+ raise ValueError("Invalid value for `allocation_states`, must not be `None`") # noqa: E501
105
+
106
+ self._allocation_states = allocation_states
107
+
108
+ def to_dict(self):
109
+ """Returns the model properties as a dict"""
110
+ result = {}
111
+
112
+ for attr, _ in six.iteritems(self.openapi_types):
113
+ value = getattr(self, attr)
114
+ if isinstance(value, list):
115
+ result[attr] = list(map(
116
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
+ value
118
+ ))
119
+ elif hasattr(value, "to_dict"):
120
+ result[attr] = value.to_dict()
121
+ elif isinstance(value, dict):
122
+ result[attr] = dict(map(
123
+ lambda item: (item[0], item[1].to_dict())
124
+ if hasattr(item[1], "to_dict") else item,
125
+ value.items()
126
+ ))
127
+ else:
128
+ result[attr] = value
129
+
130
+ return result
131
+
132
+ def to_str(self):
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self):
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other):
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, PartitionInfo):
143
+ return False
144
+
145
+ return self.to_dict() == other.to_dict()
146
+
147
+ def __ne__(self, other):
148
+ """Returns true if both objects are not equal"""
149
+ if not isinstance(other, PartitionInfo):
150
+ return True
151
+
152
+ 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 PCPConfig(object):
21
+ class SummarizeMachinePoolRequest(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -41,7 +41,7 @@ class PCPConfig(object):
41
41
  }
42
42
 
43
43
  def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
- """PCPConfig - a model defined in OpenAPI""" # noqa: E501
44
+ """SummarizeMachinePoolRequest - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -49,29 +49,30 @@ class PCPConfig(object):
49
49
  self._machine_pool_name = None
50
50
  self.discriminator = None
51
51
 
52
- if machine_pool_name is not None:
53
- self.machine_pool_name = machine_pool_name
52
+ self.machine_pool_name = machine_pool_name
54
53
 
55
54
  @property
56
55
  def machine_pool_name(self):
57
- """Gets the machine_pool_name of this PCPConfig. # noqa: E501
56
+ """Gets the machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
58
57
 
59
- The name of the machine pool. # noqa: E501
58
+ The name of the machine pool to summarize. # noqa: E501
60
59
 
61
- :return: The machine_pool_name of this PCPConfig. # noqa: E501
60
+ :return: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
62
61
  :rtype: str
63
62
  """
64
63
  return self._machine_pool_name
65
64
 
66
65
  @machine_pool_name.setter
67
66
  def machine_pool_name(self, machine_pool_name):
68
- """Sets the machine_pool_name of this PCPConfig.
67
+ """Sets the machine_pool_name of this SummarizeMachinePoolRequest.
69
68
 
70
- The name of the machine pool. # noqa: E501
69
+ The name of the machine pool to summarize. # noqa: E501
71
70
 
72
- :param machine_pool_name: The machine_pool_name of this PCPConfig. # noqa: E501
71
+ :param machine_pool_name: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
73
72
  :type: str
74
73
  """
74
+ if self.local_vars_configuration.client_side_validation and machine_pool_name is None: # noqa: E501
75
+ raise ValueError("Invalid value for `machine_pool_name`, must not be `None`") # noqa: E501
75
76
 
76
77
  self._machine_pool_name = machine_pool_name
77
78
 
@@ -109,14 +110,14 @@ class PCPConfig(object):
109
110
 
110
111
  def __eq__(self, other):
111
112
  """Returns true if both objects are equal"""
112
- if not isinstance(other, PCPConfig):
113
+ if not isinstance(other, SummarizeMachinePoolRequest):
113
114
  return False
114
115
 
115
116
  return self.to_dict() == other.to_dict()
116
117
 
117
118
  def __ne__(self, other):
118
119
  """Returns true if both objects are not equal"""
119
- if not isinstance(other, PCPConfig):
120
+ if not isinstance(other, SummarizeMachinePoolRequest):
120
121
  return True
121
122
 
122
123
  return self.to_dict() != other.to_dict()