files.com 1.1.827 → 1.1.829
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -0
- data/_VERSION +1 -1
- data/doc/Files/APIConnectionError.html +1 -1
- data/doc/Files/APIError.html +1 -1
- data/doc/Files/AccountAlreadyExistsError.html +1 -1
- data/doc/Files/AccountLineItem.html +1 -1
- data/doc/Files/AccountOverdueError.html +1 -1
- data/doc/Files/Action.html +1 -1
- data/doc/Files/ActionLog.html +1 -1
- data/doc/Files/ActionNotificationExport.html +1 -1
- data/doc/Files/ActionNotificationExportResult.html +1 -1
- data/doc/Files/AdditionalAuthenticationRequiredError.html +1 -1
- data/doc/Files/AgentNode.html +1 -1
- data/doc/Files/AgentNodeConnection.html +1 -1
- data/doc/Files/AgentNodeInstance.html +1 -1
- data/doc/Files/AgentPushUpdate.html +1 -1
- data/doc/Files/AgentPushUpdateBlockedError.html +1 -1
- data/doc/Files/AgentUnavailableError.html +1 -1
- data/doc/Files/AgentUpgradeRequiredError.html +1 -1
- data/doc/Files/AiAssistantPersonality.html +1 -1
- data/doc/Files/AiTask.html +1 -1
- data/doc/Files/AiTaskCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AlreadyCompletedError.html +1 -1
- data/doc/Files/Api.html +7 -5
- data/doc/Files/ApiClient/RequestLogContext.html +29 -29
- data/doc/Files/ApiClient/TransferSettings.html +29 -29
- data/doc/Files/ApiClient.html +210 -148
- data/doc/Files/ApiKey.html +1 -1
- data/doc/Files/ApiKeyIsDisabledError.html +1 -1
- data/doc/Files/ApiKeyIsPathRestrictedError.html +1 -1
- data/doc/Files/ApiKeyNotFoundError.html +1 -1
- data/doc/Files/ApiKeyOnlyForDesktopAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForFileOperationsError.html +1 -1
- data/doc/Files/ApiKeyOnlyForMobileAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForOfficeIntegrationError.html +1 -1
- data/doc/Files/ApiKeySessionsNotSupportedError.html +1 -1
- data/doc/Files/ApiRequestLog.html +1 -1
- data/doc/Files/App.html +1 -1
- data/doc/Files/As2IncomingMessage.html +1 -1
- data/doc/Files/As2OutgoingMessage.html +1 -1
- data/doc/Files/As2Partner.html +1 -1
- data/doc/Files/As2Station.html +1 -1
- data/doc/Files/AttachmentTooLargeError.html +1 -1
- data/doc/Files/AuthenticationError.html +1 -1
- data/doc/Files/AuthenticationRequiredError.html +1 -1
- data/doc/Files/Auto.html +1 -1
- data/doc/Files/Automation.html +1 -1
- data/doc/Files/AutomationAuthoringSchema.html +1 -1
- data/doc/Files/AutomationCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AutomationExecutionNode.html +1 -1
- data/doc/Files/AutomationLog.html +1 -1
- data/doc/Files/AutomationRun.html +1 -1
- data/doc/Files/AutomationsUnavailableError.html +1 -1
- data/doc/Files/BadRequestError.html +1 -1
- data/doc/Files/BandwidthSnapshot.html +1 -1
- data/doc/Files/Behavior.html +1 -1
- data/doc/Files/BehaviorNotAllowedOnRemoteServerError.html +1 -1
- data/doc/Files/BillingInformationHiddenError.html +1 -1
- data/doc/Files/BillingPermissionRequiredError.html +1 -1
- data/doc/Files/BufferedUploadDisabledForThisDestinationError.html +1 -1
- data/doc/Files/Bundle.html +1 -1
- data/doc/Files/BundleAction.html +1 -1
- data/doc/Files/BundleDownload.html +1 -1
- data/doc/Files/BundleMaximumUsesReachedError.html +1 -1
- data/doc/Files/BundleNotification.html +1 -1
- data/doc/Files/BundleOnlyAllowsPreviewsError.html +1 -1
- data/doc/Files/BundleOperationRequiresSubfolderError.html +1 -1
- data/doc/Files/BundlePath.html +1 -1
- data/doc/Files/BundlePathNotFoundError.html +1 -1
- data/doc/Files/BundlePermissionRequiredError.html +1 -1
- data/doc/Files/BundleRecipient.html +1 -1
- data/doc/Files/BundleRegistration.html +1 -1
- data/doc/Files/BundleRegistrationCodeFailedError.html +1 -1
- data/doc/Files/BundleRegistrationNotFoundError.html +1 -1
- data/doc/Files/CannotAdministerHigherLevelUserError.html +1 -1
- data/doc/Files/CannotDownloadDirectoryError.html +1 -1
- data/doc/Files/CannotLoginWhileUsingKeyError.html +1 -1
- data/doc/Files/CantActForOtherUserError.html +1 -1
- data/doc/Files/CantMoveWithMultipleLocationsError.html +1 -1
- data/doc/Files/ChatMessage.html +1 -1
- data/doc/Files/ChatSession.html +1 -1
- data/doc/Files/ChildSiteManagementPolicy.html +1 -1
- data/doc/Files/Clickwrap.html +1 -1
- data/doc/Files/CodeNotFoundError.html +1 -1
- data/doc/Files/ConfigurationLockedPathError.html +1 -1
- data/doc/Files/ContactAdminForPasswordChangeHelpError.html +1 -1
- data/doc/Files/CouldNotCreateParentError.html +1 -1
- data/doc/Files/CustomDomain.html +1 -1
- data/doc/Files/DatetimeParseError.html +1 -1
- data/doc/Files/DesktopConfigurationProfile.html +1 -1
- data/doc/Files/DestinationExistsError.html +1 -1
- data/doc/Files/DestinationFolderLimitedError.html +1 -1
- data/doc/Files/DestinationParentConflictError.html +1 -1
- data/doc/Files/DestinationParentDoesNotExistError.html +1 -1
- data/doc/Files/DestinationSameError.html +1 -1
- data/doc/Files/DestinationSiteMismatchError.html +1 -1
- data/doc/Files/DirectConnectionInfo.html +1 -1
- data/doc/Files/DnsRecord.html +1 -1
- data/doc/Files/DoesNotSupportSortingError.html +1 -1
- data/doc/Files/DuplicateShareRecipientError.html +1 -1
- data/doc/Files/EmailIncomingMessage.html +1 -1
- data/doc/Files/EmailLog.html +1 -1
- data/doc/Files/Error.html +1 -1
- data/doc/Files/Errors.html +1 -1
- data/doc/Files/EventChannel.html +1 -1
- data/doc/Files/EventDeliveryAttempt.html +1 -1
- data/doc/Files/EventRecord.html +1 -1
- data/doc/Files/EventSubscription.html +1 -1
- data/doc/Files/EventTarget.html +1 -1
- data/doc/Files/ExavaultApiRequestLog.html +1 -1
- data/doc/Files/ExceededRuntimeLimitError.html +1 -1
- data/doc/Files/Expectation.html +1 -1
- data/doc/Files/ExpectationAlreadyHasOpenWindowError.html +1 -1
- data/doc/Files/ExpectationEvaluation.html +1 -1
- data/doc/Files/ExpectationIncident.html +1 -1
- data/doc/Files/ExpectationNotManualTriggerError.html +1 -1
- data/doc/Files/ExpiredPrivateKeyError.html +1 -1
- data/doc/Files/ExpiredPublicKeyError.html +1 -1
- data/doc/Files/ExportFailureError.html +1 -1
- data/doc/Files/ExportNotReadyError.html +1 -1
- data/doc/Files/ExternalEvent.html +1 -1
- data/doc/Files/FailedToChangePasswordError.html +1 -1
- data/doc/Files/File.html +1081 -1073
- data/doc/Files/FileAction.html +1 -1
- data/doc/Files/FileActionError.html +1 -1
- data/doc/Files/FileComment.html +1 -1
- data/doc/Files/FileCommentReaction.html +1 -1
- data/doc/Files/FileLockedError.html +1 -1
- data/doc/Files/FileMigration.html +1 -1
- data/doc/Files/FileMigrationLog.html +1 -1
- data/doc/Files/FileNotFoundError.html +1 -1
- data/doc/Files/FileNotUploadedError.html +1 -1
- data/doc/Files/FilePendingProcessingError.html +1 -1
- data/doc/Files/FileProcessingErrorError.html +1 -1
- data/doc/Files/FileTooBigToDecryptError.html +1 -1
- data/doc/Files/FileTooBigToEncryptError.html +1 -1
- data/doc/Files/FileUploadNotFoundError.html +1 -1
- data/doc/Files/FileUploadPart.html +1 -1
- data/doc/Files/FileUploadedToWrongRegionError.html +1 -1
- data/doc/Files/FileUtils.html +1 -1
- data/doc/Files/FilenameTooLongError.html +1 -1
- data/doc/Files/FilesAgentFailedAuthorizationError.html +1 -1
- data/doc/Files/FilesNativeStorageOverloadedError.html +1 -1
- data/doc/Files/Folder.html +1 -1
- data/doc/Files/FolderAdminOrBillingPermissionRequiredError.html +1 -1
- data/doc/Files/FolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/FolderLockedError.html +1 -1
- data/doc/Files/FolderMustNotBeAFileError.html +1 -1
- data/doc/Files/FolderNotEmptyError.html +1 -1
- data/doc/Files/FoldersNotAllowedError.html +1 -1
- data/doc/Files/FormField.html +1 -1
- data/doc/Files/FormFieldSet.html +1 -1
- data/doc/Files/FtpActionLog.html +1 -1
- data/doc/Files/FullPermissionRequiredError.html +1 -1
- data/doc/Files/GpgKey.html +1 -1
- data/doc/Files/Group.html +1 -1
- data/doc/Files/GroupNotFoundError.html +1 -1
- data/doc/Files/GroupUser.html +1 -1
- data/doc/Files/History.html +1 -1
- data/doc/Files/HistoryExport.html +1 -1
- data/doc/Files/HistoryExportResult.html +1 -1
- data/doc/Files/HistoryPermissionRequiredError.html +1 -1
- data/doc/Files/HistoryUnavailableError.html +1 -1
- data/doc/Files/HolidayCalendar.html +1 -1
- data/doc/Files/HolidayRegion.html +1 -1
- data/doc/Files/Image.html +1 -1
- data/doc/Files/InAppAiAssistantUnavailableError.html +1 -1
- data/doc/Files/InboundS3Log.html +1 -1
- data/doc/Files/InboxNotFoundError.html +1 -1
- data/doc/Files/InboxRecipient.html +1 -1
- data/doc/Files/InboxRegistration.html +1 -1
- data/doc/Files/InboxRegistrationCodeFailedError.html +1 -1
- data/doc/Files/InboxUpload.html +1 -1
- data/doc/Files/InsufficientPermissionForParamsError.html +1 -1
- data/doc/Files/InsufficientPermissionForSiteError.html +1 -1
- data/doc/Files/IntegrationCentricProfile.html +1 -1
- data/doc/Files/InternalGeneralErrorError.html +1 -1
- data/doc/Files/InvalidBodyError.html +1 -1
- data/doc/Files/InvalidBundleCodeError.html +1 -1
- data/doc/Files/InvalidCredentialsError.html +1 -1
- data/doc/Files/InvalidCursorError.html +1 -1
- data/doc/Files/InvalidCursorTypeForSortError.html +1 -1
- data/doc/Files/InvalidEtagsError.html +1 -1
- data/doc/Files/InvalidFileTypeError.html +1 -1
- data/doc/Files/InvalidFilenameError.html +1 -1
- data/doc/Files/InvalidFilterAliasCombinationError.html +1 -1
- data/doc/Files/InvalidFilterFieldError.html +1 -1
- data/doc/Files/InvalidFilterParamError.html +1 -1
- data/doc/Files/InvalidFilterParamFormatError.html +1 -1
- data/doc/Files/InvalidFilterParamValueError.html +1 -1
- data/doc/Files/InvalidInputEncodingError.html +1 -1
- data/doc/Files/InvalidInterfaceError.html +1 -1
- data/doc/Files/InvalidOauthError.html +1 -1
- data/doc/Files/InvalidOauthProviderError.html +1 -1
- data/doc/Files/InvalidOrExpiredCodeError.html +1 -1
- data/doc/Files/InvalidParameterError.html +1 -1
- data/doc/Files/InvalidPathError.html +1 -1
- data/doc/Files/InvalidPriorityColorError.html +1 -1
- data/doc/Files/InvalidRangeError.html +1 -1
- data/doc/Files/InvalidReturnToUrlError.html +1 -1
- data/doc/Files/InvalidSearchQueryError.html +1 -1
- data/doc/Files/InvalidSessionError.html +1 -1
- data/doc/Files/InvalidSiteError.html +1 -1
- data/doc/Files/InvalidSortFieldError.html +1 -1
- data/doc/Files/InvalidSortFilterCombinationError.html +1 -1
- data/doc/Files/InvalidUploadOffsetError.html +1 -1
- data/doc/Files/InvalidUploadPartGapError.html +1 -1
- data/doc/Files/InvalidUploadPartSizeError.html +1 -1
- data/doc/Files/InvalidUsernameOrPasswordError.html +1 -1
- data/doc/Files/InvalidWorkspaceIdHeaderError.html +1 -1
- data/doc/Files/InvalidZipFileError.html +1 -1
- data/doc/Files/Invoice.html +1 -1
- data/doc/Files/InvoiceLineItem.html +1 -1
- data/doc/Files/IpAddress.html +1 -1
- data/doc/Files/KeyLifecycleRule.html +1 -1
- data/doc/Files/List.html +1 -1
- data/doc/Files/Lock.html +1 -1
- data/doc/Files/LockOperationBusyError.html +1 -1
- data/doc/Files/LockedOutError.html +1 -1
- data/doc/Files/LockoutRegionMismatchError.html +1 -1
- data/doc/Files/MetadataCategory.html +1 -1
- data/doc/Files/MetadataNotSupportedOnRemotesError.html +1 -1
- data/doc/Files/MethodNotAllowedError.html +1 -1
- data/doc/Files/MigrationInProgressError.html +1 -1
- data/doc/Files/MissingParameterError.html +1 -1
- data/doc/Files/ModelSaveErrorError.html +1 -1
- data/doc/Files/MoverAccessDeniedError.html +1 -1
- data/doc/Files/MoverPackageRequiredError.html +1 -1
- data/doc/Files/MultipleProcessingErrorsError.html +1 -1
- data/doc/Files/MultipleSortParamsNotAllowedError.html +1 -1
- data/doc/Files/MustAuthenticateWithApiKeyError.html +1 -1
- data/doc/Files/NeedAdminPermissionForInboxError.html +1 -1
- data/doc/Files/NestedNotFoundError.html +1 -1
- data/doc/Files/NoAccountForSiteError.html +1 -1
- data/doc/Files/NoValidInputParamsError.html +1 -1
- data/doc/Files/NonAdminsMustQueryByFolderOrPathError.html +1 -1
- data/doc/Files/NotAllowedToCreateBundleError.html +1 -1
- data/doc/Files/NotAuthenticatedError.html +1 -1
- data/doc/Files/NotAuthorizedError.html +1 -1
- data/doc/Files/NotEnqueuableSyncError.html +1 -1
- data/doc/Files/NotFoundError.html +1 -1
- data/doc/Files/NotImplementedError.html +1 -1
- data/doc/Files/Notification.html +1 -1
- data/doc/Files/OffsetUploadNotAllowedWithMalwareScanningError.html +1 -1
- data/doc/Files/OneTimePasswordIncorrectError.html +1 -1
- data/doc/Files/OutboundConnectionLog.html +1 -1
- data/doc/Files/PartNumberTooLargeError.html +1 -1
- data/doc/Files/Partner.html +1 -1
- data/doc/Files/PartnerChannel.html +1 -1
- data/doc/Files/PartnerChannelTemplate.html +1 -1
- data/doc/Files/PartnerConnection.html +1 -1
- data/doc/Files/PartnerSite.html +1 -1
- data/doc/Files/PartnerSiteRequest.html +1 -1
- data/doc/Files/PasswordChangeNotRequiredError.html +1 -1
- data/doc/Files/PasswordChangeRequiredError.html +1 -1
- data/doc/Files/PathCannotHaveTrailingWhitespaceError.html +1 -1
- data/doc/Files/PathTooLongError.html +1 -1
- data/doc/Files/PathUtil.html +1 -1
- data/doc/Files/Payment.html +1 -1
- data/doc/Files/PaymentLineItem.html +1 -1
- data/doc/Files/PaymentMethodErrorError.html +1 -1
- data/doc/Files/PendingWorkEvent.html +1 -1
- data/doc/Files/Permission.html +1 -1
- data/doc/Files/PlanNotFoundError.html +1 -1
- data/doc/Files/Preview.html +1 -1
- data/doc/Files/PreviewOnlyPermissionCannotDownloadError.html +1 -1
- data/doc/Files/ProcessingFailureError.html +1 -1
- data/doc/Files/PublicHostingRequestLog.html +1 -1
- data/doc/Files/PublicIpAddress.html +1 -1
- data/doc/Files/PublicKey.html +1 -1
- data/doc/Files/RateLimitedError.html +1 -1
- data/doc/Files/ReadOnlySessionError.html +1 -1
- data/doc/Files/ReadPermissionRequiredError.html +1 -1
- data/doc/Files/ReauthenticationFailedError.html +1 -1
- data/doc/Files/ReauthenticationFailedFinalError.html +1 -1
- data/doc/Files/ReauthenticationNeededActionError.html +1 -1
- data/doc/Files/ReauthenticationNeededFieldsError.html +1 -1
- data/doc/Files/ReauthenticationRateLimitedError.html +1 -1
- data/doc/Files/RecaptchaFailedError.html +1 -1
- data/doc/Files/RecipientAlreadySharedError.html +1 -1
- data/doc/Files/RemoteBandwidthSnapshot.html +1 -1
- data/doc/Files/RemoteDesktopDebugLoggingDisabledError.html +1 -1
- data/doc/Files/RemoteEntryReadOnlyError.html +1 -1
- data/doc/Files/RemoteMountBackend.html +1 -1
- data/doc/Files/RemoteServer.html +1 -1
- data/doc/Files/RemoteServerConfigurationFile.html +1 -1
- data/doc/Files/RemoteServerCredential.html +1 -1
- data/doc/Files/RemoteServerErrorError.html +1 -1
- data/doc/Files/Request.html +1 -1
- data/doc/Files/RequestBodyTooLargeError.html +1 -1
- data/doc/Files/RequestParamsContainInvalidCharacterError.html +1 -1
- data/doc/Files/RequestParamsInvalidError.html +1 -1
- data/doc/Files/RequestParamsRequiredError.html +1 -1
- data/doc/Files/ResourceBelongsToParentSiteError.html +1 -1
- data/doc/Files/ResourceLockedError.html +1 -1
- data/doc/Files/Response.html +1 -1
- data/doc/Files/Restore.html +1 -1
- data/doc/Files/RootFolderBehaviorSiteAdminRequiredError.html +1 -1
- data/doc/Files/RootFolderBehaviorSkipSiteAdminRequiredError.html +1 -1
- data/doc/Files/Schedule.html +1 -1
- data/doc/Files/ScheduledExport.html +1 -1
- data/doc/Files/ScimLog.html +1 -1
- data/doc/Files/SearchAllOnChildPathError.html +1 -1
- data/doc/Files/SearchUnavailableError.html +1 -1
- data/doc/Files/Secret.html +1 -1
- data/doc/Files/SelfManagedRequiredError.html +1 -1
- data/doc/Files/ServiceUnavailableError.html +1 -1
- data/doc/Files/Session.html +1 -1
- data/doc/Files/SettingsChange.html +1 -1
- data/doc/Files/SftpActionLog.html +1 -1
- data/doc/Files/SftpHostKey.html +1 -1
- data/doc/Files/ShareGroup.html +1 -1
- data/doc/Files/ShareGroupMember.html +1 -1
- data/doc/Files/SiemHttpDestination.html +1 -1
- data/doc/Files/SiemHttpDestinationEvent.html +1 -1
- data/doc/Files/Site.html +1 -1
- data/doc/Files/SiteAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminRequiredError.html +1 -1
- data/doc/Files/SiteConfigurationError.html +1 -1
- data/doc/Files/SiteDisabledError.html +1 -1
- data/doc/Files/SiteFilesAreImmutableError.html +1 -1
- data/doc/Files/SiteNotFoundError.html +1 -1
- data/doc/Files/SiteSubdomainRedirect.html +1 -1
- data/doc/Files/SiteWasRemovedError.html +1 -1
- data/doc/Files/SizableIO.html +1 -1
- data/doc/Files/Snapshot.html +1 -1
- data/doc/Files/SsoEvent.html +1 -1
- data/doc/Files/SsoStrategy.html +1 -1
- data/doc/Files/Status.html +1 -1
- data/doc/Files/Style.html +1 -1
- data/doc/Files/SubfolderLockedError.html +1 -1
- data/doc/Files/Sync.html +1 -1
- data/doc/Files/SyncInProgressError.html +1 -1
- data/doc/Files/SyncLog.html +1 -1
- data/doc/Files/SyncRun.html +1 -1
- data/doc/Files/SyncRunLiveTransfer.html +1 -1
- data/doc/Files/SystemProfiler.html +1 -1
- data/doc/Files/TooManyConcurrentLoginsError.html +1 -1
- data/doc/Files/TooManyConcurrentRequestsError.html +1 -1
- data/doc/Files/TooManyLoginAttemptsError.html +1 -1
- data/doc/Files/TooManyRequestsError.html +1 -1
- data/doc/Files/TooManySharesError.html +1 -1
- data/doc/Files/Transfer/Attempts.html +88 -18
- data/doc/Files/Transfer/BufferLimitError.html +1 -1
- data/doc/Files/Transfer/ByteBudget/Reservation.html +1 -1
- data/doc/Files/Transfer/ByteBudget.html +1 -1
- data/doc/Files/Transfer/CancelledError.html +1 -1
- data/doc/Files/Transfer/Checkpoint.html +1 -1
- data/doc/Files/Transfer/CheckpointError.html +1 -1
- data/doc/Files/Transfer/ClientTransport/ClientResponse.html +36 -36
- data/doc/Files/Transfer/ClientTransport/Reader.html +33 -29
- data/doc/Files/Transfer/ClientTransport.html +34 -34
- data/doc/Files/Transfer/Clock.html +1 -1
- data/doc/Files/Transfer/Control.html +1 -1
- data/doc/Files/Transfer/Controller/Attempt.html +1 -1
- data/doc/Files/Transfer/Controller.html +1 -1
- data/doc/Files/Transfer/Coordinator/Timing.html +1 -1
- data/doc/Files/Transfer/Coordinator.html +1 -1
- data/doc/Files/Transfer/DownloadCoordinator/FileSink.html +134 -60
- data/doc/Files/Transfer/DownloadCoordinator/IoSink.html +152 -77
- data/doc/Files/Transfer/DownloadCoordinator/Piece.html +37 -37
- data/doc/Files/Transfer/DownloadCoordinator.html +85 -70
- data/doc/Files/Transfer/DownloadDate.html +467 -0
- data/doc/Files/Transfer/FileSlots.html +1 -1
- data/doc/Files/Transfer/FrontendResponseError.html +1 -1
- data/doc/Files/Transfer/Holds.html +1 -1
- data/doc/Files/Transfer/HttpTransport.html +13 -12
- data/doc/Files/Transfer/Job.html +1 -1
- data/doc/Files/Transfer/Options.html +1 -1
- data/doc/Files/Transfer/PausedError.html +1 -1
- data/doc/Files/Transfer/Policy.html +1 -1
- data/doc/Files/Transfer/RequestPermits.html +1 -1
- data/doc/Files/Transfer/SourceChangedError.html +1 -1
- data/doc/Files/Transfer/StorageResponse.html +1 -1
- data/doc/Files/Transfer/StorageRetry.html +259 -102
- data/doc/Files/Transfer/UploadCoordinator/Grant.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Part.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Region.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Segments.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Source.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/StreamSource.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator.html +1 -1
- data/doc/Files/Transfer/UploadPlan.html +1 -1
- data/doc/Files/Transfer/UrlExpired.html +1 -1
- data/doc/Files/Transfer/VersionChangedError.html +1 -1
- data/doc/Files/Transfer.html +3 -3
- data/doc/Files/TrialExpiredError.html +1 -1
- data/doc/Files/TrialLockedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCodeAlreadySentError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCountryBlacklistedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationGeneralErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationMethodUnsupportedErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationRequiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationSetupExpiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationUnsubscribedRecipientError.html +1 -1
- data/doc/Files/URI.html +1 -1
- data/doc/Files/UnrecognizedSortIndexError.html +1 -1
- data/doc/Files/UnsupportedCurrencyError.html +1 -1
- data/doc/Files/UnsupportedHttpResponseFormatError.html +1 -1
- data/doc/Files/UnsupportedMediaTypeError.html +1 -1
- data/doc/Files/UpdatesNotAllowedForRemotesError.html +1 -1
- data/doc/Files/UploadFinalization.html +1 -1
- data/doc/Files/UploadsUnavailableError.html +1 -1
- data/doc/Files/UsageByTopLevelDir.html +1 -1
- data/doc/Files/UsageDailySnapshot.html +1 -1
- data/doc/Files/UsageSnapshot.html +1 -1
- data/doc/Files/User.html +1 -1
- data/doc/Files/UserAdditionalEmailRecipient.html +1 -1
- data/doc/Files/UserCipherUse.html +1 -1
- data/doc/Files/UserIdInvalidError.html +1 -1
- data/doc/Files/UserIdOnUserEndpointError.html +1 -1
- data/doc/Files/UserIdWithoutSiteAdminError.html +1 -1
- data/doc/Files/UserLifecycleRule.html +1 -1
- data/doc/Files/UserNotFoundError.html +1 -1
- data/doc/Files/UserRequest.html +1 -1
- data/doc/Files/UserRequestsEnabledRequiredError.html +1 -1
- data/doc/Files/UserRequiredError.html +1 -1
- data/doc/Files/UserSecurityEvent.html +1 -1
- data/doc/Files/UserSftpClientUse.html +1 -1
- data/doc/Files/Util/LogSettings.html +1 -1
- data/doc/Files/Util.html +1 -1
- data/doc/Files/WebDavActionLog.html +1 -1
- data/doc/Files/WebhookTest.html +1 -1
- data/doc/Files/Workspace.html +1 -1
- data/doc/Files/WriteAndBundlePermissionRequiredError.html +1 -1
- data/doc/Files/WritePermissionRequiredError.html +1 -1
- data/doc/Files/ZipListEntry.html +1 -1
- data/doc/Files.html +167 -101
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -2
- data/doc/index.html +11 -2
- data/doc/method_list.html +2815 -2727
- data/doc/top-level-namespace.html +1 -1
- data/docs/file.md +21 -5
- data/lib/files.com/api.rb +1 -0
- data/lib/files.com/api_client.rb +23 -2
- data/lib/files.com/models/file.rb +11 -7
- data/lib/files.com/transfer/attempts.rb +3 -2
- data/lib/files.com/transfer/download_coordinator.rb +104 -16
- data/lib/files.com/transfer/download_date.rb +44 -0
- data/lib/files.com/transfer/http_transport.rb +14 -9
- data/lib/files.com/transfer/storage_retry.rb +22 -4
- data/lib/files.com.rb +3 -0
- data/spec/models/native_file_spec.rb +4 -2
- data/spec/transfer/adaptive_download_spec.rb +335 -4
- metadata +3 -1
data/doc/Files/ApiClient.html
CHANGED
|
@@ -456,6 +456,28 @@
|
|
|
456
456
|
<li class="public ">
|
|
457
457
|
<span class="summary_signature">
|
|
458
458
|
|
|
459
|
+
<a href="#check_download_modification_time-instance_method" title="#check_download_modification_time (instance method)">#<strong>check_download_modification_time</strong> ⇒ Object </a>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
</span>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
474
|
+
|
|
475
|
+
</li>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
<li class="public ">
|
|
479
|
+
<span class="summary_signature">
|
|
480
|
+
|
|
459
481
|
<a href="#cursor-instance_method" title="#cursor (instance method)">#<strong>cursor</strong> ⇒ Object </a>
|
|
460
482
|
|
|
461
483
|
|
|
@@ -544,7 +566,7 @@
|
|
|
544
566
|
<li class="public ">
|
|
545
567
|
<span class="summary_signature">
|
|
546
568
|
|
|
547
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(conn = nil, logger: USE_GLOBAL, log_level: USE_GLOBAL, workspace_id: USE_GLOBAL, region_http_pairs: USE_GLOBAL) ⇒ ApiClient </a>
|
|
569
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(conn = nil, logger: USE_GLOBAL, log_level: USE_GLOBAL, workspace_id: USE_GLOBAL, region_http_pairs: USE_GLOBAL, check_download_modification_time: USE_GLOBAL) ⇒ ApiClient </a>
|
|
548
570
|
|
|
549
571
|
|
|
550
572
|
|
|
@@ -685,7 +707,7 @@
|
|
|
685
707
|
<div class="method_details first">
|
|
686
708
|
<h3 class="signature first" id="initialize-instance_method">
|
|
687
709
|
|
|
688
|
-
#<strong>initialize</strong>(conn = nil, logger: USE_GLOBAL, log_level: USE_GLOBAL, workspace_id: USE_GLOBAL, region_http_pairs: USE_GLOBAL) ⇒ <tt><span class='object_link'><a href="" title="Files::ApiClient (class)">ApiClient</a></span></tt>
|
|
710
|
+
#<strong>initialize</strong>(conn = nil, logger: USE_GLOBAL, log_level: USE_GLOBAL, workspace_id: USE_GLOBAL, region_http_pairs: USE_GLOBAL, check_download_modification_time: USE_GLOBAL) ⇒ <tt><span class='object_link'><a href="" title="Files::ApiClient (class)">ApiClient</a></span></tt>
|
|
689
711
|
|
|
690
712
|
|
|
691
713
|
|
|
@@ -738,15 +760,17 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
738
760
|
51
|
|
739
761
|
52
|
|
740
762
|
53
|
|
741
|
-
54
|
|
763
|
+
54
|
|
764
|
+
55</pre>
|
|
742
765
|
</td>
|
|
743
766
|
<td>
|
|
744
767
|
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 46</span>
|
|
745
768
|
|
|
746
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_conn'>conn</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>logger:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>log_level:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>workspace_id:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>region_http_pairs:</span> <span class='const'>USE_GLOBAL</span><span class='rparen'>)</span>
|
|
769
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_conn'>conn</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>logger:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>log_level:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>workspace_id:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>region_http_pairs:</span> <span class='const'>USE_GLOBAL</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='const'>USE_GLOBAL</span><span class='rparen'>)</span>
|
|
747
770
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_conn'>conn</span> <span class='op'>=</span> <span class='id identifier rubyid_conn'>conn</span> <span class='op'>||</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_default_conn'>default_conn</span>
|
|
748
771
|
<span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_logger'>logger</span>
|
|
749
772
|
<span class='ivar'>@log_level</span> <span class='op'>=</span> <span class='id identifier rubyid_log_level'>log_level</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_log_level'>log_level</span> <span class='op'>:</span> <span class='const'><span class='object_link'><a href="Util.html" title="Files::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_normalize_log_level'><span class='object_link'><a href="Util.html#normalize_log_level-class_method" title="Files::Util.normalize_log_level (method)">normalize_log_level</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_log_level'>log_level</span><span class='rparen'>)</span>
|
|
773
|
+
<span class='ivar'>@check_download_modification_time</span> <span class='op'>=</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span>
|
|
750
774
|
<span class='ivar'>@workspace_id</span> <span class='op'>=</span> <span class='id identifier rubyid_workspace_id'>workspace_id</span>
|
|
751
775
|
<span class='ivar'>@region_http_pairs</span> <span class='op'>=</span> <span class='id identifier rubyid_region_http_pairs'>region_http_pairs</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_region_http_pairs'>region_http_pairs</span> <span class='op'>:</span> <span class='const'><span class='object_link'><a href="Util.html" title="Files::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_checked_region_http_pairs'><span class='object_link'><a href="Util.html#checked_region_http_pairs-class_method" title="Files::Util.checked_region_http_pairs (method)">checked_region_http_pairs</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_region_http_pairs'>region_http_pairs</span><span class='rparen'>)</span>
|
|
752
776
|
<span class='ivar'>@system_profiler</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SystemProfiler.html" title="Files::SystemProfiler (class)">SystemProfiler</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SystemProfiler.html#initialize-instance_method" title="Files::SystemProfiler#initialize (method)">new</a></span></span>
|
|
@@ -825,12 +849,12 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
825
849
|
<pre class="lines">
|
|
826
850
|
|
|
827
851
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
852
|
+
61
|
|
853
|
+
62
|
|
854
|
+
63</pre>
|
|
831
855
|
</td>
|
|
832
856
|
<td>
|
|
833
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
857
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 61</span>
|
|
834
858
|
|
|
835
859
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_active_client'>active_client</span>
|
|
836
860
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_default_client'>default_client</span>
|
|
@@ -855,11 +879,6 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
855
879
|
<pre class="lines">
|
|
856
880
|
|
|
857
881
|
|
|
858
|
-
78
|
|
859
|
-
79
|
|
860
|
-
80
|
|
861
|
-
81
|
|
862
|
-
82
|
|
863
882
|
83
|
|
864
883
|
84
|
|
865
884
|
85
|
|
@@ -886,10 +905,15 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
886
905
|
106
|
|
887
906
|
107
|
|
888
907
|
108
|
|
889
|
-
109
|
|
908
|
+
109
|
|
909
|
+
110
|
|
910
|
+
111
|
|
911
|
+
112
|
|
912
|
+
113
|
|
913
|
+
114</pre>
|
|
890
914
|
</td>
|
|
891
915
|
<td>
|
|
892
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
916
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 83</span>
|
|
893
917
|
|
|
894
918
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_build_default_conn'>build_default_conn</span><span class='lparen'>(</span><span class='label'>force_net_http:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
|
895
919
|
<span class='id identifier rubyid_proxy'>proxy</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_proxy'><span class='object_link'><a href="../Files.html#proxy-class_method" title="Files.proxy (method)">proxy</a></span></span>
|
|
@@ -943,12 +967,12 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
943
967
|
<pre class="lines">
|
|
944
968
|
|
|
945
969
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
970
|
+
75
|
|
971
|
+
76
|
|
972
|
+
77</pre>
|
|
949
973
|
</td>
|
|
950
974
|
<td>
|
|
951
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
975
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 75</span>
|
|
952
976
|
|
|
953
977
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_client'>default_client</span>
|
|
954
978
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client_default_client</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="" title="Files::ApiClient (class)">ApiClient</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Files::ApiClient#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_default_conn'>default_conn</span><span class='rparen'>)</span>
|
|
@@ -973,12 +997,12 @@ your own development servers only (see Files.region_http_pairs=).</p>
|
|
|
973
997
|
<pre class="lines">
|
|
974
998
|
|
|
975
999
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1000
|
+
79
|
|
1001
|
+
80
|
|
1002
|
+
81</pre>
|
|
979
1003
|
</td>
|
|
980
1004
|
<td>
|
|
981
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1005
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 79</span>
|
|
982
1006
|
|
|
983
1007
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_conn'>default_conn</span>
|
|
984
1008
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client_default_conn</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id identifier rubyid_build_default_conn'>build_default_conn</span>
|
|
@@ -1013,12 +1037,12 @@ falling back to net_http.</p>
|
|
|
1013
1037
|
<pre class="lines">
|
|
1014
1038
|
|
|
1015
1039
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1040
|
+
67
|
|
1041
|
+
68
|
|
1042
|
+
69</pre>
|
|
1019
1043
|
</td>
|
|
1020
1044
|
<td>
|
|
1021
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1045
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 67</span>
|
|
1022
1046
|
|
|
1023
1047
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_client'>download_client</span>
|
|
1024
1048
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client_download_client</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="" title="Files::ApiClient (class)">ApiClient</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Files::ApiClient#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_download_conn'>download_conn</span><span class='rparen'>)</span>
|
|
@@ -1043,12 +1067,12 @@ falling back to net_http.</p>
|
|
|
1043
1067
|
<pre class="lines">
|
|
1044
1068
|
|
|
1045
1069
|
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1070
|
+
71
|
|
1071
|
+
72
|
|
1072
|
+
73</pre>
|
|
1049
1073
|
</td>
|
|
1050
1074
|
<td>
|
|
1051
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1075
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 71</span>
|
|
1052
1076
|
|
|
1053
1077
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_conn'>download_conn</span>
|
|
1054
1078
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client_download_conn</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id identifier rubyid_build_default_conn'>build_default_conn</span><span class='lparen'>(</span><span class='label'>force_net_http:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
@@ -1083,13 +1107,13 @@ and password included, or nil for none.</p>
|
|
|
1083
1107
|
<pre class="lines">
|
|
1084
1108
|
|
|
1085
1109
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1110
|
+
130
|
|
1111
|
+
131
|
|
1112
|
+
132
|
|
1113
|
+
133</pre>
|
|
1090
1114
|
</td>
|
|
1091
1115
|
<td>
|
|
1092
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1116
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 130</span>
|
|
1093
1117
|
|
|
1094
1118
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_proxy_identity'>proxy_identity</span><span class='lparen'>(</span><span class='id identifier rubyid_proxy'>proxy</span><span class='rparen'>)</span>
|
|
1095
1119
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_proxy'>proxy</span> <span class='op'>&&</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>ProxyOptions</span><span class='period'>.</span><span class='id identifier rubyid_from'>from</span><span class='lparen'>(</span><span class='id identifier rubyid_proxy'>proxy</span><span class='rparen'>)</span>
|
|
@@ -1137,19 +1161,19 @@ and password included, or nil for none.</p>
|
|
|
1137
1161
|
<pre class="lines">
|
|
1138
1162
|
|
|
1139
1163
|
|
|
1140
|
-
216
|
|
1141
|
-
217
|
|
1142
|
-
218
|
|
1143
|
-
219
|
|
1144
|
-
220
|
|
1145
1164
|
221
|
|
1146
1165
|
222
|
|
1147
1166
|
223
|
|
1148
1167
|
224
|
|
1149
|
-
225
|
|
1168
|
+
225
|
|
1169
|
+
226
|
|
1170
|
+
227
|
|
1171
|
+
228
|
|
1172
|
+
229
|
|
1173
|
+
230</pre>
|
|
1150
1174
|
</td>
|
|
1151
1175
|
<td>
|
|
1152
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1176
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 221</span>
|
|
1153
1177
|
|
|
1154
1178
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_should_retry?'>should_retry?</span><span class='lparen'>(</span><span class='id identifier rubyid_error'>error</span><span class='comma'>,</span> <span class='id identifier rubyid_num_retries'>num_retries</span><span class='rparen'>)</span>
|
|
1155
1179
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_num_retries'>num_retries</span> <span class='op'>>=</span> <span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_max_network_retries'><span class='object_link'><a href="../Files.html#max_network_retries-class_method" title="Files.max_network_retries (method)">max_network_retries</a></span></span>
|
|
@@ -1193,16 +1217,16 @@ schedules and counts every retry itself.</p>
|
|
|
1193
1217
|
<pre class="lines">
|
|
1194
1218
|
|
|
1195
1219
|
|
|
1196
|
-
139
|
|
1197
|
-
140
|
|
1198
|
-
141
|
|
1199
|
-
142
|
|
1200
|
-
143
|
|
1201
1220
|
144
|
|
1202
|
-
145
|
|
1221
|
+
145
|
|
1222
|
+
146
|
|
1223
|
+
147
|
|
1224
|
+
148
|
|
1225
|
+
149
|
|
1226
|
+
150</pre>
|
|
1203
1227
|
</td>
|
|
1204
1228
|
<td>
|
|
1205
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1229
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 144</span>
|
|
1206
1230
|
|
|
1207
1231
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_single_attempt'>single_attempt</span>
|
|
1208
1232
|
<span class='id identifier rubyid_previous'>previous</span> <span class='op'>=</span> <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:files_api_client_single_attempt</span><span class='rbracket'>]</span>
|
|
@@ -1231,17 +1255,17 @@ schedules and counts every retry itself.</p>
|
|
|
1231
1255
|
<pre class="lines">
|
|
1232
1256
|
|
|
1233
1257
|
|
|
1234
|
-
227
|
|
1235
|
-
228
|
|
1236
|
-
229
|
|
1237
|
-
230
|
|
1238
|
-
231
|
|
1239
1258
|
232
|
|
1240
1259
|
233
|
|
1241
|
-
234
|
|
1260
|
+
234
|
|
1261
|
+
235
|
|
1262
|
+
236
|
|
1263
|
+
237
|
|
1264
|
+
238
|
|
1265
|
+
239</pre>
|
|
1242
1266
|
</td>
|
|
1243
1267
|
<td>
|
|
1244
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1268
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 232</span>
|
|
1245
1269
|
|
|
1246
1270
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_sleep_time'>sleep_time</span><span class='lparen'>(</span><span class='id identifier rubyid_num_retries'>num_retries</span><span class='rparen'>)</span>
|
|
1247
1271
|
<span class='id identifier rubyid_sleep_seconds'>sleep_seconds</span> <span class='op'>=</span> <span class='lbracket'>[</span>
|
|
@@ -1283,15 +1307,15 @@ falls back to Files.api_key or Files.session_id: a credential it was not given s
|
|
|
1283
1307
|
<pre class="lines">
|
|
1284
1308
|
|
|
1285
1309
|
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1310
|
+
160
|
|
1311
|
+
161
|
|
1312
|
+
162
|
|
1313
|
+
163
|
|
1314
|
+
164
|
|
1315
|
+
165</pre>
|
|
1292
1316
|
</td>
|
|
1293
1317
|
<td>
|
|
1294
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1318
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 160</span>
|
|
1295
1319
|
|
|
1296
1320
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_transfer_settings'>transfer_settings</span>
|
|
1297
1321
|
<span class='const'><span class='object_link'><a href="ApiClient/TransferSettings.html" title="Files::ApiClient::TransferSettings (class)">TransferSettings</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Files::ApiClient#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>default_headers:</span> <span class='id identifier rubyid_settings_copy'>settings_copy</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default_headers'><span class='object_link'><a href="../Files.html#default_headers-class_method" title="Files.default_headers (method)">default_headers</a></span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>language:</span> <span class='id identifier rubyid_settings_copy'>settings_copy</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_language'><span class='object_link'><a href="../Files.html#language-class_method" title="Files.language (method)">language</a></span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>app_info:</span> <span class='id identifier rubyid_settings_copy'>settings_copy</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_app_info'><span class='object_link'><a href="../Files.html#app_info-class_method" title="Files.app_info (method)">app_info</a></span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
|
@@ -1346,14 +1370,14 @@ such as one with a minimum TLS version or another proxy, it sends as that connec
|
|
|
1346
1370
|
<pre class="lines">
|
|
1347
1371
|
|
|
1348
1372
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1373
|
+
122
|
|
1374
|
+
123
|
|
1375
|
+
124
|
|
1376
|
+
125
|
|
1377
|
+
126</pre>
|
|
1354
1378
|
</td>
|
|
1355
1379
|
<td>
|
|
1356
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1380
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 122</span>
|
|
1357
1381
|
|
|
1358
1382
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_unchanged_default_conn?'>unchanged_default_conn?</span><span class='lparen'>(</span><span class='id identifier rubyid_conn'>conn</span><span class='comma'>,</span> <span class='id identifier rubyid_proxy'>proxy</span><span class='rparen'>)</span>
|
|
1359
1383
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_conn'>conn</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Connection</span><span class='rparen'>)</span>
|
|
@@ -1397,21 +1421,21 @@ Files.default_headers or a request's own headers is sent instead, exactly as giv
|
|
|
1397
1421
|
<pre class="lines">
|
|
1398
1422
|
|
|
1399
1423
|
|
|
1400
|
-
187
|
|
1401
|
-
188
|
|
1402
|
-
189
|
|
1403
|
-
190
|
|
1404
|
-
191
|
|
1405
1424
|
192
|
|
1406
1425
|
193
|
|
1407
1426
|
194
|
|
1408
1427
|
195
|
|
1409
1428
|
196
|
|
1410
1429
|
197
|
|
1411
|
-
198
|
|
1430
|
+
198
|
|
1431
|
+
199
|
|
1432
|
+
200
|
|
1433
|
+
201
|
|
1434
|
+
202
|
|
1435
|
+
203</pre>
|
|
1412
1436
|
</td>
|
|
1413
1437
|
<td>
|
|
1414
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1438
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 192</span>
|
|
1415
1439
|
|
|
1416
1440
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_user_agent_with_metadata'>user_agent_with_metadata</span><span class='lparen'>(</span><span class='id identifier rubyid_identity'>identity</span><span class='comma'>,</span> <span class='label'>host_os:</span> <span class='const'>RbConfig</span><span class='op'>::</span><span class='const'>CONFIG</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>host_os</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>ruby_engine:</span> <span class='const'>RUBY_ENGINE</span><span class='comma'>,</span> <span class='label'>ruby_version:</span> <span class='const'>RUBY_VERSION</span><span class='rparen'>)</span>
|
|
1417
1441
|
<span class='kw'>return</span> <span class='id identifier rubyid_identity'>identity</span> <span class='kw'>unless</span> <span class='id identifier rubyid_identity'>identity</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_identity'>identity</span><span class='period'>.</span><span class='id identifier rubyid_ascii_only?'>ascii_only?</span> <span class='op'>&&</span> <span class='id identifier rubyid_identity'>identity</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\A[\x20-\x7e]+\z</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
|
|
@@ -1437,7 +1461,37 @@ Files.default_headers or a request's own headers is sent instead, exactly as giv
|
|
|
1437
1461
|
|
|
1438
1462
|
|
|
1439
1463
|
<div class="method_details first">
|
|
1440
|
-
<h3 class="signature first" id="
|
|
1464
|
+
<h3 class="signature first" id="check_download_modification_time-instance_method">
|
|
1465
|
+
|
|
1466
|
+
#<strong>check_download_modification_time</strong> ⇒ <tt>Object</tt>
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
</h3><table class="source_code">
|
|
1473
|
+
<tr>
|
|
1474
|
+
<td>
|
|
1475
|
+
<pre class="lines">
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
57
|
|
1479
|
+
58
|
|
1480
|
+
59</pre>
|
|
1481
|
+
</td>
|
|
1482
|
+
<td>
|
|
1483
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 57</span>
|
|
1484
|
+
|
|
1485
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span>
|
|
1486
|
+
<span class='ivar'>@check_download_modification_time</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_check_download_modification_time'><span class='object_link'><a href="../Files.html#check_download_modification_time-class_method" title="Files.check_download_modification_time (method)">check_download_modification_time</a></span></span> <span class='op'>:</span> <span class='ivar'>@check_download_modification_time</span>
|
|
1487
|
+
<span class='kw'>end</span></pre>
|
|
1488
|
+
</td>
|
|
1489
|
+
</tr>
|
|
1490
|
+
</table>
|
|
1491
|
+
</div>
|
|
1492
|
+
|
|
1493
|
+
<div class="method_details ">
|
|
1494
|
+
<h3 class="signature " id="cursor-instance_method">
|
|
1441
1495
|
|
|
1442
1496
|
#<strong>cursor</strong> ⇒ <tt>Object</tt>
|
|
1443
1497
|
|
|
@@ -1451,12 +1505,12 @@ Files.default_headers or a request's own headers is sent instead, exactly as giv
|
|
|
1451
1505
|
<pre class="lines">
|
|
1452
1506
|
|
|
1453
1507
|
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1508
|
+
535
|
|
1509
|
+
536
|
|
1510
|
+
537</pre>
|
|
1457
1511
|
</td>
|
|
1458
1512
|
<td>
|
|
1459
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1513
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 535</span>
|
|
1460
1514
|
|
|
1461
1515
|
<span class='kw'>def</span> <span class='id identifier rubyid_cursor'>cursor</span>
|
|
1462
1516
|
<span class='ivar'>@last_response</span><span class='period'>.</span><span class='id identifier rubyid_http_headers'>http_headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>x-files-cursor</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
|
@@ -1505,12 +1559,12 @@ adaptive transfer send its content requests over its own connections instead of
|
|
|
1505
1559
|
<pre class="lines">
|
|
1506
1560
|
|
|
1507
1561
|
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1562
|
+
334
|
|
1563
|
+
335
|
|
1564
|
+
336</pre>
|
|
1511
1565
|
</td>
|
|
1512
1566
|
<td>
|
|
1513
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1567
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 334</span>
|
|
1514
1568
|
|
|
1515
1569
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_transfer_behavior?'>default_transfer_behavior?</span>
|
|
1516
1570
|
<span class='id identifier rubyid_instance_of?'>instance_of?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="Files::ApiClient (class)">ApiClient</a></span></span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_singleton_methods'>singleton_methods</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>&&</span> <span class='ivar'>@logger</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='ivar'>@log_level</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span>
|
|
@@ -1549,11 +1603,6 @@ mismatch moved it to, or nil, and the frozen region_http_pairs it used.</p>
|
|
|
1549
1603
|
<pre class="lines">
|
|
1550
1604
|
|
|
1551
1605
|
|
|
1552
|
-
261
|
|
1553
|
-
262
|
|
1554
|
-
263
|
|
1555
|
-
264
|
|
1556
|
-
265
|
|
1557
1606
|
266
|
|
1558
1607
|
267
|
|
1559
1608
|
268
|
|
@@ -1612,10 +1661,15 @@ mismatch moved it to, or nil, and the frozen region_http_pairs it used.</p>
|
|
|
1612
1661
|
321
|
|
1613
1662
|
322
|
|
1614
1663
|
323
|
|
1615
|
-
324
|
|
1664
|
+
324
|
|
1665
|
+
325
|
|
1666
|
+
326
|
|
1667
|
+
327
|
|
1668
|
+
328
|
|
1669
|
+
329</pre>
|
|
1616
1670
|
</td>
|
|
1617
1671
|
<td>
|
|
1618
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1672
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 266</span>
|
|
1619
1673
|
|
|
1620
1674
|
<span class='kw'>def</span> <span class='id identifier rubyid_execute_request'>execute_request</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>base_url:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>api_key:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>session_id:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>workspace_id:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>region_http_pairs:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>settings:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>headers:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_on_request_context'>on_request_context</span><span class='rparen'>)</span>
|
|
1621
1675
|
<span class='id identifier rubyid_base_url'>base_url</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_base_url'><span class='object_link'><a href="../Files.html#base_url-class_method" title="Files.base_url (method)">base_url</a></span></span>
|
|
@@ -1712,27 +1766,6 @@ after count together.</p>
|
|
|
1712
1766
|
<pre class="lines">
|
|
1713
1767
|
|
|
1714
1768
|
|
|
1715
|
-
680
|
|
1716
|
-
681
|
|
1717
|
-
682
|
|
1718
|
-
683
|
|
1719
|
-
684
|
|
1720
|
-
685
|
|
1721
|
-
686
|
|
1722
|
-
687
|
|
1723
|
-
688
|
|
1724
|
-
689
|
|
1725
|
-
690
|
|
1726
|
-
691
|
|
1727
|
-
692
|
|
1728
|
-
693
|
|
1729
|
-
694
|
|
1730
|
-
695
|
|
1731
|
-
696
|
|
1732
|
-
697
|
|
1733
|
-
698
|
|
1734
|
-
699
|
|
1735
|
-
700
|
|
1736
1769
|
701
|
|
1737
1770
|
702
|
|
1738
1771
|
703
|
|
@@ -1771,10 +1804,31 @@ after count together.</p>
|
|
|
1771
1804
|
736
|
|
1772
1805
|
737
|
|
1773
1806
|
738
|
|
1774
|
-
739
|
|
1807
|
+
739
|
|
1808
|
+
740
|
|
1809
|
+
741
|
|
1810
|
+
742
|
|
1811
|
+
743
|
|
1812
|
+
744
|
|
1813
|
+
745
|
|
1814
|
+
746
|
|
1815
|
+
747
|
|
1816
|
+
748
|
|
1817
|
+
749
|
|
1818
|
+
750
|
|
1819
|
+
751
|
|
1820
|
+
752
|
|
1821
|
+
753
|
|
1822
|
+
754
|
|
1823
|
+
755
|
|
1824
|
+
756
|
|
1825
|
+
757
|
|
1826
|
+
758
|
|
1827
|
+
759
|
|
1828
|
+
760</pre>
|
|
1775
1829
|
</td>
|
|
1776
1830
|
<td>
|
|
1777
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1831
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 701</span>
|
|
1778
1832
|
|
|
1779
1833
|
<span class='kw'>def</span> <span class='id identifier rubyid_execute_request_with_rescues'>execute_request_with_rescues</span><span class='lparen'>(</span><span class='id identifier rubyid_base_url'>base_url</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='comma'>,</span> <span class='label'>skip_body_logging:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>is_transfer:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>relocate:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1780
1834
|
<span class='id identifier rubyid_num_retries'>num_retries</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
@@ -1866,12 +1920,12 @@ own: the client's own, or Files.region_http_pairs.</p>
|
|
|
1866
1920
|
<pre class="lines">
|
|
1867
1921
|
|
|
1868
1922
|
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1923
|
+
256
|
|
1924
|
+
257
|
|
1925
|
+
258</pre>
|
|
1872
1926
|
</td>
|
|
1873
1927
|
<td>
|
|
1874
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1928
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 256</span>
|
|
1875
1929
|
|
|
1876
1930
|
<span class='kw'>def</span> <span class='id identifier rubyid_region_http_pairs'>region_http_pairs</span>
|
|
1877
1931
|
<span class='ivar'>@region_http_pairs</span><span class='period'>.</span><span class='id identifier rubyid_equal?'>equal?</span><span class='lparen'>(</span><span class='const'>USE_GLOBAL</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'><span class='object_link'><a href="../Files.html" title="Files (module)">Files</a></span></span><span class='period'>.</span><span class='id identifier rubyid_region_http_pairs'><span class='object_link'><a href="../Files.html#region_http_pairs-class_method" title="Files.region_http_pairs (method)">region_http_pairs</a></span></span> <span class='op'>:</span> <span class='ivar'>@region_http_pairs</span>
|
|
@@ -1911,11 +1965,6 @@ or sends its query decoded and encoded again, as it does any params.</p>
|
|
|
1911
1965
|
<pre class="lines">
|
|
1912
1966
|
|
|
1913
1967
|
|
|
1914
|
-
348
|
|
1915
|
-
349
|
|
1916
|
-
350
|
|
1917
|
-
351
|
|
1918
|
-
352
|
|
1919
1968
|
353
|
|
1920
1969
|
354
|
|
1921
1970
|
355
|
|
@@ -1926,10 +1975,15 @@ or sends its query decoded and encoded again, as it does any params.</p>
|
|
|
1926
1975
|
360
|
|
1927
1976
|
361
|
|
1928
1977
|
362
|
|
1929
|
-
363
|
|
1978
|
+
363
|
|
1979
|
+
364
|
|
1980
|
+
365
|
|
1981
|
+
366
|
|
1982
|
+
367
|
|
1983
|
+
368</pre>
|
|
1930
1984
|
</td>
|
|
1931
1985
|
<td>
|
|
1932
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
1986
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 353</span>
|
|
1933
1987
|
|
|
1934
1988
|
<span class='kw'>def</span> <span class='id identifier rubyid_remote_request'>remote_request</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1935
1989
|
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ApiClient/RequestLogContext.html" title="Files::ApiClient::RequestLogContext (class)">RequestLogContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Files::ApiClient#initialize (method)">new</a></span></span>
|
|
@@ -1967,21 +2021,21 @@ or sends its query decoded and encoded again, as it does any params.</p>
|
|
|
1967
2021
|
<pre class="lines">
|
|
1968
2022
|
|
|
1969
2023
|
|
|
1970
|
-
236
|
|
1971
|
-
237
|
|
1972
|
-
238
|
|
1973
|
-
239
|
|
1974
|
-
240
|
|
1975
2024
|
241
|
|
1976
2025
|
242
|
|
1977
2026
|
243
|
|
1978
2027
|
244
|
|
1979
2028
|
245
|
|
1980
2029
|
246
|
|
1981
|
-
247
|
|
2030
|
+
247
|
|
2031
|
+
248
|
|
2032
|
+
249
|
|
2033
|
+
250
|
|
2034
|
+
251
|
|
2035
|
+
252</pre>
|
|
1982
2036
|
</td>
|
|
1983
2037
|
<td>
|
|
1984
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
2038
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 241</span>
|
|
1985
2039
|
|
|
1986
2040
|
<span class='kw'>def</span> <span class='id identifier rubyid_request'>request</span>
|
|
1987
2041
|
<span class='ivar'>@last_response</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
@@ -2026,13 +2080,13 @@ begins, so a later change to Files.workspace_id cannot move it.</p>
|
|
|
2026
2080
|
<pre class="lines">
|
|
2027
2081
|
|
|
2028
2082
|
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2083
|
+
341
|
|
2084
|
+
342
|
|
2085
|
+
343
|
|
2086
|
+
344</pre>
|
|
2033
2087
|
</td>
|
|
2034
2088
|
<td>
|
|
2035
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
2089
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 341</span>
|
|
2036
2090
|
|
|
2037
2091
|
<span class='kw'>def</span> <span class='id identifier rubyid_resolved_workspace_id'>resolved_workspace_id</span>
|
|
2038
2092
|
<span class='id identifier rubyid_workspace_id'>workspace_id</span> <span class='op'>=</span> <span class='id identifier rubyid_default_workspace_id'>default_workspace_id</span>
|
|
@@ -2058,28 +2112,36 @@ begins, so a later change to Files.workspace_id cannot move it.</p>
|
|
|
2058
2112
|
<pre class="lines">
|
|
2059
2113
|
|
|
2060
2114
|
|
|
2061
|
-
373
|
|
2062
|
-
374
|
|
2063
|
-
375
|
|
2064
|
-
376
|
|
2065
|
-
377
|
|
2066
2115
|
378
|
|
2067
2116
|
379
|
|
2068
2117
|
380
|
|
2069
2118
|
381
|
|
2070
2119
|
382
|
|
2071
|
-
383
|
|
2120
|
+
383
|
|
2121
|
+
384
|
|
2122
|
+
385
|
|
2123
|
+
386
|
|
2124
|
+
387
|
|
2125
|
+
388
|
|
2126
|
+
389
|
|
2127
|
+
390
|
|
2128
|
+
391
|
|
2129
|
+
392</pre>
|
|
2072
2130
|
</td>
|
|
2073
2131
|
<td>
|
|
2074
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line
|
|
2132
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/api_client.rb', line 378</span>
|
|
2075
2133
|
|
|
2076
2134
|
<span class='kw'>def</span> <span class='id identifier rubyid_stream_download'>stream_download</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_range'>range</span><span class='rparen'>)</span>
|
|
2077
2135
|
<span class='kw'>if</span> <span class='id identifier rubyid_conn'>conn</span><span class='period'>.</span><span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>==</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Adapter</span><span class='op'>::</span><span class='const'>NetHttp</span>
|
|
2078
2136
|
<span class='id identifier rubyid_stream_download_with_net_http'>stream_download_with_net_http</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="URI.html" title="Files::URI (module)">URI</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_range'>range</span><span class='rparen'>)</span>
|
|
2079
2137
|
<span class='kw'>else</span>
|
|
2080
|
-
<span class='id identifier
|
|
2138
|
+
<span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
2139
|
+
<span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Transfer.html" title="Files::Transfer (module)">Transfer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Transfer/Attempts.html" title="Files::Transfer::Attempts (class)">Attempts</a></span></span><span class='period'>.</span><span class='id identifier rubyid_current'><span class='object_link'><a href="Transfer/Attempts.html#current-class_method" title="Files::Transfer::Attempts.current (method)">current</a></span></span><span class='op'>&.</span><span class='id identifier rubyid_download_date'>download_date</span>
|
|
2140
|
+
<span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>If-Unmodified-Since</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_header'>header</span> <span class='kw'>if</span> <span class='id identifier rubyid_date'>date</span><span class='op'>&.</span><span class='id identifier rubyid_header'>header</span>
|
|
2141
|
+
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_remote_request'>remote_request</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
|
2081
2142
|
<span class='id identifier rubyid_reject_frontend_response'>reject_frontend_response</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Transfer.html" title="Files::Transfer (module)">Transfer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Transfer/StorageRetry.html" title="Files::Transfer::StorageRetry (module)">StorageRetry</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Transfer/StorageRetry.html#FRONTEND_HEADER-constant" title="Files::Transfer::StorageRetry::FRONTEND_HEADER (constant)">FRONTEND_HEADER</a></span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span>
|
|
2082
2143
|
<span class='id identifier rubyid_reject_returned_refusal'>reject_returned_refusal</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_success?'>success?</span>
|
|
2144
|
+
<span class='id identifier rubyid_reject_changed_download'>reject_changed_download</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>last-modified</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span>
|
|
2083
2145
|
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_fulfill_content_length'>fulfill_content_length</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_content_length'>content_length</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:fulfill_content_length</span><span class='rparen'>)</span>
|
|
2084
2146
|
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span>
|
|
2085
2147
|
<span class='kw'>end</span>
|
|
@@ -2094,7 +2156,7 @@ begins, so a later change to Files.workspace_id cannot move it.</p>
|
|
|
2094
2156
|
</div>
|
|
2095
2157
|
|
|
2096
2158
|
<div id="footer">
|
|
2097
|
-
Generated on
|
|
2159
|
+
Generated on Sat Nov 14 22:52:24 2026 by
|
|
2098
2160
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2099
2161
|
0.9.45 (ruby-4.0.9).
|
|
2100
2162
|
</div>
|