files.com 1.1.835 → 1.1.837

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/_VERSION +1 -1
  4. data/doc/Files/APIConnectionError.html +1 -1
  5. data/doc/Files/APIError.html +1 -1
  6. data/doc/Files/AccountAlreadyExistsError.html +1 -1
  7. data/doc/Files/AccountLineItem.html +1 -1
  8. data/doc/Files/AccountOverdueError.html +1 -1
  9. data/doc/Files/Action.html +1 -1
  10. data/doc/Files/ActionLog.html +1 -1
  11. data/doc/Files/ActionNotificationExport.html +1 -1
  12. data/doc/Files/ActionNotificationExportResult.html +1 -1
  13. data/doc/Files/AdditionalAuthenticationRequiredError.html +1 -1
  14. data/doc/Files/AgentNode.html +1 -1
  15. data/doc/Files/AgentNodeConnection.html +1 -1
  16. data/doc/Files/AgentNodeInstance.html +1 -1
  17. data/doc/Files/AgentPushUpdate.html +1 -1
  18. data/doc/Files/AgentPushUpdateBlockedError.html +1 -1
  19. data/doc/Files/AgentUnavailableError.html +1 -1
  20. data/doc/Files/AgentUpgradeRequiredError.html +1 -1
  21. data/doc/Files/AiAssistantPersonality.html +1 -1
  22. data/doc/Files/AiTask.html +1 -1
  23. data/doc/Files/AiTaskCannotBeRunManuallyError.html +1 -1
  24. data/doc/Files/AlreadyCompletedError.html +1 -1
  25. data/doc/Files/Api.html +1 -1
  26. data/doc/Files/ApiClient/RequestLogContext.html +1 -1
  27. data/doc/Files/ApiClient/TransferSettings.html +1 -1
  28. data/doc/Files/ApiClient.html +1 -1
  29. data/doc/Files/ApiKey.html +1 -1
  30. data/doc/Files/ApiKeyIsDisabledError.html +1 -1
  31. data/doc/Files/ApiKeyIsPathRestrictedError.html +1 -1
  32. data/doc/Files/ApiKeyNotFoundError.html +1 -1
  33. data/doc/Files/ApiKeyOnlyForDesktopAppError.html +1 -1
  34. data/doc/Files/ApiKeyOnlyForFileOperationsError.html +1 -1
  35. data/doc/Files/ApiKeyOnlyForMobileAppError.html +1 -1
  36. data/doc/Files/ApiKeyOnlyForOfficeIntegrationError.html +1 -1
  37. data/doc/Files/ApiKeySessionsNotSupportedError.html +1 -1
  38. data/doc/Files/ApiRequestLog.html +1 -1
  39. data/doc/Files/App.html +1 -1
  40. data/doc/Files/As2IncomingMessage.html +1 -1
  41. data/doc/Files/As2OutgoingMessage.html +1 -1
  42. data/doc/Files/As2Partner.html +1 -1
  43. data/doc/Files/As2Station.html +1 -1
  44. data/doc/Files/AttachmentTooLargeError.html +1 -1
  45. data/doc/Files/AuthenticationError.html +1 -1
  46. data/doc/Files/AuthenticationRequiredError.html +1 -1
  47. data/doc/Files/Auto.html +1 -1
  48. data/doc/Files/Automation.html +1 -1
  49. data/doc/Files/AutomationAuthoringSchema.html +1 -1
  50. data/doc/Files/AutomationCannotBeRunManuallyError.html +1 -1
  51. data/doc/Files/AutomationExecutionNode.html +1 -1
  52. data/doc/Files/AutomationLog.html +1 -1
  53. data/doc/Files/AutomationRun.html +1 -1
  54. data/doc/Files/AutomationsUnavailableError.html +1 -1
  55. data/doc/Files/BadRequestError.html +1 -1
  56. data/doc/Files/BandwidthSnapshot.html +1 -1
  57. data/doc/Files/Behavior.html +1 -1
  58. data/doc/Files/BehaviorNotAllowedOnRemoteServerError.html +1 -1
  59. data/doc/Files/BillingInformationHiddenError.html +1 -1
  60. data/doc/Files/BillingPermissionRequiredError.html +1 -1
  61. data/doc/Files/BufferedUploadDisabledForThisDestinationError.html +1 -1
  62. data/doc/Files/Bundle.html +597 -425
  63. data/doc/Files/BundleAction.html +1 -1
  64. data/doc/Files/BundleDownload.html +1 -1
  65. data/doc/Files/BundleMaximumUsesReachedError.html +1 -1
  66. data/doc/Files/BundleNotification.html +1 -1
  67. data/doc/Files/BundleOnlyAllowsPreviewsError.html +1 -1
  68. data/doc/Files/BundleOperationRequiresSubfolderError.html +1 -1
  69. data/doc/Files/BundlePath.html +1 -1
  70. data/doc/Files/BundlePathNotFoundError.html +1 -1
  71. data/doc/Files/BundlePermissionRequiredError.html +1 -1
  72. data/doc/Files/BundleRecipient.html +1 -1
  73. data/doc/Files/BundleRegistration.html +1 -1
  74. data/doc/Files/BundleRegistrationCodeFailedError.html +1 -1
  75. data/doc/Files/BundleRegistrationNotFoundError.html +1 -1
  76. data/doc/Files/CannotAdministerHigherLevelUserError.html +1 -1
  77. data/doc/Files/CannotDownloadDirectoryError.html +1 -1
  78. data/doc/Files/CannotLoginWhileUsingKeyError.html +1 -1
  79. data/doc/Files/CantActForOtherUserError.html +1 -1
  80. data/doc/Files/CantMoveWithMultipleLocationsError.html +1 -1
  81. data/doc/Files/Certificate.html +8493 -0
  82. data/doc/Files/ChatMessage.html +1 -1
  83. data/doc/Files/ChatSession.html +1 -1
  84. data/doc/Files/ChildSiteManagementPolicy.html +1 -1
  85. data/doc/Files/Clickwrap.html +1 -1
  86. data/doc/Files/CodeNotFoundError.html +1 -1
  87. data/doc/Files/ConfigurationLockedPathError.html +1 -1
  88. data/doc/Files/ContactAdminForPasswordChangeHelpError.html +1 -1
  89. data/doc/Files/CouldNotCreateParentError.html +1 -1
  90. data/doc/Files/CustomDomain.html +1 -1
  91. data/doc/Files/DatetimeParseError.html +1 -1
  92. data/doc/Files/DesktopConfigurationProfile.html +1 -1
  93. data/doc/Files/DestinationExistsError.html +1 -1
  94. data/doc/Files/DestinationFolderLimitedError.html +1 -1
  95. data/doc/Files/DestinationParentConflictError.html +1 -1
  96. data/doc/Files/DestinationParentDoesNotExistError.html +1 -1
  97. data/doc/Files/DestinationSameError.html +1 -1
  98. data/doc/Files/DestinationSiteMismatchError.html +1 -1
  99. data/doc/Files/DirectConnectionInfo.html +1 -1
  100. data/doc/Files/DnsRecord.html +1 -1
  101. data/doc/Files/DoesNotSupportSortingError.html +1 -1
  102. data/doc/Files/DuplicateShareRecipientError.html +1 -1
  103. data/doc/Files/EmailIncomingMessage.html +1 -1
  104. data/doc/Files/EmailLog.html +1 -1
  105. data/doc/Files/Error.html +1 -1
  106. data/doc/Files/Errors.html +1 -1
  107. data/doc/Files/EventChannel.html +1 -1
  108. data/doc/Files/EventDeliveryAttempt.html +1 -1
  109. data/doc/Files/EventRecord.html +1 -1
  110. data/doc/Files/EventSubscription.html +1 -1
  111. data/doc/Files/EventTarget.html +1 -1
  112. data/doc/Files/ExavaultApiRequestLog.html +1 -1
  113. data/doc/Files/ExceededRuntimeLimitError.html +1 -1
  114. data/doc/Files/Expectation.html +1 -1
  115. data/doc/Files/ExpectationAlreadyHasOpenWindowError.html +1 -1
  116. data/doc/Files/ExpectationEvaluation.html +1 -1
  117. data/doc/Files/ExpectationIncident.html +1 -1
  118. data/doc/Files/ExpectationNotManualTriggerError.html +1 -1
  119. data/doc/Files/ExpiredPrivateKeyError.html +1 -1
  120. data/doc/Files/ExpiredPublicKeyError.html +1 -1
  121. data/doc/Files/ExportFailureError.html +1 -1
  122. data/doc/Files/ExportNotReadyError.html +1 -1
  123. data/doc/Files/ExternalEvent.html +1 -1
  124. data/doc/Files/FailedToChangePasswordError.html +1 -1
  125. data/doc/Files/File.html +1 -1
  126. data/doc/Files/FileAction.html +1 -1
  127. data/doc/Files/FileActionError.html +1 -1
  128. data/doc/Files/FileComment.html +1 -1
  129. data/doc/Files/FileCommentReaction.html +1 -1
  130. data/doc/Files/FileLockedError.html +1 -1
  131. data/doc/Files/FileMigration.html +1 -1
  132. data/doc/Files/FileMigrationLog.html +1 -1
  133. data/doc/Files/FileNotFoundError.html +1 -1
  134. data/doc/Files/FileNotUploadedError.html +1 -1
  135. data/doc/Files/FilePendingProcessingError.html +1 -1
  136. data/doc/Files/FileProcessingErrorError.html +1 -1
  137. data/doc/Files/FileTooBigToDecryptError.html +1 -1
  138. data/doc/Files/FileTooBigToEncryptError.html +1 -1
  139. data/doc/Files/FileUploadNotFoundError.html +1 -1
  140. data/doc/Files/FileUploadPart.html +1 -1
  141. data/doc/Files/FileUploadedToWrongRegionError.html +1 -1
  142. data/doc/Files/FileUtils.html +1 -1
  143. data/doc/Files/FilenameTooLongError.html +1 -1
  144. data/doc/Files/FilesAgentFailedAuthorizationError.html +1 -1
  145. data/doc/Files/FilesNativeStorageOverloadedError.html +1 -1
  146. data/doc/Files/Folder.html +1 -1
  147. data/doc/Files/FolderAdminOrBillingPermissionRequiredError.html +1 -1
  148. data/doc/Files/FolderAdminPermissionRequiredError.html +1 -1
  149. data/doc/Files/FolderLockedError.html +1 -1
  150. data/doc/Files/FolderMustNotBeAFileError.html +1 -1
  151. data/doc/Files/FolderNotEmptyError.html +1 -1
  152. data/doc/Files/FoldersNotAllowedError.html +1 -1
  153. data/doc/Files/FormField.html +1 -1
  154. data/doc/Files/FormFieldSet.html +1 -1
  155. data/doc/Files/FtpActionLog.html +1 -1
  156. data/doc/Files/FullPermissionRequiredError.html +1 -1
  157. data/doc/Files/GpgKey.html +1 -1
  158. data/doc/Files/Group.html +1 -1
  159. data/doc/Files/GroupNotFoundError.html +1 -1
  160. data/doc/Files/GroupUser.html +1 -1
  161. data/doc/Files/History.html +1 -1
  162. data/doc/Files/HistoryExport.html +1 -1
  163. data/doc/Files/HistoryExportResult.html +1 -1
  164. data/doc/Files/HistoryPermissionRequiredError.html +1 -1
  165. data/doc/Files/HistoryUnavailableError.html +1 -1
  166. data/doc/Files/HolidayCalendar.html +1 -1
  167. data/doc/Files/HolidayRegion.html +1 -1
  168. data/doc/Files/Image.html +1 -1
  169. data/doc/Files/InAppAiAssistantUnavailableError.html +1 -1
  170. data/doc/Files/InboundS3Log.html +1 -1
  171. data/doc/Files/InboxNotFoundError.html +1 -1
  172. data/doc/Files/InboxRecipient.html +1 -1
  173. data/doc/Files/InboxRegistration.html +1 -1
  174. data/doc/Files/InboxRegistrationCodeFailedError.html +1 -1
  175. data/doc/Files/InboxUpload.html +1 -1
  176. data/doc/Files/InsufficientPermissionForParamsError.html +1 -1
  177. data/doc/Files/InsufficientPermissionForSiteError.html +1 -1
  178. data/doc/Files/IntegrationCentricProfile.html +1 -1
  179. data/doc/Files/InternalGeneralErrorError.html +1 -1
  180. data/doc/Files/InvalidBodyError.html +1 -1
  181. data/doc/Files/InvalidBundleCodeError.html +1 -1
  182. data/doc/Files/InvalidCredentialsError.html +1 -1
  183. data/doc/Files/InvalidCursorError.html +1 -1
  184. data/doc/Files/InvalidCursorTypeForSortError.html +1 -1
  185. data/doc/Files/InvalidEtagsError.html +1 -1
  186. data/doc/Files/InvalidFileTypeError.html +1 -1
  187. data/doc/Files/InvalidFilenameError.html +1 -1
  188. data/doc/Files/InvalidFilterAliasCombinationError.html +1 -1
  189. data/doc/Files/InvalidFilterFieldError.html +1 -1
  190. data/doc/Files/InvalidFilterParamError.html +1 -1
  191. data/doc/Files/InvalidFilterParamFormatError.html +1 -1
  192. data/doc/Files/InvalidFilterParamValueError.html +1 -1
  193. data/doc/Files/InvalidInputEncodingError.html +1 -1
  194. data/doc/Files/InvalidInterfaceError.html +1 -1
  195. data/doc/Files/InvalidOauthError.html +1 -1
  196. data/doc/Files/InvalidOauthProviderError.html +1 -1
  197. data/doc/Files/InvalidOrExpiredCodeError.html +1 -1
  198. data/doc/Files/InvalidParameterError.html +1 -1
  199. data/doc/Files/InvalidPathError.html +1 -1
  200. data/doc/Files/InvalidPriorityColorError.html +1 -1
  201. data/doc/Files/InvalidRangeError.html +1 -1
  202. data/doc/Files/InvalidReturnToUrlError.html +1 -1
  203. data/doc/Files/InvalidSearchQueryError.html +1 -1
  204. data/doc/Files/InvalidSessionError.html +1 -1
  205. data/doc/Files/InvalidSiteError.html +1 -1
  206. data/doc/Files/InvalidSortFieldError.html +1 -1
  207. data/doc/Files/InvalidSortFilterCombinationError.html +1 -1
  208. data/doc/Files/InvalidUploadOffsetError.html +1 -1
  209. data/doc/Files/InvalidUploadPartGapError.html +1 -1
  210. data/doc/Files/InvalidUploadPartSizeError.html +1 -1
  211. data/doc/Files/InvalidUsernameOrPasswordError.html +1 -1
  212. data/doc/Files/InvalidWorkspaceIdHeaderError.html +1 -1
  213. data/doc/Files/InvalidZipFileError.html +1 -1
  214. data/doc/Files/Invoice.html +1 -1
  215. data/doc/Files/InvoiceLineItem.html +1 -1
  216. data/doc/Files/IpAddress.html +1 -1
  217. data/doc/Files/KeyLifecycleRule.html +1 -1
  218. data/doc/Files/List.html +1 -1
  219. data/doc/Files/Lock.html +1 -1
  220. data/doc/Files/LockOperationBusyError.html +1 -1
  221. data/doc/Files/LockedOutError.html +1 -1
  222. data/doc/Files/LockoutRegionMismatchError.html +1 -1
  223. data/doc/Files/MetadataCategory.html +1 -1
  224. data/doc/Files/MetadataNotSupportedOnRemotesError.html +1 -1
  225. data/doc/Files/MethodNotAllowedError.html +1 -1
  226. data/doc/Files/MigrationInProgressError.html +1 -1
  227. data/doc/Files/MissingParameterError.html +1 -1
  228. data/doc/Files/ModelSaveErrorError.html +1 -1
  229. data/doc/Files/MoverAccessDeniedError.html +1 -1
  230. data/doc/Files/MoverPackageRequiredError.html +1 -1
  231. data/doc/Files/MultipleProcessingErrorsError.html +1 -1
  232. data/doc/Files/MultipleSortParamsNotAllowedError.html +1 -1
  233. data/doc/Files/MustAuthenticateWithApiKeyError.html +1 -1
  234. data/doc/Files/NeedAdminPermissionForInboxError.html +1 -1
  235. data/doc/Files/NestedNotFoundError.html +1 -1
  236. data/doc/Files/NoAccountForSiteError.html +1 -1
  237. data/doc/Files/NoValidInputParamsError.html +1 -1
  238. data/doc/Files/NonAdminsMustQueryByFolderOrPathError.html +1 -1
  239. data/doc/Files/NotAllowedToCreateBundleError.html +1 -1
  240. data/doc/Files/NotAuthenticatedError.html +1 -1
  241. data/doc/Files/NotAuthorizedError.html +1 -1
  242. data/doc/Files/NotEnqueuableSyncError.html +1 -1
  243. data/doc/Files/NotFoundError.html +1 -1
  244. data/doc/Files/NotImplementedError.html +1 -1
  245. data/doc/Files/Notification.html +1 -1
  246. data/doc/Files/OffsetUploadNotAllowedWithMalwareScanningError.html +1 -1
  247. data/doc/Files/OneTimePasswordIncorrectError.html +1 -1
  248. data/doc/Files/OutboundConnectionLog.html +1 -1
  249. data/doc/Files/PartNumberTooLargeError.html +1 -1
  250. data/doc/Files/Partner.html +1 -1
  251. data/doc/Files/PartnerChannel.html +1 -1
  252. data/doc/Files/PartnerChannelTemplate.html +1 -1
  253. data/doc/Files/PartnerConnection.html +1 -1
  254. data/doc/Files/PartnerSite.html +1 -1
  255. data/doc/Files/PartnerSiteRequest.html +1 -1
  256. data/doc/Files/PasswordChangeNotRequiredError.html +1 -1
  257. data/doc/Files/PasswordChangeRequiredError.html +1 -1
  258. data/doc/Files/PathCannotHaveTrailingWhitespaceError.html +1 -1
  259. data/doc/Files/PathTooLongError.html +1 -1
  260. data/doc/Files/PathUtil.html +1 -1
  261. data/doc/Files/Payment.html +1 -1
  262. data/doc/Files/PaymentLineItem.html +1 -1
  263. data/doc/Files/PaymentMethodErrorError.html +1 -1
  264. data/doc/Files/PendingWorkEvent.html +1 -1
  265. data/doc/Files/Permission.html +1 -1
  266. data/doc/Files/PlanNotFoundError.html +1 -1
  267. data/doc/Files/Preview.html +1 -1
  268. data/doc/Files/PreviewOnlyPermissionCannotDownloadError.html +1 -1
  269. data/doc/Files/ProcessingFailureError.html +1 -1
  270. data/doc/Files/PublicHostingRequestLog.html +1 -1
  271. data/doc/Files/PublicIpAddress.html +1 -1
  272. data/doc/Files/PublicKey.html +1 -1
  273. data/doc/Files/RateLimitedError.html +1 -1
  274. data/doc/Files/ReadOnlySessionError.html +1 -1
  275. data/doc/Files/ReadPermissionRequiredError.html +1 -1
  276. data/doc/Files/ReauthenticationFailedError.html +1 -1
  277. data/doc/Files/ReauthenticationFailedFinalError.html +1 -1
  278. data/doc/Files/ReauthenticationNeededActionError.html +1 -1
  279. data/doc/Files/ReauthenticationNeededFieldsError.html +1 -1
  280. data/doc/Files/ReauthenticationRateLimitedError.html +1 -1
  281. data/doc/Files/RecaptchaFailedError.html +1 -1
  282. data/doc/Files/RecipientAlreadySharedError.html +1 -1
  283. data/doc/Files/RemoteBandwidthSnapshot.html +1 -1
  284. data/doc/Files/RemoteDesktopDebugLoggingDisabledError.html +1 -1
  285. data/doc/Files/RemoteEntryReadOnlyError.html +1 -1
  286. data/doc/Files/RemoteMountBackend.html +1 -1
  287. data/doc/Files/RemoteServer.html +1 -1
  288. data/doc/Files/RemoteServerConfigurationFile.html +1 -1
  289. data/doc/Files/RemoteServerCredential.html +1 -1
  290. data/doc/Files/RemoteServerErrorError.html +1 -1
  291. data/doc/Files/Request.html +1 -1
  292. data/doc/Files/RequestBodyTooLargeError.html +1 -1
  293. data/doc/Files/RequestParamsContainInvalidCharacterError.html +1 -1
  294. data/doc/Files/RequestParamsInvalidError.html +1 -1
  295. data/doc/Files/RequestParamsRequiredError.html +1 -1
  296. data/doc/Files/ResourceBelongsToParentSiteError.html +1 -1
  297. data/doc/Files/ResourceLockedError.html +1 -1
  298. data/doc/Files/Response.html +1 -1
  299. data/doc/Files/Restore.html +1 -1
  300. data/doc/Files/RootFolderBehaviorSiteAdminRequiredError.html +1 -1
  301. data/doc/Files/RootFolderBehaviorSkipSiteAdminRequiredError.html +1 -1
  302. data/doc/Files/Schedule.html +1 -1
  303. data/doc/Files/ScheduledExport.html +1 -1
  304. data/doc/Files/ScimLog.html +1 -1
  305. data/doc/Files/SearchAllOnChildPathError.html +1 -1
  306. data/doc/Files/SearchQueryTooShortError.html +1 -1
  307. data/doc/Files/SearchTimedOutError.html +1 -1
  308. data/doc/Files/SearchUnavailableError.html +1 -1
  309. data/doc/Files/Secret.html +1 -1
  310. data/doc/Files/SelfManagedRequiredError.html +1 -1
  311. data/doc/Files/ServiceUnavailableError.html +1 -1
  312. data/doc/Files/Session.html +1 -1
  313. data/doc/Files/SettingsChange.html +1 -1
  314. data/doc/Files/SftpActionLog.html +1 -1
  315. data/doc/Files/SftpHostKey.html +1 -1
  316. data/doc/Files/ShareGroup.html +1 -1
  317. data/doc/Files/ShareGroupMember.html +1 -1
  318. data/doc/Files/SiemHttpDestination.html +1 -1
  319. data/doc/Files/SiemHttpDestinationEvent.html +1 -1
  320. data/doc/Files/Site.html +880 -700
  321. data/doc/Files/SiteAdminOrPartnerAdminPermissionRequiredError.html +1 -1
  322. data/doc/Files/SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError.html +1 -1
  323. data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError.html +1 -1
  324. data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError.html +1 -1
  325. data/doc/Files/SiteAdminOrWorkspaceAdminPermissionRequiredError.html +1 -1
  326. data/doc/Files/SiteAdminRequiredError.html +1 -1
  327. data/doc/Files/SiteConfigurationError.html +1 -1
  328. data/doc/Files/SiteDisabledError.html +1 -1
  329. data/doc/Files/SiteFilesAreImmutableError.html +1 -1
  330. data/doc/Files/SiteNotFoundError.html +1 -1
  331. data/doc/Files/SiteSubdomainRedirect.html +1 -1
  332. data/doc/Files/SiteWasRemovedError.html +1 -1
  333. data/doc/Files/SizableIO.html +1 -1
  334. data/doc/Files/Snapshot.html +1 -1
  335. data/doc/Files/SsoEvent.html +1 -1
  336. data/doc/Files/SsoStrategy.html +1 -1
  337. data/doc/Files/Status.html +1 -1
  338. data/doc/Files/Style.html +1 -1
  339. data/doc/Files/SubfolderLockedError.html +1 -1
  340. data/doc/Files/Sync.html +1 -1
  341. data/doc/Files/SyncInProgressError.html +1 -1
  342. data/doc/Files/SyncLog.html +1 -1
  343. data/doc/Files/SyncRun.html +1 -1
  344. data/doc/Files/SyncRunLiveTransfer.html +1 -1
  345. data/doc/Files/SystemProfiler.html +1 -1
  346. data/doc/Files/TooManyConcurrentLoginsError.html +1 -1
  347. data/doc/Files/TooManyConcurrentRequestsError.html +1 -1
  348. data/doc/Files/TooManyLoginAttemptsError.html +1 -1
  349. data/doc/Files/TooManyRequestsError.html +1 -1
  350. data/doc/Files/TooManySharesError.html +1 -1
  351. data/doc/Files/Transfer/Attempts.html +1 -1
  352. data/doc/Files/Transfer/BufferLimitError.html +1 -1
  353. data/doc/Files/Transfer/ByteBudget/Reservation.html +1 -1
  354. data/doc/Files/Transfer/ByteBudget.html +1 -1
  355. data/doc/Files/Transfer/CancelledError.html +1 -1
  356. data/doc/Files/Transfer/Checkpoint.html +1 -1
  357. data/doc/Files/Transfer/CheckpointError.html +1 -1
  358. data/doc/Files/Transfer/ClientTransport/ClientResponse.html +1 -1
  359. data/doc/Files/Transfer/ClientTransport/Reader.html +1 -1
  360. data/doc/Files/Transfer/ClientTransport.html +1 -1
  361. data/doc/Files/Transfer/Clock.html +1 -1
  362. data/doc/Files/Transfer/Control.html +1 -1
  363. data/doc/Files/Transfer/Controller/Attempt.html +1 -1
  364. data/doc/Files/Transfer/Controller.html +1 -1
  365. data/doc/Files/Transfer/Coordinator/Timing.html +1 -1
  366. data/doc/Files/Transfer/Coordinator.html +1 -1
  367. data/doc/Files/Transfer/DownloadCoordinator/FileSink.html +1 -1
  368. data/doc/Files/Transfer/DownloadCoordinator/IoSink.html +1 -1
  369. data/doc/Files/Transfer/DownloadCoordinator/Piece.html +1 -1
  370. data/doc/Files/Transfer/DownloadCoordinator.html +1 -1
  371. data/doc/Files/Transfer/DownloadDate.html +1 -1
  372. data/doc/Files/Transfer/FileSlots.html +1 -1
  373. data/doc/Files/Transfer/FrontendResponseError.html +1 -1
  374. data/doc/Files/Transfer/Holds.html +1 -1
  375. data/doc/Files/Transfer/HttpTransport.html +1 -1
  376. data/doc/Files/Transfer/Job.html +1 -1
  377. data/doc/Files/Transfer/Options.html +1 -1
  378. data/doc/Files/Transfer/PausedError.html +1 -1
  379. data/doc/Files/Transfer/Policy.html +1 -1
  380. data/doc/Files/Transfer/RequestPermits.html +1 -1
  381. data/doc/Files/Transfer/SourceChangedError.html +1 -1
  382. data/doc/Files/Transfer/StorageResponse.html +1 -1
  383. data/doc/Files/Transfer/StorageRetry.html +1 -1
  384. data/doc/Files/Transfer/UploadCoordinator/Grant.html +1 -1
  385. data/doc/Files/Transfer/UploadCoordinator/Part.html +1 -1
  386. data/doc/Files/Transfer/UploadCoordinator/Region.html +1 -1
  387. data/doc/Files/Transfer/UploadCoordinator/Segments.html +1 -1
  388. data/doc/Files/Transfer/UploadCoordinator/Source.html +1 -1
  389. data/doc/Files/Transfer/UploadCoordinator/StreamSource.html +1 -1
  390. data/doc/Files/Transfer/UploadCoordinator.html +1 -1
  391. data/doc/Files/Transfer/UploadPlan.html +1 -1
  392. data/doc/Files/Transfer/UrlExpired.html +1 -1
  393. data/doc/Files/Transfer/VersionChangedError.html +1 -1
  394. data/doc/Files/Transfer.html +1 -1
  395. data/doc/Files/TrialExpiredError.html +1 -1
  396. data/doc/Files/TrialLockedError.html +1 -1
  397. data/doc/Files/TwoFactorAuthenticationCodeAlreadySentError.html +1 -1
  398. data/doc/Files/TwoFactorAuthenticationCountryBlacklistedError.html +1 -1
  399. data/doc/Files/TwoFactorAuthenticationErrorError.html +1 -1
  400. data/doc/Files/TwoFactorAuthenticationGeneralErrorError.html +1 -1
  401. data/doc/Files/TwoFactorAuthenticationMethodUnsupportedErrorError.html +1 -1
  402. data/doc/Files/TwoFactorAuthenticationRequiredError.html +1 -1
  403. data/doc/Files/TwoFactorAuthenticationSetupExpiredError.html +1 -1
  404. data/doc/Files/TwoFactorAuthenticationUnsubscribedRecipientError.html +1 -1
  405. data/doc/Files/URI.html +1 -1
  406. data/doc/Files/UnrecognizedSortIndexError.html +1 -1
  407. data/doc/Files/UnsupportedHttpResponseFormatError.html +1 -1
  408. data/doc/Files/UnsupportedMediaTypeError.html +1 -1
  409. data/doc/Files/UpdatesNotAllowedForRemotesError.html +1 -1
  410. data/doc/Files/UploadFinalization.html +1 -1
  411. data/doc/Files/UploadsUnavailableError.html +1 -1
  412. data/doc/Files/UsageByTopLevelDir.html +1 -1
  413. data/doc/Files/UsageDailySnapshot.html +1 -1
  414. data/doc/Files/UsageSnapshot.html +1 -1
  415. data/doc/Files/User.html +1 -1
  416. data/doc/Files/UserAdditionalEmailRecipient.html +1 -1
  417. data/doc/Files/UserCipherUse.html +1 -1
  418. data/doc/Files/UserIdInvalidError.html +1 -1
  419. data/doc/Files/UserIdOnUserEndpointError.html +1 -1
  420. data/doc/Files/UserIdWithoutSiteAdminError.html +1 -1
  421. data/doc/Files/UserLifecycleRule.html +1 -1
  422. data/doc/Files/UserNotFoundError.html +1 -1
  423. data/doc/Files/UserRequest.html +1 -1
  424. data/doc/Files/UserRequestsEnabledRequiredError.html +1 -1
  425. data/doc/Files/UserRequiredError.html +1 -1
  426. data/doc/Files/UserSecurityEvent.html +1 -1
  427. data/doc/Files/UserSftpClientUse.html +1 -1
  428. data/doc/Files/Util/LogSettings.html +1 -1
  429. data/doc/Files/Util.html +1 -1
  430. data/doc/Files/WebDavActionLog.html +1 -1
  431. data/doc/Files/WebhookTest.html +1 -1
  432. data/doc/Files/Workspace.html +1 -1
  433. data/doc/Files/WriteAndBundlePermissionRequiredError.html +1 -1
  434. data/doc/Files/WritePermissionRequiredError.html +1 -1
  435. data/doc/Files/ZipListEntry.html +1 -1
  436. data/doc/Files.html +78 -78
  437. data/doc/_index.html +8 -1
  438. data/doc/class_list.html +1 -1
  439. data/doc/file.README.html +1 -1
  440. data/doc/index.html +1 -1
  441. data/doc/method_list.html +2787 -2147
  442. data/doc/top-level-namespace.html +1 -1
  443. data/docs/bundle.md +6 -4
  444. data/docs/certificate.md +279 -0
  445. data/docs/site.md +8 -0
  446. data/lib/files.com/models/bundle.rb +17 -4
  447. data/lib/files.com/models/certificate.rb +713 -0
  448. data/lib/files.com/models/site.rb +16 -0
  449. data/lib/files.com.rb +1 -0
  450. metadata +4 -1
