eilam_test 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +271 -0
  5. data/Rakefile +10 -0
  6. data/docs/AbstractCapability.md +20 -0
  7. data/docs/AbstractCapabilityApi.md +276 -0
  8. data/docs/Account.md +22 -0
  9. data/docs/AccountApi.md +346 -0
  10. data/docs/AccountPostRequest.md +20 -0
  11. data/docs/AccountPostResponse.md +24 -0
  12. data/docs/Address.md +32 -0
  13. data/docs/AddressApi.md +276 -0
  14. data/docs/AddressCreate.md +32 -0
  15. data/docs/AuthResponse.md +18 -0
  16. data/docs/Authentication.md +20 -0
  17. data/docs/AuthenticationApi.md +70 -0
  18. data/docs/AutoSDEProject.md +56 -0
  19. data/docs/AutoSDEProjectApi.md +276 -0
  20. data/docs/AutoSDERole.md +20 -0
  21. data/docs/AutoSDERoleApi.md +276 -0
  22. data/docs/CapabilityTranslation.md +36 -0
  23. data/docs/CapabilityTranslationApi.md +276 -0
  24. data/docs/CapabilityTranslationCreate.md +32 -0
  25. data/docs/Event.md +32 -0
  26. data/docs/EventApi.md +276 -0
  27. data/docs/Host.md +30 -0
  28. data/docs/HostApi.md +276 -0
  29. data/docs/HostCluster.md +34 -0
  30. data/docs/HostClusterApi.md +276 -0
  31. data/docs/HostClusterCreate.md +30 -0
  32. data/docs/HostClusterMembership.md +24 -0
  33. data/docs/HostClusterMembershipApi.md +276 -0
  34. data/docs/HostClusterResponse.md +34 -0
  35. data/docs/HostClusterVolumeMapping.md +26 -0
  36. data/docs/HostClusterVolumeMappingApi.md +276 -0
  37. data/docs/HostClusterVolumeMappingCreate.md +24 -0
  38. data/docs/HostClusterVolumeMappingResponse.md +26 -0
  39. data/docs/HostCreate.md +40 -0
  40. data/docs/HostVolumeConnection.md +24 -0
  41. data/docs/HostVolumeConnectionApi.md +276 -0
  42. data/docs/HostVolumeConnectionCreate.md +22 -0
  43. data/docs/Job.md +30 -0
  44. data/docs/JobApi.md +140 -0
  45. data/docs/JobCreate.md +20 -0
  46. data/docs/NativeCapability.md +24 -0
  47. data/docs/NativeCapabilityApi.md +276 -0
  48. data/docs/Profile.md +26 -0
  49. data/docs/ProfileApi.md +276 -0
  50. data/docs/ProvisioningStrategy.md +20 -0
  51. data/docs/ProvisioningStrategyApi.md +276 -0
  52. data/docs/Service.md +36 -0
  53. data/docs/ServiceAbstractCapabilityValue.md +22 -0
  54. data/docs/ServiceApi.md +346 -0
  55. data/docs/ServiceCreate.md +34 -0
  56. data/docs/ServiceResourceAttachment.md +24 -0
  57. data/docs/ServiceResourceAttachmentApi.md +276 -0
  58. data/docs/Snapshot.md +26 -0
  59. data/docs/SnapshotApi.md +276 -0
  60. data/docs/SnapshotCreate.md +24 -0
  61. data/docs/StorageHost.md +36 -0
  62. data/docs/StorageHostApi.md +346 -0
  63. data/docs/StorageHostCreate.md +42 -0
  64. data/docs/StorageHostResponse.md +38 -0
  65. data/docs/StorageHostUpdate.md +22 -0
  66. data/docs/StorageHostVolumeMapping.md +26 -0
  67. data/docs/StorageHostVolumeMappingApi.md +276 -0
  68. data/docs/StorageHostVolumeMappingCreate.md +24 -0
  69. data/docs/StorageHostVolumeMappingResponse.md +26 -0
  70. data/docs/StorageHostWWPNCandidates.md +20 -0
  71. data/docs/StorageHostWWPNCandidatesApi.md +72 -0
  72. data/docs/StorageResource.md +34 -0
  73. data/docs/StorageResourceApi.md +346 -0
  74. data/docs/StorageResourceCreate.md +32 -0
  75. data/docs/StorageResourceResponse.md +34 -0
  76. data/docs/StorageSystem.md +34 -0
  77. data/docs/StorageSystemApi.md +346 -0
  78. data/docs/StorageSystemCreate.md +52 -0
  79. data/docs/StorageSystemUpdate.md +24 -0
  80. data/docs/SystemType.md +26 -0
  81. data/docs/SystemTypeApi.md +276 -0
  82. data/docs/SystemTypeCreate.md +28 -0
  83. data/docs/User.md +38 -0
  84. data/docs/UserApi.md +346 -0
  85. data/docs/UserCreate.md +38 -0
  86. data/docs/UserUpdate.md +30 -0
  87. data/docs/ValidateSystem.md +26 -0
  88. data/docs/ValidateSystemApi.md +75 -0
  89. data/docs/Volume.md +36 -0
  90. data/docs/VolumeApi.md +346 -0
  91. data/docs/VolumeCreate.md +34 -0
  92. data/docs/VolumeResponse.md +36 -0
  93. data/docs/VolumeSafeDelete.md +22 -0
  94. data/docs/VolumeSafeDeleteApi.md +276 -0
  95. data/docs/VolumeSafeDeleteCreate.md +18 -0
  96. data/docs/VolumeUpdate.md +20 -0
  97. data/eilam_test.gemspec +38 -0
  98. data/git_push.sh +58 -0
  99. data/lib/.DS_Store +0 -0
  100. data/lib/eilam_test/.DS_Store +0 -0
  101. data/lib/eilam_test/api/abstract_capability_api.rb +254 -0
  102. data/lib/eilam_test/api/account_api.rb +321 -0
  103. data/lib/eilam_test/api/address_api.rb +254 -0
  104. data/lib/eilam_test/api/authentication_api.rb +83 -0
  105. data/lib/eilam_test/api/auto_sde_project_api.rb +254 -0
  106. data/lib/eilam_test/api/auto_sde_role_api.rb +254 -0
  107. data/lib/eilam_test/api/capability_translation_api.rb +254 -0
  108. data/lib/eilam_test/api/event_api.rb +254 -0
  109. data/lib/eilam_test/api/host_api.rb +254 -0
  110. data/lib/eilam_test/api/host_cluster_api.rb +254 -0
  111. data/lib/eilam_test/api/host_cluster_membership_api.rb +254 -0
  112. data/lib/eilam_test/api/host_cluster_volume_mapping_api.rb +254 -0
  113. data/lib/eilam_test/api/host_volume_connection_api.rb +254 -0
  114. data/lib/eilam_test/api/job_api.rb +136 -0
  115. data/lib/eilam_test/api/native_capability_api.rb +254 -0
  116. data/lib/eilam_test/api/profile_api.rb +254 -0
  117. data/lib/eilam_test/api/provisioning_strategy_api.rb +254 -0
  118. data/lib/eilam_test/api/service_api.rb +321 -0
  119. data/lib/eilam_test/api/service_resource_attachment_api.rb +254 -0
  120. data/lib/eilam_test/api/snapshot_api.rb +254 -0
  121. data/lib/eilam_test/api/storage_host_api.rb +321 -0
  122. data/lib/eilam_test/api/storage_host_volume_mapping_api.rb +254 -0
  123. data/lib/eilam_test/api/storage_host_wwpn_candidates_api.rb +75 -0
  124. data/lib/eilam_test/api/storage_resource_api.rb +321 -0
  125. data/lib/eilam_test/api/storage_system_api.rb +321 -0
  126. data/lib/eilam_test/api/system_type_api.rb +254 -0
  127. data/lib/eilam_test/api/user_api.rb +321 -0
  128. data/lib/eilam_test/api/validate_system_api.rb +83 -0
  129. data/lib/eilam_test/api/volume_api.rb +321 -0
  130. data/lib/eilam_test/api/volume_safe_delete_api.rb +254 -0
  131. data/lib/eilam_test/api_client.rb +390 -0
  132. data/lib/eilam_test/api_error.rb +57 -0
  133. data/lib/eilam_test/configuration.rb +293 -0
  134. data/lib/eilam_test/models/abstract_capability.rb +230 -0
  135. data/lib/eilam_test/models/account.rb +240 -0
  136. data/lib/eilam_test/models/account_post_request.rb +230 -0
  137. data/lib/eilam_test/models/account_post_response.rb +250 -0
  138. data/lib/eilam_test/models/address.rb +340 -0
  139. data/lib/eilam_test/models/address_create.rb +342 -0
  140. data/lib/eilam_test/models/auth_response.rb +220 -0
  141. data/lib/eilam_test/models/authentication.rb +230 -0
  142. data/lib/eilam_test/models/auto_sde_project.rb +410 -0
  143. data/lib/eilam_test/models/auto_sde_role.rb +230 -0
  144. data/lib/eilam_test/models/capability_translation.rb +340 -0
  145. data/lib/eilam_test/models/capability_translation_create.rb +322 -0
  146. data/lib/eilam_test/models/event.rb +289 -0
  147. data/lib/eilam_test/models/host.rb +333 -0
  148. data/lib/eilam_test/models/host_cluster.rb +397 -0
  149. data/lib/eilam_test/models/host_cluster_create.rb +338 -0
  150. data/lib/eilam_test/models/host_cluster_membership.rb +287 -0
  151. data/lib/eilam_test/models/host_cluster_response.rb +398 -0
  152. data/lib/eilam_test/models/host_cluster_volume_mapping.rb +299 -0
  153. data/lib/eilam_test/models/host_cluster_volume_mapping_create.rb +291 -0
  154. data/lib/eilam_test/models/host_cluster_volume_mapping_response.rb +301 -0
  155. data/lib/eilam_test/models/host_create.rb +394 -0
  156. data/lib/eilam_test/models/host_volume_connection.rb +287 -0
  157. data/lib/eilam_test/models/host_volume_connection_create.rb +277 -0
  158. data/lib/eilam_test/models/job.rb +280 -0
  159. data/lib/eilam_test/models/job_create.rb +230 -0
  160. data/lib/eilam_test/models/native_capability.rb +251 -0
  161. data/lib/eilam_test/models/profile.rb +295 -0
  162. data/lib/eilam_test/models/provisioning_strategy.rb +269 -0
  163. data/lib/eilam_test/models/service.rb +351 -0
  164. data/lib/eilam_test/models/service_abstract_capability_value.rb +239 -0
  165. data/lib/eilam_test/models/service_create.rb +339 -0
  166. data/lib/eilam_test/models/service_resource_attachment.rb +250 -0
  167. data/lib/eilam_test/models/snapshot.rb +298 -0
  168. data/lib/eilam_test/models/snapshot_create.rb +288 -0
  169. data/lib/eilam_test/models/storage_host.rb +346 -0
  170. data/lib/eilam_test/models/storage_host_create.rb +388 -0
  171. data/lib/eilam_test/models/storage_host_response.rb +363 -0
  172. data/lib/eilam_test/models/storage_host_update.rb +301 -0
  173. data/lib/eilam_test/models/storage_host_volume_mapping.rb +299 -0
  174. data/lib/eilam_test/models/storage_host_volume_mapping_create.rb +291 -0
  175. data/lib/eilam_test/models/storage_host_volume_mapping_response.rb +301 -0
  176. data/lib/eilam_test/models/storage_host_wwpn_candidates.rb +230 -0
  177. data/lib/eilam_test/models/storage_resource.rb +354 -0
  178. data/lib/eilam_test/models/storage_resource_create.rb +345 -0
  179. data/lib/eilam_test/models/storage_resource_response.rb +355 -0
  180. data/lib/eilam_test/models/storage_system.rb +352 -0
  181. data/lib/eilam_test/models/storage_system_create.rb +455 -0
  182. data/lib/eilam_test/models/storage_system_update.rb +265 -0
  183. data/lib/eilam_test/models/system_type.rb +333 -0
  184. data/lib/eilam_test/models/system_type_create.rb +345 -0
  185. data/lib/eilam_test/models/user.rb +395 -0
  186. data/lib/eilam_test/models/user_create.rb +395 -0
  187. data/lib/eilam_test/models/user_update.rb +280 -0
  188. data/lib/eilam_test/models/validate_system.rb +260 -0
  189. data/lib/eilam_test/models/volume.rb +348 -0
  190. data/lib/eilam_test/models/volume_create.rb +343 -0
  191. data/lib/eilam_test/models/volume_response.rb +350 -0
  192. data/lib/eilam_test/models/volume_safe_delete.rb +239 -0
  193. data/lib/eilam_test/models/volume_safe_delete_create.rb +219 -0
  194. data/lib/eilam_test/models/volume_update.rb +232 -0
  195. data/lib/eilam_test/version.rb +15 -0
  196. data/lib/eilam_test.rb +130 -0
  197. data/spec/api/abstract_capability_api_spec.rb +74 -0
  198. data/spec/api/account_api_spec.rb +85 -0
  199. data/spec/api/address_api_spec.rb +74 -0
  200. data/spec/api/authentication_api_spec.rb +45 -0
  201. data/spec/api/auto_sde_project_api_spec.rb +74 -0
  202. data/spec/api/auto_sde_role_api_spec.rb +74 -0
  203. data/spec/api/capability_translation_api_spec.rb +74 -0
  204. data/spec/api/event_api_spec.rb +74 -0
  205. data/spec/api/host_api_spec.rb +74 -0
  206. data/spec/api/host_cluster_api_spec.rb +74 -0
  207. data/spec/api/host_cluster_membership_api_spec.rb +74 -0
  208. data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
  209. data/spec/api/host_volume_connection_api_spec.rb +74 -0
  210. data/spec/api/job_api_spec.rb +54 -0
  211. data/spec/api/native_capability_api_spec.rb +74 -0
  212. data/spec/api/profile_api_spec.rb +74 -0
  213. data/spec/api/provisioning_strategy_api_spec.rb +74 -0
  214. data/spec/api/service_api_spec.rb +85 -0
  215. data/spec/api/service_resource_attachment_api_spec.rb +74 -0
  216. data/spec/api/snapshot_api_spec.rb +74 -0
  217. data/spec/api/storage_host_api_spec.rb +85 -0
  218. data/spec/api/storage_host_volume_mapping_api_spec.rb +74 -0
  219. data/spec/api/storage_host_wwpn_candidates_api_spec.rb +44 -0
  220. data/spec/api/storage_resource_api_spec.rb +85 -0
  221. data/spec/api/storage_system_api_spec.rb +85 -0
  222. data/spec/api/system_type_api_spec.rb +74 -0
  223. data/spec/api/user_api_spec.rb +85 -0
  224. data/spec/api/validate_system_api_spec.rb +45 -0
  225. data/spec/api/volume_api_spec.rb +85 -0
  226. data/spec/api/volume_safe_delete_api_spec.rb +74 -0
  227. data/spec/api_client_spec.rb +226 -0
  228. data/spec/configuration_spec.rb +42 -0
  229. data/spec/models/abstract_capability_spec.rb +40 -0
  230. data/spec/models/account_post_request_spec.rb +40 -0
  231. data/spec/models/account_post_response_spec.rb +52 -0
  232. data/spec/models/account_spec.rb +46 -0
  233. data/spec/models/address_create_spec.rb +84 -0
  234. data/spec/models/address_spec.rb +84 -0
  235. data/spec/models/auth_response_spec.rb +34 -0
  236. data/spec/models/authentication_spec.rb +40 -0
  237. data/spec/models/auto_sde_project_spec.rb +148 -0
  238. data/spec/models/auto_sde_role_spec.rb +40 -0
  239. data/spec/models/capability_translation_create_spec.rb +76 -0
  240. data/spec/models/capability_translation_spec.rb +88 -0
  241. data/spec/models/event_spec.rb +76 -0
  242. data/spec/models/host_cluster_create_spec.rb +70 -0
  243. data/spec/models/host_cluster_membership_spec.rb +56 -0
  244. data/spec/models/host_cluster_response_spec.rb +86 -0
  245. data/spec/models/host_cluster_spec.rb +86 -0
  246. data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
  247. data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
  248. data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
  249. data/spec/models/host_create_spec.rb +112 -0
  250. data/spec/models/host_spec.rb +78 -0
  251. data/spec/models/host_volume_connection_create_spec.rb +50 -0
  252. data/spec/models/host_volume_connection_spec.rb +56 -0
  253. data/spec/models/job_create_spec.rb +40 -0
  254. data/spec/models/job_spec.rb +70 -0
  255. data/spec/models/native_capability_spec.rb +52 -0
  256. data/spec/models/profile_spec.rb +62 -0
  257. data/spec/models/provisioning_strategy_spec.rb +44 -0
  258. data/spec/models/service_abstract_capability_value_spec.rb +46 -0
  259. data/spec/models/service_create_spec.rb +86 -0
  260. data/spec/models/service_resource_attachment_spec.rb +52 -0
  261. data/spec/models/service_spec.rb +92 -0
  262. data/spec/models/snapshot_create_spec.rb +56 -0
  263. data/spec/models/snapshot_spec.rb +62 -0
  264. data/spec/models/storage_host_create_spec.rb +114 -0
  265. data/spec/models/storage_host_response_spec.rb +98 -0
  266. data/spec/models/storage_host_spec.rb +92 -0
  267. data/spec/models/storage_host_update_spec.rb +54 -0
  268. data/spec/models/storage_host_volume_mapping_create_spec.rb +56 -0
  269. data/spec/models/storage_host_volume_mapping_response_spec.rb +62 -0
  270. data/spec/models/storage_host_volume_mapping_spec.rb +62 -0
  271. data/spec/models/storage_host_wwpn_candidates_spec.rb +40 -0
  272. data/spec/models/storage_resource_create_spec.rb +84 -0
  273. data/spec/models/storage_resource_response_spec.rb +90 -0
  274. data/spec/models/storage_resource_spec.rb +90 -0
  275. data/spec/models/storage_system_create_spec.rb +148 -0
  276. data/spec/models/storage_system_spec.rb +90 -0
  277. data/spec/models/storage_system_update_spec.rb +52 -0
  278. data/spec/models/system_type_create_spec.rb +72 -0
  279. data/spec/models/system_type_spec.rb +66 -0
  280. data/spec/models/user_create_spec.rb +94 -0
  281. data/spec/models/user_spec.rb +94 -0
  282. data/spec/models/user_update_spec.rb +70 -0
  283. data/spec/models/validate_system_spec.rb +58 -0
  284. data/spec/models/volume_create_spec.rb +86 -0
  285. data/spec/models/volume_response_spec.rb +92 -0
  286. data/spec/models/volume_safe_delete_create_spec.rb +34 -0
  287. data/spec/models/volume_safe_delete_spec.rb +46 -0
  288. data/spec/models/volume_spec.rb +92 -0
  289. data/spec/models/volume_update_spec.rb +40 -0
  290. data/spec/spec_helper.rb +111 -0
  291. metadata +466 -0
