anyscale 0.26.69__py3-none-any.whl → 0.26.71__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 (113) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +126 -3
  2. anyscale/_private/anyscale_client/common.py +51 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
  4. anyscale/client/README.md +43 -4
  5. anyscale/client/openapi_client/__init__.py +30 -4
  6. anyscale/client/openapi_client/api/default_api.py +1769 -27
  7. anyscale/client/openapi_client/models/__init__.py +30 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  11. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  12. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  13. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  14. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  15. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  16. anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
  17. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  18. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  19. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  20. anyscale/client/openapi_client/models/column_info.py +265 -0
  21. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  22. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  23. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  24. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  25. anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
  26. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  27. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  28. anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
  29. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  30. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  31. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  32. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  33. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  34. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  36. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  37. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  38. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  39. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  40. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  41. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  42. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  43. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  44. anyscale/client/openapi_client/models/event_level.py +2 -1
  45. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  46. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  47. anyscale/client/openapi_client/models/partition_info.py +30 -1
  48. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  49. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  50. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  51. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  52. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  53. anyscale/client/openapi_client/models/sso_config.py +18 -18
  54. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
  55. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  56. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  57. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  58. anyscale/client/openapi_client/models/unified_event.py +377 -0
  59. anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
  60. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  61. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  62. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  63. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  64. anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
  65. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
  66. anyscale/cloud/models.py +2 -2
  67. anyscale/commands/cloud_commands.py +133 -2
  68. anyscale/commands/job_commands.py +121 -1
  69. anyscale/commands/job_queue_commands.py +99 -2
  70. anyscale/commands/service_commands.py +267 -67
  71. anyscale/commands/setup_k8s.py +546 -31
  72. anyscale/commands/util.py +104 -1
  73. anyscale/commands/workspace_commands.py +123 -5
  74. anyscale/commands/workspace_commands_v2.py +17 -1
  75. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  76. anyscale/compute_config/models.py +15 -0
  77. anyscale/controllers/cloud_controller.py +15 -2
  78. anyscale/controllers/job_controller.py +12 -0
  79. anyscale/controllers/kubernetes_verifier.py +80 -66
  80. anyscale/controllers/workspace_controller.py +67 -5
  81. anyscale/job/_private/job_sdk.py +50 -2
  82. anyscale/job/commands.py +3 -0
  83. anyscale/job/models.py +16 -0
  84. anyscale/job_queue/__init__.py +37 -1
  85. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  86. anyscale/job_queue/commands.py +61 -1
  87. anyscale/sdk/anyscale_client/__init__.py +1 -0
  88. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  89. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  90. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  91. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  92. anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
  93. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  94. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  95. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  96. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
  97. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  98. anyscale/service/__init__.py +51 -3
  99. anyscale/service/_private/service_sdk.py +481 -58
  100. anyscale/service/commands.py +90 -4
  101. anyscale/service/models.py +56 -0
  102. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  103. anyscale/version.py +1 -1
  104. anyscale/workspace/_private/workspace_sdk.py +1 -0
  105. anyscale/workspace/models.py +19 -0
  106. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
  107. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
  108. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  109. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
  110. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
  111. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
  112. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
  113. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
