anyscale 0.26.17__py3-none-any.whl → 0.26.19__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 (49) hide show
  1. anyscale/_private/docgen/models.md +2 -2
  2. anyscale/anyscale-cloud-setup.yaml +0 -4
  3. anyscale/client/README.md +12 -37
  4. anyscale/client/openapi_client/__init__.py +11 -20
  5. anyscale/client/openapi_client/api/default_api.py +115 -2004
  6. anyscale/client/openapi_client/models/__init__.py +11 -20
  7. anyscale/client/openapi_client/models/aws_config.py +402 -0
  8. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  9. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  10. anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
  11. anyscale/client/openapi_client/models/file_storage.py +206 -0
  12. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  13. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  14. anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
  15. anyscale/client/openapi_client/models/object_storage.py +178 -0
  16. anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
  17. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  18. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  19. anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
  20. anyscale/commands/cloud_commands.py +55 -7
  21. anyscale/connect_utils/prepare_cluster.py +19 -14
  22. anyscale/controllers/cloud_controller.py +60 -3
  23. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  24. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  25. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  26. anyscale/version.py +1 -1
  27. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/METADATA +1 -1
  28. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/RECORD +33 -42
  29. anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
  30. anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
  31. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
  32. anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
  33. anyscale/client/openapi_client/models/create_session_response.py +0 -174
  34. anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
  35. anyscale/client/openapi_client/models/external_service_status.py +0 -147
  36. anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
  37. anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
  38. anyscale/client/openapi_client/models/session_describe.py +0 -175
  39. anyscale/client/openapi_client/models/session_details.py +0 -148
  40. anyscale/client/openapi_client/models/session_history_item.py +0 -146
  41. anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
  42. anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
  43. anyscale/client/openapi_client/models/update_compute_template.py +0 -146
  44. anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
  45. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/LICENSE +0 -0
  46. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/NOTICE +0 -0
  47. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/WHEEL +0 -0
  48. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/entry_points.txt +0 -0
  49. {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,397 @@
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 CloudDeployment(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
+ 'cloud_deployment_id': 'str',
37
+ 'provider': 'CloudProviders',
38
+ 'compute_stack': 'ComputeStack',
39
+ 'region': 'str',
40
+ 'networking_mode': 'NetworkingMode',
41
+ 'object_storage': 'ObjectStorage',
42
+ 'file_storage': 'FileStorage',
43
+ 'aws_config': 'AWSConfig',
44
+ 'gcp_config': 'GCPConfig',
45
+ 'pcp_config': 'PCPConfig',
46
+ 'kubernetes_config': 'KubernetesConfig'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'cloud_deployment_id': 'cloud_deployment_id',
51
+ 'provider': 'provider',
52
+ 'compute_stack': 'compute_stack',
53
+ 'region': 'region',
54
+ 'networking_mode': 'networking_mode',
55
+ 'object_storage': 'object_storage',
56
+ 'file_storage': 'file_storage',
57
+ 'aws_config': 'aws_config',
58
+ 'gcp_config': 'gcp_config',
59
+ 'pcp_config': 'pcp_config',
60
+ 'kubernetes_config': 'kubernetes_config'
61
+ }
62
+
63
+ def __init__(self, cloud_deployment_id=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, pcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
64
+ """CloudDeployment - a model defined in OpenAPI""" # noqa: E501
65
+ if local_vars_configuration is None:
66
+ local_vars_configuration = Configuration()
67
+ self.local_vars_configuration = local_vars_configuration
68
+
69
+ self._cloud_deployment_id = None
70
+ self._provider = None
71
+ self._compute_stack = None
72
+ self._region = None
73
+ self._networking_mode = None
74
+ self._object_storage = None
75
+ self._file_storage = None
76
+ self._aws_config = None
77
+ self._gcp_config = None
78
+ self._pcp_config = None
79
+ self._kubernetes_config = None
80
+ self.discriminator = None
81
+
82
+ if cloud_deployment_id is not None:
83
+ self.cloud_deployment_id = cloud_deployment_id
84
+ self.provider = provider
85
+ if compute_stack is not None:
86
+ self.compute_stack = compute_stack
87
+ if region is not None:
88
+ self.region = region
89
+ if networking_mode is not None:
90
+ self.networking_mode = networking_mode
91
+ self.object_storage = object_storage
92
+ self.file_storage = file_storage
93
+ self.aws_config = aws_config
94
+ self.gcp_config = gcp_config
95
+ self.pcp_config = pcp_config
96
+ self.kubernetes_config = kubernetes_config
97
+
98
+ @property
99
+ def cloud_deployment_id(self):
100
+ """Gets the cloud_deployment_id of this CloudDeployment. # noqa: E501
101
+
102
+ Unique identifier for this deployment. # noqa: E501
103
+
104
+ :return: The cloud_deployment_id of this CloudDeployment. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._cloud_deployment_id
108
+
109
+ @cloud_deployment_id.setter
110
+ def cloud_deployment_id(self, cloud_deployment_id):
111
+ """Sets the cloud_deployment_id of this CloudDeployment.
112
+
113
+ Unique identifier for this deployment. # noqa: E501
114
+
115
+ :param cloud_deployment_id: The cloud_deployment_id of this CloudDeployment. # noqa: E501
116
+ :type: str
117
+ """
118
+
119
+ self._cloud_deployment_id = cloud_deployment_id
120
+
121
+ @property
122
+ def provider(self):
123
+ """Gets the provider of this CloudDeployment. # noqa: E501
124
+
125
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
126
+
127
+ :return: The provider of this CloudDeployment. # noqa: E501
128
+ :rtype: CloudProviders
129
+ """
130
+ return self._provider
131
+
132
+ @provider.setter
133
+ def provider(self, provider):
134
+ """Sets the provider of this CloudDeployment.
135
+
136
+ The cloud provider type (AWS, GCP, PCP, or GENERIC). # noqa: E501
137
+
138
+ :param provider: The provider of this CloudDeployment. # noqa: E501
139
+ :type: CloudProviders
140
+ """
141
+ if self.local_vars_configuration.client_side_validation and provider is None: # noqa: E501
142
+ raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501
143
+
144
+ self._provider = provider
145
+
146
+ @property
147
+ def compute_stack(self):
148
+ """Gets the compute_stack of this CloudDeployment. # noqa: E501
149
+
150
+ The compute stack (VM or K8S). # noqa: E501
151
+
152
+ :return: The compute_stack of this CloudDeployment. # noqa: E501
153
+ :rtype: ComputeStack
154
+ """
155
+ return self._compute_stack
156
+
157
+ @compute_stack.setter
158
+ def compute_stack(self, compute_stack):
159
+ """Sets the compute_stack of this CloudDeployment.
160
+
161
+ The compute stack (VM or K8S). # noqa: E501
162
+
163
+ :param compute_stack: The compute_stack of this CloudDeployment. # noqa: E501
164
+ :type: ComputeStack
165
+ """
166
+
167
+ self._compute_stack = compute_stack
168
+
169
+ @property
170
+ def region(self):
171
+ """Gets the region of this CloudDeployment. # noqa: E501
172
+
173
+ The region for the deployment (e.g., us-west-2). # noqa: E501
174
+
175
+ :return: The region of this CloudDeployment. # noqa: E501
176
+ :rtype: str
177
+ """
178
+ return self._region
179
+
180
+ @region.setter
181
+ def region(self, region):
182
+ """Sets the region of this CloudDeployment.
183
+
184
+ The region for the deployment (e.g., us-west-2). # noqa: E501
185
+
186
+ :param region: The region of this CloudDeployment. # noqa: E501
187
+ :type: str
188
+ """
189
+
190
+ self._region = region
191
+
192
+ @property
193
+ def networking_mode(self):
194
+ """Gets the networking_mode of this CloudDeployment. # noqa: E501
195
+
196
+ Whether to use public or private networking. # noqa: E501
197
+
198
+ :return: The networking_mode of this CloudDeployment. # noqa: E501
199
+ :rtype: NetworkingMode
200
+ """
201
+ return self._networking_mode
202
+
203
+ @networking_mode.setter
204
+ def networking_mode(self, networking_mode):
205
+ """Sets the networking_mode of this CloudDeployment.
206
+
207
+ Whether to use public or private networking. # noqa: E501
208
+
209
+ :param networking_mode: The networking_mode of this CloudDeployment. # noqa: E501
210
+ :type: NetworkingMode
211
+ """
212
+
213
+ self._networking_mode = networking_mode
214
+
215
+ @property
216
+ def object_storage(self):
217
+ """Gets the object_storage of this CloudDeployment. # noqa: E501
218
+
219
+ Object storage configuration. # noqa: E501
220
+
221
+ :return: The object_storage of this CloudDeployment. # noqa: E501
222
+ :rtype: ObjectStorage
223
+ """
224
+ return self._object_storage
225
+
226
+ @object_storage.setter
227
+ def object_storage(self, object_storage):
228
+ """Sets the object_storage of this CloudDeployment.
229
+
230
+ Object storage configuration. # noqa: E501
231
+
232
+ :param object_storage: The object_storage of this CloudDeployment. # noqa: E501
233
+ :type: ObjectStorage
234
+ """
235
+
236
+ self._object_storage = object_storage
237
+
238
+ @property
239
+ def file_storage(self):
240
+ """Gets the file_storage of this CloudDeployment. # noqa: E501
241
+
242
+ File storage configuration. # noqa: E501
243
+
244
+ :return: The file_storage of this CloudDeployment. # noqa: E501
245
+ :rtype: FileStorage
246
+ """
247
+ return self._file_storage
248
+
249
+ @file_storage.setter
250
+ def file_storage(self, file_storage):
251
+ """Sets the file_storage of this CloudDeployment.
252
+
253
+ File storage configuration. # noqa: E501
254
+
255
+ :param file_storage: The file_storage of this CloudDeployment. # noqa: E501
256
+ :type: FileStorage
257
+ """
258
+
259
+ self._file_storage = file_storage
260
+
261
+ @property
262
+ def aws_config(self):
263
+ """Gets the aws_config of this CloudDeployment. # noqa: E501
264
+
265
+ AWS provider-specific configurations. # noqa: E501
266
+
267
+ :return: The aws_config of this CloudDeployment. # noqa: E501
268
+ :rtype: AWSConfig
269
+ """
270
+ return self._aws_config
271
+
272
+ @aws_config.setter
273
+ def aws_config(self, aws_config):
274
+ """Sets the aws_config of this CloudDeployment.
275
+
276
+ AWS provider-specific configurations. # noqa: E501
277
+
278
+ :param aws_config: The aws_config of this CloudDeployment. # noqa: E501
279
+ :type: AWSConfig
280
+ """
281
+
282
+ self._aws_config = aws_config
283
+
284
+ @property
285
+ def gcp_config(self):
286
+ """Gets the gcp_config of this CloudDeployment. # noqa: E501
287
+
288
+ GCP provider-specific configurations. # noqa: E501
289
+
290
+ :return: The gcp_config of this CloudDeployment. # noqa: E501
291
+ :rtype: GCPConfig
292
+ """
293
+ return self._gcp_config
294
+
295
+ @gcp_config.setter
296
+ def gcp_config(self, gcp_config):
297
+ """Sets the gcp_config of this CloudDeployment.
298
+
299
+ GCP provider-specific configurations. # noqa: E501
300
+
301
+ :param gcp_config: The gcp_config of this CloudDeployment. # noqa: E501
302
+ :type: GCPConfig
303
+ """
304
+
305
+ self._gcp_config = gcp_config
306
+
307
+ @property
308
+ def pcp_config(self):
309
+ """Gets the pcp_config of this CloudDeployment. # noqa: E501
310
+
311
+ Machine pool configurations. # noqa: E501
312
+
313
+ :return: The pcp_config of this CloudDeployment. # noqa: E501
314
+ :rtype: PCPConfig
315
+ """
316
+ return self._pcp_config
317
+
318
+ @pcp_config.setter
319
+ def pcp_config(self, pcp_config):
320
+ """Sets the pcp_config of this CloudDeployment.
321
+
322
+ Machine pool configurations. # noqa: E501
323
+
324
+ :param pcp_config: The pcp_config of this CloudDeployment. # noqa: E501
325
+ :type: PCPConfig
326
+ """
327
+
328
+ self._pcp_config = pcp_config
329
+
330
+ @property
331
+ def kubernetes_config(self):
332
+ """Gets the kubernetes_config of this CloudDeployment. # noqa: E501
333
+
334
+ Kubernetes stack configurations. # noqa: E501
335
+
336
+ :return: The kubernetes_config of this CloudDeployment. # noqa: E501
337
+ :rtype: KubernetesConfig
338
+ """
339
+ return self._kubernetes_config
340
+
341
+ @kubernetes_config.setter
342
+ def kubernetes_config(self, kubernetes_config):
343
+ """Sets the kubernetes_config of this CloudDeployment.
344
+
345
+ Kubernetes stack configurations. # noqa: E501
346
+
347
+ :param kubernetes_config: The kubernetes_config of this CloudDeployment. # noqa: E501
348
+ :type: KubernetesConfig
349
+ """
350
+
351
+ self._kubernetes_config = kubernetes_config
352
+
353
+ def to_dict(self):
354
+ """Returns the model properties as a dict"""
355
+ result = {}
356
+
357
+ for attr, _ in six.iteritems(self.openapi_types):
358
+ value = getattr(self, attr)
359
+ if isinstance(value, list):
360
+ result[attr] = list(map(
361
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
362
+ value
363
+ ))
364
+ elif hasattr(value, "to_dict"):
365
+ result[attr] = value.to_dict()
366
+ elif isinstance(value, dict):
367
+ result[attr] = dict(map(
368
+ lambda item: (item[0], item[1].to_dict())
369
+ if hasattr(item[1], "to_dict") else item,
370
+ value.items()
371
+ ))
372
+ else:
373
+ result[attr] = value
374
+
375
+ return result
376
+
377
+ def to_str(self):
378
+ """Returns the string representation of the model"""
379
+ return pprint.pformat(self.to_dict())
380
+
381
+ def __repr__(self):
382
+ """For `print` and `pprint`"""
383
+ return self.to_str()
384
+
385
+ def __eq__(self, other):
386
+ """Returns true if both objects are equal"""
387
+ if not isinstance(other, CloudDeployment):
388
+ return False
389
+
390
+ return self.to_dict() == other.to_dict()
391
+
392
+ def __ne__(self, other):
393
+ """Returns true if both objects are not equal"""
394
+ if not isinstance(other, CloudDeployment):
395
+ return True
396
+
397
+ 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 WebterminalListResponse(object):
21
+ class ClouddeploymentListResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class WebterminalListResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'results': 'list[WebTerminal]',
36
+ 'results': 'list[CloudDeployment]',
37
37
  'metadata': 'ListResponseMetadata'
38
38
  }
39
39
 
@@ -43,7 +43,7 @@ class WebterminalListResponse(object):
43
43
  }
44
44
 
45
45
  def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """WebterminalListResponse - a model defined in OpenAPI""" # noqa: E501
46
+ """ClouddeploymentListResponse - a model defined in OpenAPI""" # noqa: E501
47
47
  if local_vars_configuration is None:
48
48
  local_vars_configuration = Configuration()
49
49
  self.local_vars_configuration = local_vars_configuration
@@ -58,21 +58,21 @@ class WebterminalListResponse(object):
58
58
 
59
59
  @property
60
60
  def results(self):
61
- """Gets the results of this WebterminalListResponse. # noqa: E501
61
+ """Gets the results of this ClouddeploymentListResponse. # noqa: E501
62
62
 
63
63
 
64
- :return: The results of this WebterminalListResponse. # noqa: E501
65
- :rtype: list[WebTerminal]
64
+ :return: The results of this ClouddeploymentListResponse. # noqa: E501
65
+ :rtype: list[CloudDeployment]
66
66
  """
67
67
  return self._results
68
68
 
69
69
  @results.setter
70
70
  def results(self, results):
71
- """Sets the results of this WebterminalListResponse.
71
+ """Sets the results of this ClouddeploymentListResponse.
72
72
 
73
73
 
74
- :param results: The results of this WebterminalListResponse. # noqa: E501
75
- :type: list[WebTerminal]
74
+ :param results: The results of this ClouddeploymentListResponse. # noqa: E501
75
+ :type: list[CloudDeployment]
76
76
  """
77
77
  if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
78
  raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
@@ -81,20 +81,20 @@ class WebterminalListResponse(object):
81
81
 
82
82
  @property
83
83
  def metadata(self):
84
- """Gets the metadata of this WebterminalListResponse. # noqa: E501
84
+ """Gets the metadata of this ClouddeploymentListResponse. # noqa: E501
85
85
 
86
86
 
87
- :return: The metadata of this WebterminalListResponse. # noqa: E501
87
+ :return: The metadata of this ClouddeploymentListResponse. # noqa: E501
88
88
  :rtype: ListResponseMetadata
89
89
  """
90
90
  return self._metadata
91
91
 
92
92
  @metadata.setter
93
93
  def metadata(self, metadata):
94
- """Sets the metadata of this WebterminalListResponse.
94
+ """Sets the metadata of this ClouddeploymentListResponse.
95
95
 
96
96
 
97
- :param metadata: The metadata of this WebterminalListResponse. # noqa: E501
97
+ :param metadata: The metadata of this ClouddeploymentListResponse. # noqa: E501
98
98
  :type: ListResponseMetadata
99
99
  """
100
100
 
@@ -134,14 +134,14 @@ class WebterminalListResponse(object):
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, WebterminalListResponse):
137
+ if not isinstance(other, ClouddeploymentListResponse):
138
138
  return False
139
139
 
140
140
  return self.to_dict() == other.to_dict()
141
141
 
142
142
  def __ne__(self, other):
143
143
  """Returns true if both objects are not equal"""
144
- if not isinstance(other, WebterminalListResponse):
144
+ if not isinstance(other, ClouddeploymentListResponse):
145
145
  return True
146
146
 
147
147
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,206 @@
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 FileStorage(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
+ 'file_storage_id': 'str',
37
+ 'mount_targets': 'list[NFSMountTarget]',
38
+ 'mount_path': 'str',
39
+ 'persistent_volume_claim': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'file_storage_id': 'file_storage_id',
44
+ 'mount_targets': 'mount_targets',
45
+ 'mount_path': 'mount_path',
46
+ 'persistent_volume_claim': 'persistent_volume_claim'
47
+ }
48
+
49
+ def __init__(self, file_storage_id=None, mount_targets=None, mount_path=None, persistent_volume_claim=None, local_vars_configuration=None): # noqa: E501
50
+ """FileStorage - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._file_storage_id = None
56
+ self._mount_targets = None
57
+ self._mount_path = None
58
+ self._persistent_volume_claim = None
59
+ self.discriminator = None
60
+
61
+ if file_storage_id is not None:
62
+ self.file_storage_id = file_storage_id
63
+ if mount_targets is not None:
64
+ self.mount_targets = mount_targets
65
+ if mount_path is not None:
66
+ self.mount_path = mount_path
67
+ if persistent_volume_claim is not None:
68
+ self.persistent_volume_claim = persistent_volume_claim
69
+
70
+ @property
71
+ def file_storage_id(self):
72
+ """Gets the file_storage_id of this FileStorage. # noqa: E501
73
+
74
+ For AWS, the EFS ID. For GCP, the Filestore instance name. # noqa: E501
75
+
76
+ :return: The file_storage_id of this FileStorage. # noqa: E501
77
+ :rtype: str
78
+ """
79
+ return self._file_storage_id
80
+
81
+ @file_storage_id.setter
82
+ def file_storage_id(self, file_storage_id):
83
+ """Sets the file_storage_id of this FileStorage.
84
+
85
+ For AWS, the EFS ID. For GCP, the Filestore instance name. # noqa: E501
86
+
87
+ :param file_storage_id: The file_storage_id of this FileStorage. # noqa: E501
88
+ :type: str
89
+ """
90
+
91
+ self._file_storage_id = file_storage_id
92
+
93
+ @property
94
+ def mount_targets(self):
95
+ """Gets the mount_targets of this FileStorage. # noqa: E501
96
+
97
+ The mount target(s) to use. # noqa: E501
98
+
99
+ :return: The mount_targets of this FileStorage. # noqa: E501
100
+ :rtype: list[NFSMountTarget]
101
+ """
102
+ return self._mount_targets
103
+
104
+ @mount_targets.setter
105
+ def mount_targets(self, mount_targets):
106
+ """Sets the mount_targets of this FileStorage.
107
+
108
+ The mount target(s) to use. # noqa: E501
109
+
110
+ :param mount_targets: The mount_targets of this FileStorage. # noqa: E501
111
+ :type: list[NFSMountTarget]
112
+ """
113
+
114
+ self._mount_targets = mount_targets
115
+
116
+ @property
117
+ def mount_path(self):
118
+ """Gets the mount_path of this FileStorage. # noqa: E501
119
+
120
+ For GCP, the Filestore root directory. For NFS, the path of the server to mount from (e.g., <mount-target-address>/<mount-path> will be mounted). # noqa: E501
121
+
122
+ :return: The mount_path of this FileStorage. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._mount_path
126
+
127
+ @mount_path.setter
128
+ def mount_path(self, mount_path):
129
+ """Sets the mount_path of this FileStorage.
130
+
131
+ For GCP, the Filestore root directory. For NFS, the path of the server to mount from (e.g., <mount-target-address>/<mount-path> will be mounted). # noqa: E501
132
+
133
+ :param mount_path: The mount_path of this FileStorage. # noqa: E501
134
+ :type: str
135
+ """
136
+
137
+ self._mount_path = mount_path
138
+
139
+ @property
140
+ def persistent_volume_claim(self):
141
+ """Gets the persistent_volume_claim of this FileStorage. # noqa: E501
142
+
143
+ For Kubernetes deployments, the name of the persistent volume claim used to mount NFS into pods. # noqa: E501
144
+
145
+ :return: The persistent_volume_claim of this FileStorage. # noqa: E501
146
+ :rtype: str
147
+ """
148
+ return self._persistent_volume_claim
149
+
150
+ @persistent_volume_claim.setter
151
+ def persistent_volume_claim(self, persistent_volume_claim):
152
+ """Sets the persistent_volume_claim of this FileStorage.
153
+
154
+ For Kubernetes deployments, the name of the persistent volume claim used to mount NFS into pods. # noqa: E501
155
+
156
+ :param persistent_volume_claim: The persistent_volume_claim of this FileStorage. # noqa: E501
157
+ :type: str
158
+ """
159
+
160
+ self._persistent_volume_claim = persistent_volume_claim
161
+
162
+ def to_dict(self):
163
+ """Returns the model properties as a dict"""
164
+ result = {}
165
+
166
+ for attr, _ in six.iteritems(self.openapi_types):
167
+ value = getattr(self, attr)
168
+ if isinstance(value, list):
169
+ result[attr] = list(map(
170
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
171
+ value
172
+ ))
173
+ elif hasattr(value, "to_dict"):
174
+ result[attr] = value.to_dict()
175
+ elif isinstance(value, dict):
176
+ result[attr] = dict(map(
177
+ lambda item: (item[0], item[1].to_dict())
178
+ if hasattr(item[1], "to_dict") else item,
179
+ value.items()
180
+ ))
181
+ else:
182
+ result[attr] = value
183
+
184
+ return result
185
+
186
+ def to_str(self):
187
+ """Returns the string representation of the model"""
188
+ return pprint.pformat(self.to_dict())
189
+
190
+ def __repr__(self):
191
+ """For `print` and `pprint`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, FileStorage):
197
+ return False
198
+
199
+ return self.to_dict() == other.to_dict()
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ if not isinstance(other, FileStorage):
204
+ return True
205
+
206
+ return self.to_dict() != other.to_dict()