@@ -0,0 +1,410 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AutosdeOpenapiClient
17
+ # Use this for AutoSDE project information.
18
+ class AutoSDEProject
19
+ # The number of instance cores that are allowed per project. doc-todo: what is a CORE?
20
+ attr_accessor :cores
21
+
22
+ # Project description.
23
+ attr_accessor :description
24
+
25
+ # The number of fixed IP addresses that are allowed per project. This number must be equal to or greater than the number of allowed instances.
26
+ attr_accessor :fixed_ips
27
+
28
+ # The number of floating IP addresses that are allowed per project.
29
+ attr_accessor :floating_ips
30
+
31
+ # The maximum number of groups.
32
+ attr_accessor :groups
33
+
34
+ # The number of bytes of content that are allowed for each injected file.
35
+ attr_accessor :injected_file_content_bytes
36
+
37
+ # The number of bytes that are allowed for each injected file path.
38
+ attr_accessor :injected_file_path_bytes
39
+
40
+ # The number of instances that are allowed per project. doc-todo: what is an instance? does it mean how many projects can exist at once?
41
+ attr_accessor :instances
42
+
43
+ # The number of key pairs that are allowed per user. doc-todo: what is a key pair?
44
+ attr_accessor :key_pairs
45
+
46
+ # Maximum capacity (GB) allocated to backups.
47
+ attr_accessor :max_total_backup_gigabytes
48
+
49
+ # Maximum number of backups. A backup is a full copy of a volume stored in an external service. The service can be configured. The only supported service is Object Storage. doc-todo:WHAT IS OBJECT STORAGE? A backup can subsequently be restored from the external service to either the same volume that the backup was originally taken from or to a new volume. Backup and restore operations can only be carried out on volumes that are in an unattached and available state.
50
+ attr_accessor :max_total_backups
51
+
52
+ # Maximum number of snapshots allowed per project.
53
+ attr_accessor :max_total_snapshots
54
+
55
+ # Maximum number of gigabytes allocated to volumes per project.
56
+ attr_accessor :max_total_volume_gigabytes
57
+
58
+ # Maximum number of provisioned volumes in the project.
59
+ attr_accessor :max_total_volumes
60
+
61
+ # The number of metadata items that are allowed for each instance.
62
+ attr_accessor :metadata_items
63
+
64
+ # Project name.
65
+ attr_accessor :name
66
+
67
+ # The size (GB) of volumes in request that are allowed per volume.
68
+ attr_accessor :per_volume_gigabytes
69
+
70
+ # The amount of instance RAM (MB) that are allowed per project. doc-todo: RAM per project, per specific project....?
71
+ attr_accessor :ram
72
+
73
+ # The number of security groups that are allowed per project.
74
+ attr_accessor :security_groups
75
+
76
+ # UUID
77
+ attr_accessor :uuid
78
+
79
+ # Attribute mapping from ruby-style variable name to JSON key.
80
+ def self.attribute_map
81
+ {
82
+ :'cores' => :'cores',
83
+ :'description' => :'description',
84
+ :'fixed_ips' => :'fixed_ips',
85
+ :'floating_ips' => :'floating_ips',
86
+ :'groups' => :'groups',
87
+ :'injected_file_content_bytes' => :'injected_file_content_bytes',
88
+ :'injected_file_path_bytes' => :'injected_file_path_bytes',
89
+ :'instances' => :'instances',
90
+ :'key_pairs' => :'key_pairs',
91
+ :'max_total_backup_gigabytes' => :'max_total_backup_gigabytes',
92
+ :'max_total_backups' => :'max_total_backups',
93
+ :'max_total_snapshots' => :'max_total_snapshots',
94
+ :'max_total_volume_gigabytes' => :'max_total_volume_gigabytes',
95
+ :'max_total_volumes' => :'max_total_volumes',
96
+ :'metadata_items' => :'metadata_items',
97
+ :'name' => :'name',
98
+ :'per_volume_gigabytes' => :'per_volume_gigabytes',
99
+ :'ram' => :'ram',
100
+ :'security_groups' => :'security_groups',
101
+ :'uuid' => :'uuid'
102
+ }
103
+ end
104
+
105
+ # Returns all the JSON keys this model knows about
106
+ def self.acceptable_attributes
107
+ attribute_map.values
108
+ end
109
+
110
+ # Attribute type mapping.
111
+ def self.openapi_types
112
+ {
113
+ :'cores' => :'Integer',
114
+ :'description' => :'String',
115
+ :'fixed_ips' => :'Integer',
116
+ :'floating_ips' => :'Integer',
117
+ :'groups' => :'Integer',
118
+ :'injected_file_content_bytes' => :'Float',
119
+ :'injected_file_path_bytes' => :'Integer',
120
+ :'instances' => :'Integer',
121
+ :'key_pairs' => :'Integer',
122
+ :'max_total_backup_gigabytes' => :'Float',
123
+ :'max_total_backups' => :'Integer',
124
+ :'max_total_snapshots' => :'Integer',
125
+ :'max_total_volume_gigabytes' => :'Float',
126
+ :'max_total_volumes' => :'Integer',
127
+ :'metadata_items' => :'Integer',
128
+ :'name' => :'String',
129
+ :'per_volume_gigabytes' => :'Float',
130
+ :'ram' => :'Float',
131
+ :'security_groups' => :'Integer',
132
+ :'uuid' => :'String'
133
+ }
134
+ end
135
+
136
+ # List of attributes with nullable: true
137
+ def self.openapi_nullable
138
+ Set.new([
139
+ ])
140
+ end
141
+
142
+ # Initializes the object
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ def initialize(attributes = {})
145
+ if (!attributes.is_a?(Hash))
146
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AutoSDEProject` initialize method"
147
+ end
148
+
149
+ # check to see if the attribute exists and convert string to symbol for hash key
150
+ attributes = attributes.each_with_object({}) { |(k, v), h|
151
+ if (!self.class.attribute_map.key?(k.to_sym))
152
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AutoSDEProject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
153
+ end
154
+ h[k.to_sym] = v
155
+ }
156
+
157
+ if attributes.key?(:'cores')
158
+ self.cores = attributes[:'cores']
159
+ end
160
+
161
+ if attributes.key?(:'description')
162
+ self.description = attributes[:'description']
163
+ end
164
+
165
+ if attributes.key?(:'fixed_ips')
166
+ self.fixed_ips = attributes[:'fixed_ips']
167
+ end
168
+
169
+ if attributes.key?(:'floating_ips')
170
+ self.floating_ips = attributes[:'floating_ips']
171
+ end
172
+
173
+ if attributes.key?(:'groups')
174
+ self.groups = attributes[:'groups']
175
+ end
176
+
177
+ if attributes.key?(:'injected_file_content_bytes')
178
+ self.injected_file_content_bytes = attributes[:'injected_file_content_bytes']
179
+ end
180
+
181
+ if attributes.key?(:'injected_file_path_bytes')
182
+ self.injected_file_path_bytes = attributes[:'injected_file_path_bytes']
183
+ end
184
+
185
+ if attributes.key?(:'instances')
186
+ self.instances = attributes[:'instances']
187
+ end
188
+
189
+ if attributes.key?(:'key_pairs')
190
+ self.key_pairs = attributes[:'key_pairs']
191
+ end
192
+
193
+ if attributes.key?(:'max_total_backup_gigabytes')
194
+ self.max_total_backup_gigabytes = attributes[:'max_total_backup_gigabytes']
195
+ end
196
+
197
+ if attributes.key?(:'max_total_backups')
198
+ self.max_total_backups = attributes[:'max_total_backups']
199
+ end
200
+
201
+ if attributes.key?(:'max_total_snapshots')
202
+ self.max_total_snapshots = attributes[:'max_total_snapshots']
203
+ end
204
+
205
+ if attributes.key?(:'max_total_volume_gigabytes')
206
+ self.max_total_volume_gigabytes = attributes[:'max_total_volume_gigabytes']
207
+ end
208
+
209
+ if attributes.key?(:'max_total_volumes')
210
+ self.max_total_volumes = attributes[:'max_total_volumes']
211
+ end
212
+
213
+ if attributes.key?(:'metadata_items')
214
+ self.metadata_items = attributes[:'metadata_items']
215
+ end
216
+
217
+ if attributes.key?(:'name')
218
+ self.name = attributes[:'name']
219
+ end
220
+
221
+ if attributes.key?(:'per_volume_gigabytes')
222
+ self.per_volume_gigabytes = attributes[:'per_volume_gigabytes']
223
+ end
224
+
225
+ if attributes.key?(:'ram')
226
+ self.ram = attributes[:'ram']
227
+ end
228
+
229
+ if attributes.key?(:'security_groups')
230
+ self.security_groups = attributes[:'security_groups']
231
+ end
232
+
233
+ if attributes.key?(:'uuid')
234
+ self.uuid = attributes[:'uuid']
235
+ end
236
+ end
237
+
238
+ # Show invalid properties with the reasons. Usually used together with valid?
239
+ # @return Array for valid properties with the reasons
240
+ def list_invalid_properties
241
+ invalid_properties = Array.new
242
+ invalid_properties
243
+ end
244
+
245
+ # Check to see if the all the properties in the model are valid
246
+ # @return true if the model is valid
247
+ def valid?
248
+ true
249
+ end
250
+
251
+ # Checks equality by comparing each attribute.
252
+ # @param [Object] Object to be compared
253
+ def ==(o)
254
+ return true if self.equal?(o)
255
+ self.class == o.class &&
256
+ cores == o.cores &&
257
+ description == o.description &&
258
+ fixed_ips == o.fixed_ips &&
259
+ floating_ips == o.floating_ips &&
260
+ groups == o.groups &&
261
+ injected_file_content_bytes == o.injected_file_content_bytes &&
262
+ injected_file_path_bytes == o.injected_file_path_bytes &&
263
+ instances == o.instances &&
264
+ key_pairs == o.key_pairs &&
265
+ max_total_backup_gigabytes == o.max_total_backup_gigabytes &&
266
+ max_total_backups == o.max_total_backups &&
267
+ max_total_snapshots == o.max_total_snapshots &&
268
+ max_total_volume_gigabytes == o.max_total_volume_gigabytes &&
269
+ max_total_volumes == o.max_total_volumes &&
270
+ metadata_items == o.metadata_items &&
271
+ name == o.name &&
272
+ per_volume_gigabytes == o.per_volume_gigabytes &&
273
+ ram == o.ram &&
274
+ security_groups == o.security_groups &&
275
+ uuid == o.uuid
276
+ end
277
+
278
+ # @see the `==` method
279
+ # @param [Object] Object to be compared
280
+ def eql?(o)
281
+ self == o
282
+ end
283
+
284
+ # Calculates hash code according to all attributes.
285
+ # @return [Integer] Hash code
286
+ def hash
287
+ [cores, description, fixed_ips, floating_ips, groups, injected_file_content_bytes, injected_file_path_bytes, instances, key_pairs, max_total_backup_gigabytes, max_total_backups, max_total_snapshots, max_total_volume_gigabytes, max_total_volumes, metadata_items, name, per_volume_gigabytes, ram, security_groups, uuid].hash
288
+ end
289
+
290
+ # Builds the object from hash
291
+ # @param [Hash] attributes Model attributes in the form of hash
292
+ # @return [Object] Returns the model itself
293
+ def self.build_from_hash(attributes)
294
+ new.build_from_hash(attributes)
295
+ end
296
+
297
+ # Builds the object from hash
298
+ # @param [Hash] attributes Model attributes in the form of hash
299
+ # @return [Object] Returns the model itself
300
+ def build_from_hash(attributes)
301
+ return nil unless attributes.is_a?(Hash)
302
+ self.class.openapi_types.each_pair do |key, type|
303
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
304
+ self.send("#{key}=", nil)
305
+ elsif type =~ /\AArray<(.*)>/i
306
+ # check to ensure the input is an array given that the attribute
307
+ # is documented as an array but the input is not
308
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
309
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
310
+ end
311
+ elsif !attributes[self.class.attribute_map[key]].nil?
312
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
313
+ end
314
+ end
315
+
316
+ self
317
+ end
318
+
319
+ # Deserializes the data based on type
320
+ # @param string type Data type
321
+ # @param string value Value to be deserialized
322
+ # @return [Object] Deserialized data
323
+ def _deserialize(type, value)
324
+ case type.to_sym
325
+ when :Time
326
+ Time.parse(value)
327
+ when :Date
328
+ Date.parse(value)
329
+ when :String
330
+ value.to_s
331
+ when :Integer
332
+ value.to_i
333
+ when :Float
334
+ value.to_f
335
+ when :Boolean
336
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
337
+ true
338
+ else
339
+ false
340
+ end
341
+ when :Object
342
+ # generic object (usually a Hash), return directly
343
+ value
344
+ when /\AArray<(?<inner_type>.+)>\z/
345
+ inner_type = Regexp.last_match[:inner_type]
346
+ value.map { |v| _deserialize(inner_type, v) }
347
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
348
+ k_type = Regexp.last_match[:k_type]
349
+ v_type = Regexp.last_match[:v_type]
350
+ {}.tap do |hash|
351
+ value.each do |k, v|
352
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
353
+ end
354
+ end
355
+ else # model
356
+ # models (e.g. Pet) or oneOf
357
+ klass = AutosdeOpenapiClient.const_get(type)
358
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
359
+ end
360
+ end
361
+
362
+ # Returns the string representation of the object
363
+ # @return [String] String presentation of the object
364
+ def to_s
365
+ to_hash.to_s
366
+ end
367
+
368
+ # to_body is an alias to to_hash (backward compatibility)
369
+ # @return [Hash] Returns the object in the form of hash
370
+ def to_body
371
+ to_hash
372
+ end
373
+
374
+ # Returns the object in the form of hash
375
+ # @return [Hash] Returns the object in the form of hash
376
+ def to_hash
377
+ hash = {}
378
+ self.class.attribute_map.each_pair do |attr, param|
379
+ value = self.send(attr)
380
+ if value.nil?
381
+ is_nullable = self.class.openapi_nullable.include?(attr)
382
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
383
+ end
384
+
385
+ hash[param] = _to_hash(value)
386
+ end
387
+ hash
388
+ end
389
+
390
+ # Outputs non-array value in the form of hash
391
+ # For object, use to_hash. Otherwise, just return the value
392
+ # @param [Object] value Any valid value
393
+ # @return [Hash] Returns the value in the form of hash
394
+ def _to_hash(value)
395
+ if value.is_a?(Array)
396
+ value.compact.map { |v| _to_hash(v) }
397
+ elsif value.is_a?(Hash)
398
+ {}.tap do |hash|
399
+ value.each { |k, v| hash[k] = _to_hash(v) }
400
+ end
401
+ elsif value.respond_to? :to_hash
402
+ value.to_hash
403
+ else
404
+ value
405
+ end
406
+ end
407
+
408
+ end
409
+
410
+ end
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #Site Manager API
3
+
4
+ #Site Manager API
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: autosde@il.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AutosdeOpenapiClient
17
+ # doc-todo: what types of roles is this defining?
18
+ class AutoSDERole
19
+ # name
20
+ attr_accessor :name
21
+
22
+ # uuid
23
+ attr_accessor :uuid
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'name' => :'name',
29
+ :'uuid' => :'uuid'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'name' => :'String',
42
+ :'uuid' => :'String'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AutoSDERole` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AutoSDERole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'name')
68
+ self.name = attributes[:'name']
69
+ end
70
+
71
+ if attributes.key?(:'uuid')
72
+ self.uuid = attributes[:'uuid']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ invalid_properties
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ def valid?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ name == o.name &&
95
+ uuid == o.uuid
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [name, uuid].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = AutosdeOpenapiClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end