vsphere-automation-appliance 0.4.2 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (750) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -0
  3. data/lib/vsphere-automation-appliance/api_client.rb +260 -0
  4. data/lib/vsphere-automation-appliance/api_error.rb +34 -0
  5. data/lib/vsphere-automation-appliance/configuration.rb +212 -0
  6. data/lib/vsphere-automation-appliance/version.rb +1 -1
  7. metadata +15 -1123
  8. data/Gemfile +0 -14
  9. data/Gemfile.lock +0 -86
  10. data/README.md +0 -511
  11. data/Rakefile +0 -18
  12. data/docs/AccessConsolecliApi.md +0 -105
  13. data/docs/AccessDcuiApi.md +0 -105
  14. data/docs/AccessShellApi.md +0 -105
  15. data/docs/AccessSshApi.md +0 -105
  16. data/docs/ApplianceAccessConsolecliResult.md +0 -8
  17. data/docs/ApplianceAccessConsolecliSet.md +0 -8
  18. data/docs/ApplianceAccessDcuiResult.md +0 -8
  19. data/docs/ApplianceAccessDcuiSet.md +0 -8
  20. data/docs/ApplianceAccessShellResult.md +0 -8
  21. data/docs/ApplianceAccessShellSet.md +0 -8
  22. data/docs/ApplianceAccessShellShellConfig.md +0 -9
  23. data/docs/ApplianceAccessSshResult.md +0 -8
  24. data/docs/ApplianceAccessSshSet.md +0 -8
  25. data/docs/ApplianceHealthApplmgmtResult.md +0 -8
  26. data/docs/ApplianceHealthDatabasestorageHealthLevel.md +0 -7
  27. data/docs/ApplianceHealthDatabasestorageResult.md +0 -8
  28. data/docs/ApplianceHealthLoadHealthLevel.md +0 -7
  29. data/docs/ApplianceHealthLoadResult.md +0 -8
  30. data/docs/ApplianceHealthMemHealthLevel.md +0 -7
  31. data/docs/ApplianceHealthMemResult.md +0 -8
  32. data/docs/ApplianceHealthMessagesResult.md +0 -8
  33. data/docs/ApplianceHealthSoftwarepackagesHealthLevel.md +0 -7
  34. data/docs/ApplianceHealthSoftwarepackagesResult.md +0 -8
  35. data/docs/ApplianceHealthStorageHealthLevel.md +0 -7
  36. data/docs/ApplianceHealthStorageResult.md +0 -8
  37. data/docs/ApplianceHealthSwapHealthLevel.md +0 -7
  38. data/docs/ApplianceHealthSwapResult.md +0 -8
  39. data/docs/ApplianceHealthSystemHealthLevel.md +0 -7
  40. data/docs/ApplianceHealthSystemLastcheckResult.md +0 -8
  41. data/docs/ApplianceHealthSystemResult.md +0 -8
  42. data/docs/ApplianceLocalAccountsConfig.md +0 -20
  43. data/docs/ApplianceLocalAccountsCreate.md +0 -8
  44. data/docs/ApplianceLocalAccountsInfo.md +0 -18
  45. data/docs/ApplianceLocalAccountsListResult.md +0 -8
  46. data/docs/ApplianceLocalAccountsPolicyInfo.md +0 -10
  47. data/docs/ApplianceLocalAccountsPolicyResult.md +0 -8
  48. data/docs/ApplianceLocalAccountsPolicySet.md +0 -8
  49. data/docs/ApplianceLocalAccountsResult.md +0 -8
  50. data/docs/ApplianceLocalAccountsSet.md +0 -8
  51. data/docs/ApplianceLocalAccountsUpdate.md +0 -8
  52. data/docs/ApplianceLocalAccountsUpdateConfig.md +0 -20
  53. data/docs/ApplianceLoggingForwardingConfig.md +0 -10
  54. data/docs/ApplianceLoggingForwardingConnectionStatus.md +0 -10
  55. data/docs/ApplianceLoggingForwardingConnectionStatusState.md +0 -7
  56. data/docs/ApplianceLoggingForwardingProtocol.md +0 -7
  57. data/docs/ApplianceLoggingForwardingResult.md +0 -8
  58. data/docs/ApplianceLoggingForwardingSet.md +0 -8
  59. data/docs/ApplianceLoggingForwardingTest.md +0 -8
  60. data/docs/ApplianceLoggingForwardingTestResult.md +0 -8
  61. data/docs/ApplianceMonitoringFunctionType.md +0 -7
  62. data/docs/ApplianceMonitoringIntervalType.md +0 -7
  63. data/docs/ApplianceMonitoringListResult.md +0 -8
  64. data/docs/ApplianceMonitoringMonitoredItem.md +0 -13
  65. data/docs/ApplianceMonitoringMonitoredItemData.md +0 -13
  66. data/docs/ApplianceMonitoringMonitoredItemDataRequest.md +0 -12
  67. data/docs/ApplianceMonitoringQueryResult.md +0 -8
  68. data/docs/ApplianceMonitoringResult.md +0 -8
  69. data/docs/ApplianceNetworkingDNSInfo.md +0 -10
  70. data/docs/ApplianceNetworkingDNSInfoDNSMode.md +0 -7
  71. data/docs/ApplianceNetworkingDnsDomainsAdd.md +0 -8
  72. data/docs/ApplianceNetworkingDnsDomainsListResult.md +0 -8
  73. data/docs/ApplianceNetworkingDnsDomainsSet.md +0 -8
  74. data/docs/ApplianceNetworkingDnsHostnameMessage.md +0 -9
  75. data/docs/ApplianceNetworkingDnsHostnameMessageStatus.md +0 -7
  76. data/docs/ApplianceNetworkingDnsHostnameResult.md +0 -8
  77. data/docs/ApplianceNetworkingDnsHostnameSet.md +0 -8
  78. data/docs/ApplianceNetworkingDnsHostnameTest.md +0 -8
  79. data/docs/ApplianceNetworkingDnsHostnameTestResult.md +0 -8
  80. data/docs/ApplianceNetworkingDnsHostnameTestStatus.md +0 -7
  81. data/docs/ApplianceNetworkingDnsHostnameTestStatusInfo.md +0 -9
  82. data/docs/ApplianceNetworkingDnsServersAdd.md +0 -8
  83. data/docs/ApplianceNetworkingDnsServersDNSServerConfig.md +0 -9
  84. data/docs/ApplianceNetworkingDnsServersDNSServerMode.md +0 -7
  85. data/docs/ApplianceNetworkingDnsServersMessage.md +0 -9
  86. data/docs/ApplianceNetworkingDnsServersMessageStatus.md +0 -7
  87. data/docs/ApplianceNetworkingDnsServersResult.md +0 -8
  88. data/docs/ApplianceNetworkingDnsServersSet.md +0 -8
  89. data/docs/ApplianceNetworkingDnsServersTest.md +0 -8
  90. data/docs/ApplianceNetworkingDnsServersTestResult.md +0 -8
  91. data/docs/ApplianceNetworkingDnsServersTestStatus.md +0 -7
  92. data/docs/ApplianceNetworkingDnsServersTestStatusInfo.md +0 -9
  93. data/docs/ApplianceNetworkingFirewallInboundPolicy.md +0 -7
  94. data/docs/ApplianceNetworkingFirewallInboundResult.md +0 -8
  95. data/docs/ApplianceNetworkingFirewallInboundRule.md +0 -11
  96. data/docs/ApplianceNetworkingFirewallInboundSet.md +0 -8
  97. data/docs/ApplianceNetworkingInfo.md +0 -9
  98. data/docs/ApplianceNetworkingInfoInterfaces.md +0 -9
  99. data/docs/ApplianceNetworkingInterfacesInterfaceInfo.md +0 -12
  100. data/docs/ApplianceNetworkingInterfacesInterfaceStatus.md +0 -7
  101. data/docs/ApplianceNetworkingInterfacesIpv4Config.md +0 -11
  102. data/docs/ApplianceNetworkingInterfacesIpv4Info.md +0 -12
  103. data/docs/ApplianceNetworkingInterfacesIpv4Mode.md +0 -7
  104. data/docs/ApplianceNetworkingInterfacesIpv4Result.md +0 -8
  105. data/docs/ApplianceNetworkingInterfacesIpv4Set.md +0 -8
  106. data/docs/ApplianceNetworkingInterfacesIpv6Address.md +0 -9
  107. data/docs/ApplianceNetworkingInterfacesIpv6AddressInfo.md +0 -11
  108. data/docs/ApplianceNetworkingInterfacesIpv6Config.md +0 -11
  109. data/docs/ApplianceNetworkingInterfacesIpv6Info.md +0 -12
  110. data/docs/ApplianceNetworkingInterfacesIpv6Origin.md +0 -7
  111. data/docs/ApplianceNetworkingInterfacesIpv6Result.md +0 -8
  112. data/docs/ApplianceNetworkingInterfacesIpv6Set.md +0 -8
  113. data/docs/ApplianceNetworkingInterfacesIpv6Status.md +0 -7
  114. data/docs/ApplianceNetworkingInterfacesListResult.md +0 -8
  115. data/docs/ApplianceNetworkingInterfacesResult.md +0 -8
  116. data/docs/ApplianceNetworkingNoProxyResult.md +0 -8
  117. data/docs/ApplianceNetworkingNoProxySet.md +0 -8
  118. data/docs/ApplianceNetworkingProxyConfig.md +0 -12
  119. data/docs/ApplianceNetworkingProxyListResult.md +0 -8
  120. data/docs/ApplianceNetworkingProxyListResultValue.md +0 -9
  121. data/docs/ApplianceNetworkingProxyProtocol.md +0 -7
  122. data/docs/ApplianceNetworkingProxyResult.md +0 -8
  123. data/docs/ApplianceNetworkingProxyServerStatus.md +0 -7
  124. data/docs/ApplianceNetworkingProxySet.md +0 -8
  125. data/docs/ApplianceNetworkingProxyTest.md +0 -9
  126. data/docs/ApplianceNetworkingProxyTestResult.md +0 -9
  127. data/docs/ApplianceNetworkingResult.md +0 -8
  128. data/docs/ApplianceNetworkingUpdate.md +0 -8
  129. data/docs/ApplianceNetworkingUpdateSpec.md +0 -8
  130. data/docs/ApplianceNotification.md +0 -11
  131. data/docs/ApplianceNotifications.md +0 -10
  132. data/docs/ApplianceNtpLocalizableMessage.md +0 -10
  133. data/docs/ApplianceNtpResult.md +0 -8
  134. data/docs/ApplianceNtpServerStatus.md +0 -7
  135. data/docs/ApplianceNtpSet.md +0 -8
  136. data/docs/ApplianceNtpTest.md +0 -8
  137. data/docs/ApplianceNtpTestResult.md +0 -8
  138. data/docs/ApplianceNtpTestRunStatus.md +0 -10
  139. data/docs/ApplianceRecoveryBackupBackupRequest.md +0 -14
  140. data/docs/ApplianceRecoveryBackupJobBackupJobStatus.md +0 -13
  141. data/docs/ApplianceRecoveryBackupJobBackupRequest.md +0 -14
  142. data/docs/ApplianceRecoveryBackupJobBackupRestoreProcessState.md +0 -7
  143. data/docs/ApplianceRecoveryBackupJobCancelResult.md +0 -8
  144. data/docs/ApplianceRecoveryBackupJobCreate.md +0 -8
  145. data/docs/ApplianceRecoveryBackupJobCreateResult.md +0 -8
  146. data/docs/ApplianceRecoveryBackupJobDetailsBuildInfo.md +0 -10
  147. data/docs/ApplianceRecoveryBackupJobDetailsFilterSpec.md +0 -8
  148. data/docs/ApplianceRecoveryBackupJobDetailsInfo.md +0 -26
  149. data/docs/ApplianceRecoveryBackupJobDetailsListResult.md +0 -8
  150. data/docs/ApplianceRecoveryBackupJobDetailsListResultValue.md +0 -9
  151. data/docs/ApplianceRecoveryBackupJobDetailsType.md +0 -7
  152. data/docs/ApplianceRecoveryBackupJobListResult.md +0 -8
  153. data/docs/ApplianceRecoveryBackupJobLocalizableMessage.md +0 -10
  154. data/docs/ApplianceRecoveryBackupJobLocationType.md +0 -7
  155. data/docs/ApplianceRecoveryBackupJobResult.md +0 -8
  156. data/docs/ApplianceRecoveryBackupJobReturnResult.md +0 -9
  157. data/docs/ApplianceRecoveryBackupJobReturnStatus.md +0 -7
  158. data/docs/ApplianceRecoveryBackupLocalizableMessage.md +0 -10
  159. data/docs/ApplianceRecoveryBackupLocationSpec.md +0 -10
  160. data/docs/ApplianceRecoveryBackupLocationType.md +0 -7
  161. data/docs/ApplianceRecoveryBackupPartsListResult.md +0 -8
  162. data/docs/ApplianceRecoveryBackupPartsLocalizableMessage.md +0 -10
  163. data/docs/ApplianceRecoveryBackupPartsPart.md +0 -12
  164. data/docs/ApplianceRecoveryBackupPartsResult.md +0 -8
  165. data/docs/ApplianceRecoveryBackupReturnResult.md +0 -9
  166. data/docs/ApplianceRecoveryBackupReturnStatus.md +0 -7
  167. data/docs/ApplianceRecoveryBackupSchedulesCreate.md +0 -8
  168. data/docs/ApplianceRecoveryBackupSchedulesCreateSpec.md +0 -15
  169. data/docs/ApplianceRecoveryBackupSchedulesDayOfWeek.md +0 -7
  170. data/docs/ApplianceRecoveryBackupSchedulesInfo.md +0 -13
  171. data/docs/ApplianceRecoveryBackupSchedulesListResult.md +0 -8
  172. data/docs/ApplianceRecoveryBackupSchedulesListResultValue.md +0 -9
  173. data/docs/ApplianceRecoveryBackupSchedulesRecurrenceInfo.md +0 -10
  174. data/docs/ApplianceRecoveryBackupSchedulesResult.md +0 -8
  175. data/docs/ApplianceRecoveryBackupSchedulesRetentionInfo.md +0 -8
  176. data/docs/ApplianceRecoveryBackupSchedulesRun.md +0 -8
  177. data/docs/ApplianceRecoveryBackupSchedulesRunResult.md +0 -8
  178. data/docs/ApplianceRecoveryBackupSchedulesUpdate.md +0 -8
  179. data/docs/ApplianceRecoveryBackupSchedulesUpdateSpec.md +0 -15
  180. data/docs/ApplianceRecoveryBackupSystemNameArchiveFilterSpec.md +0 -11
  181. data/docs/ApplianceRecoveryBackupSystemNameArchiveInfo.md +0 -13
  182. data/docs/ApplianceRecoveryBackupSystemNameArchiveListResult.md +0 -8
  183. data/docs/ApplianceRecoveryBackupSystemNameArchiveResult.md +0 -8
  184. data/docs/ApplianceRecoveryBackupSystemNameArchiveSummary.md +0 -11
  185. data/docs/ApplianceRecoveryBackupSystemNameListResult.md +0 -8
  186. data/docs/ApplianceRecoveryBackupValidate.md +0 -8
  187. data/docs/ApplianceRecoveryBackupValidateResult.md +0 -8
  188. data/docs/ApplianceRecoveryInfo.md +0 -8
  189. data/docs/ApplianceRecoveryReconciliationJobCreate.md +0 -8
  190. data/docs/ApplianceRecoveryReconciliationJobCreateResult.md +0 -8
  191. data/docs/ApplianceRecoveryReconciliationJobCreateSpec.md +0 -10
  192. data/docs/ApplianceRecoveryReconciliationJobInfo.md +0 -19
  193. data/docs/ApplianceRecoveryReconciliationJobResult.md +0 -8
  194. data/docs/ApplianceRecoveryReconciliationJobStatus.md +0 -7
  195. data/docs/ApplianceRecoveryRestoreJobBackupRestoreProcessState.md +0 -7
  196. data/docs/ApplianceRecoveryRestoreJobCancelResult.md +0 -8
  197. data/docs/ApplianceRecoveryRestoreJobCreate.md +0 -8
  198. data/docs/ApplianceRecoveryRestoreJobCreateResult.md +0 -8
  199. data/docs/ApplianceRecoveryRestoreJobLocalizableMessage.md +0 -10
  200. data/docs/ApplianceRecoveryRestoreJobLocationType.md +0 -7
  201. data/docs/ApplianceRecoveryRestoreJobRestoreJobStatus.md +0 -10
  202. data/docs/ApplianceRecoveryRestoreJobRestoreRequest.md +0 -15
  203. data/docs/ApplianceRecoveryRestoreJobResult.md +0 -8
  204. data/docs/ApplianceRecoveryRestoreJobReturnResult.md +0 -9
  205. data/docs/ApplianceRecoveryRestoreJobReturnStatus.md +0 -7
  206. data/docs/ApplianceRecoveryRestoreLocalizableMessage.md +0 -10
  207. data/docs/ApplianceRecoveryRestoreLocationType.md +0 -7
  208. data/docs/ApplianceRecoveryRestoreMetadata.md +0 -15
  209. data/docs/ApplianceRecoveryRestoreRestoreRequest.md +0 -14
  210. data/docs/ApplianceRecoveryRestoreValidate.md +0 -8
  211. data/docs/ApplianceRecoveryRestoreValidateResult.md +0 -8
  212. data/docs/ApplianceRecoveryResult.md +0 -8
  213. data/docs/ApplianceServicesInfo.md +0 -9
  214. data/docs/ApplianceServicesListResult.md +0 -8
  215. data/docs/ApplianceServicesListResultValue.md +0 -9
  216. data/docs/ApplianceServicesResult.md +0 -8
  217. data/docs/ApplianceServicesState.md +0 -7
  218. data/docs/ApplianceShutdownPoweroff.md +0 -9
  219. data/docs/ApplianceShutdownReboot.md +0 -9
  220. data/docs/ApplianceShutdownResult.md +0 -8
  221. data/docs/ApplianceShutdownShutdownConfig.md +0 -10
  222. data/docs/ApplianceSubtaskInfo.md +0 -20
  223. data/docs/ApplianceSystemStorageListResult.md +0 -8
  224. data/docs/ApplianceSystemStorageResizeExResult.md +0 -8
  225. data/docs/ApplianceSystemStorageResizeExResultValue.md +0 -9
  226. data/docs/ApplianceSystemStorageStorageChange.md +0 -9
  227. data/docs/ApplianceSystemStorageStorageMapping.md +0 -10
  228. data/docs/ApplianceSystemTimeResult.md +0 -8
  229. data/docs/ApplianceSystemTimeSystemTimeStruct.md +0 -11
  230. data/docs/ApplianceSystemTimeTimezoneResult.md +0 -8
  231. data/docs/ApplianceSystemTimeTimezoneSet.md +0 -8
  232. data/docs/ApplianceSystemUptimeResult.md +0 -8
  233. data/docs/ApplianceSystemVersionResult.md +0 -8
  234. data/docs/ApplianceSystemVersionVersionStruct.md +0 -14
  235. data/docs/ApplianceTaskInfo.md +0 -21
  236. data/docs/ApplianceTaskInfoSubtasks.md +0 -9
  237. data/docs/ApplianceTechpreviewMonitoringSnmpHash.md +0 -8
  238. data/docs/ApplianceTechpreviewMonitoringSnmpHashResult.md +0 -8
  239. data/docs/ApplianceTechpreviewMonitoringSnmpLimitsResult.md +0 -8
  240. data/docs/ApplianceTechpreviewMonitoringSnmpResult.md +0 -8
  241. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPAuthProto.md +0 -7
  242. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPConfig.md +0 -20
  243. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPConfigReadOnly.md +0 -22
  244. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPHashConfig.md +0 -10
  245. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPHashResults.md +0 -9
  246. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPLimits.md +0 -13
  247. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPPrivProto.md +0 -7
  248. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPRemoteUser.md +0 -14
  249. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPSecLevel.md +0 -7
  250. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPStats.md +0 -34
  251. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPTestResults.md +0 -9
  252. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPUser.md +0 -11
  253. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPv1TrapTarget.md +0 -10
  254. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPv3Notfication.md +0 -7
  255. data/docs/ApplianceTechpreviewMonitoringSnmpSNMPv3Target.md +0 -12
  256. data/docs/ApplianceTechpreviewMonitoringSnmpSet.md +0 -8
  257. data/docs/ApplianceTechpreviewMonitoringSnmpStatsResult.md +0 -8
  258. data/docs/ApplianceTechpreviewMonitoringSnmpTestResult.md +0 -8
  259. data/docs/ApplianceTechpreviewServicesStatusGet.md +0 -9
  260. data/docs/ApplianceTechpreviewServicesStatusResult.md +0 -8
  261. data/docs/ApplianceTechpreviewServicesStatusServiceStatus.md +0 -7
  262. data/docs/ApplianceTimesyncResult.md +0 -8
  263. data/docs/ApplianceTimesyncSet.md +0 -8
  264. data/docs/ApplianceTimesyncTimeSyncMode.md +0 -7
  265. data/docs/ApplianceUpdateCommonInfoCategory.md +0 -7
  266. data/docs/ApplianceUpdateCommonInfoPriority.md +0 -7
  267. data/docs/ApplianceUpdateCommonInfoSeverity.md +0 -7
  268. data/docs/ApplianceUpdateInfo.md +0 -11
  269. data/docs/ApplianceUpdatePendingInfo.md +0 -18
  270. data/docs/ApplianceUpdatePendingInstall.md +0 -8
  271. data/docs/ApplianceUpdatePendingInstallUserData.md +0 -9
  272. data/docs/ApplianceUpdatePendingListResult.md +0 -8
  273. data/docs/ApplianceUpdatePendingPrecheckResult.md +0 -13
  274. data/docs/ApplianceUpdatePendingQuestion.md +0 -14
  275. data/docs/ApplianceUpdatePendingQuestionInputType.md +0 -7
  276. data/docs/ApplianceUpdatePendingResult.md +0 -8
  277. data/docs/ApplianceUpdatePendingSourceType.md +0 -7
  278. data/docs/ApplianceUpdatePendingStageAndInstall.md +0 -8
  279. data/docs/ApplianceUpdatePendingValidate.md +0 -8
  280. data/docs/ApplianceUpdatePendingValidateResult.md +0 -8
  281. data/docs/ApplianceUpdatePolicyConfig.md +0 -12
  282. data/docs/ApplianceUpdatePolicyDayOfWeek.md +0 -7
  283. data/docs/ApplianceUpdatePolicyInfo.md +0 -14
  284. data/docs/ApplianceUpdatePolicyResult.md +0 -8
  285. data/docs/ApplianceUpdatePolicySet.md +0 -8
  286. data/docs/ApplianceUpdatePolicyTime.md +0 -10
  287. data/docs/ApplianceUpdateResult.md +0 -8
  288. data/docs/ApplianceUpdateServiceInfo.md +0 -9
  289. data/docs/ApplianceUpdateStagedInfo.md +0 -16
  290. data/docs/ApplianceUpdateStagedResult.md +0 -8
  291. data/docs/ApplianceUpdateState.md +0 -7
  292. data/docs/ApplianceUpdateSummary.md +0 -15
  293. data/docs/ApplianceVmonServiceHealth.md +0 -7
  294. data/docs/ApplianceVmonServiceInfo.md +0 -13
  295. data/docs/ApplianceVmonServiceListDetailsResult.md +0 -8
  296. data/docs/ApplianceVmonServiceListDetailsResultValue.md +0 -9
  297. data/docs/ApplianceVmonServiceResult.md +0 -8
  298. data/docs/ApplianceVmonServiceStartupType.md +0 -7
  299. data/docs/ApplianceVmonServiceState.md +0 -7
  300. data/docs/ApplianceVmonServiceUpdate.md +0 -8
  301. data/docs/ApplianceVmonServiceUpdateSpec.md +0 -8
  302. data/docs/CisTaskProgress.md +0 -10
  303. data/docs/CisTaskStatus.md +0 -7
  304. data/docs/HealthApi.md +0 -59
  305. data/docs/HealthApplmgmtApi.md +0 -55
  306. data/docs/HealthDatabasestorageApi.md +0 -55
  307. data/docs/HealthLoadApi.md +0 -55
  308. data/docs/HealthMemApi.md +0 -55
  309. data/docs/HealthSoftwarepackagesApi.md +0 -55
  310. data/docs/HealthStorageApi.md +0 -55
  311. data/docs/HealthSwapApi.md +0 -55
  312. data/docs/HealthSystemApi.md +0 -102
  313. data/docs/LocalAccountsApi.md +0 -312
  314. data/docs/LocalAccountsPolicyApi.md +0 -105
  315. data/docs/LoggingForwardingApi.md +0 -158
  316. data/docs/MonitoringApi.md +0 -165
  317. data/docs/NetworkingApi.md +0 -151
  318. data/docs/NetworkingDnsDomainsApi.md +0 -155
  319. data/docs/NetworkingDnsHostnameApi.md +0 -156
  320. data/docs/NetworkingDnsServersApi.md +0 -206
  321. data/docs/NetworkingFirewallInboundApi.md +0 -105
  322. data/docs/NetworkingInterfacesApi.md +0 -106
  323. data/docs/NetworkingInterfacesIpv4Api.md +0 -111
  324. data/docs/NetworkingInterfacesIpv6Api.md +0 -111
  325. data/docs/NetworkingNoProxyApi.md +0 -105
  326. data/docs/NetworkingProxyApi.md +0 -261
  327. data/docs/NtpApi.md +0 -156
  328. data/docs/RecoveryApi.md +0 -55
  329. data/docs/RecoveryBackupApi.md +0 -59
  330. data/docs/RecoveryBackupJobApi.md +0 -208
  331. data/docs/RecoveryBackupJobDetailsApi.md +0 -61
  332. data/docs/RecoveryBackupPartsApi.md +0 -106
  333. data/docs/RecoveryBackupSchedulesApi.md +0 -315
  334. data/docs/RecoveryBackupSystemNameApi.md +0 -65
  335. data/docs/RecoveryBackupSystemNameArchiveApi.md +0 -136
  336. data/docs/RecoveryReconciliationJobApi.md +0 -106
  337. data/docs/RecoveryRestoreApi.md +0 -59
  338. data/docs/RecoveryRestoreJobApi.md +0 -153
  339. data/docs/ServicesApi.md +0 -256
  340. data/docs/ShutdownApi.md +0 -201
  341. data/docs/SystemStorageApi.md +0 -148
  342. data/docs/SystemTimeApi.md +0 -55
  343. data/docs/SystemTimeTimezoneApi.md +0 -105
  344. data/docs/SystemUptimeApi.md +0 -55
  345. data/docs/SystemVersionApi.md +0 -55
  346. data/docs/TechpreviewMonitoringSnmpApi.md +0 -435
  347. data/docs/TechpreviewServicesStatusApi.md +0 -59
  348. data/docs/TimesyncApi.md +0 -105
  349. data/docs/UpdateApi.md +0 -101
  350. data/docs/UpdatePendingApi.md +0 -372
  351. data/docs/UpdatePolicyApi.md +0 -105
  352. data/docs/UpdateStagedApi.md +0 -101
  353. data/docs/VapiStdDynamicID.md +0 -9
  354. data/docs/VapiStdErrorsAlreadyExists.md +0 -9
  355. data/docs/VapiStdErrorsAlreadyExistsError.md +0 -9
  356. data/docs/VapiStdErrorsAlreadyInDesiredState.md +0 -9
  357. data/docs/VapiStdErrorsAlreadyInDesiredStateError.md +0 -9
  358. data/docs/VapiStdErrorsError.md +0 -9
  359. data/docs/VapiStdErrorsErrorError.md +0 -9
  360. data/docs/VapiStdErrorsFeatureInUse.md +0 -9
  361. data/docs/VapiStdErrorsFeatureInUseError.md +0 -9
  362. data/docs/VapiStdErrorsInvalidArgument.md +0 -9
  363. data/docs/VapiStdErrorsInvalidArgumentError.md +0 -9
  364. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +0 -9
  365. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +0 -9
  366. data/docs/VapiStdErrorsNotFound.md +0 -9
  367. data/docs/VapiStdErrorsNotFoundError.md +0 -9
  368. data/docs/VapiStdErrorsResourceBusy.md +0 -9
  369. data/docs/VapiStdErrorsResourceBusyError.md +0 -9
  370. data/docs/VapiStdErrorsTimedOut.md +0 -9
  371. data/docs/VapiStdErrorsTimedOutError.md +0 -9
  372. data/docs/VapiStdErrorsUnableToAllocateResource.md +0 -9
  373. data/docs/VapiStdErrorsUnableToAllocateResourceError.md +0 -9
  374. data/docs/VapiStdErrorsUnauthenticated.md +0 -9
  375. data/docs/VapiStdErrorsUnauthenticatedError.md +0 -9
  376. data/docs/VapiStdErrorsUnauthorized.md +0 -9
  377. data/docs/VapiStdErrorsUnauthorizedError.md +0 -9
  378. data/docs/VapiStdLocalizableMessage.md +0 -10
  379. data/docs/VmonServiceApi.md +0 -308
  380. data/git_push.sh +0 -55
  381. data/spec/api/access_consolecli_api_spec.rb +0 -52
  382. data/spec/api/access_dcui_api_spec.rb +0 -52
  383. data/spec/api/access_shell_api_spec.rb +0 -52
  384. data/spec/api/access_ssh_api_spec.rb +0 -52
  385. data/spec/api/health_api_spec.rb +0 -42
  386. data/spec/api/health_applmgmt_api_spec.rb +0 -41
  387. data/spec/api/health_databasestorage_api_spec.rb +0 -41
  388. data/spec/api/health_load_api_spec.rb +0 -41
  389. data/spec/api/health_mem_api_spec.rb +0 -41
  390. data/spec/api/health_softwarepackages_api_spec.rb +0 -41
  391. data/spec/api/health_storage_api_spec.rb +0 -41
  392. data/spec/api/health_swap_api_spec.rb +0 -41
  393. data/spec/api/health_system_api_spec.rb +0 -51
  394. data/spec/api/local_accounts_api_spec.rb +0 -99
  395. data/spec/api/local_accounts_policy_api_spec.rb +0 -52
  396. data/spec/api/logging_forwarding_api_spec.rb +0 -63
  397. data/spec/api/monitoring_api_spec.rb +0 -67
  398. data/spec/api/networking_api_spec.rb +0 -62
  399. data/spec/api/networking_dns_domains_api_spec.rb +0 -63
  400. data/spec/api/networking_dns_hostname_api_spec.rb +0 -63
  401. data/spec/api/networking_dns_servers_api_spec.rb +0 -74
  402. data/spec/api/networking_firewall_inbound_api_spec.rb +0 -52
  403. data/spec/api/networking_interfaces_api_spec.rb +0 -52
  404. data/spec/api/networking_interfaces_ipv4_api_spec.rb +0 -54
  405. data/spec/api/networking_interfaces_ipv6_api_spec.rb +0 -54
  406. data/spec/api/networking_no_proxy_api_spec.rb +0 -52
  407. data/spec/api/networking_proxy_api_spec.rb +0 -87
  408. data/spec/api/ntp_api_spec.rb +0 -63
  409. data/spec/api/recovery_api_spec.rb +0 -41
  410. data/spec/api/recovery_backup_api_spec.rb +0 -42
  411. data/spec/api/recovery_backup_job_api_spec.rb +0 -74
  412. data/spec/api/recovery_backup_job_details_api_spec.rb +0 -42
  413. data/spec/api/recovery_backup_parts_api_spec.rb +0 -52
  414. data/spec/api/recovery_backup_schedules_api_spec.rb +0 -99
  415. data/spec/api/recovery_backup_system_name_api_spec.rb +0 -44
  416. data/spec/api/recovery_backup_system_name_archive_api_spec.rb +0 -64
  417. data/spec/api/recovery_reconciliation_job_api_spec.rb +0 -52
  418. data/spec/api/recovery_restore_api_spec.rb +0 -42
  419. data/spec/api/recovery_restore_job_api_spec.rb +0 -62
  420. data/spec/api/services_api_spec.rb +0 -85
  421. data/spec/api/shutdown_api_spec.rb +0 -73
  422. data/spec/api/system_storage_api_spec.rb +0 -61
  423. data/spec/api/system_time_api_spec.rb +0 -41
  424. data/spec/api/system_time_timezone_api_spec.rb +0 -52
  425. data/spec/api/system_uptime_api_spec.rb +0 -41
  426. data/spec/api/system_version_api_spec.rb +0 -41
  427. data/spec/api/techpreview_monitoring_snmp_api_spec.rb +0 -123
  428. data/spec/api/techpreview_services_status_api_spec.rb +0 -42
  429. data/spec/api/timesync_api_spec.rb +0 -52
  430. data/spec/api/update_api_spec.rb +0 -51
  431. data/spec/api/update_pending_api_spec.rb +0 -112
  432. data/spec/api/update_policy_api_spec.rb +0 -52
  433. data/spec/api/update_staged_api_spec.rb +0 -51
  434. data/spec/api/vmon_service_api_spec.rb +0 -97
  435. data/spec/models/appliance_access_consolecli_result_spec.rb +0 -37
  436. data/spec/models/appliance_access_consolecli_set_spec.rb +0 -37
  437. data/spec/models/appliance_access_dcui_result_spec.rb +0 -37
  438. data/spec/models/appliance_access_dcui_set_spec.rb +0 -37
  439. data/spec/models/appliance_access_shell_result_spec.rb +0 -37
  440. data/spec/models/appliance_access_shell_set_spec.rb +0 -37
  441. data/spec/models/appliance_access_shell_shell_config_spec.rb +0 -43
  442. data/spec/models/appliance_access_ssh_result_spec.rb +0 -37
  443. data/spec/models/appliance_access_ssh_set_spec.rb +0 -37
  444. data/spec/models/appliance_health_applmgmt_result_spec.rb +0 -37
  445. data/spec/models/appliance_health_databasestorage_health_level_spec.rb +0 -31
  446. data/spec/models/appliance_health_databasestorage_result_spec.rb +0 -37
  447. data/spec/models/appliance_health_load_health_level_spec.rb +0 -31
  448. data/spec/models/appliance_health_load_result_spec.rb +0 -37
  449. data/spec/models/appliance_health_mem_health_level_spec.rb +0 -31
  450. data/spec/models/appliance_health_mem_result_spec.rb +0 -37
  451. data/spec/models/appliance_health_messages_result_spec.rb +0 -37
  452. data/spec/models/appliance_health_softwarepackages_health_level_spec.rb +0 -31
  453. data/spec/models/appliance_health_softwarepackages_result_spec.rb +0 -37
  454. data/spec/models/appliance_health_storage_health_level_spec.rb +0 -31
  455. data/spec/models/appliance_health_storage_result_spec.rb +0 -37
  456. data/spec/models/appliance_health_swap_health_level_spec.rb +0 -31
  457. data/spec/models/appliance_health_swap_result_spec.rb +0 -37
  458. data/spec/models/appliance_health_system_health_level_spec.rb +0 -31
  459. data/spec/models/appliance_health_system_lastcheck_result_spec.rb +0 -37
  460. data/spec/models/appliance_health_system_result_spec.rb +0 -37
  461. data/spec/models/appliance_local_accounts_config_spec.rb +0 -109
  462. data/spec/models/appliance_local_accounts_create_spec.rb +0 -37
  463. data/spec/models/appliance_local_accounts_info_spec.rb +0 -97
  464. data/spec/models/appliance_local_accounts_list_result_spec.rb +0 -37
  465. data/spec/models/appliance_local_accounts_policy_info_spec.rb +0 -49
  466. data/spec/models/appliance_local_accounts_policy_result_spec.rb +0 -37
  467. data/spec/models/appliance_local_accounts_policy_set_spec.rb +0 -37
  468. data/spec/models/appliance_local_accounts_result_spec.rb +0 -37
  469. data/spec/models/appliance_local_accounts_set_spec.rb +0 -37
  470. data/spec/models/appliance_local_accounts_update_config_spec.rb +0 -109
  471. data/spec/models/appliance_local_accounts_update_spec.rb +0 -37
  472. data/spec/models/appliance_logging_forwarding_config_spec.rb +0 -49
  473. data/spec/models/appliance_logging_forwarding_connection_status_spec.rb +0 -49
  474. data/spec/models/appliance_logging_forwarding_connection_status_state_spec.rb +0 -31
  475. data/spec/models/appliance_logging_forwarding_protocol_spec.rb +0 -31
  476. data/spec/models/appliance_logging_forwarding_result_spec.rb +0 -37
  477. data/spec/models/appliance_logging_forwarding_set_spec.rb +0 -37
  478. data/spec/models/appliance_logging_forwarding_test_result_spec.rb +0 -37
  479. data/spec/models/appliance_logging_forwarding_test_spec.rb +0 -37
  480. data/spec/models/appliance_monitoring_function_type_spec.rb +0 -31
  481. data/spec/models/appliance_monitoring_interval_type_spec.rb +0 -31
  482. data/spec/models/appliance_monitoring_list_result_spec.rb +0 -37
  483. data/spec/models/appliance_monitoring_monitored_item_data_request_spec.rb +0 -61
  484. data/spec/models/appliance_monitoring_monitored_item_data_spec.rb +0 -67
  485. data/spec/models/appliance_monitoring_monitored_item_spec.rb +0 -67
  486. data/spec/models/appliance_monitoring_query_result_spec.rb +0 -37
  487. data/spec/models/appliance_monitoring_result_spec.rb +0 -37
  488. data/spec/models/appliance_networking_dns_domains_add_spec.rb +0 -37
  489. data/spec/models/appliance_networking_dns_domains_list_result_spec.rb +0 -37
  490. data/spec/models/appliance_networking_dns_domains_set_spec.rb +0 -37
  491. data/spec/models/appliance_networking_dns_hostname_message_spec.rb +0 -43
  492. data/spec/models/appliance_networking_dns_hostname_message_status_spec.rb +0 -31
  493. data/spec/models/appliance_networking_dns_hostname_result_spec.rb +0 -37
  494. data/spec/models/appliance_networking_dns_hostname_set_spec.rb +0 -37
  495. data/spec/models/appliance_networking_dns_hostname_test_result_spec.rb +0 -37
  496. data/spec/models/appliance_networking_dns_hostname_test_spec.rb +0 -37
  497. data/spec/models/appliance_networking_dns_hostname_test_status_info_spec.rb +0 -43
  498. data/spec/models/appliance_networking_dns_hostname_test_status_spec.rb +0 -31
  499. data/spec/models/appliance_networking_dns_info_dns_mode_spec.rb +0 -31
  500. data/spec/models/appliance_networking_dns_info_spec.rb +0 -49
  501. data/spec/models/appliance_networking_dns_servers_add_spec.rb +0 -37
  502. data/spec/models/appliance_networking_dns_servers_dns_server_config_spec.rb +0 -43
  503. data/spec/models/appliance_networking_dns_servers_dns_server_mode_spec.rb +0 -31
  504. data/spec/models/appliance_networking_dns_servers_message_spec.rb +0 -43
  505. data/spec/models/appliance_networking_dns_servers_message_status_spec.rb +0 -31
  506. data/spec/models/appliance_networking_dns_servers_result_spec.rb +0 -37
  507. data/spec/models/appliance_networking_dns_servers_set_spec.rb +0 -37
  508. data/spec/models/appliance_networking_dns_servers_test_result_spec.rb +0 -37
  509. data/spec/models/appliance_networking_dns_servers_test_spec.rb +0 -37
  510. data/spec/models/appliance_networking_dns_servers_test_status_info_spec.rb +0 -43
  511. data/spec/models/appliance_networking_dns_servers_test_status_spec.rb +0 -31
  512. data/spec/models/appliance_networking_firewall_inbound_policy_spec.rb +0 -31
  513. data/spec/models/appliance_networking_firewall_inbound_result_spec.rb +0 -37
  514. data/spec/models/appliance_networking_firewall_inbound_rule_spec.rb +0 -55
  515. data/spec/models/appliance_networking_firewall_inbound_set_spec.rb +0 -37
  516. data/spec/models/appliance_networking_info_interfaces_spec.rb +0 -43
  517. data/spec/models/appliance_networking_info_spec.rb +0 -43
  518. data/spec/models/appliance_networking_interfaces_interface_info_spec.rb +0 -61
  519. data/spec/models/appliance_networking_interfaces_interface_status_spec.rb +0 -31
  520. data/spec/models/appliance_networking_interfaces_ipv4_config_spec.rb +0 -55
  521. data/spec/models/appliance_networking_interfaces_ipv4_info_spec.rb +0 -61
  522. data/spec/models/appliance_networking_interfaces_ipv4_mode_spec.rb +0 -31
  523. data/spec/models/appliance_networking_interfaces_ipv4_result_spec.rb +0 -37
  524. data/spec/models/appliance_networking_interfaces_ipv4_set_spec.rb +0 -37
  525. data/spec/models/appliance_networking_interfaces_ipv6_address_info_spec.rb +0 -55
  526. data/spec/models/appliance_networking_interfaces_ipv6_address_spec.rb +0 -43
  527. data/spec/models/appliance_networking_interfaces_ipv6_config_spec.rb +0 -55
  528. data/spec/models/appliance_networking_interfaces_ipv6_info_spec.rb +0 -61
  529. data/spec/models/appliance_networking_interfaces_ipv6_origin_spec.rb +0 -31
  530. data/spec/models/appliance_networking_interfaces_ipv6_result_spec.rb +0 -37
  531. data/spec/models/appliance_networking_interfaces_ipv6_set_spec.rb +0 -37
  532. data/spec/models/appliance_networking_interfaces_ipv6_status_spec.rb +0 -31
  533. data/spec/models/appliance_networking_interfaces_list_result_spec.rb +0 -37
  534. data/spec/models/appliance_networking_interfaces_result_spec.rb +0 -37
  535. data/spec/models/appliance_networking_no_proxy_result_spec.rb +0 -37
  536. data/spec/models/appliance_networking_no_proxy_set_spec.rb +0 -37
  537. data/spec/models/appliance_networking_proxy_config_spec.rb +0 -61
  538. data/spec/models/appliance_networking_proxy_list_result_spec.rb +0 -37
  539. data/spec/models/appliance_networking_proxy_list_result_value_spec.rb +0 -43
  540. data/spec/models/appliance_networking_proxy_protocol_spec.rb +0 -31
  541. data/spec/models/appliance_networking_proxy_result_spec.rb +0 -37
  542. data/spec/models/appliance_networking_proxy_server_status_spec.rb +0 -31
  543. data/spec/models/appliance_networking_proxy_set_spec.rb +0 -37
  544. data/spec/models/appliance_networking_proxy_test_result_spec.rb +0 -43
  545. data/spec/models/appliance_networking_proxy_test_spec.rb +0 -43
  546. data/spec/models/appliance_networking_result_spec.rb +0 -37
  547. data/spec/models/appliance_networking_update_spec.rb +0 -37
  548. data/spec/models/appliance_networking_update_spec_spec.rb +0 -37
  549. data/spec/models/appliance_notification_spec.rb +0 -55
  550. data/spec/models/appliance_notifications_spec.rb +0 -49
  551. data/spec/models/appliance_ntp_localizable_message_spec.rb +0 -49
  552. data/spec/models/appliance_ntp_result_spec.rb +0 -37
  553. data/spec/models/appliance_ntp_server_status_spec.rb +0 -31
  554. data/spec/models/appliance_ntp_set_spec.rb +0 -37
  555. data/spec/models/appliance_ntp_test_result_spec.rb +0 -37
  556. data/spec/models/appliance_ntp_test_run_status_spec.rb +0 -49
  557. data/spec/models/appliance_ntp_test_spec.rb +0 -37
  558. data/spec/models/appliance_recovery_backup_backup_request_spec.rb +0 -73
  559. data/spec/models/appliance_recovery_backup_job_backup_job_status_spec.rb +0 -67
  560. data/spec/models/appliance_recovery_backup_job_backup_request_spec.rb +0 -73
  561. data/spec/models/appliance_recovery_backup_job_backup_restore_process_state_spec.rb +0 -31
  562. data/spec/models/appliance_recovery_backup_job_cancel_result_spec.rb +0 -37
  563. data/spec/models/appliance_recovery_backup_job_create_result_spec.rb +0 -37
  564. data/spec/models/appliance_recovery_backup_job_create_spec.rb +0 -37
  565. data/spec/models/appliance_recovery_backup_job_details_build_info_spec.rb +0 -49
  566. data/spec/models/appliance_recovery_backup_job_details_filter_spec_spec.rb +0 -37
  567. data/spec/models/appliance_recovery_backup_job_details_info_spec.rb +0 -145
  568. data/spec/models/appliance_recovery_backup_job_details_list_result_spec.rb +0 -37
  569. data/spec/models/appliance_recovery_backup_job_details_list_result_value_spec.rb +0 -43
  570. data/spec/models/appliance_recovery_backup_job_details_type_spec.rb +0 -31
  571. data/spec/models/appliance_recovery_backup_job_list_result_spec.rb +0 -37
  572. data/spec/models/appliance_recovery_backup_job_localizable_message_spec.rb +0 -49
  573. data/spec/models/appliance_recovery_backup_job_location_type_spec.rb +0 -31
  574. data/spec/models/appliance_recovery_backup_job_result_spec.rb +0 -37
  575. data/spec/models/appliance_recovery_backup_job_return_result_spec.rb +0 -43
  576. data/spec/models/appliance_recovery_backup_job_return_status_spec.rb +0 -31
  577. data/spec/models/appliance_recovery_backup_localizable_message_spec.rb +0 -49
  578. data/spec/models/appliance_recovery_backup_location_spec_spec.rb +0 -49
  579. data/spec/models/appliance_recovery_backup_location_type_spec.rb +0 -31
  580. data/spec/models/appliance_recovery_backup_parts_list_result_spec.rb +0 -37
  581. data/spec/models/appliance_recovery_backup_parts_localizable_message_spec.rb +0 -49
  582. data/spec/models/appliance_recovery_backup_parts_part_spec.rb +0 -61
  583. data/spec/models/appliance_recovery_backup_parts_result_spec.rb +0 -37
  584. data/spec/models/appliance_recovery_backup_return_result_spec.rb +0 -43
  585. data/spec/models/appliance_recovery_backup_return_status_spec.rb +0 -31
  586. data/spec/models/appliance_recovery_backup_schedules_create_spec.rb +0 -37
  587. data/spec/models/appliance_recovery_backup_schedules_create_spec_spec.rb +0 -79
  588. data/spec/models/appliance_recovery_backup_schedules_day_of_week_spec.rb +0 -31
  589. data/spec/models/appliance_recovery_backup_schedules_info_spec.rb +0 -67
  590. data/spec/models/appliance_recovery_backup_schedules_list_result_spec.rb +0 -37
  591. data/spec/models/appliance_recovery_backup_schedules_list_result_value_spec.rb +0 -43
  592. data/spec/models/appliance_recovery_backup_schedules_recurrence_info_spec.rb +0 -49
  593. data/spec/models/appliance_recovery_backup_schedules_result_spec.rb +0 -37
  594. data/spec/models/appliance_recovery_backup_schedules_retention_info_spec.rb +0 -37
  595. data/spec/models/appliance_recovery_backup_schedules_run_result_spec.rb +0 -37
  596. data/spec/models/appliance_recovery_backup_schedules_run_spec.rb +0 -37
  597. data/spec/models/appliance_recovery_backup_schedules_update_spec.rb +0 -37
  598. data/spec/models/appliance_recovery_backup_schedules_update_spec_spec.rb +0 -79
  599. data/spec/models/appliance_recovery_backup_system_name_archive_filter_spec_spec.rb +0 -55
  600. data/spec/models/appliance_recovery_backup_system_name_archive_info_spec.rb +0 -67
  601. data/spec/models/appliance_recovery_backup_system_name_archive_list_result_spec.rb +0 -37
  602. data/spec/models/appliance_recovery_backup_system_name_archive_result_spec.rb +0 -37
  603. data/spec/models/appliance_recovery_backup_system_name_archive_summary_spec.rb +0 -55
  604. data/spec/models/appliance_recovery_backup_system_name_list_result_spec.rb +0 -37
  605. data/spec/models/appliance_recovery_backup_validate_result_spec.rb +0 -37
  606. data/spec/models/appliance_recovery_backup_validate_spec.rb +0 -37
  607. data/spec/models/appliance_recovery_info_spec.rb +0 -37
  608. data/spec/models/appliance_recovery_reconciliation_job_create_result_spec.rb +0 -37
  609. data/spec/models/appliance_recovery_reconciliation_job_create_spec.rb +0 -37
  610. data/spec/models/appliance_recovery_reconciliation_job_create_spec_spec.rb +0 -49
  611. data/spec/models/appliance_recovery_reconciliation_job_info_spec.rb +0 -103
  612. data/spec/models/appliance_recovery_reconciliation_job_result_spec.rb +0 -37
  613. data/spec/models/appliance_recovery_reconciliation_job_status_spec.rb +0 -31
  614. data/spec/models/appliance_recovery_restore_job_backup_restore_process_state_spec.rb +0 -31
  615. data/spec/models/appliance_recovery_restore_job_cancel_result_spec.rb +0 -37
  616. data/spec/models/appliance_recovery_restore_job_create_result_spec.rb +0 -37
  617. data/spec/models/appliance_recovery_restore_job_create_spec.rb +0 -37
  618. data/spec/models/appliance_recovery_restore_job_localizable_message_spec.rb +0 -49
  619. data/spec/models/appliance_recovery_restore_job_location_type_spec.rb +0 -31
  620. data/spec/models/appliance_recovery_restore_job_restore_job_status_spec.rb +0 -49
  621. data/spec/models/appliance_recovery_restore_job_restore_request_spec.rb +0 -79
  622. data/spec/models/appliance_recovery_restore_job_result_spec.rb +0 -37
  623. data/spec/models/appliance_recovery_restore_job_return_result_spec.rb +0 -43
  624. data/spec/models/appliance_recovery_restore_job_return_status_spec.rb +0 -31
  625. data/spec/models/appliance_recovery_restore_localizable_message_spec.rb +0 -49
  626. data/spec/models/appliance_recovery_restore_location_type_spec.rb +0 -31
  627. data/spec/models/appliance_recovery_restore_metadata_spec.rb +0 -79
  628. data/spec/models/appliance_recovery_restore_restore_request_spec.rb +0 -73
  629. data/spec/models/appliance_recovery_restore_validate_result_spec.rb +0 -37
  630. data/spec/models/appliance_recovery_restore_validate_spec.rb +0 -37
  631. data/spec/models/appliance_recovery_result_spec.rb +0 -37
  632. data/spec/models/appliance_services_info_spec.rb +0 -43
  633. data/spec/models/appliance_services_list_result_spec.rb +0 -37
  634. data/spec/models/appliance_services_list_result_value_spec.rb +0 -43
  635. data/spec/models/appliance_services_result_spec.rb +0 -37
  636. data/spec/models/appliance_services_state_spec.rb +0 -31
  637. data/spec/models/appliance_shutdown_poweroff_spec.rb +0 -43
  638. data/spec/models/appliance_shutdown_reboot_spec.rb +0 -43
  639. data/spec/models/appliance_shutdown_result_spec.rb +0 -37
  640. data/spec/models/appliance_shutdown_shutdown_config_spec.rb +0 -49
  641. data/spec/models/appliance_subtask_info_spec.rb +0 -109
  642. data/spec/models/appliance_system_storage_list_result_spec.rb +0 -37
  643. data/spec/models/appliance_system_storage_resize_ex_result_spec.rb +0 -37
  644. data/spec/models/appliance_system_storage_resize_ex_result_value_spec.rb +0 -43
  645. data/spec/models/appliance_system_storage_storage_change_spec.rb +0 -43
  646. data/spec/models/appliance_system_storage_storage_mapping_spec.rb +0 -49
  647. data/spec/models/appliance_system_time_result_spec.rb +0 -37
  648. data/spec/models/appliance_system_time_system_time_struct_spec.rb +0 -55
  649. data/spec/models/appliance_system_time_timezone_result_spec.rb +0 -37
  650. data/spec/models/appliance_system_time_timezone_set_spec.rb +0 -37
  651. data/spec/models/appliance_system_uptime_result_spec.rb +0 -37
  652. data/spec/models/appliance_system_version_result_spec.rb +0 -37
  653. data/spec/models/appliance_system_version_version_struct_spec.rb +0 -73
  654. data/spec/models/appliance_task_info_spec.rb +0 -115
  655. data/spec/models/appliance_task_info_subtasks_spec.rb +0 -43
  656. data/spec/models/appliance_techpreview_monitoring_snmp_hash_result_spec.rb +0 -37
  657. data/spec/models/appliance_techpreview_monitoring_snmp_hash_spec.rb +0 -37
  658. data/spec/models/appliance_techpreview_monitoring_snmp_limits_result_spec.rb +0 -37
  659. data/spec/models/appliance_techpreview_monitoring_snmp_result_spec.rb +0 -37
  660. data/spec/models/appliance_techpreview_monitoring_snmp_set_spec.rb +0 -37
  661. data/spec/models/appliance_techpreview_monitoring_snmp_snm_pv1_trap_target_spec.rb +0 -49
  662. data/spec/models/appliance_techpreview_monitoring_snmp_snm_pv3_notfication_spec.rb +0 -31
  663. data/spec/models/appliance_techpreview_monitoring_snmp_snm_pv3_target_spec.rb +0 -61
  664. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_auth_proto_spec.rb +0 -31
  665. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_config_read_only_spec.rb +0 -121
  666. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_config_spec.rb +0 -109
  667. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_hash_config_spec.rb +0 -49
  668. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_hash_results_spec.rb +0 -43
  669. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_limits_spec.rb +0 -67
  670. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_priv_proto_spec.rb +0 -31
  671. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_remote_user_spec.rb +0 -73
  672. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_sec_level_spec.rb +0 -31
  673. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_stats_spec.rb +0 -193
  674. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_test_results_spec.rb +0 -43
  675. data/spec/models/appliance_techpreview_monitoring_snmp_snmp_user_spec.rb +0 -55
  676. data/spec/models/appliance_techpreview_monitoring_snmp_stats_result_spec.rb +0 -37
  677. data/spec/models/appliance_techpreview_monitoring_snmp_test_result_spec.rb +0 -37
  678. data/spec/models/appliance_techpreview_services_status_get_spec.rb +0 -43
  679. data/spec/models/appliance_techpreview_services_status_result_spec.rb +0 -37
  680. data/spec/models/appliance_techpreview_services_status_service_status_spec.rb +0 -31
  681. data/spec/models/appliance_timesync_result_spec.rb +0 -37
  682. data/spec/models/appliance_timesync_set_spec.rb +0 -37
  683. data/spec/models/appliance_timesync_time_sync_mode_spec.rb +0 -31
  684. data/spec/models/appliance_update_common_info_category_spec.rb +0 -31
  685. data/spec/models/appliance_update_common_info_priority_spec.rb +0 -31
  686. data/spec/models/appliance_update_common_info_severity_spec.rb +0 -31
  687. data/spec/models/appliance_update_info_spec.rb +0 -55
  688. data/spec/models/appliance_update_pending_info_spec.rb +0 -97
  689. data/spec/models/appliance_update_pending_install_spec.rb +0 -37
  690. data/spec/models/appliance_update_pending_install_user_data_spec.rb +0 -43
  691. data/spec/models/appliance_update_pending_list_result_spec.rb +0 -37
  692. data/spec/models/appliance_update_pending_precheck_result_spec.rb +0 -67
  693. data/spec/models/appliance_update_pending_question_input_type_spec.rb +0 -31
  694. data/spec/models/appliance_update_pending_question_spec.rb +0 -73
  695. data/spec/models/appliance_update_pending_result_spec.rb +0 -37
  696. data/spec/models/appliance_update_pending_source_type_spec.rb +0 -31
  697. data/spec/models/appliance_update_pending_stage_and_install_spec.rb +0 -37
  698. data/spec/models/appliance_update_pending_validate_result_spec.rb +0 -37
  699. data/spec/models/appliance_update_pending_validate_spec.rb +0 -37
  700. data/spec/models/appliance_update_policy_config_spec.rb +0 -61
  701. data/spec/models/appliance_update_policy_day_of_week_spec.rb +0 -31
  702. data/spec/models/appliance_update_policy_info_spec.rb +0 -73
  703. data/spec/models/appliance_update_policy_result_spec.rb +0 -37
  704. data/spec/models/appliance_update_policy_set_spec.rb +0 -37
  705. data/spec/models/appliance_update_policy_time_spec.rb +0 -49
  706. data/spec/models/appliance_update_result_spec.rb +0 -37
  707. data/spec/models/appliance_update_service_info_spec.rb +0 -43
  708. data/spec/models/appliance_update_staged_info_spec.rb +0 -85
  709. data/spec/models/appliance_update_staged_result_spec.rb +0 -37
  710. data/spec/models/appliance_update_state_spec.rb +0 -31
  711. data/spec/models/appliance_update_summary_spec.rb +0 -79
  712. data/spec/models/appliance_vmon_service_health_spec.rb +0 -31
  713. data/spec/models/appliance_vmon_service_info_spec.rb +0 -67
  714. data/spec/models/appliance_vmon_service_list_details_result_spec.rb +0 -37
  715. data/spec/models/appliance_vmon_service_list_details_result_value_spec.rb +0 -43
  716. data/spec/models/appliance_vmon_service_result_spec.rb +0 -37
  717. data/spec/models/appliance_vmon_service_startup_type_spec.rb +0 -31
  718. data/spec/models/appliance_vmon_service_state_spec.rb +0 -31
  719. data/spec/models/appliance_vmon_service_update_spec.rb +0 -37
  720. data/spec/models/appliance_vmon_service_update_spec_spec.rb +0 -37
  721. data/spec/models/cis_task_progress_spec.rb +0 -49
  722. data/spec/models/cis_task_status_spec.rb +0 -31
  723. data/spec/models/vapi_std_dynamic_id_spec.rb +0 -43
  724. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +0 -43
  725. data/spec/models/vapi_std_errors_already_exists_spec.rb +0 -43
  726. data/spec/models/vapi_std_errors_already_in_desired_state_error_spec.rb +0 -43
  727. data/spec/models/vapi_std_errors_already_in_desired_state_spec.rb +0 -43
  728. data/spec/models/vapi_std_errors_error_error_spec.rb +0 -43
  729. data/spec/models/vapi_std_errors_error_spec.rb +0 -43
  730. data/spec/models/vapi_std_errors_feature_in_use_error_spec.rb +0 -43
  731. data/spec/models/vapi_std_errors_feature_in_use_spec.rb +0 -43
  732. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +0 -43
  733. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +0 -43
  734. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +0 -43
  735. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +0 -43
  736. data/spec/models/vapi_std_errors_not_found_error_spec.rb +0 -43
  737. data/spec/models/vapi_std_errors_not_found_spec.rb +0 -43
  738. data/spec/models/vapi_std_errors_resource_busy_error_spec.rb +0 -43
  739. data/spec/models/vapi_std_errors_resource_busy_spec.rb +0 -43
  740. data/spec/models/vapi_std_errors_timed_out_error_spec.rb +0 -43
  741. data/spec/models/vapi_std_errors_timed_out_spec.rb +0 -43
  742. data/spec/models/vapi_std_errors_unable_to_allocate_resource_error_spec.rb +0 -43
  743. data/spec/models/vapi_std_errors_unable_to_allocate_resource_spec.rb +0 -43
  744. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +0 -43
  745. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +0 -43
  746. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +0 -43
  747. data/spec/models/vapi_std_errors_unauthorized_spec.rb +0 -43
  748. data/spec/models/vapi_std_localizable_message_spec.rb +0 -49
  749. data/spec/spec_helper.rb +0 -110
  750. data/vsphere-automation-appliance.gemspec +0 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 962869945e9d4a5804522636c7fde2f691687752bd0056a2bc611542d7ab1f81