@@ -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 MachineTypePartitionFilter(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
+ 'machine_type': 'str',
37
+ 'partition': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'machine_type': 'machine_type',
42
+ 'partition': 'partition'
43
+ }
44
+
45
+ def __init__(self, machine_type=None, partition=None, local_vars_configuration=None): # noqa: E501
46
+ """MachineTypePartitionFilter - 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._machine_type = None
52
+ self._partition = None
53
+ self.discriminator = None
54
+
55
+ self.machine_type = machine_type
56
+ self.partition = partition
57
+
58
+ @property
59
+ def machine_type(self):
60
+ """Gets the machine_type of this MachineTypePartitionFilter. # noqa: E501
61
+
62
+ The machine type to filter by. # noqa: E501
63
+
64
+ :return: The machine_type of this MachineTypePartitionFilter. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._machine_type
68
+
69
+ @machine_type.setter
70
+ def machine_type(self, machine_type):
71
+ """Sets the machine_type of this MachineTypePartitionFilter.
72
+
73
+ The machine type to filter by. # noqa: E501
74
+
75
+ :param machine_type: The machine_type of this MachineTypePartitionFilter. # noqa: E501
76
+ :type: str
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
79
+ raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
80
+
81
+ self._machine_type = machine_type
82
+
83
+ @property
84
+ def partition(self):
85
+ """Gets the partition of this MachineTypePartitionFilter. # noqa: E501
86
+
87
+ The partition to filter by. # noqa: E501
88
+
89
+ :return: The partition of this MachineTypePartitionFilter. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._partition
93
+
94
+ @partition.setter
95
+ def partition(self, partition):
96
+ """Sets the partition of this MachineTypePartitionFilter.
97
+
98
+ The partition to filter by. # noqa: E501
99
+
100
+ :param partition: The partition of this MachineTypePartitionFilter. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and partition is None: # noqa: E501
104
+ raise ValueError("Invalid value for `partition`, must not be `None`") # noqa: E501
105
+
106
+ self._partition = partition
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, MachineTypePartitionFilter):
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, MachineTypePartitionFilter):
150
+ return True
151
+
152
+ return self.to_dict() != other.to_dict()
@@ -34,25 +34,29 @@ class PartitionInfo(object):
34
34
  """
35
35
  openapi_types = {
36
36
  'partition_name': 'str',
37
+ 'machine_type': 'str',
37
38
  'allocation_states': 'dict(str, int)'
38
39
  }
39
40
 
40
41
  attribute_map = {
41
42
  'partition_name': 'partition_name',
43
+ 'machine_type': 'machine_type',
42
44
  'allocation_states': 'allocation_states'
43
45
  }
44
46
 