@@ -0,0 +1,713 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ # Files::Certificate is the Ruby SDK's representation of Files.com API Certificate objects.
5
+ # Each instance keeps its API field values in +attributes+.
6
+ class Certificate
7
+ # @return [Hash] request configuration retained for later operations on this record.
8
+ attr_reader :options
9
+ # @return [Hash] API field values keyed by Symbol.
10
+ attr_reader :attributes
11
+
12
+ # Builds a local record without sending an API request.
13
+ # @param attributes [Hash] API field values keyed by Symbol.
14
+ # @param options [Hash] request configuration; see {Files::Api.send_request}.
15
+ def initialize(attributes = {}, options = {})
16
+ @attributes = attributes || {}
17
+ @options = options || {}
18
+ end
19
+
20
+ # Certificate ID
21
+ # @return [Integer, nil] the field value, or nil when absent.
22
+ def id
23
+ @attributes[:id]
24
+ end
25
+
26
+ # Changes the local field value. Call {#save} to persist changes.
27
+ # @param value [Integer, nil] the new field value.
28
+ # @return [Integer, nil] the assigned value.
29
+ def id=(value)
30
+ @attributes[:id] = value
31
+ end
32
+
33
+ # Descriptive name of certificate
34
+ # @return [String, nil] the field value, or nil when absent.
35
+ def name
36
+ @attributes[:name]
37
+ end
38
+
39
+ # Changes the local field value. Call {#save} to persist changes.
40
+ # @param value [String, nil] the new field value.
41
+ # @return [String, nil] the assigned value.
42
+ def name=(value)
43
+ @attributes[:name] = value
44
+ end
45
+
46
+ # Custom Domain that owns this certificate, including while the certificate is inactive.
47
+ # @return [Integer, nil] the field value, or nil when absent.
48
+ def custom_domain_id
49
+ @attributes[:custom_domain_id]
50
+ end
51
+
52
+ # Changes the local field value. Call {#save} to persist changes.
53
+ # @param value [Integer, nil] the new field value.
54
+ # @return [Integer, nil] the assigned value.
55
+ def custom_domain_id=(value)
56
+ @attributes[:custom_domain_id] = value
57
+ end
58
+
59
+ # Full text of SSL certificate
60
+ # @return [String, nil] the field value, or nil when absent.
61
+ def certificate
62
+ @attributes[:certificate]
63
+ end
64
+
65
+ # Changes the local field value. Call {#save} to persist changes.
66
+ # @param value [String, nil] the new field value.
67
+ # @return [String, nil] the assigned value.
68
+ def certificate=(value)
69
+ @attributes[:certificate] = value
70
+ end
71
+
72
+ # Certificate created at
73
+ # @return [String, nil] the field value, or nil when absent.
74
+ def created_at
75
+ @attributes[:created_at]
76
+ end
77
+
78
+ # Certificate status. (One of `Request Generated`, `New`, `Active`, `Active/Expired`, `Expired`, or `Available`)
79
+ # @return [String, nil] the field value, or nil when absent.
80
+ def display_status
81
+ @attributes[:display_status]
82
+ end
83
+
84
+ # Changes the local field value. Call {#save} to persist changes.
85
+ # @param value [String, nil] the new field value.
86
+ # @return [String, nil] the assigned value.
87
+ def display_status=(value)
88
+ @attributes[:display_status] = value
89
+ end
90
+
91
+ # Domains on this certificate other than files.com domains
92
+ # @return [Array<String>, nil] the field value, or nil when absent.
93
+ def domains
94
+ @attributes[:domains]
95
+ end
96
+
97
+ # Changes the local field value. Call {#save} to persist changes.
98
+ # @param value [Array<String>, nil] the new field value.
99
+ # @return [Array<String>, nil] the assigned value.
100
+ def domains=(value)
101
+ @attributes[:domains] = value
102
+ end
103
+
104
+ # Certificate expiration date/time
105
+ # @return [String, nil] the field value, or nil when absent.
106
+ def expires_at
107
+ @attributes[:expires_at]
108
+ end
109
+
110
+ # Changes the local field value. Call {#save} to persist changes.
111
+ # @param value [String, nil] the new field value.
112
+ # @return [String, nil] the assigned value.
113
+ def expires_at=(value)
114
+ @attributes[:expires_at] = value
115
+ end
116
+
117
+ # Is this certificate automatically managed and renewed by Files.com?
118
+ # @return [Boolean, nil] the field value, or nil when absent.
119
+ def brick_managed
120
+ @attributes[:brick_managed]
121
+ end
122
+
123
+ # Changes the local field value. Call {#save} to persist changes.
124
+ # @param value [Boolean, nil] the new field value.
125
+ # @return [Boolean, nil] the assigned value.
126
+ def brick_managed=(value)
127
+ @attributes[:brick_managed] = value
128
+ end
129
+
130
+ # Intermediate certificates
131
+ # @return [String, nil] the field value, or nil when absent.
132
+ def intermediates
133
+ @attributes[:intermediates]
134
+ end
135
+
136
+ # Changes the local field value. Call {#save} to persist changes.
137
+ # @param value [String, nil] the new field value.
138
+ # @return [String, nil] the assigned value.
139
+ def intermediates=(value)
140
+ @attributes[:intermediates] = value
141
+ end
142
+
143
+ # A list of IP addresses associated with this SSL Certificate
144
+ # @return [Array<String>, nil] the field value, or nil when absent.
145
+ def ip_addresses
146
+ @attributes[:ip_addresses]
147
+ end
148
+
149
+ # Changes the local field value. Call {#save} to persist changes.
150
+ # @param value [Array<String>, nil] the new field value.
151
+ # @return [Array<String>, nil] the assigned value.
152
+ def ip_addresses=(value)
153
+ @attributes[:ip_addresses] = value
154
+ end
155
+
156
+ # X509 issuer
157
+ # @return [String, nil] the field value, or nil when absent.
158
+ def issuer
159
+ @attributes[:issuer]
160
+ end
161
+
162
+ # Changes the local field value. Call {#save} to persist changes.
163
+ # @param value [String, nil] the new field value.
164
+ # @return [String, nil] the assigned value.
165
+ def issuer=(value)
166
+ @attributes[:issuer] = value
167
+ end
168
+
169
+ # Type of key
170
+ # @return [String, nil] the field value, or nil when absent.
171
+ def key_type
172
+ @attributes[:key_type]
173
+ end
174
+
175
+ # Changes the local field value. Call {#save} to persist changes.
176
+ # @param value [String, nil] the new field value.
177
+ # @return [String, nil] the assigned value.
178
+ def key_type=(value)
179
+ @attributes[:key_type] = value
180
+ end
181
+
182
+ # Certificate signing request text
183
+ # @return [String, nil] the field value, or nil when absent.
184
+ def request
185
+ @attributes[:request]
186
+ end
187
+
188
+ # Changes the local field value. Call {#save} to persist changes.
189
+ # @param value [String, nil] the new field value.
190
+ # @return [String, nil] the assigned value.
191
+ def request=(value)
192
+ @attributes[:request] = value
193
+ end
194
+
195
+ # Certificate status (Request Generated, New, Active, Active/Expired, Expired, or Available)
196
+ # @return [String, nil] the field value, or nil when absent.
197
+ def status
198
+ @attributes[:status]
199
+ end
200
+
201
+ # Changes the local field value. Call {#save} to persist changes.
202
+ # @param value [String, nil] the new field value.
203
+ # @return [String, nil] the assigned value.
204
+ def status=(value)
205
+ @attributes[:status] = value
206
+ end
207
+
208
+ # X509 Subject name
209
+ # @return [String, nil] the field value, or nil when absent.
210
+ def subject
211
+ @attributes[:subject]
212
+ end
213
+
214
+ # Changes the local field value. Call {#save} to persist changes.
215
+ # @param value [String, nil] the new field value.
216
+ # @return [String, nil] the assigned value.
217
+ def subject=(value)
218
+ @attributes[:subject] = value
219
+ end
220
+
221
+ # Domain for certificate.
222
+ # @return [String, nil] the field value, or nil when absent.
223
+ def certificate_domain
224
+ @attributes[:certificate_domain]
225
+ end
226
+
227
+ # Changes the local field value. Call {#save} to persist changes.
228
+ # @param value [String, nil] the new field value.
229
+ # @return [String, nil] the assigned value.
230
+ def certificate_domain=(value)
231
+ @attributes[:certificate_domain] = value
232
+ end
233
+
234
+ # Additional domains for the certificate CSR.
235
+ # @return [Array<String>, nil] the field value, or nil when absent.
236
+ def certificate_extra_domains
237
+ @attributes[:certificate_extra_domains]
238
+ end
239
+
240
+ # Changes the local field value. Call {#save} to persist changes.
241
+ # @param value [Array<String>, nil] the new field value.
242
+ # @return [Array<String>, nil] the assigned value.
243
+ def certificate_extra_domains=(value)
244
+ @attributes[:certificate_extra_domains] = value
245
+ end
246
+
247
+ # Country.
248
+ # @return [String, nil] the field value, or nil when absent.
249
+ def certificate_country
250
+ @attributes[:certificate_country]
251
+ end
252
+
253
+ # Changes the local field value. Call {#save} to persist changes.
254
+ # @param value [String, nil] the new field value.
255
+ # @return [String, nil] the assigned value.
256
+ def certificate_country=(value)
257
+ @attributes[:certificate_country] = value
258
+ end
259
+
260
+ # State or province.
261
+ # @return [String, nil] the field value, or nil when absent.
262
+ def certificate_state_or_province
263
+ @attributes[:certificate_state_or_province]
264
+ end
265
+
266
+ # Changes the local field value. Call {#save} to persist changes.
267
+ # @param value [String, nil] the new field value.
268
+ # @return [String, nil] the assigned value.
269
+ def certificate_state_or_province=(value)
270
+ @attributes[:certificate_state_or_province] = value
271
+ end
272
+
273
+ # City or locale.
274
+ # @return [String, nil] the field value, or nil when absent.
275
+ def certificate_city_or_locale
276
+ @attributes[:certificate_city_or_locale]
277
+ end
278
+
279
+ # Changes the local field value. Call {#save} to persist changes.
280
+ # @param value [String, nil] the new field value.
281
+ # @return [String, nil] the assigned value.
282
+ def certificate_city_or_locale=(value)
283
+ @attributes[:certificate_city_or_locale] = value
284
+ end
285
+
286
+ # Company name.
287
+ # @return [String, nil] the field value, or nil when absent.
288
+ def certificate_company_name
289
+ @attributes[:certificate_company_name]
290
+ end
291
+
292
+ # Changes the local field value. Call {#save} to persist changes.
293
+ # @param value [String, nil] the new field value.
294
+ # @return [String, nil] the assigned value.
295
+ def certificate_company_name=(value)
296
+ @attributes[:certificate_company_name] = value
297
+ end
298
+
299
+ # Department name or organization unit 1
300
+ # @return [String, nil] the field value, or nil when absent.
301
+ def csr_ou1
302
+ @attributes[:csr_ou1]
303
+ end
304
+
305
+ # Changes the local field value. Call {#save} to persist changes.
306
+ # @param value [String, nil] the new field value.
307
+ # @return [String, nil] the assigned value.
308
+ def csr_ou1=(value)
309
+ @attributes[:csr_ou1] = value
310
+ end
311
+
312
+ # Department name or organization unit 2
313
+ # @return [String, nil] the field value, or nil when absent.
314
+ def csr_ou2
315
+ @attributes[:csr_ou2]
316
+ end
317
+
318
+ # Changes the local field value. Call {#save} to persist changes.
319
+ # @param value [String, nil] the new field value.
320
+ # @return [String, nil] the assigned value.
321
+ def csr_ou2=(value)
322
+ @attributes[:csr_ou2] = value
323
+ end
324
+
325
+ # Department name or organization unit 3
326
+ # @return [String, nil] the field value, or nil when absent.
327
+ def csr_ou3
328
+ @attributes[:csr_ou3]
329
+ end
330
+
331
+ # Changes the local field value. Call {#save} to persist changes.
332
+ # @param value [String, nil] the new field value.
333
+ # @return [String, nil] the assigned value.
334
+ def csr_ou3=(value)
335
+ @attributes[:csr_ou3] = value
336
+ end
337
+
338
+ # Email address for the certificate owner.
339
+ # @return [String, nil] the field value, or nil when absent.
340
+ def certificate_email_address
341
+ @attributes[:certificate_email_address]
342
+ end
343
+
344
+ # Changes the local field value. Call {#save} to persist changes.
345
+ # @param value [String, nil] the new field value.
346
+ # @return [String, nil] the assigned value.
347
+ def certificate_email_address=(value)
348
+ @attributes[:certificate_email_address] = value
349
+ end
350
+
351
+ # Certificate private key.
352
+ # @return [String, nil] the field value, or nil when absent.
353
+ def private_key
354
+ @attributes[:private_key]
355
+ end
356
+
357
+ # Changes the local field value. Call {#save} to persist changes.
358
+ # @param value [String, nil] the new field value.
359
+ # @return [String, nil] the assigned value.
360
+ def private_key=(value)
361
+ @attributes[:private_key] = value
362
+ end
363
+
364
+ # Certificate password.
365
+ # @return [String, nil] the field value, or nil when absent.
366
+ def password
367
+ @attributes[:password]
368
+ end
369
+
370
+ # Changes the local field value. Call {#save} to persist changes.
371
+ # @param value [String, nil] the new field value.
372
+ # @return [String, nil] the assigned value.
373
+ def password=(value)
374
+ @attributes[:password] = value
375
+ end
376
+
377
+ # Activate SSL Certificate
378
+ #
379
+ # @param params [Hash] API parameters, keyed by Symbol.
380
+ # @option params [String] replace_cert Leave blank or set to `any` to replace any currently active certificate, if applicable. Set to `new_ips` to activate this certificate as an additional certificate on your Site by allocating a new set of Dedicated IPs (may require a Plan upgrade). Set to the ID of a currently active certificate to replace that certificate on its set of dedicated IPs. A certificate belonging to a Custom Domain activates only for that domain: leave blank, use `any`, or specify that domain's current certificate ID.
381
+ # @return [Array(Files::Response, Hash)] the response and persisted request options.
382
+ # @raise [Files::MissingParameterError] if a required parameter or the current object primary key is missing.
383
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
384
+ # @raise [Files::Error] if the API request fails.
385
+ def activate(params = {})
386
+ params = (params || {}).dup
387
+ params[:id] = @attributes[:id]
388
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
389
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
390
+ raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if !params[:replace_cert].nil? and !params[:replace_cert].is_a?(String)
391
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
392
+
393
+ response, options = Api.send_request("/certificates/#{@attributes[:id]}/activate", :post, params, @options)
394
+ @options = @options.merge(options)
395
+ [ response, options ]
396
+ end
397
+
398
+ # Deactivate SSL Certificate
399
+ #
400
+ # @param params [Hash] API parameters, keyed by Symbol.
401
+ # @return [Array(Files::Response, Hash)] the response and persisted request options.
402
+ # @raise [Files::MissingParameterError] if a required parameter or the current object primary key is missing.
403
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
404
+ # @raise [Files::Error] if the API request fails.
405
+ def deactivate(params = {})
406
+ params = (params || {}).dup
407
+ params[:id] = @attributes[:id]
408
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
409
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
410
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
411
+
412
+ response, options = Api.send_request("/certificates/#{@attributes[:id]}/deactivate", :post, params, @options)
413
+ @options = @options.merge(options)
414
+ [ response, options ]
415
+ end
416
+
417
+ # Replace this active custom SSL Certificate for the Primary Custom Domain with a Files.com SSL Certificate. The Primary Custom Domain's CNAME record must point at the Site's subdomain. The Files.com certificate is issued and activated in the background
418
+ #
419
+ # @param params [Hash] API parameters, keyed by Symbol.
420
+ # @return [Array(Files::Response, Hash)] the response and persisted request options.
421
+ # @raise [Files::MissingParameterError] if a required parameter or the current object primary key is missing.
422
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
423
+ # @raise [Files::Error] if the API request fails.
424
+ def replace_with_files(params = {})
425
+ params = (params || {}).dup
426
+ params[:id] = @attributes[:id]
427
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
428
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
429
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
430
+
431
+ response, options = Api.send_request("/certificates/#{@attributes[:id]}/replace_with_files_certificate", :post, params, @options)
432
+ @options = @options.merge(options)
433
+ [ response, options ]
434
+ end
435
+
436
+ # Update Certificate
437
+ #
438
+ # @param params [Hash] API parameters, keyed by Symbol.
439
+ # @option params [String] name Internal certificate name.
440
+ # @option params [String] intermediates Any intermediate certificates. PEM or PKCS7 formats accepted.
441
+ # @option params [String] certificate The certificate. PEM or PKCS7 formats accepted.
442
+ # @return [Array(Files::Response, Hash)] the response and persisted request options.
443
+ # @raise [Files::MissingParameterError] if a required parameter or the current object primary key is missing.
444
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
445
+ # @raise [Files::Error] if the API request fails.
446
+ def update(params = {})
447
+ params = (params || {}).dup
448
+ params[:id] = @attributes[:id]
449
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
450
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
451
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
452
+ raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if !params[:intermediates].nil? and !params[:intermediates].is_a?(String)
453
+ raise InvalidParameterError.new("Bad parameter: certificate must be an String") if !params[:certificate].nil? and !params[:certificate].is_a?(String)
454
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
455
+
456
+ response, options = Api.send_request("/certificates/#{@attributes[:id]}", :patch, params, @options) { |reply| reply.require_object("Certificate") }
457
+ @attributes = response.data
458
+ @options = @options.merge(options)
459
+ [ response, options ]
460
+ end
461
+
462
+ # Delete Certificate
463
+ #
464
+ # @param params [Hash] API parameters, keyed by Symbol.
465
+ # @return [Array(Files::Response, Hash)] the response and persisted request options.
466
+ # @raise [Files::MissingParameterError] if a required parameter or the current object primary key is missing.
467
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
468
+ # @raise [Files::Error] if the API request fails.
469
+ def delete(params = {})
470
+ params = (params || {}).dup
471
+ params[:id] = @attributes[:id]
472
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
473
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
474
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
475
+
476
+ response, options = Api.send_request("/certificates/#{@attributes[:id]}", :delete, params, @options)
477
+ @options = @options.merge(options)
478
+ [ response, options ]
479
+ end
480
+
481
+ # Calls {#delete} and discards its response.
482
+ # @param (see #delete)
483
+ # @option (see #delete)
484
+ # @raise (see #delete)
485
+ # @return [nil]
486
+ def destroy(params = {})
487
+ delete(params)
488
+ nil
489
+ end
490
+
491
+ # Persists local attributes by creating or updating this record.
492
+ # @return [true] after the request succeeds.
493
+ # @raise [Files::Error] if the API request fails.
494
+ def save
495
+ if @attributes[:id]
496
+ update(@attributes)
497
+ else
498
+ new_obj = Certificate.create(@attributes, @options)
499
+ @attributes = new_obj.attributes
500
+ @options = @options.merge(new_obj.options)
501
+ end
502
+
503
+ true
504
+ end
505
+
506
+ # List Certificates
507
+ #
508
+ # @param params [Hash] API parameters, keyed by Symbol.
509
+ # @option params [String] cursor Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
510
+ # @option params [Integer] per_page Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
511
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
512
+ # @return [Files::List] a lazy first page; use #auto_paging_each to visit every page.
513
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
514
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
515
+ # @raise [Files::Error] if the API request fails.
516
+ def self.list(params = {}, options = {})
517
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if !params[:cursor].nil? and !params[:cursor].is_a?(String)
518
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if !params[:per_page].nil? and !params[:per_page].is_a?(Integer)
519
+
520
+ list_options = options.dup
521
+ List.new(Certificate, params) do |page_params, &check_page|
522
+ response, page_options = Api.send_request("/certificates", :get, page_params, list_options, &check_page)
523
+ list_options = list_options.merge(page_options)
524
+ [ response, page_options ]
525
+ end
526
+ end
527
+
528
+ # (see .list)
529
+ def self.all(params = {}, options = {})
530
+ list(params, options)
531
+ end
532
+
533
+ # Show Certificate
534
+ #
535
+ # @param id [Integer] Certificate ID.
536
+ # @param params [Hash] API parameters, keyed by Symbol.
537
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
538
+ # @return [Files::Certificate] the returned record.
539
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
540
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
541
+ # @raise [Files::Error] if the API request fails.
542
+ def self.find(id, params = {}, options = {})
543
+ params = (params || {}).dup
544
+ params[:id] = id
545
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
546
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
547
+
548
+ response, options = Api.send_request("/certificates/#{params[:id]}", :get, params, options) { |reply| reply.require_object("Certificate") }
549
+ Certificate.new(response.data, options)
550
+ end
551
+
552
+ # (see .find)
553
+ def self.get(id, params = {}, options = {})
554
+ find(id, params, options)
555
+ end
556
+
557
+ # Create CSR or import existing SSL Certificate
558
+ #
559
+ # @param params [Hash] API parameters, keyed by Symbol.
560
+ # @option params [String] name Required. Internal name of the SSL certificate.
561
+ # @option params [String] certificate_domain Domain for certificate.
562
+ # @option params [Array<String>] certificate_extra_domains Additional domains for the certificate CSR.
563
+ # @option params [String] certificate_country Country.
564
+ # @option params [String] certificate_state_or_province State or province.
565
+ # @option params [String] certificate_city_or_locale City or locale.
566
+ # @option params [String] certificate_company_name Company name.
567
+ # @option params [String] csr_ou1 Department name or organization unit 1
568
+ # @option params [String] csr_ou2 Department name or organization unit 2
569
+ # @option params [String] csr_ou3 Department name or organization unit 3
570
+ # @option params [String] certificate_email_address Email address for the certificate owner.
571
+ # @option params [String] key_type Any supported key type. Defaults to `RSA-4096`.
572
+ # @option params [String] certificate The certificate. PEM or PKCS7 formats accepted.
573
+ # @option params [String] private_key Certificate private key.
574
+ # @option params [String] password Certificate password.
575
+ # @option params [String] intermediates Intermediate certificates. PEM or PKCS7 formats accepted.
576
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
577
+ # @return [Files::Certificate] the returned record.
578
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
579
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
580
+ # @raise [Files::Error] if the API request fails.
581
+ def self.create(params = {}, options = {})
582
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
583
+ raise InvalidParameterError.new("Bad parameter: certificate_domain must be an String") if !params[:certificate_domain].nil? and !params[:certificate_domain].is_a?(String)
584
+ raise InvalidParameterError.new("Bad parameter: certificate_extra_domains must be an Array") if !params[:certificate_extra_domains].nil? and !params[:certificate_extra_domains].is_a?(Array)
585
+ raise InvalidParameterError.new("Bad parameter: certificate_country must be an String") if !params[:certificate_country].nil? and !params[:certificate_country].is_a?(String)
586
+ raise InvalidParameterError.new("Bad parameter: certificate_state_or_province must be an String") if !params[:certificate_state_or_province].nil? and !params[:certificate_state_or_province].is_a?(String)
587
+ raise InvalidParameterError.new("Bad parameter: certificate_city_or_locale must be an String") if !params[:certificate_city_or_locale].nil? and !params[:certificate_city_or_locale].is_a?(String)
588
+ raise InvalidParameterError.new("Bad parameter: certificate_company_name must be an String") if !params[:certificate_company_name].nil? and !params[:certificate_company_name].is_a?(String)
589
+ raise InvalidParameterError.new("Bad parameter: csr_ou1 must be an String") if !params[:csr_ou1].nil? and !params[:csr_ou1].is_a?(String)
590
+ raise InvalidParameterError.new("Bad parameter: csr_ou2 must be an String") if !params[:csr_ou2].nil? and !params[:csr_ou2].is_a?(String)
591
+ raise InvalidParameterError.new("Bad parameter: csr_ou3 must be an String") if !params[:csr_ou3].nil? and !params[:csr_ou3].is_a?(String)
592
+ raise InvalidParameterError.new("Bad parameter: certificate_email_address must be an String") if !params[:certificate_email_address].nil? and !params[:certificate_email_address].is_a?(String)
593
+ raise InvalidParameterError.new("Bad parameter: key_type must be an String") if !params[:key_type].nil? and !params[:key_type].is_a?(String)
594
+ raise InvalidParameterError.new("Bad parameter: certificate must be an String") if !params[:certificate].nil? and !params[:certificate].is_a?(String)
595
+ raise InvalidParameterError.new("Bad parameter: private_key must be an String") if !params[:private_key].nil? and !params[:private_key].is_a?(String)
596
+ raise InvalidParameterError.new("Bad parameter: password must be an String") if !params[:password].nil? and !params[:password].is_a?(String)
597
+ raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if !params[:intermediates].nil? and !params[:intermediates].is_a?(String)
598
+ raise MissingParameterError.new("Parameter missing: name") if params[:name].nil?
599
+
600
+ response, options = Api.send_request("/certificates", :post, params, options) { |reply| reply.require_object("Certificate") }
601
+ Certificate.new(response.data, options)
602
+ end
603
+
604
+ # Activate SSL Certificate
605
+ #
606
+ # @param id [Integer] Certificate ID.
607
+ # @param params [Hash] API parameters, keyed by Symbol.
608
+ # @option params [String] replace_cert Leave blank or set to `any` to replace any currently active certificate, if applicable. Set to `new_ips` to activate this certificate as an additional certificate on your Site by allocating a new set of Dedicated IPs (may require a Plan upgrade). Set to the ID of a currently active certificate to replace that certificate on its set of dedicated IPs. A certificate belonging to a Custom Domain activates only for that domain: leave blank, use `any`, or specify that domain's current certificate ID.
609
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
610
+ # @return [nil]
611
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
612
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
613
+ # @raise [Files::Error] if the API request fails.
614
+ def self.activate(id, params = {}, options = {})
615
+ params = (params || {}).dup
616
+ params[:id] = id
617
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
618
+ raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if !params[:replace_cert].nil? and !params[:replace_cert].is_a?(String)
619
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
620
+
621
+ Api.send_request("/certificates/#{params[:id]}/activate", :post, params, options)
622
+ nil
623
+ end
624
+
625
+ # Deactivate SSL Certificate
626
+ #
627
+ # @param id [Integer] Certificate ID.
628
+ # @param params [Hash] API parameters, keyed by Symbol.
629
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
630
+ # @return [nil]
631
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
632
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
633
+ # @raise [Files::Error] if the API request fails.
634
+ def self.deactivate(id, params = {}, options = {})
635
+ params = (params || {}).dup
636
+ params[:id] = id
637
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
638
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
639
+
640
+ Api.send_request("/certificates/#{params[:id]}/deactivate", :post, params, options)
641
+ nil
642
+ end
643
+
644
+ # Replace this active custom SSL Certificate for the Primary Custom Domain with a Files.com SSL Certificate. The Primary Custom Domain's CNAME record must point at the Site's subdomain. The Files.com certificate is issued and activated in the background
645
+ #
646
+ # @param id [Integer] Certificate ID.
647
+ # @param params [Hash] API parameters, keyed by Symbol.
648
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
649
+ # @return [nil]
650
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
651
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
652
+ # @raise [Files::Error] if the API request fails.
653
+ def self.replace_with_files(id, params = {}, options = {})
654
+ params = (params || {}).dup
655
+ params[:id] = id
656
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
657
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
658
+
659
+ Api.send_request("/certificates/#{params[:id]}/replace_with_files_certificate", :post, params, options)
660
+ nil
661
+ end
662
+
663
+ # Update Certificate
664
+ #
665
+ # @param id [Integer] Certificate ID.
666
+ # @param params [Hash] API parameters, keyed by Symbol.
667
+ # @option params [String] name Internal certificate name.
668
+ # @option params [String] intermediates Any intermediate certificates. PEM or PKCS7 formats accepted.
669
+ # @option params [String] certificate The certificate. PEM or PKCS7 formats accepted.
670
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
671
+ # @return [Files::Certificate] the returned record.
672
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
673
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
674
+ # @raise [Files::Error] if the API request fails.
675
+ def self.update(id, params = {}, options = {})
676
+ params = (params || {}).dup
677
+ params[:id] = id
678
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
679
+ raise InvalidParameterError.new("Bad parameter: name must be an String") if !params[:name].nil? and !params[:name].is_a?(String)
680
+ raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if !params[:intermediates].nil? and !params[:intermediates].is_a?(String)
681
+ raise InvalidParameterError.new("Bad parameter: certificate must be an String") if !params[:certificate].nil? and !params[:certificate].is_a?(String)
682
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
683
+
684
+ response, options = Api.send_request("/certificates/#{params[:id]}", :patch, params, options) { |reply| reply.require_object("Certificate") }
685
+ Certificate.new(response.data, options)
686
+ end
687
+
688
+ # Delete Certificate
689
+ #
690
+ # @param id [Integer] Certificate ID.
691
+ # @param params [Hash] API parameters, keyed by Symbol.
692
+ # @param options [Hash] Request configuration; see {Files::Api.send_request}.
693
+ # @return [nil]
694
+ # @raise [Files::MissingParameterError] if a required parameter is missing.
695
+ # @raise [Files::InvalidParameterError] if a parameter has an invalid Ruby type.
696
+ # @raise [Files::Error] if the API request fails.
697
+ def self.delete(id, params = {}, options = {})
698
+ params = (params || {}).dup
699
+ params[:id] = id
700
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
701
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
702
+
703
+ Api.send_request("/certificates/#{params[:id]}", :delete, params, options)
704
+ nil
705
+ end
706
+
707
+ # (see .delete)
708
+ def self.destroy(id, params = {}, options = {})
709
+ delete(id, params, options)
710
+ nil
711
+ end
712
+ end
713
+ end