4
- data.tar.gz: ae2a7c6a291e6531e1d88f04c98bc0363b77b06ad72657e3d6180c3ba766d69e
3
+ metadata.gz: faf7892b0e39d21399493e11547aabd8d6a7817c4c55dcddb00aa8933091a14a
4
+ data.tar.gz: 812841f77cad33dee782af14794484a3670237d56339a710b5a91a5974c2b262
5
5
  SHA512:
6
- metadata.gz: 7c9925fd5c30c66782c71694feb9cf98d9482d43491bfe02045413f6cc967f84890b0867ad5eca4e63a930f3d377554221fac391654fb6e2df864d114f894866
7
- data.tar.gz: dab87b860d19076ac8aeb085421c8c0d0c10f3ec8158e33925de78936f66d0ff0de336b9a94d53545578897c398fc00b9fb4d2546444bf9c882936b671d3da1d
6
+ metadata.gz: a65905bda60ccc35497f852882929066e4ad58439ab868e23360cd4c8f267e29f6dfe37cde94d85e938085a91d8f2c067ce2eb9388e97baa3071c24bec2057d1
7
+ data.tar.gz: 77b2cdb27f3b56bd804efa792dadf2a227318bf9643320af3624dd595430f05cdda97504a0d55fd2dd50bfc99e7130140ab108e53da8d6ab8c290eb6a9b88bc0
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License
2
+
3
+ Copyright 2017-2019 VMware Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,260 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'json'
4
+ require 'logger'
5
+ require 'net/http'
6
+ require 'openssl'
7
+ require 'uri'
8
+ require 'vsphere-automation-runtime/configuration'
9
+ require 'vsphere-automation-runtime/version'
10
+
11
+ module VSphereAutomation
12
+ # The client responsible for communicating with the API.
13
+ class ApiClient
14
+ # The Configuration object holding settings to be used in the API client.
15
+ attr_accessor :config
16
+
17
+ # Defines the headers to be used in HTTP requests of all API calls by
18
+ # default.
19
+ #
20
+ # @return [Hash]
21
+ attr_reader :default_headers
22
+
23
+ # Creates a new instance
24
+ #
25
+ # @param config [Configuration] configuration object with values to use
26
+ def initialize(config = Configuration.default)
27
+ @config = config
28
+ @http = create_http
29
+ @user_agent = default_user_agent
30
+ @default_headers = { 'Content-Type' => 'application/json',
31
+ 'User-Agent' => @user_agent }
32
+ end
33
+
34
+ # Retrieves an instance of the object in it's default state
35
+ #
36
+ # @return [ApiClient] an instance of the object in it's default state
37
+ def self.default
38
+ DEFAULT
39
+ end
40
+
41
+ # Build the collection of parameters
42
+ def build_collection_param(params, format)
43
+ params
44
+ end
45
+
46
+ # Make a request to an API endpoint with the given options
47
+ #
48
+ # @param http_method [Symbol] the HTTP method to be used
49
+ # @param path [String] the path request will be made to
50
+ # @param opts [Hash] any additional options needed
51
+ # @return [Array<(Object, Fixnum, Hash)>] the deserialized body, status
52
+ # code, and headers.
53
+ def call_api(http_method, path, opts = {})
54
+ query_params = opts.fetch(:query_params, {})
55
+ header_params = opts.fetch(:header_params, {})
56
+ form_params = opts.fetch(:form_params, {})
57
+ add_auth(query_params, header_params, opts.fetch(:auth_names, []))
58
+
59
+ uri = build_request_uri(path, query_params)
60
+ request = Net::HTTP.const_get(http_method.capitalize).new(uri)
61
+
62
+ add_form_params(request, form_params)
63
+ add_header_params(request, header_params)
64
+ request.body = opts[:body] if opts[:body]
65
+ request.content_type = request['Content-Type'] if request['Content-Type']
66
+
67
+ if @config.debugging
68
+ @config.logger.debug("Request Body:\n#{request.body}\n")
69
+ end
70
+
71
+ response = @http.request(request)
72
+ @cookie = cookie_from_response(response)
73
+ api_key_from_response(response)
74
+
75
+ return_type = opts.fetch(:return_type, {}).fetch(response.code, nil)
76
+ data = deserialize(response, return_type)
77
+ [data, Integer(response.code), response.each_header.to_h]
78
+ end
79
+
80
+ # Takes an object and returns the object as an HTTP body
81
+ #
82
+ # @param object [Object] object to transform
83
+ # @return [String] object as JSON string
84
+ def object_to_http_body(object)
85
+ return object.map { |o| object_to_http_body(o) } if object.is_a?(Array)
86
+
87
+ return object unless object.respond_to?(:to_hash)
88
+
89
+ object.to_hash.to_json
90
+ end
91
+
92
+ # Select an Accept header to use
93
+ #
94
+ # @param types [Array] a list of suggested types
95
+ # @return [String] the Accept header value
96
+ def select_header_accept(types)
97
+ return DEFAULT_MIME_TYPE unless types.is_a?(Array)
98
+
99
+ types.find { |t| t.include?('json') } || types.join(', ')
100
+ end
101
+
102
+ # Select an Content-Type header to use
103
+ #
104
+ # @param types [Array] a list of suggested types
105
+ # @return [String] the Content-Type header value
106
+ def select_header_content_type(types)
107
+ return DEFAULT_MIME_TYPE unless types.is_a?(Array)
108
+
109
+ types.find { |t| t.include?('json') } || types.first
110
+ end
111
+
112
+ private
113
+
114
+ def add_auth(query_params, header_params, auth_names)
115
+ auth_names.map do |name|
116
+ settings = @config.auth_settings.fetch(name, {})
117
+ case settings[:in]
118
+ when 'header'
119
+ header_params[settings[:key]] = settings[:value]
120
+ api_key_from_cookie(settings) unless settings[:value]
121
+ when 'query'
122
+ query_params[settings[:key]] = settings[:value]
123
+ end
124
+ end
125
+ end
126
+
127
+ def add_form_params(request, form_params)
128
+ request.set_form_data(form_params) unless form_params.empty?
129
+ end
130
+
131
+ def add_header_params(request, headers)
132
+ header_params = @default_headers.merge(headers)
133
+ header_params.merge!(Hash(@cookie))
134
+ header_params.map { |name, value| request[name] = value }
135
+ end
136
+
137
+ def add_query_params(uri, query_params)
138
+ uri.query = URI.encode_www_form(query_params)
139
+ end
140
+
141
+ def build_request_uri(path = '', query_params = {})
142
+ path = "/#{path}".gsub(%r{/+}, '/')
143
+ uri = URI.parse(@config.base_url + path)
144
+ add_query_params(uri, query_params)
145
+ forced_query_params = path.split('?')[1]
146
+ return URI.join(uri, '?' + forced_query_params) if forced_query_params
147
+
148
+ uri
149
+ end
150
+
151
+ def create_http
152
+ uri = build_request_uri
153
+ http = Net::HTTP.new(uri.host, uri.port)
154
+ http.use_ssl = @config.scheme == 'https'
155
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @config.verify_ssl_host
156
+ http.read_timeout = @config.timeout
157
+ http
158
+ end
159
+
160
+ # The default user agent
161
+ #
162
+ # @return [String] the default user agent
163
+ def default_user_agent
164
+ "SDK/#{VSphereAutomation::Runtime::VERSION} "\
165
+ "Ruby/#{RUBY_VERSION} "\
166
+ "(#{Gem::Platform.local.os}; "\
167
+ "#{Gem::Platform.local.version}; "\
168
+ "#{Gem::Platform.local.cpu})"
169
+ end
170
+
171
+ # Deserialize the response to the given return type
172
+ #
173
+ # @param [Response] response the HTTP response
174
+ # @param [String] return_type the type to return
175
+ # @return [Object] the response represented as the return type
176
+ def deserialize(response, return_type)
177
+ body = response.body
178
+
179
+ return nil if body.nil? || body.empty? || return_type.nil?
180
+
181
+ begin
182
+ data = JSON.parse("[#{body}]", symbolize_names: true).first
183
+ rescue JSON::ParserError => e
184
+ raise e unless %w[String Date DateTime].include?(return_type)
185
+
186
+ data = body
187
+ end
188
+
189
+ convert_to_type(data, return_type)
190
+ end
191
+
192
+ def convert_to_type(data, return_type)
193
+ return nil if data.nil?
194
+ case return_type
195
+ when 'String'
196
+ data.to_s
197
+ when 'Integer'
198
+ data.to_i
199
+ when 'Float'
200
+ data.to_f
201
+ when 'BOOLEAN'
202
+ data == true
203
+ when 'DateTime'
204
+ # parse date time (expecting ISO 8601 format)
205
+ DateTime.parse data
206
+ when 'Date'
207
+ # parse date time (expecting ISO 8601 format)
208
+ Date.parse data
209
+ when 'Object'
210
+ # generic object (usually a Hash), return directly
211
+ data
212
+ when /\AArray<(.+)>\z/
213
+ # e.g. Array<Pet>
214
+ sub_type = $1
215
+ data.map { |item| convert_to_type(item, sub_type) }
216
+ when /\AHash\<String, (.+)\>\z/
217
+ # e.g. Hash<String, Integer>
218
+ sub_type = $1
219
+ {}.tap do |hash|
220
+ data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
221
+ end
222
+ else
223
+ # models, e.g. Pet
224
+ VSphereAutomation.const_get(return_type).new.tap do |model|
225
+ model.build_from_hash data
226
+ end
227
+ end
228
+ end
229
+
230
+ # Create the Cookie header from a response
231
+ #
232
+ # @param response [Net::HTTPResponse] the response
233
+ # @return [Hash, nil] the Cookie header
234
+ def cookie_from_response(response)
235
+ { 'Cookie' => response['set-cookie'] } if response['set-cookie']
236
+ end
237
+
238
+ def api_key_from_response(response)
239
+ key = @config.auth_settings['api_key'][:key]
240
+ @config.api_key[key] = response[key] if response[key]
241
+ end
242
+
243
+ def api_key_from_cookie(auth)
244
+ return if @cookie.nil?
245
+
246
+ regex = /(?<key>#{auth[:key]})=(?<value>\w+)/
247
+ matches = Hash(@cookie)['Cookie'].match(regex)
248
+ key = @config.auth_settings['api_key'][:key]
249
+ @config.api_key[key] = matches[:value] if matches
250
+ end
251
+
252
+ # An instance of the object in it's default state
253
+ DEFAULT = new
254
+
255
+ # The default MIME type for Content-Type and Accept headers
256
+ DEFAULT_MIME_TYPE = 'application/json'
257
+
258
+ private_constant :DEFAULT, :DEFAULT_MIME_TYPE
259
+ end
260
+ end
@@ -0,0 +1,34 @@
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
+
6
+ # appliance - The vCenter Server Appliance is a preconfigured Linux-based virtual machine optimized for running vCenter Server and associated services.
7
+
8
+
9
+ module VSphereAutomation
10
+ class ApiError < StandardError
11
+ attr_reader :code, :response_headers, :response_body
12
+
13
+ # Usage examples:
14
+ # ApiError.new
15
+ # ApiError.new("message")
16
+ # ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
17
+ # ApiError.new(:code => 404, :message => "Not Found")
18
+ def initialize(arg = nil)
19
+ if arg.is_a? Hash
20
+ if arg.key?(:message) || arg.key?('message')
21
+ super(arg[:message] || arg['message'])
22
+ else
23
+ super arg
24
+ end
25
+
26
+ arg.each do |k, v|
27
+ instance_variable_set "@#{k}", v
28
+ end
29
+ else
30
+ super arg
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,212 @@
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
+
6
+ # appliance - The vCenter Server Appliance is a preconfigured Linux-based virtual machine optimized for running vCenter Server and associated services.
7
+
8
+
9
+ require 'uri'
10
+
11
+ module VSphereAutomation
12
+ class Configuration
13
+ # Defines url scheme
14
+ attr_accessor :scheme
15
+
16
+ # Defines url host
17
+ attr_accessor :host
18
+
19
+ # Defines url base path
20
+ attr_accessor :base_path
21
+
22
+ # Defines API keys used with API Key authentications.
23
+ #
24
+ # @return [Hash] key: parameter name, value: parameter value (API key)
25
+ #
26
+ # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
27
+ # config.api_key['api_key'] = 'xxx'
28
+ attr_accessor :api_key
29
+
30
+ # Defines API key prefixes used with API Key authentications.
31
+ #
32
+ # @return [Hash] key: parameter name, value: API key prefix
33
+ #
34
+ # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
35
+ # config.api_key_prefix['api_key'] = 'Token'
36
+ attr_accessor :api_key_prefix
37
+
38
+ # Defines the username used with HTTP basic authentication.
39
+ #
40
+ # @return [String]
41
+ attr_accessor :username
42
+
43
+ # Defines the password used with HTTP basic authentication.
44
+ #
45
+ # @return [String]
46
+ attr_accessor :password
47
+
48
+ # Defines the access token (Bearer) used with OAuth2.
49
+ attr_accessor :access_token
50
+
51
+ # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
52
+ # details will be logged with `logger.debug` (see the `logger` attribute).
53
+ # Default to false.
54
+ #
55
+ # @return [true, false]
56
+ attr_accessor :debugging
57
+
58
+ # Defines the logger used for debugging.
59
+ # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
60
+ #
61
+ # @return [#debug]
62
+ attr_accessor :logger
63
+
64
+ # Defines the temporary folder to store downloaded files
65
+ # (for API endpoints that have file response).
66
+ # Default to use `Tempfile`.
67
+ #
68
+ # @return [String]
69
+ attr_accessor :temp_folder_path
70
+
71
+ # The time limit for HTTP request in seconds.
72
+ # Default to 0 (never times out).
73
+ attr_accessor :timeout
74
+
75
+ # Set this to false to skip client side validation in the operation.
76
+ # Default to true.
77
+ # @return [true, false]
78
+ attr_accessor :client_side_validation
79
+
80
+ ### TLS/SSL setting
81
+ # Set this to false to skip verifying SSL certificate when calling API from https server.
82
+ # Default to true.
83
+ #
84
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
85
+ #
86
+ # @return [true, false]
87
+ attr_accessor :verify_ssl
88
+
89
+ ### TLS/SSL setting
90
+ # Set this to false to skip verifying SSL host name
91
+ # Default to true.
92
+ #
93
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
94
+ #
95
+ # @return [true, false]
96
+ attr_accessor :verify_ssl_host
97
+
98
+ ### TLS/SSL setting
99
+ # Set this to customize the certificate file to verify the peer.
100
+ #
101
+ # @return [String] the path to the certificate file
102
+ #
103
+ # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
104
+ # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
105
+ attr_accessor :ssl_ca_cert
106
+
107
+ ### TLS/SSL setting
108
+ # Client certificate file (for client certificate)
109
+ attr_accessor :cert_file
110
+
111
+ ### TLS/SSL setting
112
+ # Client private key file (for client certificate)
113
+ attr_accessor :key_file
114
+
115
+ # Set this to customize parameters encoding of array parameter with multi collectionFormat.
116
+ # Default to nil.
117
+ #
118
+ # @see The params_encoding option of Ethon. Related source code:
119
+ # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
120
+ attr_accessor :params_encoding
121
+
122
+ attr_accessor :inject_format
123
+
124
+ attr_accessor :force_ending_format
125
+
126
+ def initialize
127
+ @scheme = 'https'
128
+ @host = '&lt;vcenter&gt;'
129
+ @base_path = ''
130
+ @api_key = {}
131
+ @api_key_prefix = {}
132
+ @timeout = nil
133
+ @client_side_validation = true
134
+ @verify_ssl = true
135
+ @verify_ssl_host = true
136
+ @params_encoding = :multi
137
+ @cert_file = nil
138
+ @key_file = nil
139
+ @debugging = false
140
+ @inject_format = false
141
+ @force_ending_format = false
142
+ @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
143
+
144
+ yield(self) if block_given?
145
+ end
146
+
147
+ # The default Configuration object.
148
+ def self.default
149
+ @@default ||= Configuration.new
150
+ end
151
+
152
+ def configure
153
+ yield(self) if block_given?
154
+ end
155
+
156
+ def scheme=(scheme)
157
+ # remove :// from scheme
158
+ @scheme = scheme.sub(/:\/\//, '')
159
+ end
160
+
161
+ def host=(host)
162
+ # remove http(s):// and anything after a slash
163
+ @host = host.sub(/https?:\/\//, '').split('/').first
164
+ end
165
+
166
+ def base_path=(base_path)
167
+ # Add leading and trailing slashes to base_path
168
+ @base_path = "/#{base_path}".gsub(/\/+/, '/')
169
+ @base_path = '' if @base_path == '/'
170
+ end
171
+
172
+ def base_url
173
+ url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
174
+ URI.encode(url)
175
+ end
176
+
177
+ # Gets API key (with prefix if set).
178
+ # @param [String] param_name the parameter name of API key auth
179
+ def api_key_with_prefix(param_name)
180
+ if @api_key_prefix[param_name]
181
+ "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
182
+ else
183
+ @api_key[param_name]
184
+ end
185
+ end
186
+
187
+ # Gets Basic Auth token string
188
+ def basic_auth_token
189
+ 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
190
+ end
191
+
192
+ # Returns Auth Settings hash for api client.
193
+ def auth_settings
194
+ {
195
+ 'api_key' =>
196
+ {
197
+ type: 'api_key',
198
+ in: 'header',
199
+ key: 'vmware-api-session-id',
200
+ value: api_key_with_prefix('vmware-api-session-id')
201
+ },
202
+ 'basic_auth' =>
203
+ {
204
+ type: 'basic',
205
+ in: 'header',
206
+ key: 'Authorization',
207
+ value: basic_auth_token
208
+ },
209
+ }
210
+ end
211
+ end
212
+ end