45
- def __init__(self, partition_name=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
47
+ def __init__(self, partition_name=None, machine_type=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
46
48
  """PartitionInfo - a model defined in OpenAPI""" # noqa: E501
47
49
  if local_vars_configuration is None:
48
50
  local_vars_configuration = Configuration()
49
51
  self.local_vars_configuration = local_vars_configuration
50
52
 
51
53
  self._partition_name = None
54
+ self._machine_type = None
52
55
  self._allocation_states = None
53
56
  self.discriminator = None
54
57
 
55
58
  self.partition_name = partition_name
59
+ self.machine_type = machine_type
56
60
  self.allocation_states = allocation_states
57
61
 
58
62
  @property
@@ -80,6 +84,31 @@ class PartitionInfo(object):
80
84
 
81
85
  self._partition_name = partition_name
82
86
 
87
+ @property
88
+ def machine_type(self):
89
+ """Gets the machine_type of this PartitionInfo. # noqa: E501
90
+
91
+ The type of the machine. # noqa: E501
92
+
93
+ :return: The machine_type of this PartitionInfo. # noqa: E501
94
+ :rtype: str
95
+ """
96
+ return self._machine_type
97
+
98
+ @machine_type.setter
99
+ def machine_type(self, machine_type):
100
+ """Sets the machine_type of this PartitionInfo.
101
+
102
+ The type of the machine. # noqa: E501
103
+
104
+ :param machine_type: The machine_type of this PartitionInfo. # noqa: E501
105
+ :type: str
106
+ """
107
+ if self.local_vars_configuration.client_side_validation and machine_type is None: # noqa: E501
108
+ raise ValueError("Invalid value for `machine_type`, must not be `None`") # noqa: E501
109
+
110
+ self._machine_type = machine_type
111
+
83
112
  @property
84
113
  def allocation_states(self):
85
114
  """Gets the allocation_states of this PartitionInfo. # noqa: E501
@@ -0,0 +1,178 @@
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 PhysicalResources(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
+ 'cpu': 'int',
37
+ 'gpu': 'int',
38
+ 'memory': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'cpu': 'cpu',
43
+ 'gpu': 'gpu',
44
+ 'memory': 'memory'
45
+ }
46
+
47
+ def __init__(self, cpu=None, gpu=None, memory=None, local_vars_configuration=None): # noqa: E501
48
+ """PhysicalResources - 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._cpu = None
54
+ self._gpu = None
55
+ self._memory = None
56
+ self.discriminator = None
57
+
58
+ if cpu is not None:
59
+ self.cpu = cpu
60
+ if gpu is not None:
61
+ self.gpu = gpu
62
+ if memory is not None:
63
+ self.memory = memory
64
+
65
+ @property
66
+ def cpu(self):
67
+ """Gets the cpu of this PhysicalResources. # noqa: E501
68
+
69
+ Number of CPUs to allocate. # noqa: E501
70
+
71
+ :return: The cpu of this PhysicalResources. # noqa: E501
72
+ :rtype: int
73
+ """
74
+ return self._cpu
75
+
76
+ @cpu.setter
77
+ def cpu(self, cpu):
78
+ """Sets the cpu of this PhysicalResources.
79
+
80
+ Number of CPUs to allocate. # noqa: E501
81
+
82
+ :param cpu: The cpu of this PhysicalResources. # noqa: E501
83
+ :type: int
84
+ """
85
+
86
+ self._cpu = cpu
87
+
88
+ @property
89
+ def gpu(self):
90
+ """Gets the gpu of this PhysicalResources. # noqa: E501
91
+
92
+ Number of GPUs to allocate. # noqa: E501
93
+
94
+ :return: The gpu of this PhysicalResources. # noqa: E501
95
+ :rtype: int
96
+ """
97
+ return self._gpu
98
+
99
+ @gpu.setter
100
+ def gpu(self, gpu):
101
+ """Sets the gpu of this PhysicalResources.
102
+
103
+ Number of GPUs to allocate. # noqa: E501
104
+
105
+ :param gpu: The gpu of this PhysicalResources. # noqa: E501
106
+ :type: int
107
+ """
108
+
109
+ self._gpu = gpu
110
+
111
+ @property
112
+ def memory(self):
113
+ """Gets the memory of this PhysicalResources. # noqa: E501
114
+
115
+ Amount of memory in bytes to allocate. # noqa: E501
116
+
117
+ :return: The memory of this PhysicalResources. # noqa: E501
118
+ :rtype: int
119
+ """
120
+ return self._memory
121
+
122
+ @memory.setter
123
+ def memory(self, memory):
124
+ """Sets the memory of this PhysicalResources.
125
+
126
+ Amount of memory in bytes to allocate. # noqa: E501
127
+
128
+ :param memory: The memory of this PhysicalResources. # noqa: E501
129
+ :type: int
130
+ """
131
+
132
+ self._memory = memory
133
+
134
+ def to_dict(self):
135
+ """Returns the model properties as a dict"""
136
+ result = {}
137
+
138
+ for attr, _ in six.iteritems(self.openapi_types):
139
+ value = getattr(self, attr)
140
+ if isinstance(value, list):
141
+ result[attr] = list(map(
142
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
143
+ value
144
+ ))
145
+ elif hasattr(value, "to_dict"):
146
+ result[attr] = value.to_dict()
147
+ elif isinstance(value, dict):
148
+ result[attr] = dict(map(
149
+ lambda item: (item[0], item[1].to_dict())
150
+ if hasattr(item[1], "to_dict") else item,
151
+ value.items()
152
+ ))
153
+ else:
154
+ result[attr] = value
155
+
156
+ return result
157
+
158
+ def to_str(self):
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self):
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other):
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, PhysicalResources):
169
+ return False
170
+
171
+ return self.to_dict() == other.to_dict()
172
+
173
+ def __ne__(self, other):
174
+ """Returns true if both objects are not equal"""
175
+ if not isinstance(other, PhysicalResources):
176
+ return True
177
+
178
+ return self.to_dict() != other.to_dict()
@@ -37,7 +37,7 @@ class ProductionJobEvent(object):
37
37
  'created_at': 'datetime',
38
38
  'event_type': 'HaJobStates',
39
39
  'error_type': 'HaJobErrorTypes',
40
- 'level': 'HaJobEventLevel',
40
+ 'level': 'EventLevel',
41
41
  'message': 'str',
42
42
  'origin': 'HaJobEventOrigin',
43
43
  'ha_job_id': 'str',
@@ -201,7 +201,7 @@ class ProductionJobEvent(object):
201
201
  Level of Job event # noqa: E501
202
202
 
203
203
  :return: The level of this ProductionJobEvent. # noqa: E501
204
- :rtype: HaJobEventLevel
204
+ :rtype: EventLevel
205
205
  """
206
206
  return self._level
207
207
 
@@ -212,7 +212,7 @@ class ProductionJobEvent(object):
212
212
  Level of Job event # noqa: E501
213
213
 
214
214
  :param level: The level of this ProductionJobEvent. # noqa: E501
215
- :type: HaJobEventLevel
215
+ :type: EventLevel
216
216
  """
217
217
 
218
218
  self._level = level
@@ -30,8 +30,9 @@ class RolloutStrategy(object):
30
30
  """
31
31
  ROLLOUT = "ROLLOUT"
32
32
  IN_PLACE = "IN_PLACE"
33
+ MULTI_VERSION = "MULTI_VERSION"
33
34
 
34
- allowable_values = [ROLLOUT, IN_PLACE] # noqa: E501
35
+ allowable_values = [ROLLOUT, IN_PLACE, MULTI_VERSION] # noqa: E501
35
36
 
36
37
  """
37
38
  Attributes:
@@ -0,0 +1,150 @@
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 SchemaMetadata(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
+ 'owner': 'str',
37
+ 'full_name': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'owner': 'owner',
42
+ 'full_name': 'full_name'
43
+ }
44
+
45
+ def __init__(self, owner=None, full_name=None, local_vars_configuration=None): # noqa: E501
46
+ """SchemaMetadata - 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._owner = None
52
+ self._full_name = None
53
+ self.discriminator = None
54
+
55
+ if owner is not None:
56
+ self.owner = owner
57
+ if full_name is not None:
58
+ self.full_name = full_name
59
+
60
+ @property
61
+ def owner(self):
62
+ """Gets the owner of this SchemaMetadata. # noqa: E501
63
+
64
+ Owner of the entity # noqa: E501
65
+
66
+ :return: The owner of this SchemaMetadata. # noqa: E501
67
+ :rtype: str
68
+ """
69
+ return self._owner
70
+
71
+ @owner.setter
72
+ def owner(self, owner):
73
+ """Sets the owner of this SchemaMetadata.
74
+
75
+ Owner of the entity # noqa: E501
76
+
77
+ :param owner: The owner of this SchemaMetadata. # noqa: E501
78
+ :type: str
79
+ """
80
+
81
+ self._owner = owner
82
+
83
+ @property
84
+ def full_name(self):
85
+ """Gets the full_name of this SchemaMetadata. # noqa: E501
86
+
87
+ Fully qualified name of the entity # noqa: E501
88
+
89
+ :return: The full_name of this SchemaMetadata. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._full_name
93
+
94
+ @full_name.setter
95
+ def full_name(self, full_name):
96
+ """Sets the full_name of this SchemaMetadata.
97
+
98
+ Fully qualified name of the entity # noqa: E501
99
+
100
+ :param full_name: The full_name of this SchemaMetadata. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._full_name = full_name
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, SchemaMetadata):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, SchemaMetadata):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()